google-cloud-secret_manager-v1beta2 0.a → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/secret_manager/v1beta2/bindings_override.rb +102 -0
  6. data/lib/google/cloud/secret_manager/v1beta2/rest.rb +38 -0
  7. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service/client.rb +1958 -0
  8. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service/credentials.rb +51 -0
  9. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service/paths.rb +167 -0
  10. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service/rest/client.rb +1835 -0
  11. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service/rest/service_stub.rb +1075 -0
  12. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service/rest.rb +59 -0
  13. data/lib/google/cloud/secret_manager/v1beta2/secret_manager_service.rb +61 -0
  14. data/lib/google/cloud/secret_manager/v1beta2/version.rb +7 -2
  15. data/lib/google/cloud/secret_manager/v1beta2.rb +45 -0
  16. data/lib/google/cloud/secretmanager/v1beta2/resources_pb.rb +64 -0
  17. data/lib/google/cloud/secretmanager/v1beta2/service_pb.rb +68 -0
  18. data/lib/google/cloud/secretmanager/v1beta2/service_services_pb.rb +125 -0
  19. data/lib/google-cloud-secret_manager-v1beta2.rb +21 -0
  20. data/proto_docs/README.md +4 -0
  21. data/proto_docs/google/api/client.rb +420 -0
  22. data/proto_docs/google/api/field_behavior.rb +85 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/api/resource.rb +227 -0
  25. data/proto_docs/google/cloud/secretmanager/v1beta2/resources.rb +499 -0
  26. data/proto_docs/google/cloud/secretmanager/v1beta2/service.rb +321 -0
  27. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  28. data/proto_docs/google/iam/v1/options.rb +50 -0
  29. data/proto_docs/google/iam/v1/policy.rb +426 -0
  30. data/proto_docs/google/protobuf/any.rb +145 -0
  31. data/proto_docs/google/protobuf/duration.rb +98 -0
  32. data/proto_docs/google/protobuf/empty.rb +34 -0
  33. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  34. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  35. data/proto_docs/google/type/expr.rb +75 -0
  36. metadata +110 -10
