google-apis-containeranalysis_v1 0.48.0 → 0.49.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89dc8bc718ee401ab89c2477b93895e05c6db72a768823ae1b261cf55d26c6aa
4
- data.tar.gz: 7a0b1557366f159909b14b62b8ee26e81bd15b0f4dc0898174cbbf1c0ab32a1c
3
+ metadata.gz: 4da4b140206840d65e56527f95039abd5dfaae7c6605a06340320e11a4d84468
4
+ data.tar.gz: c0ef6667633b943c17928fb0d9476a1cdaec6e89e16c38d5249eae66e2f96cb4
5
5
  SHA512:
6
- metadata.gz: 659bfe44728873c78607ed9011e66800d05d3c00a227268757140b68444c7035aa3b82a9364d6bb1fcb3b5aadd2b2444c882a9123e99889c8a58a9bbd2bc768a
7
- data.tar.gz: 70938a163620869271fce360c61b4c7d92f6ca3d34352484292188b70648594191541b4666e6e555a9af7b2f36b90b3ded27b7e3a92451372ed378aac67b32f2
6
+ metadata.gz: add01df7fe0a329f78f3b1b54824749107226168406c38a4389743cbc224417ea74f1a4f408d80a4939c9baa8910e8cd984dd6c919e6d35200a4b7e3f71cc27a
7
+ data.tar.gz: 4369b60374f9575ebb37c7f667aafb2660efd7032184524d2a76176463e73b97a3c19762817ae0c0009c1f84d6ea6ece13034fd3e58e082990c8e0ed098c7954
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-containeranalysis_v1
2
2
 
3
+ ### v0.49.0 (2024-03-10)
4
+
5
+ * Regenerated from discovery document revision 20240301
6
+ * Regenerated using generator version 0.14.0
7
+
3
8
  ### v0.48.0 (2024-02-23)
4
9
 
5
10
  * Unspecified changes
@@ -1228,6 +1228,11 @@ module Google
1228
1228
  # @return [String]
1229
1229
  attr_accessor :description
1230
1230
 
1231
+ #
1232
+ # Corresponds to the JSON property `impact`
1233
+ # @return [String]
1234
+ attr_accessor :impact
1235
+
1231
1236
  # A rationale for the existence of this compliance check.
1232
1237
  # Corresponds to the JSON property `rationale`
1233
1238
  # @return [String]
@@ -1262,6 +1267,7 @@ module Google
1262
1267
  def update!(**args)
1263
1268
  @cis_benchmark = args[:cis_benchmark] if args.key?(:cis_benchmark)
1264
1269
  @description = args[:description] if args.key?(:description)
1270
+ @impact = args[:impact] if args.key?(:impact)
1265
1271
  @rationale = args[:rationale] if args.key?(:rationale)
1266
1272
  @remediation = args[:remediation] if args.key?(:remediation)
1267
1273
  @scan_instructions = args[:scan_instructions] if args.key?(:scan_instructions)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1
18
18
  # Version of the google-apis-containeranalysis_v1 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.1"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240205"
25
+ REVISION = "20240301"
26
26
  end
27
27
  end
28
28
  end
@@ -1296,6 +1296,7 @@ module Google
1296
1296
  property :cis_benchmark, as: 'cisBenchmark', class: Google::Apis::ContaineranalysisV1::CisBenchmark, decorator: Google::Apis::ContaineranalysisV1::CisBenchmark::Representation
1297
1297
 
1298
1298
  property :description, as: 'description'
1299
+ property :impact, as: 'impact'
1299
1300
  property :rationale, as: 'rationale'
1300
1301
  property :remediation, as: 'remediation'
1301
1302
  property :scan_instructions, :base64 => true, as: 'scanInstructions'
@@ -55,6 +55,292 @@ module Google
55
55
  @batch_path = 'batch'
56
56
  end
57
57
 
