google-apis-containeranalysis_v1beta1 0.54.0 → 0.55.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: 1f672e0b5dbca0056b7642935c318fc101797940c8299e059a755a2c179e5b4f
4
- data.tar.gz: e37b31a065e7e47083ae3df2edf092a16adbe0f53ca342ecb5358efa2848283a
3
+ metadata.gz: e5d036317d04065811f80a90d3df8c45ae6609478023a63abe69371c6cd138a1
4
+ data.tar.gz: bd1aeedba35c54b58ed9f7dd1c0b1cc4cd43aa463b436d65356449f874477a76
5
5
  SHA512:
6
- metadata.gz: 4a5a80ce2188b6d0bdf84ffbc9c0c96da0960bd169084ae366e1f5d7740d0266b0201000f797c9a82864523378f138f7904faa0ab01e7d67ba41345f8e4f9a70
7
- data.tar.gz: 6c7d40e2d61c39a832381e40993497b85053a3b9b7fbfd18c298491632935b61c90679c44d35b8752857fc3f3eb5a17276d131e3516b25b1ef0b5fa60c12238e
6
+ metadata.gz: 880fbddac6d53e2705ecef5c7cd8f1fbbaa99ed77b8b4decddd01094ddd5e03cab94e9dba8f0c7333508fad155eef214bd264121e6f4da3c0b22518c45f60697
7
+ data.tar.gz: 5f7e0216265a2d48f1e4a445dc9366fccbb3b492e2fd6a188601f6a4b2984606bb0a0b1a831fbee30e4acdd20fcb538d6c0881e5dc566f60e55ea7612788043c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.55.0 (2024-03-10)
4
+
5
+ * Regenerated from discovery document revision 20240301
6
+
3
7
  ### v0.54.0 (2024-02-23)
4
8
 
5
9
  * Regenerated using generator version 0.14.0
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1beta1
18
18
  # Version of the google-apis-containeranalysis_v1beta1 gem
19
- GEM_VERSION = "0.54.0"
19
+ GEM_VERSION = "0.55.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240209"
25
+ REVISION = "20240301"
26
26
  end
27
27
  end
28
28
  end
@@ -55,6 +55,326 @@ 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::ContaineranalysisV1beta1::Note] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+name}', options)
81
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
82
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ListNotesResponse] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+parent}/notes', options)
119
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListNotesResponse::Representation
120
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ListNoteOccurrencesResponse] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+name}/occurrences', options)
161
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse::Representation
162
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::Occurrence] parsed result object
186
+ # @yieldparam err [StandardError] error object if request failed
187
+ #
188
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+name}', options)
195
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
196
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::Note] parsed result object
218
+ # @yieldparam err [StandardError] error object if request failed
219
+ #
220
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+name}/notes', options)
227
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
228
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+parent}/occurrences:vulnerabilitySummary', options)
260
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary::Representation
261
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ListOccurrencesResponse] parsed result object
290
+ # @yieldparam err [StandardError] error object if request failed
291
+ #
292
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+parent}/occurrences', options)
299
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListOccurrencesResponse::Representation
300
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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 and other dependency information 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::ContaineranalysisV1beta1::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::ContaineranalysisV1beta1::ExportSbomResponse] parsed result object
325
+ # @yieldparam err [StandardError] error object if request failed
326
+ #
327
+ # @return [Google::Apis::ContaineranalysisV1beta1::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, 'v1beta1/{+name}:exportSBOM', options)
334
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::ExportSbomRequest::Representation
335
+ command.request_object = export_sbom_request_object
336
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ExportSbomResponse::Representation
337
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::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
+
344
+ # Gets a summary of the packages within a given resource.
345
+ # @param [String] name
346
+ # Required. The name of the resource to get a packages summary for in the form
347
+ # of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
348
+ # @param [Google::Apis::ContaineranalysisV1beta1::GeneratePackagesSummaryRequest] generate_packages_summary_request_object
349
+ # @param [String] fields
350
+ # Selector specifying which fields to include in a partial response.
351
+ # @param [String] quota_user
352
+ # Available to use for quota purposes for server-side applications. Can be any
353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
354
+ # @param [Google::Apis::RequestOptions] options
355
+ # Request-specific options
356
+ #
357
+ # @yield [result, err] Result & error if block supplied
358
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::PackagesSummaryResponse] parsed result object
359
+ # @yieldparam err [StandardError] error object if request failed
360
+ #
361
+ # @return [Google::Apis::ContaineranalysisV1beta1::PackagesSummaryResponse]
362
+ #
363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
366
+ def generate_project_location_resource_packages_summary(name, generate_packages_summary_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
367
+ command = make_simple_command(:post, 'v1beta1/{+name}:generatePackagesSummary', options)
368
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GeneratePackagesSummaryRequest::Representation
369
+ command.request_object = generate_packages_summary_request_object
370
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::PackagesSummaryResponse::Representation
371
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::PackagesSummaryResponse
372
+ command.params['name'] = name unless name.nil?
373
+ command.query['fields'] = fields unless fields.nil?
374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
375
+ execute_or_queue_command(command, &block)
376
+ end
377
+
58
378
  # Creates new notes in batch.
59
379
  # @param [String] parent
60
380
  # 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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.55.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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.54.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.55.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []