google-iam-v3 0.5.0 → 0.7.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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -5
  4. data/lib/google/iam/v3/access_policies/client.rb +1113 -0
  5. data/lib/google/iam/v3/access_policies/credentials.rb +45 -0
  6. data/lib/google/iam/v3/access_policies/operations.rb +841 -0
  7. data/lib/google/iam/v3/access_policies/paths.rb +140 -0
  8. data/lib/google/iam/v3/access_policies/rest/client.rb +1028 -0
  9. data/lib/google/iam/v3/access_policies/rest/operations.rb +939 -0
  10. data/lib/google/iam/v3/access_policies/rest/service_stub.rb +535 -0
  11. data/lib/google/iam/v3/access_policies/rest.rb +51 -0
  12. data/lib/google/iam/v3/access_policies.rb +54 -0
  13. data/lib/google/iam/v3/access_policies_service_pb.rb +36 -0
  14. data/lib/google/iam/v3/access_policies_service_services_pb.rb +54 -0
  15. data/lib/google/iam/v3/access_policy_resources_pb.rb +29 -0
  16. data/lib/google/iam/v3/operation_metadata_pb.rb +1 -1
  17. data/lib/google/iam/v3/policy_binding_resources_pb.rb +1 -1
  18. data/lib/google/iam/v3/policy_bindings/client.rb +20 -12
  19. data/lib/google/iam/v3/policy_bindings/credentials.rb +1 -1
  20. data/lib/google/iam/v3/policy_bindings/operations.rb +1 -1
  21. data/lib/google/iam/v3/policy_bindings/paths.rb +1 -1
  22. data/lib/google/iam/v3/policy_bindings/rest/client.rb +20 -12
  23. data/lib/google/iam/v3/policy_bindings/rest/operations.rb +3 -3
  24. data/lib/google/iam/v3/policy_bindings/rest/service_stub.rb +1 -1
  25. data/lib/google/iam/v3/policy_bindings/rest.rb +1 -1
  26. data/lib/google/iam/v3/policy_bindings.rb +1 -1
  27. data/lib/google/iam/v3/policy_bindings_service_pb.rb +1 -1
  28. data/lib/google/iam/v3/policy_bindings_service_services_pb.rb +4 -6
  29. data/lib/google/iam/v3/principal_access_boundary_policies/client.rb +1 -1
  30. data/lib/google/iam/v3/principal_access_boundary_policies/credentials.rb +1 -1
  31. data/lib/google/iam/v3/principal_access_boundary_policies/operations.rb +1 -1
  32. data/lib/google/iam/v3/principal_access_boundary_policies/paths.rb +1 -1
  33. data/lib/google/iam/v3/principal_access_boundary_policies/rest/client.rb +1 -1
  34. data/lib/google/iam/v3/principal_access_boundary_policies/rest/operations.rb +3 -3
  35. data/lib/google/iam/v3/principal_access_boundary_policies/rest/service_stub.rb +1 -1
  36. data/lib/google/iam/v3/principal_access_boundary_policies/rest.rb +1 -1
  37. data/lib/google/iam/v3/principal_access_boundary_policies.rb +1 -1
  38. data/lib/google/iam/v3/principal_access_boundary_policies_service_pb.rb +1 -1
  39. data/lib/google/iam/v3/principal_access_boundary_policies_service_services_pb.rb +1 -1
  40. data/lib/google/iam/v3/principal_access_boundary_policy_resources_pb.rb +1 -1
  41. data/lib/google/iam/v3/rest.rb +3 -2
  42. data/lib/google/iam/v3/version.rb +1 -1
  43. data/lib/google/iam/v3.rb +4 -3
  44. data/lib/google-iam-v3.rb +1 -1
  45. data/proto_docs/google/api/client.rb +1 -1
  46. data/proto_docs/google/api/field_behavior.rb +1 -1
  47. data/proto_docs/google/api/field_info.rb +1 -1
  48. data/proto_docs/google/api/launch_stage.rb +1 -1
  49. data/proto_docs/google/api/resource.rb +1 -1
  50. data/proto_docs/google/iam/v3/access_policies_service.rb +203 -0
  51. data/proto_docs/google/iam/v3/access_policy_resources.rb +223 -0
  52. data/proto_docs/google/iam/v3/operation_metadata.rb +1 -1
  53. data/proto_docs/google/iam/v3/policy_binding_resources.rb +51 -29
  54. data/proto_docs/google/iam/v3/policy_bindings_service.rb +17 -6
  55. data/proto_docs/google/iam/v3/principal_access_boundary_policies_service.rb +1 -1
  56. data/proto_docs/google/iam/v3/principal_access_boundary_policy_resources.rb +1 -1
  57. data/proto_docs/google/longrunning/operations.rb +1 -1
  58. data/proto_docs/google/protobuf/any.rb +1 -1
  59. data/proto_docs/google/protobuf/duration.rb +1 -1
  60. data/proto_docs/google/protobuf/empty.rb +1 -1
  61. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  62. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  63. data/proto_docs/google/rpc/status.rb +1 -1
  64. data/proto_docs/google/type/expr.rb +1 -1
  65. metadata +17 -3
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -53,8 +53,8 @@ module Google
53
53
  # size limitations
