google-apis-containeranalysis_v1beta1 0.58.0 → 0.59.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: 13fbff3e56d583d6ce135ef6bccb5e41e1ea3ed33d007ef90d73676ef573bdb4
4
- data.tar.gz: f5e32638abd0a7521f5833434891ea2a7bfdfda396273546709bf1423a2fff15
3
+ metadata.gz: d7c0af11d0050ee7e456d4407cb834de6bbad16c80771c551682b8ea819a3cc6
4
+ data.tar.gz: a0204754876177d71c6530e725260e90f82d5efdf716fe62ae01f6d2bc9bd61b
5
5
  SHA512:
6
- metadata.gz: 4d25083753ca17190eda13535a66fc74bab0bea0c5c59184f76d9912da826611c2fcdfddc238951c22b9ec015c25c8cf6c09dbe4ee425473cc0cd5f197139d23
7
- data.tar.gz: 7f406ed3ccb9f7adaba39f3b98e38b8bf5121095809c2f0ef3c054764589cd453a39762f55f7e7ba686606851458ff8038e2bb69220bb0f74cb66167d9c9a083
6
+ metadata.gz: 70ec8a87d9db0ee366af015e2042b4968aff39a47706c702ebe3135e6b5cd8b1fa952f42ca9cf2582ab6e6ab9207d4b4f0d0ea47a4ef190dba2d3cf1cffa43c2
7
+ data.tar.gz: 9867be2527d66be47f6ca24e8a9688c5431a058d088070995e74f8a3309aeb0b1fd0aa460429d8154fded8ab34faec3517c796cee3c0a42aa7b3cff6f2c83a9c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.59.0 (2024-12-02)
4
+
5
+ * Regenerated from discovery document revision 20240924
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.58.0 (2024-07-25)
4
9
 
5
10
  * Regenerated from discovery document revision 20240704
@@ -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.58.0"
19
+ GEM_VERSION = "0.59.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240704"
25
+ REVISION = "20240924"
26
26
  end
27
27
  end
28
28
  end
@@ -55,6 +55,108 @@ module Google
55
55
  @batch_path = 'batch'
56
56
  end
57
57
 
