google-apis-cloudkms_v1 0.12.0 → 0.13.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/OVERVIEW.md +2 -2
- data/lib/google/apis/cloudkms_v1/classes.rb +100 -57
- data/lib/google/apis/cloudkms_v1/gem_version.rb +2 -2
- data/lib/google/apis/cloudkms_v1/representations.rb +3 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eef0d274f894eea11b33ba175de8fe306fb023a5e3df4370ac638b4a248eefde
|
4
|
+
data.tar.gz: 3f6b829005f150c087b5b9383c27e32923974c5cf6e722ce1a9321e679e29a43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c21f4e7bb306d8673aaad482fd22f1690ad90d270913c4e9707d11835e0f319777e47608d8f748a35009e542cd8c2bc332645c4d6257c84a2b069e58ac7d70c
|
7
|
+
data.tar.gz: bd843d20073722f6c00419825973460e408d193754f82f9c161b40c3ff9ca2195d40d720c600617bb3516c8d226efdc744a52544c9d256d27fbe7a3b2229ddac
|
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudkms service in particular.)
|
67
67
|
|
@@ -119,6 +119,29 @@ module Google
|
|
119
119
|
class AsymmetricSignRequest
|
120
120
|
include Google::Apis::Core::Hashable
|
121
121
|
|
122
|
+
# Optional. This field will only be honored for RAW_PKCS1 keys. The data to sign.
|
123
|
+
# A digest is computed over the data that will be signed, PKCS #1 padding is
|
124
|
+
# applied to the digest directly and then encrypted.
|
125
|
+
# Corresponds to the JSON property `data`
|
126
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
127
|
+
# @return [String]
|
128
|
+
attr_accessor :data
|
129
|
+
|
130
|
+
# Optional. An optional CRC32C checksum of the AsymmetricSignRequest.data. If
|
131
|
+
# specified, KeyManagementService will verify the integrity of the received
|
132
|
+
# AsymmetricSignRequest.data using this checksum. KeyManagementService will
|
133
|
+
# report an error if the checksum verification fails. If you receive a checksum
|
134
|
+
# error, your client should verify that CRC32C(AsymmetricSignRequest.data) is
|
135
|
+
# equal to AsymmetricSignRequest.data_crc32c, and if so, perform a limited
|
136
|
+
# number of retries. A persistent mismatch may indicate an issue in your
|
137
|
+
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
138
|
+
# reasons of compatibility across different languages. However, it is a non-
|
139
|
+
# negative integer, which will never exceed 2^32-1, and can be safely
|
140
|
+
# downconverted to uint32 in languages that support this type.
|
141
|
+
# Corresponds to the JSON property `dataCrc32c`
|
142
|
+
# @return [Fixnum]
|
143
|
+
attr_accessor :data_crc32c
|
144
|
+
|
122
145
|
# A Digest holds a cryptographic message digest.
|
123
146
|
# Corresponds to the JSON property `digest`
|
124
147
|
# @return [Google::Apis::CloudkmsV1::Digest]
|
@@ -145,6 +168,8 @@ module Google
|
|
145
168
|
|
146
169
|
# Update properties of this object
|
147
170
|
def update!(**args)
|
171
|
+
@data = args[:data] if args.key?(:data)
|
172
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
148
173
|
@digest = args[:digest] if args.key?(:digest)
|
149
174
|
@digest_crc32c = args[:digest_crc32c] if args.key?(:digest_crc32c)
|
150
175
|
end
|
@@ -185,6 +210,18 @@ module Google
|
|
185
210
|
# @return [Fixnum]
|
186
211
|
attr_accessor :signature_crc32c
|
187
212
|
|
213
|
+
# Integrity verification field. A flag indicating whether AsymmetricSignRequest.
|
214
|
+
# data_crc32c was received by KeyManagementService and used for the integrity
|
215
|
+
# verification of the data. A false value of this field indicates either that
|
216
|
+
# AsymmetricSignRequest.data_crc32c was left unset or that it was not delivered
|
217
|
+
# to KeyManagementService. If you've set AsymmetricSignRequest.data_crc32c but
|
218
|
+
# this field is still false, discard the response and perform a limited number
|
219
|
+
# of retries.
|
220
|
+
# Corresponds to the JSON property `verifiedDataCrc32c`
|
221
|
+
# @return [Boolean]
|
222
|
+
attr_accessor :verified_data_crc32c
|
223
|
+
alias_method :verified_data_crc32c?, :verified_data_crc32c
|
224
|
+
|
188
225
|
# Integrity verification field. A flag indicating whether AsymmetricSignRequest.
|
189
226
|
# digest_crc32c was received by KeyManagementService and used for the integrity
|
190
227
|
# verification of the digest. A false value of this field indicates either that
|
@@ -207,6 +244,7 @@ module Google
|
|
207
244
|
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
208
245
|
@signature = args[:signature] if args.key?(:signature)
|
209
246
|
@signature_crc32c = args[:signature_crc32c] if args.key?(:signature_crc32c)
|
247
|
+
@verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
|
210
248
|
@verified_digest_crc32c = args[:verified_digest_crc32c] if args.key?(:verified_digest_crc32c)
|
211
249
|
end
|
212
250
|
end
|
@@ -282,7 +320,7 @@ module Google
|
|
282
320
|
end
|
283
321
|
end
|
284
322
|
|
285
|
-
# Associates `members
|
323
|
+
# Associates `members`, or principals, with a `role`.
|
286
324
|
class Binding
|
287
325
|
include Google::Apis::Core::Hashable
|
288
326
|
|
@@ -305,7 +343,7 @@ module Google
|
|
305
343
|
# @return [Google::Apis::CloudkmsV1::Expr]
|
306
344
|
attr_accessor :condition
|
307
345
|
|
308
|
-
# Specifies the
|
346
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
309
347
|
# members` can have the following values: * `allUsers`: A special identifier
|
310
348
|
# that represents anyone who is on the internet; with or without a Google
|
311
349
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -335,8 +373,8 @@ module Google
|
|
335
373
|
# @return [Array<String>]
|
336
374
|
attr_accessor :members
|
337
375
|
|
338
|
-
# Role that is assigned to `members
|
339
|
-
#
|
376
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
377
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
340
378
|
# Corresponds to the JSON property `role`
|
341
379
|
# @return [String]
|
342
380
|
attr_accessor :role
|
@@ -1737,31 +1775,31 @@ module Google
|
|
1737
1775
|
|
1738
1776
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1739
1777
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1740
|
-
# A `binding` binds one or more `members
|
1741
|
-
# user accounts, service accounts, Google groups, and domains (
|
1742
|
-
# A `role` is a named list of permissions; each `role` can be
|
1743
|
-
# role or a user-created custom role. For some types of Google
|
1744
|
-
# a `binding` can also specify a `condition`, which is a
|
1745
|
-
# allows access to a resource only if the expression
|
1746
|
-
# condition can add constraints based on attributes of
|
1747
|
-
# or both. To learn which resources support
|
1748
|
-
# see the [IAM documentation](https://cloud.
|
1749
|
-
# resource-policies). **JSON example:** ` "
|
1750
|
-
# resourcemanager.organizationAdmin", "members": [
|
1751
|
-
# group:admins@example.com", "domain:google.com", "
|
1752
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1753
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1754
|
-
# title": "expirable access", "description": "Does not grant
|
1755
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1756
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1757
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1758
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1759
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1760
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1761
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1762
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1763
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1764
|
-
# google.com/iam/docs/).
|
1778
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1779
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1780
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1781
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1782
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1783
|
+
# logical expression that allows access to a resource only if the expression
|
1784
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1785
|
+
# the request, the resource, or both. To learn which resources support
|
1786
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1787
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1788
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1789
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1790
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1791
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1792
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1793
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1794
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1795
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1796
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1797
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1798
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1799
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1800
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1801
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1802
|
+
# cloud.google.com/iam/docs/).
|
1765
1803
|
class Policy
|
1766
1804
|
include Google::Apis::Core::Hashable
|
1767
1805
|
|
@@ -1770,9 +1808,14 @@ module Google
|
|
1770
1808
|
# @return [Array<Google::Apis::CloudkmsV1::AuditConfig>]
|
1771
1809
|
attr_accessor :audit_configs
|
1772
1810
|
|
1773
|
-
# Associates a list of `members
|
1774
|
-
# condition` that determines how and when the `bindings` are applied.
|
1775
|
-
# the `bindings` must contain at least one
|
1811
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
1812
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
1813
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
1814
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
1815
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
1816
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
1817
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
1818
|
+
# principals to the `bindings` in the `Policy`.
|
1776
1819
|
# Corresponds to the JSON property `bindings`
|
1777
1820
|
# @return [Array<Google::Apis::CloudkmsV1::Binding>]
|
1778
1821
|
attr_accessor :bindings
|
@@ -1900,31 +1943,31 @@ module Google
|
|
1900
1943
|
|
1901
1944
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1902
1945
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1903
|
-
# A `binding` binds one or more `members
|
1904
|
-
# user accounts, service accounts, Google groups, and domains (
|
1905
|
-
# A `role` is a named list of permissions; each `role` can be
|
1906
|
-
# role or a user-created custom role. For some types of Google
|
1907
|
-
# a `binding` can also specify a `condition`, which is a
|
1908
|
-
# allows access to a resource only if the expression
|
1909
|
-
# condition can add constraints based on attributes of
|
1910
|
-
# or both. To learn which resources support
|
1911
|
-
# see the [IAM documentation](https://cloud.
|
1912
|
-
# resource-policies). **JSON example:** ` "
|
1913
|
-
# resourcemanager.organizationAdmin", "members": [
|
1914
|
-
# group:admins@example.com", "domain:google.com", "
|
1915
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
1916
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
1917
|
-
# title": "expirable access", "description": "Does not grant
|
1918
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1919
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1920
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
1921
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1922
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
1923
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
1924
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
1925
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1926
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
1927
|
-
# google.com/iam/docs/).
|
1946
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1947
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1948
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1949
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1950
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1951
|
+
# logical expression that allows access to a resource only if the expression
|
1952
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1953
|
+
# the request, the resource, or both. To learn which resources support
|
1954
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1955
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1956
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1957
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1958
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1959
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1960
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1961
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1962
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1963
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1964
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1965
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1966
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1967
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1968
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1969
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1970
|
+
# cloud.google.com/iam/docs/).
|
1928
1971
|
# Corresponds to the JSON property `policy`
|
1929
1972
|
# @return [Google::Apis::CloudkmsV1::Policy]
|
1930
1973
|
attr_accessor :policy
|
@@ -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.13.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 = "20211018"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -307,6 +307,8 @@ module Google
|
|
307
307
|
class AsymmetricSignRequest
|
308
308
|
# @private
|
309
309
|
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :data, :base64 => true, as: 'data'
|
311
|
+
property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
|
310
312
|
property :digest, as: 'digest', class: Google::Apis::CloudkmsV1::Digest, decorator: Google::Apis::CloudkmsV1::Digest::Representation
|
311
313
|
|
312
314
|
property :digest_crc32c, :numeric_string => true, as: 'digestCrc32c'
|
@@ -320,6 +322,7 @@ module Google
|
|
320
322
|
property :protection_level, as: 'protectionLevel'
|
321
323
|
property :signature, :base64 => true, as: 'signature'
|
322
324
|
property :signature_crc32c, :numeric_string => true, as: 'signatureCrc32c'
|
325
|
+
property :verified_data_crc32c, as: 'verifiedDataCrc32c'
|
323
326
|
property :verified_digest_crc32c, as: 'verifiedDigestCrc32c'
|
324
327
|
end
|
325
328
|
end
|
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.13.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-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudkms_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.13.0
|
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: []
|
65
65
|
require_paths:
|