54
54
  # @!attribute [rw] target
55
55
  # @return [::Google::Iam::V3::PolicyBinding::Target]
56
- # Required. Immutable. Target is the full resource name of the resource to
57
- # which the policy will be bound. Immutable once set.
56
+ # Required. Immutable. The full resource name of the resource to which the
57
+ # policy will be bound. Immutable once set.
58
58
  # @!attribute [rw] policy_kind
59
59
  # @return [::Google::Iam::V3::PolicyBinding::PolicyKind]
60
60
  # Immutable. The kind of the policy to attach in this binding. This field
@@ -100,13 +100,14 @@ module Google
100
100
  # - `principal.type != <principal type string>`
101
101
  # - `principal.type in [<list of principal types>]`
102
102
  #
103
- # Supported principal types are Workspace, Workforce Pool, Workload Pool and
104
- # Service Account. Allowed string must be one of:
103
+ # Supported principal types are workspace, workforce pool, workload pool,
104
+ # service account, and agent identity. Allowed string must be one of:
105
105
  #
106
- # - iam.googleapis.com/WorkspaceIdentity
107
- # - iam.googleapis.com/WorkforcePoolIdentity
108
- # - iam.googleapis.com/WorkloadPoolIdentity
109
- # - iam.googleapis.com/ServiceAccount
106
+ # - `iam.googleapis.com/WorkspaceIdentity`
107
+ # - `iam.googleapis.com/WorkforcePoolIdentity`
108
+ # - `iam.googleapis.com/WorkloadPoolIdentity`
109
+ # - `iam.googleapis.com/ServiceAccount`
110
+ # - `iam.googleapis.com/AgentPoolIdentity` (available in Preview)
110
111
  # @!attribute [r] create_time
111
112
  # @return [::Google::Protobuf::Timestamp]
112
113
  # Output only. The time when the policy binding was created.
@@ -117,32 +118,50 @@ module Google
117
118
  include ::Google::Protobuf::MessageExts
118
119
  extend ::Google::Protobuf::MessageExts::ClassMethods
119
120
 
120
- # Target is the full resource name of the resource to which the policy will
121
+ # The full resource name of the resource to which the policy will
121
122
  # be bound. Immutable once set.
122
123
  # @!attribute [rw] principal_set
123
124
  # @return [::String]
124
- # Immutable. Full Resource Name used for principal access boundary policy
125
- # bindings. The principal set must be directly parented by the policy
126
- # binding's parent or same as the parent if the target is a
127
- # project/folder/organization.
125
+ # Immutable. The full resource name that's used for principal access
126
+ # boundary policy bindings. The principal set must be directly parented
127
+ # by the policy binding's parent or same as the parent if the target is a
128
+ # project, folder, or organization.
128
129
  #
129
130
  # Examples:
130
- # * For binding's parented by an organization:
131
- # * Organization:
132
- # `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
133
- # * Workforce Identity:
134
- # `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
135
- # * Workspace Identity:
136
- # `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
137
- # * For binding's parented by a folder:
138
- # * Folder:
139
- # `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
140
- # * For binding's parented by a project:
141
- # * Project:
131
+ #
132
+ # * For bindings parented by an organization:
133
+ # * Organization:
134
+ # `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
135
+ # * Workforce Identity:
136
+ # `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
137
+ # * Workspace Identity:
138
+ # `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
139
+ # * For bindings parented by a folder:
140
+ # * Folder:
141
+ # `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
142
+ # * For bindings parented by a project:
143
+ # * Project:
144
+ # * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
145
+ # * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
146
+ # * Workload Identity Pool:
147
+ # `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID`
148
+ #
149
+ # Note: The following fields are mutually exclusive: `principal_set`, `resource`. If a field in that set is populated, all other fields in the set will automatically be cleared.
150
+ # @!attribute [rw] resource
151
+ # @return [::String]
152
+ # Immutable. The full resource name that's used for access policy
153
+ # bindings.
154
+ #
155
+ # Examples:
156
+ #
157
+ # * Organization:
158
+ # `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
159
+ # * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
160
+ # * Project:
142
161
  # * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
143
162
  # * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
144
- # * Workload Identity Pool:
145
- # `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID`
163
+ #
164
+ # Note: The following fields are mutually exclusive: `resource`, `principal_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
146
165
  class Target
147
166
  include ::Google::Protobuf::MessageExts