58
+ # Creates new notes in batch.
59
+ # @param [String] parent
60
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
61
+ # under which the notes are to be created.
62
+ # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest] batch_create_notes_request_object
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def batch_project_location_note_create(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:post, 'v1beta1/{+parent}/notes:batchCreate', options)
82
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest::Representation
83
+ command.request_object = batch_create_notes_request_object
84
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse::Representation
85
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse
86
+ command.params['parent'] = parent unless parent.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Creates a new note.
93
+ # @param [String] parent
94
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
95
+ # under which the note is to be created.
96
+ # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object
97
+ # @param [String] note_id
98
+ # Required. The ID to use for this note.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def create_project_location_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:post, 'v1beta1/{+parent}/notes', options)
118
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
119
+ command.request_object = note_object
120
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
121
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
122
+ command.params['parent'] = parent unless parent.nil?
123
+ command.query['noteId'] = note_id unless note_id.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ execute_or_queue_command(command, &block)
127
+ end
128
+
129
+ # Deletes the specified note.
130
+ # @param [String] name
131
+ # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
132
+ # NOTE_ID]`.
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Empty] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::ContaineranalysisV1beta1::Empty]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def delete_project_location_note(name, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
152
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation
153
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Empty
154
+ command.params['name'] = name unless name.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
58
160
  # Gets the specified note.
59
161
  # @param [String] name
60
162
  # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
@@ -86,6 +188,45 @@ module Google
86
188
  execute_or_queue_command(command, &block)
87
189
  end
88
190
 
191
+ # Gets the access control policy for a note or an occurrence resource. Requires `
192
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
193
+ # setIamPolicy` permission if the resource is a note or occurrence, respectively.
194
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
195
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
196
+ # @param [String] resource
197
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
198
+ # names](https://cloud.google.com/apis/design/resource_names) for the
199
+ # appropriate value for this field.
200
+ # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
201
+ # @param [String] fields
202
+ # Selector specifying which fields to include in a partial response.
203
+ # @param [String] quota_user
204
+ # Available to use for quota purposes for server-side applications. Can be any
205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [Google::Apis::RequestOptions] options
207
+ # Request-specific options
208
+ #
209
+ # @yield [result, err] Result & error if block supplied
210
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
211
+ # @yieldparam err [StandardError] error object if request failed
212
+ #
213
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
214
+ #
215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
218
+ def get_project_location_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
219
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
220
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation
221
+ command.request_object = get_iam_policy_request_object
222
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
223
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
224
+ command.params['resource'] = resource unless resource.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
89
230
  # Lists notes for the specified project.
90
231
  # @param [String] parent
91
232
  # Required. The name of the project to list notes for in the form of `projects/[
@@ -127,6 +268,122 @@ module Google
127
268
  execute_or_queue_command(command, &block)
128
269
  end
129
270
 
271
+ # Updates the specified note.
272
+ # @param [String] name
273
+ # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
274
+ # NOTE_ID]`.
275
+ # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object
276
+ # @param [String] update_mask
277
+ # The fields to update.
278
+ # @param [String] fields
279
+ # Selector specifying which fields to include in a partial response.
280
+ # @param [String] quota_user
281
+ # Available to use for quota purposes for server-side applications. Can be any
282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
283
+ # @param [Google::Apis::RequestOptions] options
284
+ # Request-specific options
285
+ #
286
+ # @yield [result, err] Result & error if block supplied
287
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
288
+ # @yieldparam err [StandardError] error object if request failed
289
+ #
290
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
291
+ #
292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
295
+ def patch_project_location_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
296
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
297
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
298
+ command.request_object = note_object
299
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
300
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
301
+ command.params['name'] = name unless name.nil?
302
+ command.query['updateMask'] = update_mask unless update_mask.nil?
303
+ command.query['fields'] = fields unless fields.nil?
304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
305
+ execute_or_queue_command(command, &block)
306
+ end
307
+
308
+ # Sets the access control policy on the specified note or occurrence. Requires `
309
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
310
+ # setIamPolicy` permission if the resource is a note or an occurrence,
311
+ # respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[
312
+ # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
313
+ # for occurrences.
314
+ # @param [String] resource
315
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
316
+ # names](https://cloud.google.com/apis/design/resource_names) for the
317
+ # appropriate value for this field.
318
+ # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def set_project_location_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
338
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation
339
+ command.request_object = set_iam_policy_request_object
340
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
341
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
342
+ command.params['resource'] = resource unless resource.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ execute_or_queue_command(command, &block)
346
+ end
347
+
348
+ # Returns the permissions that a caller has on the specified note or occurrence.
349
+ # Requires list permission on the project (for example, `containeranalysis.notes.
350
+ # list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]`
351
+ # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
352
+ # occurrences.
353
+ # @param [String] resource
354
+ # REQUIRED: The resource for which the policy detail is being requested. See [
355
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
356
+ # appropriate value for this field.
357
+ # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
358
+ # @param [String] fields
359
+ # Selector specifying which fields to include in a partial response.
360
+ # @param [String] quota_user
361
+ # Available to use for quota purposes for server-side applications. Can be any
362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
363
+ # @param [Google::Apis::RequestOptions] options
364
+ # Request-specific options
365
+ #
366
+ # @yield [result, err] Result & error if block supplied
367
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse] parsed result object
368
+ # @yieldparam err [StandardError] error object if request failed
369
+ #
370
+ # @return [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse]
371
+ #
372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
375
+ def test_project_location_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
376
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
377
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation
378
+ command.request_object = test_iam_permissions_request_object
379
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation
380
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse
381
+ command.params['resource'] = resource unless resource.nil?
382
+ command.query['fields'] = fields unless fields.nil?
383
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
384
+ execute_or_queue_command(command, &block)
385
+ end
386
+
130
387
  # Lists occurrences referencing the specified note. Provider projects can use
