google-cloud-batch-v1 1.8.2 → 1.9.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/lib/google/cloud/batch/v1/batch_service/client.rb +1 -1
  4. data/lib/google/cloud/batch/v1/batch_service/credentials.rb +1 -1
  5. data/lib/google/cloud/batch/v1/batch_service/operations.rb +1 -1
  6. data/lib/google/cloud/batch/v1/batch_service/paths.rb +1 -1
  7. data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +1 -1
  8. data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +1 -1
  9. data/lib/google/cloud/batch/v1/batch_service/rest/service_stub.rb +1 -1
  10. data/lib/google/cloud/batch/v1/batch_service/rest.rb +1 -1
  11. data/lib/google/cloud/batch/v1/batch_service.rb +1 -1
  12. data/lib/google/cloud/batch/v1/batch_services_pb.rb +1 -1
  13. data/lib/google/cloud/batch/v1/bindings_override.rb +1 -1
  14. data/lib/google/cloud/batch/v1/job_pb.rb +2 -1
  15. data/lib/google/cloud/batch/v1/rest.rb +1 -1
  16. data/lib/google/cloud/batch/v1/version.rb +1 -1
  17. data/lib/google/cloud/batch/v1.rb +1 -1
  18. data/lib/google-cloud-batch-v1.rb +1 -2
  19. data/proto_docs/google/api/client.rb +1 -1
  20. data/proto_docs/google/api/field_behavior.rb +1 -1
  21. data/proto_docs/google/api/field_info.rb +1 -1
  22. data/proto_docs/google/api/launch_stage.rb +1 -1
  23. data/proto_docs/google/api/resource.rb +1 -1
  24. data/proto_docs/google/cloud/batch/v1/batch.rb +1 -1
  25. data/proto_docs/google/cloud/batch/v1/job.rb +19 -1
  26. data/proto_docs/google/cloud/batch/v1/task.rb +1 -1
  27. data/proto_docs/google/cloud/batch/v1/volume.rb +1 -1
  28. data/proto_docs/google/longrunning/operations.rb +1 -1
  29. data/proto_docs/google/protobuf/any.rb +1 -1
  30. data/proto_docs/google/protobuf/duration.rb +1 -1
  31. data/proto_docs/google/protobuf/empty.rb +1 -1
  32. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  33. data/proto_docs/google/rpc/status.rb +1 -1
  34. metadata +5 -36
  35. data/lib/google/iam/v1/bindings_override.rb +0 -73
  36. data/lib/google/iam/v1/iam_policy/client.rb +0 -729
  37. data/lib/google/iam/v1/iam_policy/credentials.rb +0 -42
  38. data/lib/google/iam/v1/iam_policy/rest/client.rb +0 -673
  39. data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +0 -265
  40. data/lib/google/iam/v1/iam_policy/rest.rb +0 -74
  41. data/lib/google/iam/v1/iam_policy.rb +0 -76
  42. data/lib/google/iam/v1/rest.rb +0 -36
  43. data/lib/google/iam/v1.rb +0 -43
  44. data/proto_docs/google/iam/v1/iam_policy.rb +0 -87
  45. data/proto_docs/google/iam/v1/options.rb +0 -50
  46. data/proto_docs/google/iam/v1/policy.rb +0 -426
  47. data/proto_docs/google/protobuf/field_mask.rb +0 -229
  48. data/proto_docs/google/type/expr.rb +0 -75
