google-apis-cloudkms_v1 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/cloudkms_v1/classes.rb +2 -3
- data/lib/google/apis/cloudkms_v1/gem_version.rb +2 -2
- data/lib/google/apis/cloudkms_v1/service.rb +118 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce1244f1efea2c5807f4df0bc7847d6d1696cee2e556081b8bc3847145f82597
|
4
|
+
data.tar.gz: f5be8bc097879267d3a81420a2be844248abce2a6f40dee2b3c3669b9438f2e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7e6a15ab9a1694e5f7c9cd604573727f524a5a50be49a81ceb82880411560f0035402781696ad57806a64285e85fe7c215926f94ba5f6b758efb7cfa667a830
|
7
|
+
data.tar.gz: 3c4abdd1d32b6eb076e3ba521217675d135912daeebbd348c4f78c9550a567513da3d0aa3da2690eb87aa548825d8781a95df83b1fbb512231ed563b9ab5f044
|
data/CHANGELOG.md
CHANGED
@@ -119,9 +119,8 @@ module Google
|
|
119
119
|
class AsymmetricSignRequest
|
120
120
|
include Google::Apis::Core::Hashable
|
121
121
|
|
122
|
-
# Optional.
|
123
|
-
#
|
124
|
-
# applied to the digest directly and then encrypted.
|
122
|
+
# Optional. The data to sign. It can't be supplied if AsymmetricSignRequest.
|
123
|
+
# digest is supplied.
|
125
124
|
# Corresponds to the JSON property `data`
|
126
125
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
127
126
|
# @return [String]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudkmsV1
|
18
18
|
# Version of the google-apis-cloudkms_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -158,6 +158,124 @@ module Google
|
|
158
158
|
execute_or_queue_command(command, &block)
|
159
159
|
end
|
160
160
|
|
161
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
162
|
+
# resource exists and does not have a policy set.
|
163
|
+
# @param [String] resource
|
164
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
165
|
+
# operation documentation for the appropriate value for this field.
|
166
|
+
# @param [Fixnum] options_requested_policy_version
|
167
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
168
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
169
|
+
# rejected. Requests for policies with any conditional role bindings must
|
170
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
171
|
+
# valid value or leave the field unset. The policy in the response might use the
|
172
|
+
# policy version that you specified, or it might use a lower policy version. For
|
173
|
+
# example, if you specify version 3, but the policy has no conditional role
|
174
|
+
# bindings, the response uses version 1. To learn which resources support
|
175
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
176
|
+
# google.com/iam/help/conditions/resource-policies).
|
177
|
+
# @param [String] fields
|
178
|
+
# Selector specifying which fields to include in a partial response.
|
179
|
+
# @param [String] quota_user
|
180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
182
|
+
# @param [Google::Apis::RequestOptions] options
|
183
|
+
# Request-specific options
|
184
|
+
#
|
185
|
+
# @yield [result, err] Result & error if block supplied
|
186
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
187
|
+
# @yieldparam err [StandardError] error object if request failed
|
188
|
+
#
|
189
|
+
# @return [Google::Apis::CloudkmsV1::Policy]
|
190
|
+
#
|
191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
194
|
+
def get_project_location_ekm_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
195
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
196
|
+
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
197
|
+
command.response_class = Google::Apis::CloudkmsV1::Policy
|
198
|
+
command.params['resource'] = resource unless resource.nil?
|
199
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
|
+
execute_or_queue_command(command, &block)
|
203
|
+
end
|
204
|
+
|
205
|
+
# Sets the access control policy on the specified resource. Replaces any
|
206
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
207
|
+
# PERMISSION_DENIED` errors.
|
208
|
+
# @param [String] resource
|
209
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
210
|
+
# operation documentation for the appropriate value for this field.
|
211
|
+
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
|
212
|
+
# @param [String] fields
|
213
|
+
# Selector specifying which fields to include in a partial response.
|
214
|
+
# @param [String] quota_user
|
215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
217
|
+
# @param [Google::Apis::RequestOptions] options
|
218
|
+
# Request-specific options
|
219
|
+
#
|
220
|
+
# @yield [result, err] Result & error if block supplied
|
221
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
222
|
+
# @yieldparam err [StandardError] error object if request failed
|
223
|
+
#
|
224
|
+
# @return [Google::Apis::CloudkmsV1::Policy]
|
225
|
+
#
|
226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
+
def set_ekm_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
230
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
231
|
+
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
|
232
|
+
command.request_object = set_iam_policy_request_object
|
233
|
+
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
234
|
+
command.response_class = Google::Apis::CloudkmsV1::Policy
|
235
|
+
command.params['resource'] = resource unless resource.nil?
|
236
|
+
command.query['fields'] = fields unless fields.nil?
|
237
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
238
|
+
execute_or_queue_command(command, &block)
|
239
|
+
end
|
240
|
+
|
241
|
+
# Returns permissions that a caller has on the specified resource. If the
|
242
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
243
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
244
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
245
|
+
# This operation may "fail open" without warning.
|
246
|
+
# @param [String] resource
|
247
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
248
|
+
# operation documentation for the appropriate value for this field.
|
249
|
+
# @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
250
|
+
# @param [String] fields
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
252
|
+
# @param [String] quota_user
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
255
|
+
# @param [Google::Apis::RequestOptions] options
|
256
|
+
# Request-specific options
|
257
|
+
#
|
258
|
+
# @yield [result, err] Result & error if block supplied
|
259
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
|
260
|
+
# @yieldparam err [StandardError] error object if request failed
|
261
|
+
#
|
262
|
+
# @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
|
263
|
+
#
|
264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
+
def test_ekm_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
269
|
+
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
|
270
|
+
command.request_object = test_iam_permissions_request_object
|
271
|
+
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
|
272
|
+
command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
|
273
|
+
command.params['resource'] = resource unless resource.nil?
|
274
|
+
command.query['fields'] = fields unless fields.nil?
|
275
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
276
|
+
execute_or_queue_command(command, &block)
|
277
|
+
end
|
278
|
+
|
161
279
|
# Create a new KeyRing in a given Project and Location.
|
162
280
|
# @param [String] parent
|
163
281
|
# Required. The resource name of the location associated with the KeyRings, in
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudkms_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.15.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudkms_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|