131
388
  # this method to get all occurrences across consumer projects referencing the
132
389
  # specified note.
@@ -169,6 +426,106 @@ module Google
169
426
  execute_or_queue_command(command, &block)
170
427
  end
171
428
 
429
+ # Creates new occurrences in batch.
430
+ # @param [String] parent
431
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
432
+ # under which the occurrences are to be created.
433
+ # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest] batch_create_occurrences_request_object
434
+ # @param [String] fields
435
+ # Selector specifying which fields to include in a partial response.
436
+ # @param [String] quota_user
437
+ # Available to use for quota purposes for server-side applications. Can be any
438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
439
+ # @param [Google::Apis::RequestOptions] options
440
+ # Request-specific options
441
+ #
442
+ # @yield [result, err] Result & error if block supplied
443
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse] parsed result object
444
+ # @yieldparam err [StandardError] error object if request failed
445
+ #
446
+ # @return [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse]
447
+ #
448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
451
+ def batch_project_location_occurrence_create(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
452
+ command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences:batchCreate', options)
453
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest::Representation
454
+ command.request_object = batch_create_occurrences_request_object
455
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse::Representation
456
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse
457
+ command.params['parent'] = parent unless parent.nil?
458
+ command.query['fields'] = fields unless fields.nil?
459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
460
+ execute_or_queue_command(command, &block)
461
+ end
462
+
463
+ # Creates a new occurrence.
464
+ # @param [String] parent
465
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
466
+ # under which the occurrence is to be created.
467
+ # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object
468
+ # @param [String] fields
469
+ # Selector specifying which fields to include in a partial response.
470
+ # @param [String] quota_user
471
+ # Available to use for quota purposes for server-side applications. Can be any
472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
473
+ # @param [Google::Apis::RequestOptions] options
474
+ # Request-specific options
475
+ #
476
+ # @yield [result, err] Result & error if block supplied
477
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
478
+ # @yieldparam err [StandardError] error object if request failed
479
+ #
480
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
481
+ #
482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
485
+ def create_project_location_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil, &block)
486
+ command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences', options)
487
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
488
+ command.request_object = occurrence_object
489
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
490
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
491
+ command.params['parent'] = parent unless parent.nil?
492
+ command.query['fields'] = fields unless fields.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ execute_or_queue_command(command, &block)
495
+ end
496
+
497
+ # Deletes the specified occurrence. For example, use this method to delete an
498
+ # occurrence when the occurrence is no longer applicable for the given resource.
499
+ # @param [String] name
500
+ # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
501
+ # occurrences/[OCCURRENCE_ID]`.
502
+ # @param [String] fields
503
+ # Selector specifying which fields to include in a partial response.
504
+ # @param [String] quota_user
505
+ # Available to use for quota purposes for server-side applications. Can be any
506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
507
+ # @param [Google::Apis::RequestOptions] options
508
+ # Request-specific options
509
+ #
510
+ # @yield [result, err] Result & error if block supplied
511
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Empty] parsed result object
512
+ # @yieldparam err [StandardError] error object if request failed
513
+ #
514
+ # @return [Google::Apis::ContaineranalysisV1beta1::Empty]
515
+ #
516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
519
+ def delete_project_location_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
520
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
521
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation
522
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Empty
523
+ command.params['name'] = name unless name.nil?
524
+ command.query['fields'] = fields unless fields.nil?
525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
526
+ execute_or_queue_command(command, &block)
527
+ end
528
+
172
529
  # Gets the specified occurrence.
173
530
  # @param [String] name
174
531
  # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
@@ -200,6 +557,45 @@ module Google
200
557
  execute_or_queue_command(command, &block)
201
558
  end
202
559
 
560
+ # Gets the access control policy for a note or an occurrence resource. Requires `
561
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
562
+ # setIamPolicy` permission if the resource is a note or occurrence, respectively.
563
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
564
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
565
+ # @param [String] resource
566
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
567
+ # names](https://cloud.google.com/apis/design/resource_names) for the
568
+ # appropriate value for this field.
569
+ # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def get_project_location_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
589
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation
590
+ command.request_object = get_iam_policy_request_object
591
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
592
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
593
+ command.params['resource'] = resource unless resource.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
203
599
  # Gets the note attached to the specified occurrence. Consumer projects can use
