google-iam-v2 0.1.1 → 0.1.2
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 +4 -4
- data/lib/google/iam/v2/policies/client.rb +11 -143
- data/lib/google/iam/v2/policy_pb.rb +0 -13
- data/lib/google/iam/v2/policy_services_pb.rb +1 -13
- data/lib/google/iam/v2/version.rb +1 -1
- data/proto_docs/google/iam/v2/policy.rb +17 -89
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb12b73a349a06a612995c883e233d384a430b863119c28a091f62b71c4e0fb0
|
4
|
+
data.tar.gz: 5fbc18ae37f04ee7592e8cef8e12321b2073faae11914926fd511cb15b05edf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6da52bedac31f9f1e45dddfb1883c5c30a579ae71242c778de6722676c1cb8d86380247a6ba3386a9f0b539adfaf1d78688d49fc37d1f8dd491c5d04d1a4cf9
|
7
|
+
data.tar.gz: 126fa95f60b79b43260b4fdc382a4d1ab6829a09f6145b6ae48fbab71745025446a8b8a048bf8a73aadd24a7b278fad72fb434586d6d00786e176eb3954b5144
|
@@ -202,8 +202,9 @@ module Google
|
|
202
202
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
203
203
|
#
|
204
204
|
# @param parent [::String]
|
205
|
-
# Required. The resource that the policy is attached to, along with the kind
|
206
|
-
#
|
205
|
+
# Required. The resource that the policy is attached to, along with the kind of policy
|
206
|
+
# to list. Format:
|
207
|
+
# `policies/{attachment_point}/denypolicies`
|
207
208
|
#
|
208
209
|
#
|
209
210
|
# The attachment point is identified by its URL-encoded full resource name,
|
@@ -217,9 +218,8 @@ module Google
|
|
217
218
|
# The maximum number of policies to return. IAM ignores this value and uses
|
218
219
|
# the value 1000.
|
219
220
|
# @param page_token [::String]
|
220
|
-
# A page token received in a
|
221
|
-
#
|
222
|
-
# token to retrieve the next page.
|
221
|
+
# A page token received in a {::Google::Iam::V2::ListPoliciesResponse ListPoliciesResponse}. Provide this token to
|
222
|
+
# retrieve the next page.
|
223
223
|
#
|
224
224
|
# @yield [response, operation] Access the result along with the RPC operation
|
225
225
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Iam::V2::Policy>]
|
@@ -405,8 +405,8 @@ module Google
|
|
405
405
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
406
406
|
#
|
407
407
|
# @param parent [::String]
|
408
|
-
# Required. The resource that the policy is attached to, along with the kind
|
409
|
-
#
|
408
|
+
# Required. The resource that the policy is attached to, along with the kind of policy
|
409
|
+
# to create. Format: `policies/{attachment_point}/denypolicies`
|
410
410
|
#
|
411
411
|
#
|
412
412
|
# The attachment point is identified by its URL-encoded full resource name,
|
@@ -503,8 +503,7 @@ module Google
|
|
503
503
|
#
|
504
504
|
# To update a policy, you should use a read-modify-write loop:
|
505
505
|
#
|
506
|
-
# 1. Use {::Google::Iam::V2::Policies::Client#get_policy GetPolicy} to read the current
|
507
|
-
# version of the policy.
|
506
|
+
# 1. Use {::Google::Iam::V2::Policies::Client#get_policy GetPolicy} to read the current version of the policy.
|
508
507
|
# 2. Modify the policy as needed.
|
509
508
|
# 3. Use `UpdatePolicy` to write the updated policy.
|
510
509
|
#
|
@@ -634,9 +633,9 @@ module Google
|
|
634
633
|
# For organizations and folders, use the numeric ID in the full resource
|
635
634
|
# name. For projects, you can use the alphanumeric or the numeric ID.
|
636
635
|
# @param etag [::String]
|
637
|
-
# Optional. The expected `etag` of the policy to delete. If the value does
|
638
|
-
#
|
639
|
-
#
|
636
|
+
# Optional. The expected `etag` of the policy to delete. If the value does not match
|
637
|
+
# the value that is stored in IAM, the request fails with a `409` error code
|
638
|
+
# and `ABORTED` status.
|
640
639
|
#
|
641
640
|
# If you omit this field, the policy is deleted regardless of its current
|
642
641
|
# `etag`.
|
@@ -713,130 +712,6 @@ module Google
|
|
713
712
|
raise ::Google::Cloud::Error.from_error(e)
|
714
713
|
end
|
715
714
|
|
716
|
-
##
|
717
|
-
# Retrieves all the policies that are attached to the specified resource,
|
718
|
-
# or anywhere in the ancestry of the resource. For example, for a project
|
719
|
-
# this endpoint would return all the `denyPolicy` kind policies attached to
|
720
|
-
# the project, its parent folder (if any), and its parent organization (if
|
721
|
-
# any).
|
722
|
-
# The endpoint requires the same permissions that it would take to call
|
723
|
-
# `ListPolicies` or `GetPolicy`.
|
724
|
-
#
|
725
|
-
# The main reason to use this endpoint is as a policy admin to debug access
|
726
|
-
# issues for a resource.
|
727
|
-
#
|
728
|
-
# @overload list_applicable_policies(request, options = nil)
|
729
|
-
# Pass arguments to `list_applicable_policies` via a request object, either of type
|
730
|
-
# {::Google::Iam::V2::ListApplicablePoliciesRequest} or an equivalent Hash.
|
731
|
-
#
|
732
|
-
# @param request [::Google::Iam::V2::ListApplicablePoliciesRequest, ::Hash]
|
733
|
-
# A request object representing the call parameters. Required. To specify no
|
734
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
735
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
736
|
-
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
737
|
-
#
|
738
|
-
# @overload list_applicable_policies(attachment_point: nil, filter: nil, page_token: nil, page_size: nil)
|
739
|
-
# Pass arguments to `list_applicable_policies` via keyword arguments. Note that at
|
740
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
741
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
742
|
-
#
|
743
|
-
# @param attachment_point [::String]
|
744
|
-
# Required. The Cloud resource at which the applicable policies are to be
|
745
|
-
# retrieved. Format: `{attachment-point}` Use the URL-encoded full resource
|
746
|
-
# name, which means that the forward-slash character, `/`, must be written as
|
747
|
-
# `%2F`. For example,
|
748
|
-
# `cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project`.
|
749
|
-
# @param filter [::String]
|
750
|
-
# Filtering currently only supports the kind of policies to return, and
|
751
|
-
# must be in the format “kind:[policyKind1] OR kind:[policyKind2]”. New
|
752
|
-
# policy kinds may be added in the future without notice.
|
753
|
-
#
|
754
|
-
# Example value: “kind:denyPolicies”
|
755
|
-
# @param page_token [::String]
|
756
|
-
# If present, then retrieve the batch of results following the results from
|
757
|
-
# the preceding call to this method. `page_token` must be the value of
|
758
|
-
# `next_page_token`
|
759
|
-
# {::Google::Iam::V2::ListApplicablePoliciesResponse#next_page_token ListApplicablePoliciesResponse.next_page_token}
|
760
|
-
# from the previous response. The values of other method parameters should
|
761
|
-
# be identical to those in the previous call.
|
762
|
-
# @param page_size [::Integer]
|
763
|
-
# Limit on the number of policies to include in the response.
|
764
|
-
# Further policies can subsequently be obtained by including the
|
765
|
-
# [ListApplicablePoliciesResponse.next_page_token][google.iam.admin.v1.ListApplicablePoliciesResponse.next_page_token]
|
766
|
-
# in a subsequent request.
|
767
|
-
# The minimum is 25, and the maximum is 100.
|
768
|
-
#
|
769
|
-
# @yield [response, operation] Access the result along with the RPC operation
|
770
|
-
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Iam::V2::Policy>]
|
771
|
-
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
772
|
-
#
|
773
|
-
# @return [::Gapic::PagedEnumerable<::Google::Iam::V2::Policy>]
|
774
|
-
#
|
775
|
-
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
776
|
-
#
|
777
|
-
# @example Basic example
|
778
|
-
# require "google/iam/v2"
|
779
|
-
#
|
780
|
-
# # Create a client object. The client can be reused for multiple calls.
|
781
|
-
# client = Google::Iam::V2::Policies::Client.new
|
782
|
-
#
|
783
|
-
# # Create a request. To set request fields, pass in keyword arguments.
|
784
|
-
# request = Google::Iam::V2::ListApplicablePoliciesRequest.new
|
785
|
-
#
|
786
|
-
# # Call the list_applicable_policies method.
|
787
|
-
# result = client.list_applicable_policies request
|
788
|
-
#
|
789
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
790
|
-
# # iterate over all elements by calling #each, and the enumerable
|
791
|
-
# # will lazily make API calls to fetch subsequent pages. Other
|
792
|
-
# # methods are also available for managing paging directly.
|
793
|
-
# result.each do |response|
|
794
|
-
# # Each element is of type ::Google::Iam::V2::Policy.
|
795
|
-
# p response
|
796
|
-
# end
|
797
|
-
#
|
798
|
-
def list_applicable_policies request, options = nil
|
799
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
800
|
-
|
801
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V2::ListApplicablePoliciesRequest
|
802
|
-
|
803
|
-
# Converts hash and nil to an options object
|
804
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
805
|
-
|
806
|
-
# Customize the options with defaults
|
807
|
-
metadata = @config.rpcs.list_applicable_policies.metadata.to_h
|
808
|
-
|
809
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
810
|
-
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
811
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
812
|
-
gapic_version: ::Google::Iam::V2::VERSION
|
813
|
-
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
814
|
-
|
815
|
-
header_params = {}
|
816
|
-
if request.attachment_point
|
817
|
-
header_params["attachment_point"] = request.attachment_point
|
818
|
-
end
|
819
|
-
|
820
|
-
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
821
|
-
metadata[:"x-goog-request-params"] ||= request_params_header
|
822
|
-
|
823
|
-
options.apply_defaults timeout: @config.rpcs.list_applicable_policies.timeout,
|
824
|
-
metadata: metadata,
|
825
|
-
retry_policy: @config.rpcs.list_applicable_policies.retry_policy
|
826
|
-
|
827
|
-
options.apply_defaults timeout: @config.timeout,
|
828
|
-
metadata: @config.metadata,
|
829
|
-
retry_policy: @config.retry_policy
|
830
|
-
|
831
|
-
@policies_stub.call_rpc :list_applicable_policies, request, options: options do |response, operation|
|
832
|
-
response = ::Gapic::PagedEnumerable.new @policies_stub, :list_applicable_policies, request, response, operation, options
|
833
|
-
yield response, operation if block_given?
|
834
|
-
return response
|
835
|
-
end
|
836
|
-
rescue ::GRPC::BadStatus => e
|
837
|
-
raise ::Google::Cloud::Error.from_error(e)
|
838
|
-
end
|
839
|
-
|
840
715
|
##
|
841
716
|
# Configuration class for the Policies API.
|
842
717
|
#
|
@@ -997,11 +872,6 @@ module Google
|
|
997
872
|
# @return [::Gapic::Config::Method]
|
998
873
|
#
|
999
874
|
attr_reader :delete_policy
|
1000
|
-
##
|
1001
|
-
# RPC-specific configuration for `list_applicable_policies`
|
1002
|
-
# @return [::Gapic::Config::Method]
|
1003
|
-
#
|
1004
|
-
attr_reader :list_applicable_policies
|
1005
875
|
|
1006
876
|
# @private
|
1007
877
|
def initialize parent_rpcs = nil
|
@@ -1015,8 +885,6 @@ module Google
|
|
1015
885
|
@update_policy = ::Gapic::Config::Method.new update_policy_config
|
1016
886
|
delete_policy_config = parent_rpcs.delete_policy if parent_rpcs.respond_to? :delete_policy
|
1017
887
|
@delete_policy = ::Gapic::Config::Method.new delete_policy_config
|
1018
|
-
list_applicable_policies_config = parent_rpcs.list_applicable_policies if parent_rpcs.respond_to? :list_applicable_policies
|
1019
|
-
@list_applicable_policies = ::Gapic::Config::Method.new list_applicable_policies_config
|
1020
888
|
|
1021
889
|
yield self if block_given?
|
1022
890
|
end
|
@@ -55,17 +55,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
55
55
|
optional :name, :string, 1
|
56
56
|
optional :etag, :string, 2
|
57
57
|
end
|
58
|
-
add_message "google.iam.v2.ListApplicablePoliciesRequest" do
|
59
|
-
optional :attachment_point, :string, 1
|
60
|
-
optional :filter, :string, 2
|
61
|
-
optional :page_token, :string, 3
|
62
|
-
optional :page_size, :int32, 4
|
63
|
-
end
|
64
|
-
add_message "google.iam.v2.ListApplicablePoliciesResponse" do
|
65
|
-
repeated :policies, :message, 1, "google.iam.v2.Policy"
|
66
|
-
repeated :inaccessible, :string, 2
|
67
|
-
optional :next_page_token, :string, 3
|
68
|
-
end
|
69
58
|
add_message "google.iam.v2.PolicyOperationMetadata" do
|
70
59
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
71
60
|
end
|
@@ -83,8 +72,6 @@ module Google
|
|
83
72
|
CreatePolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v2.CreatePolicyRequest").msgclass
|
84
73
|
UpdatePolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v2.UpdatePolicyRequest").msgclass
|
85
74
|
DeletePolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v2.DeletePolicyRequest").msgclass
|
86
|
-
ListApplicablePoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v2.ListApplicablePoliciesRequest").msgclass
|
87
|
-
ListApplicablePoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v2.ListApplicablePoliciesResponse").msgclass
|
88
75
|
PolicyOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.iam.v2.PolicyOperationMetadata").msgclass
|
89
76
|
end
|
90
77
|
end
|
@@ -48,8 +48,7 @@ module Google
|
|
48
48
|
#
|
49
49
|
# To update a policy, you should use a read-modify-write loop:
|
50
50
|
#
|
51
|
-
# 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current
|
52
|
-
# version of the policy.
|
51
|
+
# 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy.
|
53
52
|
# 2. Modify the policy as needed.
|
54
53
|
# 3. Use `UpdatePolicy` to write the updated policy.
|
55
54
|
#
|
@@ -57,17 +56,6 @@ module Google
|
|
57
56
|
rpc :UpdatePolicy, ::Google::Iam::V2::UpdatePolicyRequest, ::Google::Longrunning::Operation
|
58
57
|
# Deletes a policy. This action is permanent.
|
59
58
|
rpc :DeletePolicy, ::Google::Iam::V2::DeletePolicyRequest, ::Google::Longrunning::Operation
|
60
|
-
# Retrieves all the policies that are attached to the specified resource,
|
61
|
-
# or anywhere in the ancestry of the resource. For example, for a project
|
62
|
-
# this endpoint would return all the `denyPolicy` kind policies attached to
|
63
|
-
# the project, its parent folder (if any), and its parent organization (if
|
64
|
-
# any).
|
65
|
-
# The endpoint requires the same permissions that it would take to call
|
66
|
-
# `ListPolicies` or `GetPolicy`.
|
67
|
-
#
|
68
|
-
# The main reason to use this endpoint is as a policy admin to debug access
|
69
|
-
# issues for a resource.
|
70
|
-
rpc :ListApplicablePolicies, ::Google::Iam::V2::ListApplicablePoliciesRequest, ::Google::Iam::V2::ListApplicablePoliciesResponse
|
71
59
|
end
|
72
60
|
|
73
61
|
Stub = Service.rpc_stub_class
|
@@ -37,12 +37,11 @@ module Google
|
|
37
37
|
# Responses always contain the numeric ID.
|
38
38
|
# @!attribute [rw] uid
|
39
39
|
# @return [::String]
|
40
|
-
# Immutable. The globally unique ID of the `Policy`. Assigned automatically
|
41
|
-
#
|
40
|
+
# Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
|
41
|
+
# `Policy` is created.
|
42
42
|
# @!attribute [r] kind
|
43
43
|
# @return [::String]
|
44
|
-
# Output only. The kind of the `Policy`. Always contains the value
|
45
|
-
# `DenyPolicy`.
|
44
|
+
# Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
|
46
45
|
# @!attribute [rw] display_name
|
47
46
|
# @return [::String]
|
48
47
|
# A user-specified description of the `Policy`. This value can be up to 63
|
@@ -67,16 +66,15 @@ module Google
|
|
67
66
|
# Output only. The time when the `Policy` was last updated.
|
68
67
|
# @!attribute [r] delete_time
|
69
68
|
# @return [::Google::Protobuf::Timestamp]
|
70
|
-
# Output only. The time when the `Policy` was deleted. Empty if the policy is
|
71
|
-
# not deleted.
|
69
|
+
# Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
|
72
70
|
# @!attribute [rw] rules
|
73
71
|
# @return [::Array<::Google::Iam::V2::PolicyRule>]
|
74
72
|
# A list of rules that specify the behavior of the `Policy`. All of the rules
|
75
73
|
# should be of the `kind` specified in the `Policy`.
|
76
74
|
# @!attribute [rw] managing_authority
|
77
75
|
# @return [::String]
|
78
|
-
# Immutable. Specifies that this policy is managed by an authority and can
|
79
|
-
#
|
76
|
+
# Immutable. Specifies that this policy is managed by an authority and can only be
|
77
|
+
# modified by that authority. Usage is restricted.
|
80
78
|
class Policy
|
81
79
|
include ::Google::Protobuf::MessageExts
|
82
80
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -107,8 +105,9 @@ module Google
|
|
107
105
|
# Request message for `ListPolicies`.
|
108
106
|
# @!attribute [rw] parent
|
109
107
|
# @return [::String]
|
110
|
-
# Required. The resource that the policy is attached to, along with the kind
|
111
|
-
#
|
108
|
+
# Required. The resource that the policy is attached to, along with the kind of policy
|
109
|
+
# to list. Format:
|
110
|
+
# `policies/{attachment_point}/denypolicies`
|
112
111
|
#
|
113
112
|
#
|
114
113
|
# The attachment point is identified by its URL-encoded full resource name,
|
@@ -124,9 +123,8 @@ module Google
|
|
124
123
|
# the value 1000.
|
125
124
|
# @!attribute [rw] page_token
|
126
125
|
# @return [::String]
|
127
|
-
# A page token received in a
|
128
|
-
#
|
129
|
-
# token to retrieve the next page.
|
126
|
+
# A page token received in a {::Google::Iam::V2::ListPoliciesResponse ListPoliciesResponse}. Provide this token to
|
127
|
+
# retrieve the next page.
|
130
128
|
class ListPoliciesRequest
|
131
129
|
include ::Google::Protobuf::MessageExts
|
132
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -138,8 +136,7 @@ module Google
|
|
138
136
|
# Metadata for the policies that are attached to the resource.
|
139
137
|
# @!attribute [rw] next_page_token
|
140
138
|
# @return [::String]
|
141
|
-
# A page token that you can use in a
|
142
|
-
# {::Google::Iam::V2::ListPoliciesRequest ListPoliciesRequest} to retrieve the
|
139
|
+
# A page token that you can use in a {::Google::Iam::V2::ListPoliciesRequest ListPoliciesRequest} to retrieve the
|
143
140
|
# next page. If this field is omitted, there are no additional pages.
|
144
141
|
class ListPoliciesResponse
|
145
142
|
include ::Google::Protobuf::MessageExts
|
@@ -167,8 +164,8 @@ module Google
|
|
167
164
|
# Request message for `CreatePolicy`.
|
168
165
|
# @!attribute [rw] parent
|
169
166
|
# @return [::String]
|
170
|
-
# Required. The resource that the policy is attached to, along with the kind
|
171
|
-
#
|
167
|
+
# Required. The resource that the policy is attached to, along with the kind of policy
|
168
|
+
# to create. Format: `policies/{attachment_point}/denypolicies`
|
172
169
|
#
|
173
170
|
#
|
174
171
|
# The attachment point is identified by its URL-encoded full resource name,
|
@@ -220,9 +217,9 @@ module Google
|
|
220
217
|
# name. For projects, you can use the alphanumeric or the numeric ID.
|
221
218
|
# @!attribute [rw] etag
|
222
219
|
# @return [::String]
|
223
|
-
# Optional. The expected `etag` of the policy to delete. If the value does
|
224
|
-
#
|
225
|
-
#
|
220
|
+
# Optional. The expected `etag` of the policy to delete. If the value does not match
|
221
|
+
# the value that is stored in IAM, the request fails with a `409` error code
|
222
|
+
# and `ABORTED` status.
|
226
223
|
#
|
227
224
|
# If you omit this field, the policy is deleted regardless of its current
|
228
225
|
# `etag`.
|
@@ -231,75 +228,6 @@ module Google
|
|
231
228
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
232
229
|
end
|
233
230
|
|
234
|
-
# `ListApplicablePoliciesRequest` represents the Request message for the
|
235
|
-
# `ListApplicablePolicies` method. It provides the input for a filterable query
|
236
|
-
# of Policies that apply to a certain GCP Resource, specified by the field
|
237
|
-
# `attachment_point`, found on this message.
|
238
|
-
# Example:
|
239
|
-
# ```
|
240
|
-
# {
|
241
|
-
# attachment_point:
|
242
|
-
# 'cloudresourcemanager.googleapis.com%2Forganizations%2F212345678901'
|
243
|
-
# filter: 'kind:denyPolicies'
|
244
|
-
# }
|
245
|
-
# ```
|
246
|
-
# @!attribute [rw] attachment_point
|
247
|
-
# @return [::String]
|
248
|
-
# Required. The Cloud resource at which the applicable policies are to be
|
249
|
-
# retrieved. Format: `{attachment-point}` Use the URL-encoded full resource
|
250
|
-
# name, which means that the forward-slash character, `/`, must be written as
|
251
|
-
# `%2F`. For example,
|
252
|
-
# `cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project`.
|
253
|
-
# @!attribute [rw] filter
|
254
|
-
# @return [::String]
|
255
|
-
# Filtering currently only supports the kind of policies to return, and
|
256
|
-
# must be in the format “kind:[policyKind1] OR kind:[policyKind2]”. New
|
257
|
-
# policy kinds may be added in the future without notice.
|
258
|
-
#
|
259
|
-
# Example value: “kind:denyPolicies”
|
260
|
-
# @!attribute [rw] page_token
|
261
|
-
# @return [::String]
|
262
|
-
# If present, then retrieve the batch of results following the results from
|
263
|
-
# the preceding call to this method. `page_token` must be the value of
|
264
|
-
# `next_page_token`
|
265
|
-
# {::Google::Iam::V2::ListApplicablePoliciesResponse#next_page_token ListApplicablePoliciesResponse.next_page_token}
|
266
|
-
# from the previous response. The values of other method parameters should
|
267
|
-
# be identical to those in the previous call.
|
268
|
-
# @!attribute [rw] page_size
|
269
|
-
# @return [::Integer]
|
270
|
-
# Limit on the number of policies to include in the response.
|
271
|
-
# Further policies can subsequently be obtained by including the
|
272
|
-
# [ListApplicablePoliciesResponse.next_page_token][google.iam.admin.v1.ListApplicablePoliciesResponse.next_page_token]
|
273
|
-
# in a subsequent request.
|
274
|
-
# The minimum is 25, and the maximum is 100.
|
275
|
-
class ListApplicablePoliciesRequest
|
276
|
-
include ::Google::Protobuf::MessageExts
|
277
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
278
|
-
end
|
279
|
-
|
280
|
-
# Response message for [ListApplicablePolicies][] method.
|
281
|
-
# @!attribute [rw] policies
|
282
|
-
# @return [::Array<::Google::Iam::V2::Policy>]
|
283
|
-
# Ordered list starting from the resource on which this API was called
|
284
|
-
# then proceeding up the hierarchy. Policies for the same attachment point
|
285
|
-
# will be grouped, but no further ordering is guaranteed.
|
286
|
-
# @!attribute [rw] inaccessible
|
287
|
-
# @return [::Array<::String>]
|
288
|
-
# A list of resources that the caller does not have permission to retrieve.
|
289
|
-
# List or Get can be used to get detailed error messages.
|
290
|
-
# Get: `policies/{attachment-point}/denypolicies/{policy-id}`
|
291
|
-
# List: `policies/{attachment-point}/denypolicies`
|
292
|
-
# @!attribute [rw] next_page_token
|
293
|
-
# @return [::String]
|
294
|
-
# A page token that can be used in a
|
295
|
-
# {::Google::Iam::V2::ListApplicablePoliciesRequest ListApplicablePoliciesRequest}
|
296
|
-
# to retrieve the next page. If this field is blank, there are no additional
|
297
|
-
# pages.
|
298
|
-
class ListApplicablePoliciesResponse
|
299
|
-
include ::Google::Protobuf::MessageExts
|
300
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
301
|
-
end
|
302
|
-
|
303
231
|
# Metadata for long-running `Policy` operations.
|
304
232
|
# @!attribute [rw] create_time
|
305
233
|
# @return [::Google::Protobuf::Timestamp]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-iam-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|