58
+ # Gets the specified note.
59
+ # @param [String] name
60
+ # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
61
+ # NOTE_ID]`.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::Note] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::ContaineranalysisV1::Note]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def get_project_location_note(name, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:get, 'v1/{+name}', options)
81
+ command.response_representation = Google::Apis::ContaineranalysisV1::Note::Representation
82
+ command.response_class = Google::Apis::ContaineranalysisV1::Note
83
+ command.params['name'] = name unless name.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Lists notes for the specified project.
90
+ # @param [String] parent
91
+ # Required. The name of the project to list notes for in the form of `projects/[
92
+ # PROJECT_ID]`.
93
+ # @param [String] filter
94
+ # The filter expression.
95
+ # @param [Fixnum] page_size
96
+ # Number of notes to return in the list. Must be positive. Max allowed page size
97
+ # is 1000. If not specified, page size defaults to 20.
98
+ # @param [String] page_token
99
+ # Token to provide to skip to a particular spot in the list.
100
+ # @param [String] fields
101
+ # Selector specifying which fields to include in a partial response.
102
+ # @param [String] quota_user
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::ListNotesResponse] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::ContaineranalysisV1::ListNotesResponse]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def list_project_location_notes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ command = make_simple_command(:get, 'v1/{+parent}/notes', options)
119
+ command.response_representation = Google::Apis::ContaineranalysisV1::ListNotesResponse::Representation
120
+ command.response_class = Google::Apis::ContaineranalysisV1::ListNotesResponse
121
+ command.params['parent'] = parent unless parent.nil?
122
+ command.query['filter'] = filter unless filter.nil?
123
+ command.query['pageSize'] = page_size unless page_size.nil?
124
+ command.query['pageToken'] = page_token unless page_token.nil?
125
+ command.query['fields'] = fields unless fields.nil?
126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
127
+ execute_or_queue_command(command, &block)
128
+ end
129
+
130
+ # Lists occurrences referencing the specified note. Provider projects can use
131
+ # this method to get all occurrences across consumer projects referencing the
132
+ # specified note.
133
+ # @param [String] name
134
+ # Required. The name of the note to list occurrences for in the form of `
135
+ # projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
136
+ # @param [String] filter
137
+ # The filter expression.
138
+ # @param [Fixnum] page_size
139
+ # Number of occurrences to return in the list.
140
+ # @param [String] page_token
141
+ # Token to provide to skip to a particular spot in the list.
142
+ # @param [String] fields
143
+ # Selector specifying which fields to include in a partial response.
144
+ # @param [String] quota_user
145
+ # Available to use for quota purposes for server-side applications. Can be any
146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
147
+ # @param [Google::Apis::RequestOptions] options
148
+ # Request-specific options
149
+ #
150
+ # @yield [result, err] Result & error if block supplied
151
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse]
155
+ #
156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
159
+ def list_project_location_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ command = make_simple_command(:get, 'v1/{+name}/occurrences', options)
161
+ command.response_representation = Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse::Representation
162
+ command.response_class = Google::Apis::ContaineranalysisV1::ListNoteOccurrencesResponse
163
+ command.params['name'] = name unless name.nil?
164
+ command.query['filter'] = filter unless filter.nil?
165
+ command.query['pageSize'] = page_size unless page_size.nil?
166
+ command.query['pageToken'] = page_token unless page_token.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ execute_or_queue_command(command, &block)
170
+ end
171
+
172
+ # Gets the specified occurrence.
173
+ # @param [String] name
174
+ # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
175
+ # occurrences/[OCCURRENCE_ID]`.
176
+ # @param [String] fields
177
+ # Selector specifying which fields to include in a partial response.
178
+ # @param [String] quota_user
179
+ # Available to use for quota purposes for server-side applications. Can be any
180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
181
+ # @param [Google::Apis::RequestOptions] options
182
+ # Request-specific options
183
+ #
184
+ # @yield [result, err] Result & error if block supplied
185
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::Occurrence] parsed result object
186
+ # @yieldparam err [StandardError] error object if request failed
187
+ #
188
+ # @return [Google::Apis::ContaineranalysisV1::Occurrence]
189
+ #
190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
193
+ def get_project_location_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
194
+ command = make_simple_command(:get, 'v1/{+name}', options)
195
+ command.response_representation = Google::Apis::ContaineranalysisV1::Occurrence::Representation
196
+ command.response_class = Google::Apis::ContaineranalysisV1::Occurrence
197
+ command.params['name'] = name unless name.nil?
198
+ command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
203
+ # Gets the note attached to the specified occurrence. Consumer projects can use
204
+ # this method to get a note that belongs to a provider project.
205
+ # @param [String] name
206
+ # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
207
+ # occurrences/[OCCURRENCE_ID]`.
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
210
+ # @param [String] quota_user
211
+ # Available to use for quota purposes for server-side applications. Can be any
212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
213
+ # @param [Google::Apis::RequestOptions] options
214
+ # Request-specific options
215
+ #
216
+ # @yield [result, err] Result & error if block supplied
217
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::Note] parsed result object
218
+ # @yieldparam err [StandardError] error object if request failed
219
+ #
220
+ # @return [Google::Apis::ContaineranalysisV1::Note]
221
+ #
222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
225
+ def get_project_location_occurrence_notes(name, fields: nil, quota_user: nil, options: nil, &block)
226
+ command = make_simple_command(:get, 'v1/{+name}/notes', options)
227
+ command.response_representation = Google::Apis::ContaineranalysisV1::Note::Representation
228
+ command.response_class = Google::Apis::ContaineranalysisV1::Note
229
+ command.params['name'] = name unless name.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ execute_or_queue_command(command, &block)
233
+ end
234
+
235
+ # Gets a summary of the number and severity of occurrences.
236
+ # @param [String] parent
237
+ # Required. The name of the project to get a vulnerability summary for in the
238
+ # form of `projects/[PROJECT_ID]`.
239
+ # @param [String] filter
240
+ # The filter expression.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def get_project_location_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:get, 'v1/{+parent}/occurrences:vulnerabilitySummary', options)
260
+ command.response_representation = Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary::Representation
261
+ command.response_class = Google::Apis::ContaineranalysisV1::VulnerabilityOccurrencesSummary
262
+ command.params['parent'] = parent unless parent.nil?
263
+ command.query['filter'] = filter unless filter.nil?
264
+ command.query['fields'] = fields unless fields.nil?
265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
266
+ execute_or_queue_command(command, &block)
267
+ end
268
+
269
+ # Lists occurrences for the specified project.
270
+ # @param [String] parent
271
+ # Required. The name of the project to list occurrences for in the form of `
272
+ # projects/[PROJECT_ID]`.
273
+ # @param [String] filter
274
+ # The filter expression.
275
+ # @param [Fixnum] page_size
276
+ # Number of occurrences to return in the list. Must be positive. Max allowed
277
+ # page size is 1000. If not specified, page size defaults to 20.
278
+ # @param [String] page_token
279
+ # Token to provide to skip to a particular spot in the list.
280
+ # @param [String] fields
281
+ # Selector specifying which fields to include in a partial response.
282
+ # @param [String] quota_user
283
+ # Available to use for quota purposes for server-side applications. Can be any
284
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
285
+ # @param [Google::Apis::RequestOptions] options
286
+ # Request-specific options
287
+ #
288
+ # @yield [result, err] Result & error if block supplied
289
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::ListOccurrencesResponse] parsed result object
290
+ # @yieldparam err [StandardError] error object if request failed
291
+ #
292
+ # @return [Google::Apis::ContaineranalysisV1::ListOccurrencesResponse]
293
+ #
294
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
297
+ def list_project_location_occurrences(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
298
+ command = make_simple_command(:get, 'v1/{+parent}/occurrences', options)
299
+ command.response_representation = Google::Apis::ContaineranalysisV1::ListOccurrencesResponse::Representation
300
+ command.response_class = Google::Apis::ContaineranalysisV1::ListOccurrencesResponse
301
+ command.params['parent'] = parent unless parent.nil?
302
+ command.query['filter'] = filter unless filter.nil?
303
+ command.query['pageSize'] = page_size unless page_size.nil?
304
+ command.query['pageToken'] = page_token unless page_token.nil?
305
+ command.query['fields'] = fields unless fields.nil?
306
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
307
+ execute_or_queue_command(command, &block)
308
+ end
309
+
310
+ # Generates an SBOM for the given resource.
311
+ # @param [String] name
312
+ # Required. The name of the resource in the form of `projects/[PROJECT_ID]/
313
+ # resources/[RESOURCE_URL]`.
314
+ # @param [Google::Apis::ContaineranalysisV1::ExportSbomRequest] export_sbom_request_object
315
+ # @param [String] fields
316
+ # Selector specifying which fields to include in a partial response.
317
+ # @param [String] quota_user
318
+ # Available to use for quota purposes for server-side applications. Can be any
319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
320
+ # @param [Google::Apis::RequestOptions] options
321
+ # Request-specific options
322
+ #
323
+ # @yield [result, err] Result & error if block supplied
324
+ # @yieldparam result [Google::Apis::ContaineranalysisV1::ExportSbomResponse] parsed result object
325
+ # @yieldparam err [StandardError] error object if request failed
326
+ #
327
+ # @return [Google::Apis::ContaineranalysisV1::ExportSbomResponse]
328
+ #
329
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
330
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
331
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
332
+ def export_project_location_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
333
+ command = make_simple_command(:post, 'v1/{+name}:exportSBOM', options)
334
+ command.request_representation = Google::Apis::ContaineranalysisV1::ExportSbomRequest::Representation
335
+ command.request_object = export_sbom_request_object
336
+ command.response_representation = Google::Apis::ContaineranalysisV1::ExportSbomResponse::Representation
337
+ command.response_class = Google::Apis::ContaineranalysisV1::ExportSbomResponse
338
+ command.params['name'] = name unless name.nil?
339
+ command.query['fields'] = fields unless fields.nil?
340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
341
+ execute_or_queue_command(command, &block)
342
+ end
343
+
58
344
  # Creates new notes in batch.
59
345
  # @param [String] parent
60
346
  # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1
63
63
  post_install_message:
64
64
  rdoc_options: []