204
600
  # this method to get a note that belongs to a provider project.
205
601
  # @param [String] name
@@ -307,6 +703,122 @@ module Google
307
703
  execute_or_queue_command(command, &block)
308
704
  end
309
705
 
706
+ # Updates the specified occurrence.
707
+ # @param [String] name
708
+ # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
709
+ # occurrences/[OCCURRENCE_ID]`.
710
+ # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object
711
+ # @param [String] update_mask
712
+ # The fields to update.
713
+ # @param [String] fields
714
+ # Selector specifying which fields to include in a partial response.
715
+ # @param [String] quota_user
716
+ # Available to use for quota purposes for server-side applications. Can be any
717
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
718
+ # @param [Google::Apis::RequestOptions] options
719
+ # Request-specific options
720
+ #
721
+ # @yield [result, err] Result & error if block supplied
722
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
723
+ # @yieldparam err [StandardError] error object if request failed
724
+ #
725
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
726
+ #
727
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
730
+ def patch_project_location_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
731
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
732
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
733
+ command.request_object = occurrence_object
734
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
735
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
736
+ command.params['name'] = name unless name.nil?
737
+ command.query['updateMask'] = update_mask unless update_mask.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Sets the access control policy on the specified note or occurrence. Requires `
744
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
745
+ # setIamPolicy` permission if the resource is a note or an occurrence,
746
+ # respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[
747
+ # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
748
+ # for occurrences.
749
+ # @param [String] resource
750
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
751
+ # names](https://cloud.google.com/apis/design/resource_names) for the
752
+ # appropriate value for this field.
753
+ # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
754
+ # @param [String] fields
755
+ # Selector specifying which fields to include in a partial response.
756
+ # @param [String] quota_user
757
+ # Available to use for quota purposes for server-side applications. Can be any
758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def set_project_location_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
772
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
773
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation
774
+ command.request_object = set_iam_policy_request_object
775
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
776
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
777
+ command.params['resource'] = resource unless resource.nil?
778
+ command.query['fields'] = fields unless fields.nil?
779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
780
+ execute_or_queue_command(command, &block)
781
+ end
782
+
783
+ # Returns the permissions that a caller has on the specified note or occurrence.
784
+ # Requires list permission on the project (for example, `containeranalysis.notes.
785
+ # list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]`
786
+ # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
787
+ # occurrences.
788
+ # @param [String] resource
789
+ # REQUIRED: The resource for which the policy detail is being requested. See [
790
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
791
+ # appropriate value for this field.
792
+ # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
793
+ # @param [String] fields
794
+ # Selector specifying which fields to include in a partial response.
795
+ # @param [String] quota_user
796
+ # Available to use for quota purposes for server-side applications. Can be any
797
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
798
+ # @param [Google::Apis::RequestOptions] options
799
+ # Request-specific options
800
+ #
801
+ # @yield [result, err] Result & error if block supplied
802
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse] parsed result object
803
+ # @yieldparam err [StandardError] error object if request failed
804
+ #
805
+ # @return [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse]
806
+ #
807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
810
+ def test_project_location_occurrence_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
811
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
812
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation
813
+ command.request_object = test_iam_permissions_request_object
814
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation
815
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse
816
+ command.params['resource'] = resource unless resource.nil?
817
+ command.query['fields'] = fields unless fields.nil?
818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
819
+ execute_or_queue_command(command, &block)
820
+ end
821
+
310
822
  # Generates an SBOM and other dependency information for the given resource.
311
823
  # @param [String] name
312
824
  # Required. The name of the resource 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.58.0
4
+ version: 0.59.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-07-25 00:00:00.000000000 Z
11
+ date: 2024-12-04 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.58.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.59.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Container Analysis API V1beta1