148
167
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -157,13 +176,16 @@ module Google
157
176
  extend ::Google::Protobuf::MessageExts::ClassMethods
158
177
  end
159
178
 
160
- # Different policy kinds supported in this binding.
179
+ # The different policy kinds supported in this binding.
161
180
  module PolicyKind
162
181
  # Unspecified policy kind; Not a valid state
163
182
  POLICY_KIND_UNSPECIFIED = 0
164
183
 
165
184
  # Principal access boundary policy kind
166
185
  PRINCIPAL_ACCESS_BOUNDARY = 1
186
+
187
+ # Access policy kind.
188
+ ACCESS = 2
167
189
  end
168
190
  end
169
191
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -129,8 +129,7 @@ module Google
129
129
  # Optional. The maximum number of policy bindings to return. The service may
130
130
  # return fewer than this value.
131
131
  #
132
- # If unspecified, at most 50 policy bindings will be returned.
133
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
132
+ # The default value is 50. The maximum value is 1000.
134
133
  # @!attribute [rw] page_token
135
134
  # @return [::String]
136
135
  # Optional. A page token, received from a previous `ListPolicyBindings` call.
@@ -141,7 +140,8 @@ module Google
141
140
  # @!attribute [rw] filter
142
141
  # @return [::String]
143
142
  # Optional. An expression for filtering the results of the request. Filter
144
- # rules are case insensitive. Some eligible fields for filtering are:
143
+ # rules are case insensitive. Some eligible fields for filtering are the
144
+ # following:
145
145
  #
146
146
  # + `target`
147
147
  # + `policy`
@@ -187,8 +187,7 @@ module Google
187
187
  # Optional. The maximum number of policy bindings to return. The service may
188
188
  # return fewer than this value.
189
189
  #
190
- # If unspecified, at most 50 policy bindings will be returned.
191
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
190
+ # The default value is 50. The maximum value is 1000.
192
191
  # @!attribute [rw] page_token
193
192
  # @return [::String]
194
193
  # Optional. A page token, received from a previous
@@ -210,6 +209,18 @@ module Google
210
209
  # * `projects/{project_number}/locations/{location}`
211
210
  # * `folders/{folder_id}/locations/{location}`
212
211
  # * `organizations/{organization_id}/locations/{location}`
212
+ # @!attribute [rw] filter
213
+ # @return [::String]
214
+ # Optional. Filtering currently only supports the kind of policies to return,
215
+ # and must be in the format "policy_kind=\\{policy_kind}".
216
+ #
217
+ # If String is empty, bindings bound to all kinds of policies would be
218
+ # returned.
219
+ #
220
+ # The only supported values are the following:
221
+ #
222
+ # * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
223
+ # * "policy_kind=ACCESS"
213
224
  class SearchTargetPolicyBindingsRequest
214
225
  include ::Google::Protobuf::MessageExts
215
226
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-iam-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.3'
18
+ version: '1.6'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.3'
25
+ version: '1.6'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: google-cloud-errors
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -69,6 +69,18 @@ files:
69
69
  - README.md
70
70
  - lib/google-iam-v3.rb
71
71
  - lib/google/iam/v3.rb
72
+ - lib/google/iam/v3/access_policies.rb
73
+ - lib/google/iam/v3/access_policies/client.rb
74
+ - lib/google/iam/v3/access_policies/credentials.rb
75
+ - lib/google/iam/v3/access_policies/operations.rb
76
+ - lib/google/iam/v3/access_policies/paths.rb
77
+ - lib/google/iam/v3/access_policies/rest.rb
78
+ - lib/google/iam/v3/access_policies/rest/client.rb
79
+ - lib/google/iam/v3/access_policies/rest/operations.rb
80
+ - lib/google/iam/v3/access_policies/rest/service_stub.rb
81
+ - lib/google/iam/v3/access_policies_service_pb.rb
82
+ - lib/google/iam/v3/access_policies_service_services_pb.rb
83
+ - lib/google/iam/v3/access_policy_resources_pb.rb
72
84
  - lib/google/iam/v3/operation_metadata_pb.rb
73
85
  - lib/google/iam/v3/policy_binding_resources_pb.rb
74
86
  - lib/google/iam/v3/policy_bindings.rb
@@ -102,6 +114,8 @@ files:
102
114
  - proto_docs/google/api/field_info.rb
103
115
  - proto_docs/google/api/launch_stage.rb
104
116
  - proto_docs/google/api/resource.rb
117
+ - proto_docs/google/iam/v3/access_policies_service.rb
118
+ - proto_docs/google/iam/v3/access_policy_resources.rb
105
119
  - proto_docs/google/iam/v3/operation_metadata.rb
106
120
  - proto_docs/google/iam/v3/policy_binding_resources.rb
107
121
  - proto_docs/google/iam/v3/policy_bindings_service.rb