@@ -1,265 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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
- require "google/iam/v1/iam_policy_pb"
20
-
21
- module Google
22
- module Iam
23
- module V1
24
- module IAMPolicy
25
- module Rest
26
- ##
27
- # REST service stub for the IAMPolicy service.
28
- # Service stub contains baseline method implementations
29
- # including transcoding, making the REST call, and deserialing the response.
30
- #
31
- class ServiceStub
32
- # @private
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
- # These require statements are intentionally placed here to initialize
35
- # the REST modules only when it's required.
36
- require "gapic/rest"
37
-
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
- endpoint_template: endpoint_template,
40
- universe_domain: universe_domain,
41
- credentials: credentials,
42
- numeric_enums: true,
43
- service_name: self.class,
44
- raise_faraday_errors: false,
45
- logger: logger
46
- end
47
-
48
- ##
49
- # The effective universe domain
50
- #
51
- # @return [String]
52
- #
53
- def universe_domain
54
- @client_stub.universe_domain
55
- end
56
-
57
- ##
58
- # The effective endpoint
59
- #
60
- # @return [String]
61
- #
62
- def endpoint
63
- @client_stub.endpoint
64
- end
65
-
66
- ##
67
- # The logger used for request/response debug logging.
68
- #
69
- # @return [Logger]
70
- #
71
- def logger stub: false
72
- stub ? @client_stub.stub_logger : @client_stub.logger
73
- end
74
-
75
- ##
76
- # Baseline implementation for the set_iam_policy REST call
77
- #
78
- # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
79
- # A request object representing the call parameters. Required.
80
- # @param options [::Gapic::CallOptions]
81
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
82
- #
83
- # @yield [result, operation] Access the result along with the TransportOperation object
84
- # @yieldparam result [::Google::Iam::V1::Policy]
85
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
86
- #
87
- # @return [::Google::Iam::V1::Policy]
88
- # A result object deserialized from the server's reply
89
- def set_iam_policy request_pb, options = nil
90
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
91
-
92
- verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
93
- query_string_params = if query_string_params.any?
94
- query_string_params.to_h { |p| p.split "=", 2 }
95
- else
96
- {}
97
- end
98
-
99
- response = @client_stub.make_http_request(
100
- verb,
101
- uri: uri,
102
- body: body || "",
103
- params: query_string_params,
104
- method_name: "set_iam_policy",
105
- options: options
106
- )
107
- operation = ::Gapic::Rest::TransportOperation.new response
108
- result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
109
- catch :response do
110
- yield result, operation if block_given?
111
- result
112
- end
113
- end
114
-
115
- ##
116
- # Baseline implementation for the get_iam_policy REST call
117
- #
118
- # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
119
- # A request object representing the call parameters. Required.
120
- # @param options [::Gapic::CallOptions]
121
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
122
- #
123
- # @yield [result, operation] Access the result along with the TransportOperation object
124
- # @yieldparam result [::Google::Iam::V1::Policy]
125
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
126
- #
127
- # @return [::Google::Iam::V1::Policy]
128
- # A result object deserialized from the server's reply
129
- def get_iam_policy request_pb, options = nil
130
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
131
-
132
- verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
133
- query_string_params = if query_string_params.any?
134
- query_string_params.to_h { |p| p.split "=", 2 }
135
- else
136
- {}
137
- end
138
-
139
- response = @client_stub.make_http_request(
140
- verb,
141
- uri: uri,
142
- body: body || "",
143
- params: query_string_params,
144
- method_name: "get_iam_policy",
145
- options: options
146
- )
147
- operation = ::Gapic::Rest::TransportOperation.new response
148
- result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
149
- catch :response do
150
- yield result, operation if block_given?
151
- result
152
- end
153
- end
154
-
155
- ##
156
- # Baseline implementation for the test_iam_permissions REST call
157
- #
158
- # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
159
- # A request object representing the call parameters. Required.
160
- # @param options [::Gapic::CallOptions]
161
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
162
- #
163
- # @yield [result, operation] Access the result along with the TransportOperation object
164
- # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
165
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
166
- #
167
- # @return [::Google::Iam::V1::TestIamPermissionsResponse]
168
- # A result object deserialized from the server's reply
169
- def test_iam_permissions request_pb, options = nil
170
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
171
-
172
- verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
173
- query_string_params = if query_string_params.any?
174
- query_string_params.to_h { |p| p.split "=", 2 }
175
- else
176
- {}
177
- end
178
-
179
- response = @client_stub.make_http_request(
180
- verb,
181
- uri: uri,
182
- body: body || "",
183
- params: query_string_params,
184
- method_name: "test_iam_permissions",
185
- options: options
186
- )
187
- operation = ::Gapic::Rest::TransportOperation.new response
188
- result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
189
- catch :response do
190
- yield result, operation if block_given?
191
- result
192
- end
193
- end
194
-
195
- ##
196
- # @private
197
- #
198
- # GRPC transcoding helper method for the set_iam_policy REST call
199
- #
200
- # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
201
- # A request object representing the call parameters. Required.
202
- # @return [Array(String, [String, nil], Hash{String => String})]
203
- # Uri, Body, Query string parameters
204
- def self.transcode_set_iam_policy_request request_pb
205
- transcoder = Gapic::Rest::GrpcTranscoder.new
206
- .with_bindings(
207
- uri_method: :post,
208
- uri_template: "/v1/{resource}:setIamPolicy",
209
- body: "*",
210
- matches: [
211
- ["resource", %r{^(?<__wildcard__>.*)$}, true]
212
- ]
213
- )
214
- transcoder.transcode request_pb
215
- end
216
-
217
- ##
218
- # @private
219
- #
220
- # GRPC transcoding helper method for the get_iam_policy REST call
221
- #
222
- # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
223
- # A request object representing the call parameters. Required.
224
- # @return [Array(String, [String, nil], Hash{String => String})]
225
- # Uri, Body, Query string parameters
226
- def self.transcode_get_iam_policy_request request_pb
227
- transcoder = Gapic::Rest::GrpcTranscoder.new
228
- .with_bindings(
229
- uri_method: :post,
230
- uri_template: "/v1/{resource}:getIamPolicy",
231
- body: "*",
232
- matches: [
233
- ["resource", %r{^(?<__wildcard__>.*)$}, true]
234
- ]
235
- )
236
- transcoder.transcode request_pb
237
- end
238
-
239
- ##
240
- # @private
241
- #
242
- # GRPC transcoding helper method for the test_iam_permissions REST call
243
- #
244
- # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
245
- # A request object representing the call parameters. Required.
246
- # @return [Array(String, [String, nil], Hash{String => String})]
247
- # Uri, Body, Query string parameters
248
- def self.transcode_test_iam_permissions_request request_pb
249
- transcoder = Gapic::Rest::GrpcTranscoder.new
250
- .with_bindings(
251
- uri_method: :post,
252
- uri_template: "/v1/{resource}:testIamPermissions",
253
- body: "*",
254
- matches: [
255
- ["resource", %r{^(?<__wildcard__>.*)$}, true]
256
- ]
257
- )
258
- transcoder.transcode request_pb
259
- end
260
- end
261
- end
262
- end
263
- end
264
- end
265
- end
@@ -1,74 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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
- require "gapic/rest"
20
- require "gapic/config"
21
- require "gapic/config/method"
22
-
23
- require "google/cloud/batch/v1/version"
24
- require "google/iam/v1/bindings_override"
25
-
26
- require "google/iam/v1/iam_policy/credentials"
27
- require "google/iam/v1/iam_policy/rest/client"
28
-
29
- module Google
30
- module Iam
31
- module V1
32
- ##
33
- # API Overview
34
- #
35
- # Manages Identity and Access Management (IAM) policies.
36
- #
37
- # Any implementation of an API that offers access control features
38
- # implements the google.iam.v1.IAMPolicy interface.
39
- #
40
- # ## Data model
41
- #
42
- # Access control is applied when a principal (user or service account), takes
43
- # some action on a resource exposed by a service. Resources, identified by
44
- # URI-like names, are the unit of access control specification. Service
45
- # implementations can choose the granularity of access control and the
46
- # supported permissions for their resources.
47
- # For example one database service may allow access control to be
48
- # specified only at the Table level, whereas another might allow access control
49
- # to also be specified at the Column level.
50
- #
51
- # ## Policy Structure
52
- #
53
- # See google.iam.v1.Policy
54
- #
55
- # This is intentionally not a CRUD style API because access control policies
56
- # are created and deleted implicitly with the resources to which they are
57
- # attached.
58
- #
59
- # To load this service and instantiate a REST client:
60
- #
61
- # require "google/iam/v1/iam_policy/rest"
62
- # client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
63
- #
64
- module IAMPolicy
65
- # Client for the REST transport
66
- module Rest
67
- end
68
- end
69
- end
70
- end
71
- end
72
-
73
- helper_path = ::File.join __dir__, "rest", "helpers.rb"
74
- require "google/iam/v1/iam_policy/rest/helpers" if ::File.file? helper_path
@@ -1,76 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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
- require "gapic/common"
20
- require "gapic/config"
21
- require "gapic/config/method"
22
-
23
- require "google/cloud/batch/v1/version"
24
-
25
- require "google/iam/v1/iam_policy/credentials"
26
- require "google/iam/v1/iam_policy/client"
27
- require "google/iam/v1/iam_policy/rest"
28
-
29
- module Google
30
- module Iam
31
- module V1
32
- ##
33
- # API Overview
34
- #
35
- # Manages Identity and Access Management (IAM) policies.
36
- #
37
- # Any implementation of an API that offers access control features
38
- # implements the google.iam.v1.IAMPolicy interface.
39
- #
40
- # ## Data model
41
- #
42
- # Access control is applied when a principal (user or service account), takes
43
- # some action on a resource exposed by a service. Resources, identified by
44
- # URI-like names, are the unit of access control specification. Service
45
- # implementations can choose the granularity of access control and the
46
- # supported permissions for their resources.
47
- # For example one database service may allow access control to be
48
- # specified only at the Table level, whereas another might allow access control
49
- # to also be specified at the Column level.
50
- #
51
- # ## Policy Structure
52
- #
53
- # See google.iam.v1.Policy
54
- #
55
- # This is intentionally not a CRUD style API because access control policies
56
- # are created and deleted implicitly with the resources to which they are
57
- # attached.
58
- #
59
- # @example Load this service and instantiate a gRPC client
60
- #
61
- # require "google/iam/v1/iam_policy"
62
- # client = ::Google::Iam::V1::IAMPolicy::Client.new
63
- #
64
- # @example Load this service and instantiate a REST client
65
- #
66
- # require "google/iam/v1/iam_policy/rest"
67
- # client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
68
- #
69
- module IAMPolicy
70
- end
71
- end
72
- end
73
- end
74
-
75
- helper_path = ::File.join __dir__, "iam_policy", "helpers.rb"
76
- require "google/iam/v1/iam_policy/helpers" if ::File.file? helper_path
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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
- require "google/iam/v1/iam_policy/rest"
20
- require "google/iam/v1/bindings_override"
21
- require "google/cloud/batch/v1/version"
22
-
23
- module Google
24
- module Iam
25
- ##
26
- # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
- #
28
- # @example
29
- #
30
- # require "google/iam/v1/rest"
31
- # client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
32
- #
33
- module V1
34
- end
35
- end
36
- end
data/lib/google/iam/v1.rb DELETED
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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
- require "google/iam/v1/iam_policy"
20
- require "google/cloud/batch/v1/version"
21
-
22
- module Google
23
- module Iam
24
- ##
25
- # API client module.
26
- #
27
- # @example Load this package, including all its services, and instantiate a gRPC client
28
- #
29
- # require "google/iam/v1"
30
- # client = ::Google::Iam::V1::IAMPolicy::Client.new
31
- #
32
- # @example Load this package, including all its services, and instantiate a REST client
33
- #
34
- # require "google/iam/v1"
35
- # client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
36
- #
37
- module V1
38
- end
39
- end
40
- end
41
-
42
- helper_path = ::File.join __dir__, "v1", "_helpers.rb"
43
- require "google/iam/v1/_helpers" if ::File.file? helper_path
@@ -1,87 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2023 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