google-apis-containeranalysis_v1 0.54.0 → 0.55.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 592a51fe9b6086b3213d3db6ed3d4abc00660fcf53da12a5663f2e09b61b8592
|
4
|
+
data.tar.gz: 1fc160668e3a8fdb2779963ff58c3200cdd6534d6fc9ed63670e6a46fad2bbb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed65471fb24cf54fb6e69e031b0e2209685546b77ece311befe267ccaa659da05c012c379265764c8ef54510e48bee35a9889fed4420c8134e68cd61f7bf96db
|
7
|
+
data.tar.gz: 6c08e0b7f8e6d7557ebe3f308e91ce9ad63868315b8314a1d5ce51955f85ddd1b6547c46c515ab0ea2b152b8a8a104048d5859e294a0e12e202f2780b7e040c7
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240816"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -188,6 +188,45 @@ module Google
|
|
188
188
|
execute_or_queue_command(command, &block)
|
189
189
|
end
|
190
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::ContaineranalysisV1::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::ContaineranalysisV1::Policy] parsed result object
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
212
|
+
#
|
213
|
+
# @return [Google::Apis::ContaineranalysisV1::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, 'v1/{+resource}:getIamPolicy', options)
|
220
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::GetIamPolicyRequest::Representation
|
221
|
+
command.request_object = get_iam_policy_request_object
|
222
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation
|
223
|
+
command.response_class = Google::Apis::ContaineranalysisV1::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
|
+
|
191
230
|
# Lists notes for the specified project.
|
192
231
|
# @param [String] parent
|
193
232
|
# Required. The name of the project to list notes for in the form of `projects/[
|
@@ -266,6 +305,85 @@ module Google
|
|
266
305
|
execute_or_queue_command(command, &block)
|
267
306
|
end
|
268
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::ContaineranalysisV1::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::ContaineranalysisV1::Policy] parsed result object
|
329
|
+
# @yieldparam err [StandardError] error object if request failed
|
330
|
+
#
|
331
|
+
# @return [Google::Apis::ContaineranalysisV1::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, 'v1/{+resource}:setIamPolicy', options)
|
338
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::SetIamPolicyRequest::Representation
|
339
|
+
command.request_object = set_iam_policy_request_object
|
340
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation
|
341
|
+
command.response_class = Google::Apis::ContaineranalysisV1::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::ContaineranalysisV1::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::ContaineranalysisV1::TestIamPermissionsResponse] parsed result object
|
368
|
+
# @yieldparam err [StandardError] error object if request failed
|
369
|
+
#
|
370
|
+
# @return [Google::Apis::ContaineranalysisV1::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, 'v1/{+resource}:testIamPermissions', options)
|
377
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsRequest::Representation
|
378
|
+
command.request_object = test_iam_permissions_request_object
|
379
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse::Representation
|
380
|
+
command.response_class = Google::Apis::ContaineranalysisV1::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
|
+
|
269
387
|
# Lists occurrences referencing the specified note. Provider projects can use
|
270
388
|
# this method to get all occurrences across consumer projects referencing the
|
271
389
|
# specified note.
|
@@ -439,6 +557,45 @@ module Google
|
|
439
557
|
execute_or_queue_command(command, &block)
|
440
558
|
end
|
441
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::ContaineranalysisV1::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::ContaineranalysisV1::Policy] parsed result object
|
580
|
+
# @yieldparam err [StandardError] error object if request failed
|
581
|
+
#
|
582
|
+
# @return [Google::Apis::ContaineranalysisV1::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, 'v1/{+resource}:getIamPolicy', options)
|
589
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::GetIamPolicyRequest::Representation
|
590
|
+
command.request_object = get_iam_policy_request_object
|
591
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation
|
592
|
+
command.response_class = Google::Apis::ContaineranalysisV1::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
|
+
|
442
599
|
# Gets the note attached to the specified occurrence. Consumer projects can use
|
443
600
|
# this method to get a note that belongs to a provider project.
|
444
601
|
# @param [String] name
|
@@ -583,6 +740,85 @@ module Google
|
|
583
740
|
execute_or_queue_command(command, &block)
|
584
741
|
end
|
585
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::ContaineranalysisV1::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::ContaineranalysisV1::Policy] parsed result object
|
764
|
+
# @yieldparam err [StandardError] error object if request failed
|
765
|
+
#
|
766
|
+
# @return [Google::Apis::ContaineranalysisV1::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, 'v1/{+resource}:setIamPolicy', options)
|
773
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::SetIamPolicyRequest::Representation
|
774
|
+
command.request_object = set_iam_policy_request_object
|
775
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::Policy::Representation
|
776
|
+
command.response_class = Google::Apis::ContaineranalysisV1::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::ContaineranalysisV1::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::ContaineranalysisV1::TestIamPermissionsResponse] parsed result object
|
803
|
+
# @yieldparam err [StandardError] error object if request failed
|
804
|
+
#
|
805
|
+
# @return [Google::Apis::ContaineranalysisV1::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, 'v1/{+resource}:testIamPermissions', options)
|
812
|
+
command.request_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsRequest::Representation
|
813
|
+
command.request_object = test_iam_permissions_request_object
|
814
|
+
command.response_representation = Google::Apis::ContaineranalysisV1::TestIamPermissionsResponse::Representation
|
815
|
+
command.response_class = Google::Apis::ContaineranalysisV1::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
|
+
|
586
822
|
# Generates an SBOM for the given resource.
|
587
823
|
# @param [String] name
|
588
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_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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-08-
|
11
|
+
date: 2024-08-25 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.55.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: []
|