@@ -0,0 +1,321 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module SecretManager
23
+ module V1beta2
24
+ # Request message for
25
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
26
+ # @!attribute [rw] parent
27
+ # @return [::String]
28
+ # Required. The resource name of the project associated with the
29
+ # {::Google::Cloud::SecretManager::V1beta2::Secret Secrets}, in the format
30
+ # `projects/*` or `projects/*/locations/*`
31
+ # @!attribute [rw] page_size
32
+ # @return [::Integer]
33
+ # Optional. The maximum number of results to be returned in a single page. If
34
+ # set to 0, the server decides the number of results to return. If the
35
+ # number is greater than 25000, it is capped at 25000.
36
+ # @!attribute [rw] page_token
37
+ # @return [::String]
38
+ # Optional. Pagination token, returned earlier via
39
+ # {::Google::Cloud::SecretManager::V1beta2::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
40
+ # @!attribute [rw] filter
41
+ # @return [::String]
42
+ # Optional. Filter string, adhering to the rules in
43
+ # [List-operation
44
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
45
+ # only secrets matching the filter. If filter is empty, all secrets are
46
+ # listed.
47
+ class ListSecretsRequest
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # Response message for
53
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
54
+ # @!attribute [rw] secrets
55
+ # @return [::Array<::Google::Cloud::SecretManager::V1beta2::Secret>]
56
+ # The list of {::Google::Cloud::SecretManager::V1beta2::Secret Secrets} sorted in
57
+ # reverse by create_time (newest first).
58
+ # @!attribute [rw] next_page_token
59
+ # @return [::String]
60
+ # A token to retrieve the next page of results. Pass this value in
61
+ # {::Google::Cloud::SecretManager::V1beta2::ListSecretsRequest#page_token ListSecretsRequest.page_token}
62
+ # to retrieve the next page.
63
+ # @!attribute [rw] total_size
64
+ # @return [::Integer]
65
+ # The total number of {::Google::Cloud::SecretManager::V1beta2::Secret Secrets}
66
+ # but 0 when the
67
+ # {::Google::Cloud::SecretManager::V1beta2::ListSecretsRequest#filter ListSecretsRequest.filter}
68
+ # field is set.
69
+ class ListSecretsResponse
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+
74
+ # Request message for
75
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#create_secret SecretManagerService.CreateSecret}.
76
+ # @!attribute [rw] parent
77
+ # @return [::String]
78
+ # Required. The resource name of the project to associate with the
79
+ # {::Google::Cloud::SecretManager::V1beta2::Secret Secret}, in the format
80
+ # `projects/*` or `projects/*/locations/*`.
81
+ # @!attribute [rw] secret_id
82
+ # @return [::String]
83
+ # Required. This must be unique within the project.
84
+ #
85
+ # A secret ID is a string with a maximum length of 255 characters and can
86
+ # contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
87
+ # underscore (`_`) characters.
88
+ # @!attribute [rw] secret
89
+ # @return [::Google::Cloud::SecretManager::V1beta2::Secret]
90
+ # Required. A {::Google::Cloud::SecretManager::V1beta2::Secret Secret} with
91
+ # initial field values.
92
+ class CreateSecretRequest
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # Request message for
98
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
99
+ # @!attribute [rw] parent
100
+ # @return [::String]
101
+ # Required. The resource name of the
102
+ # {::Google::Cloud::SecretManager::V1beta2::Secret Secret} to associate with the
103
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} in the
104
+ # format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
105
+ # @!attribute [rw] payload
106
+ # @return [::Google::Cloud::SecretManager::V1beta2::SecretPayload]
107
+ # Required. The secret payload of the
108
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}.
109
+ class AddSecretVersionRequest
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+
114
+ # Request message for
115
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#get_secret SecretManagerService.GetSecret}.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # Required. The resource name of the
119
+ # {::Google::Cloud::SecretManager::V1beta2::Secret Secret}, in the format
120
+ # `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
121
+ class GetSecretRequest
122
+ include ::Google::Protobuf::MessageExts
123
+ extend ::Google::Protobuf::MessageExts::ClassMethods
124
+ end
125
+
126
+ # Request message for
127
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
128
+ # @!attribute [rw] parent
129
+ # @return [::String]
130
+ # Required. The resource name of the
131
+ # {::Google::Cloud::SecretManager::V1beta2::Secret Secret} associated with the
132
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersions} to list,
133
+ # in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
134
+ # @!attribute [rw] page_size
135
+ # @return [::Integer]
136
+ # Optional. The maximum number of results to be returned in a single page. If
137
+ # set to 0, the server decides the number of results to return. If the
138
+ # number is greater than 25000, it is capped at 25000.
139
+ # @!attribute [rw] page_token
140
+ # @return [::String]
141
+ # Optional. Pagination token, returned earlier via
142
+ # ListSecretVersionsResponse.next_page_token][].
143
+ # @!attribute [rw] filter
144
+ # @return [::String]
145
+ # Optional. Filter string, adhering to the rules in
146
+ # [List-operation
147
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
148
+ # only secret versions matching the filter. If filter is empty, all secret
149
+ # versions are listed.
150
+ class ListSecretVersionsRequest
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # Response message for
156
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
157
+ # @!attribute [rw] versions
158
+ # @return [::Array<::Google::Cloud::SecretManager::V1beta2::SecretVersion>]
159
+ # The list of
160
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersions} sorted
161
+ # in reverse by create_time (newest first).
162
+ # @!attribute [rw] next_page_token
163
+ # @return [::String]
164
+ # A token to retrieve the next page of results. Pass this value in
165
+ # {::Google::Cloud::SecretManager::V1beta2::ListSecretVersionsRequest#page_token ListSecretVersionsRequest.page_token}
166
+ # to retrieve the next page.
167
+ # @!attribute [rw] total_size
168
+ # @return [::Integer]
169
+ # The total number of
170
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersions} but 0
171
+ # when the
172
+ # {::Google::Cloud::SecretManager::V1beta2::ListSecretsRequest#filter ListSecretsRequest.filter}
173
+ # field is set.
174
+ class ListSecretVersionsResponse
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+ end
178
+
179
+ # Request message for
180
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#get_secret_version SecretManagerService.GetSecretVersion}.
181
+ # @!attribute [rw] name
182
+ # @return [::String]
183
+ # Required. The resource name of the
184
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} in the
185
+ # format `projects/*/secrets/*/versions/*` or
186
+ # `projects/*/locations/*/secrets/*/versions/*`.
187
+ #
188
+ # `projects/*/secrets/*/versions/latest` or
189
+ # `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most
190
+ # recently created
191
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}.
192
+ class GetSecretVersionRequest
193
+ include ::Google::Protobuf::MessageExts
194
+ extend ::Google::Protobuf::MessageExts::ClassMethods
195
+ end
196
+
197
+ # Request message for
198
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#update_secret SecretManagerService.UpdateSecret}.
199
+ # @!attribute [rw] secret
200
+ # @return [::Google::Cloud::SecretManager::V1beta2::Secret]
201
+ # Required. {::Google::Cloud::SecretManager::V1beta2::Secret Secret} with updated
202
+ # field values.
203
+ # @!attribute [rw] update_mask
204
+ # @return [::Google::Protobuf::FieldMask]
205
+ # Required. Specifies the fields to be updated.
206
+ class UpdateSecretRequest
207
+ include ::Google::Protobuf::MessageExts
208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
209
+ end
210
+
211
+ # Request message for
212
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
213
+ # @!attribute [rw] name
214
+ # @return [::String]
215
+ # Required. The resource name of the
216
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} in the
217
+ # format `projects/*/secrets/*/versions/*` or
218
+ # `projects/*/locations/*/secrets/*/versions/*`.
219
+ #
220
+ # `projects/*/secrets/*/versions/latest` or
221
+ # `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most
222
+ # recently created
223
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}.
224
+ class AccessSecretVersionRequest
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
228
+
229
+ # Response message for
230
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
231
+ # @!attribute [rw] name
232
+ # @return [::String]
233
+ # The resource name of the
234
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} in the
235
+ # format `projects/*/secrets/*/versions/*` or
236
+ # `projects/*/locations/*/secrets/*/versions/*`.
237
+ # @!attribute [rw] payload
238
+ # @return [::Google::Cloud::SecretManager::V1beta2::SecretPayload]
239
+ # Secret payload
240
+ class AccessSecretVersionResponse
241
+ include ::Google::Protobuf::MessageExts
242
+ extend ::Google::Protobuf::MessageExts::ClassMethods
243
+ end
244
+
245
+ # Request message for
246
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#delete_secret SecretManagerService.DeleteSecret}.
247
+ # @!attribute [rw] name
248
+ # @return [::String]
249
+ # Required. The resource name of the
250
+ # {::Google::Cloud::SecretManager::V1beta2::Secret Secret} to delete in the format
251
+ # `projects/*/secrets/*`.
252
+ # @!attribute [rw] etag
253
+ # @return [::String]
254
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1beta2::Secret Secret}.
255
+ # The request succeeds if it matches the etag of the currently stored secret
256
+ # object. If the etag is omitted, the request succeeds.
257
+ class DeleteSecretRequest
258
+ include ::Google::Protobuf::MessageExts
259
+ extend ::Google::Protobuf::MessageExts::ClassMethods
260
+ end
261
+
262
+ # Request message for
263
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#disable_secret_version SecretManagerService.DisableSecretVersion}.
264
+ # @!attribute [rw] name
265
+ # @return [::String]
266
+ # Required. The resource name of the
267
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} to
268
+ # disable in the format `projects/*/secrets/*/versions/*` or
269
+ # `projects/*/locations/*/secrets/*/versions/*`.
270
+ # @!attribute [rw] etag
271
+ # @return [::String]
272
+ # Optional. Etag of the
273
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}. The
274
+ # request succeeds if it matches the etag of the currently stored secret
275
+ # version object. If the etag is omitted, the request succeeds.
276
+ class DisableSecretVersionRequest
277
+ include ::Google::Protobuf::MessageExts
278
+ extend ::Google::Protobuf::MessageExts::ClassMethods
279
+ end
280
+
281
+ # Request message for
282
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#enable_secret_version SecretManagerService.EnableSecretVersion}.
283
+ # @!attribute [rw] name
284
+ # @return [::String]
285
+ # Required. The resource name of the
286
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} to enable
287
+ # in the format `projects/*/secrets/*/versions/*` or
288
+ # `projects/*/locations/*/secrets/*/versions/*`.
289
+ # @!attribute [rw] etag
290
+ # @return [::String]
291
+ # Optional. Etag of the
292
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}. The
293
+ # request succeeds if it matches the etag of the currently stored secret
294
+ # version object. If the etag is omitted, the request succeeds.
295
+ class EnableSecretVersionRequest
296
+ include ::Google::Protobuf::MessageExts
297
+ extend ::Google::Protobuf::MessageExts::ClassMethods
298
+ end
299
+
300
+ # Request message for
301
+ # {::Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#destroy_secret_version SecretManagerService.DestroySecretVersion}.
302
+ # @!attribute [rw] name
303
+ # @return [::String]
304
+ # Required. The resource name of the
305
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion} to
306
+ # destroy in the format `projects/*/secrets/*/versions/*` or
307
+ # `projects/*/locations/*/secrets/*/versions/*`.
308
+ # @!attribute [rw] etag
309
+ # @return [::String]
310
+ # Optional. Etag of the
311
+ # {::Google::Cloud::SecretManager::V1beta2::SecretVersion SecretVersion}. The
312
+ # request succeeds if it matches the etag of the currently stored secret
313
+ # version object. If the etag is omitted, the request succeeds.
314
+ class DestroySecretVersionRequest
315
+ include ::Google::Protobuf::MessageExts
316
+ extend ::Google::Protobuf::MessageExts::ClassMethods
317
+ end
318
+ end
319
+ end
320
+ end
321
+ end
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Iam
22
+ module V1
23
+ # Request message for `SetIamPolicy` method.
24
+ # @!attribute [rw] resource
25
+ # @return [::String]
26
+ # REQUIRED: The resource for which the policy is being specified.
27
+ # See the operation documentation for the appropriate value for this field.
28
+ # @!attribute [rw] policy
29
+ # @return [::Google::Iam::V1::Policy]
30
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
31
+ # the policy is limited to a few 10s of KB. An empty policy is a
32
+ # valid policy but certain Cloud Platform services (such as Projects)
33
+ # might reject them.
34
+ # @!attribute [rw] update_mask
35
+ # @return [::Google::Protobuf::FieldMask]
36
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
37
+ # the fields in the mask will be modified. If no mask is provided, the
38
+ # following default mask is used:
39
+ #
40
+ # `paths: "bindings, etag"`
41
+ class SetIamPolicyRequest
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # Request message for `GetIamPolicy` method.
47
+ # @!attribute [rw] resource
48
+ # @return [::String]
49
+ # REQUIRED: The resource for which the policy is being requested.
50
+ # See the operation documentation for the appropriate value for this field.
51
+ # @!attribute [rw] options
52
+ # @return [::Google::Iam::V1::GetPolicyOptions]
53
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
54
+ # `GetIamPolicy`.
55
+ class GetIamPolicyRequest
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+ end
59
+
60
+ # Request message for `TestIamPermissions` method.
61
+ # @!attribute [rw] resource
62
+ # @return [::String]
63
+ # REQUIRED: The resource for which the policy detail is being requested.
64
+ # See the operation documentation for the appropriate value for this field.
65
+ # @!attribute [rw] permissions
66
+ # @return [::Array<::String>]
67
+ # The set of permissions to check for the `resource`. Permissions with
68
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
69
+ # information see
70
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
71
+ class TestIamPermissionsRequest
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+
76
+ # Response message for `TestIamPermissions` method.
77
+ # @!attribute [rw] permissions
78
+ # @return [::Array<::String>]
79
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
80
+ # allowed.
81
+ class TestIamPermissionsResponse
82
+ include ::Google::Protobuf::MessageExts
83
+ extend ::Google::Protobuf::MessageExts::ClassMethods
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Iam
22
+ module V1
23
+ # Encapsulates settings provided to GetIamPolicy.
24
+ # @!attribute [rw] requested_policy_version
25
+ # @return [::Integer]
26
+ # Optional. The maximum policy version that will be used to format the
27
+ # policy.
28
+ #
29
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
30
+ # rejected.
31
+ #
32
+ # Requests for policies with any conditional role bindings must specify
33
+ # version 3. Policies with no conditional role bindings may specify any valid
34
+ # value or leave the field unset.
35
+ #
36
+ # The policy in the response might use the policy version that you specified,
37
+ # or it might use a lower policy version. For example, if you specify version
38
+ # 3, but the policy has no conditional role bindings, the response uses
39
+ # version 1.
40
+ #
41
+ # To learn which resources support conditions in their IAM policies, see the
42
+ # [IAM
43
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
44
+ class GetPolicyOptions
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+ end
49
+ end
50
+ end