google-apis-cloudkms_v1 0.12.0 → 0.16.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 +17 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/cloudkms_v1/classes.rb +108 -66
- data/lib/google/apis/cloudkms_v1/gem_version.rb +2 -2
- data/lib/google/apis/cloudkms_v1/representations.rb +3 -0
- data/lib/google/apis/cloudkms_v1/service.rb +148 -21
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc057de24245cd7eb971987a78baf5c5675d840e662c5dc1a260b07c69ecfdad
|
4
|
+
data.tar.gz: '009ee70c362b987c4a82a2e1228558f4dd2defc49af4618d32d2e9a3c26376d4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d20c9437983d3f997dec4d3d62317cce3611b9ccbdeaecc93a2da0e3ef035a9a1d793145340a83152ef101c0a0c2bf95a6f5bdfffe8d9d36a3f249dab299bc66
|
7
|
+
data.tar.gz: e46b89d687f90234e58bb804d112f0a8646b11172fb0b82611f10f7d2ba6b35dad0f8ebc74a216ff1e7799ed5c5f632c030e6a359c754d09b9d4ce6020b8088d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-cloudkms_v1
|
2
2
|
|
3
|
+
### v0.16.0 (2022-01-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220104
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.15.0 (2021-12-08)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211130
|
11
|
+
|
12
|
+
### v0.14.0 (2021-11-13)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211105
|
15
|
+
|
16
|
+
### v0.13.0 (2021-10-26)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211018
|
19
|
+
|
3
20
|
### v0.12.0 (2021-09-01)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210820
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/cloudkms_v1"
|
|
51
51
|
client = Google::Apis::CloudkmsV1::CloudKMSService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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,28 @@ module Google
|
|
119
119
|
class AsymmetricSignRequest
|
120
120
|
include Google::Apis::Core::Hashable
|
121
121
|
|
122
|
+
# Optional. The data to sign. It can't be supplied if AsymmetricSignRequest.
|
123
|
+
# digest is supplied.
|
124
|
+
# Corresponds to the JSON property `data`
|
125
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :data
|
128
|
+
|
129
|
+
# Optional. An optional CRC32C checksum of the AsymmetricSignRequest.data. If
|
130
|
+
# specified, KeyManagementService will verify the integrity of the received
|
131
|
+
# AsymmetricSignRequest.data using this checksum. KeyManagementService will
|
132
|
+
# report an error if the checksum verification fails. If you receive a checksum
|
133
|
+
# error, your client should verify that CRC32C(AsymmetricSignRequest.data) is
|
134
|
+
# equal to AsymmetricSignRequest.data_crc32c, and if so, perform a limited
|
135
|
+
# number of retries. A persistent mismatch may indicate an issue in your
|
136
|
+
# computation of the CRC32C checksum. Note: This field is defined as int64 for
|
137
|
+
# reasons of compatibility across different languages. However, it is a non-
|
138
|
+
# negative integer, which will never exceed 2^32-1, and can be safely
|
139
|
+
# downconverted to uint32 in languages that support this type.
|
140
|
+
# Corresponds to the JSON property `dataCrc32c`
|
141
|
+
# @return [Fixnum]
|
142
|
+
attr_accessor :data_crc32c
|
143
|
+
|
122
144
|
# A Digest holds a cryptographic message digest.
|
123
145
|
# Corresponds to the JSON property `digest`
|
124
146
|
# @return [Google::Apis::CloudkmsV1::Digest]
|
@@ -145,6 +167,8 @@ module Google
|
|
145
167
|
|
146
168
|
# Update properties of this object
|
147
169
|
def update!(**args)
|
170
|
+
@data = args[:data] if args.key?(:data)
|
171
|
+
@data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
|
148
172
|
@digest = args[:digest] if args.key?(:digest)
|
149
173
|
@digest_crc32c = args[:digest_crc32c] if args.key?(:digest_crc32c)
|
150
174
|
end
|
@@ -185,6 +209,18 @@ module Google
|
|
185
209
|
# @return [Fixnum]
|
186
210
|
attr_accessor :signature_crc32c
|
187
211
|
|
212
|
+
# Integrity verification field. A flag indicating whether AsymmetricSignRequest.
|
213
|
+
# data_crc32c was received by KeyManagementService and used for the integrity
|
214
|
+
# verification of the data. A false value of this field indicates either that
|
215
|
+
# AsymmetricSignRequest.data_crc32c was left unset or that it was not delivered
|
216
|
+
# to KeyManagementService. If you've set AsymmetricSignRequest.data_crc32c but
|
217
|
+
# this field is still false, discard the response and perform a limited number
|
218
|
+
# of retries.
|
219
|
+
# Corresponds to the JSON property `verifiedDataCrc32c`
|
220
|
+
# @return [Boolean]
|
221
|
+
attr_accessor :verified_data_crc32c
|
222
|
+
alias_method :verified_data_crc32c?, :verified_data_crc32c
|
223
|
+
|
188
224
|
# Integrity verification field. A flag indicating whether AsymmetricSignRequest.
|
189
225
|
# digest_crc32c was received by KeyManagementService and used for the integrity
|
190
226
|
# verification of the digest. A false value of this field indicates either that
|
@@ -207,6 +243,7 @@ module Google
|
|
207
243
|
@protection_level = args[:protection_level] if args.key?(:protection_level)
|
208
244
|
@signature = args[:signature] if args.key?(:signature)
|
209
245
|
@signature_crc32c = args[:signature_crc32c] if args.key?(:signature_crc32c)
|
246
|
+
@verified_data_crc32c = args[:verified_data_crc32c] if args.key?(:verified_data_crc32c)
|
210
247
|
@verified_digest_crc32c = args[:verified_digest_crc32c] if args.key?(:verified_digest_crc32c)
|
211
248
|
end
|
212
249
|
end
|
@@ -282,7 +319,7 @@ module Google
|
|
282
319
|
end
|
283
320
|
end
|
284
321
|
|
285
|
-
# Associates `members
|
322
|
+
# Associates `members`, or principals, with a `role`.
|
286
323
|
class Binding
|
287
324
|
include Google::Apis::Core::Hashable
|
288
325
|
|
@@ -305,7 +342,7 @@ module Google
|
|
305
342
|
# @return [Google::Apis::CloudkmsV1::Expr]
|
306
343
|
attr_accessor :condition
|
307
344
|
|
308
|
-
# Specifies the
|
345
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
309
346
|
# members` can have the following values: * `allUsers`: A special identifier
|
310
347
|
# that represents anyone who is on the internet; with or without a Google
|
311
348
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -335,8 +372,8 @@ module Google
|
|
335
372
|
# @return [Array<String>]
|
336
373
|
attr_accessor :members
|
337
374
|
|
338
|
-
# Role that is assigned to `members
|
339
|
-
#
|
375
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
376
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
340
377
|
# Corresponds to the JSON property `role`
|
341
378
|
# @return [String]
|
342
379
|
attr_accessor :role
|
@@ -1013,8 +1050,8 @@ module Google
|
|
1013
1050
|
# @return [Fixnum]
|
1014
1051
|
attr_accessor :length_bytes
|
1015
1052
|
|
1016
|
-
# The ProtectionLevel to use when generating the random data.
|
1017
|
-
#
|
1053
|
+
# The ProtectionLevel to use when generating the random data. Currently, only
|
1054
|
+
# HSM protection level is supported.
|
1018
1055
|
# Corresponds to the JSON property `protectionLevel`
|
1019
1056
|
# @return [String]
|
1020
1057
|
attr_accessor :protection_level
|
@@ -1096,13 +1133,13 @@ module Google
|
|
1096
1133
|
# Wrapped key material produced with RSA_OAEP_3072_SHA1_AES_256 or
|
1097
1134
|
# RSA_OAEP_4096_SHA1_AES_256. This field contains the concatenation of two
|
1098
1135
|
# wrapped keys: 1. An ephemeral AES-256 wrapping key wrapped with the public_key
|
1099
|
-
# using RSAES-OAEP with SHA-1, MGF1 with SHA-1, and an empty
|
1100
|
-
# to be imported, wrapped with the ephemeral AES-256 key using
|
1101
|
-
# . If importing symmetric key material, it is expected that
|
1102
|
-
# contains plain bytes. If importing asymmetric key material,
|
1103
|
-
# that the unwrapped key is in PKCS#8-encoded DER format (the
|
1104
|
-
# structure from RFC 5208). This format is the same as the format
|
1105
|
-
# PKCS#11 mechanism CKM_RSA_AES_KEY_WRAP.
|
1136
|
+
# using RSAES-OAEP with SHA-1/SHA-256, MGF1 with SHA-1/SHA-256, and an empty
|
1137
|
+
# label. 2. The key to be imported, wrapped with the ephemeral AES-256 key using
|
1138
|
+
# AES-KWP (RFC 5649). If importing symmetric key material, it is expected that
|
1139
|
+
# the unwrapped key contains plain bytes. If importing asymmetric key material,
|
1140
|
+
# it is expected that the unwrapped key is in PKCS#8-encoded DER format (the
|
1141
|
+
# PrivateKeyInfo structure from RFC 5208). This format is the same as the format
|
1142
|
+
# produced by PKCS#11 mechanism CKM_RSA_AES_KEY_WRAP.
|
1106
1143
|
# Corresponds to the JSON property `rsaAesWrappedKey`
|
1107
1144
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1108
1145
|
# @return [String]
|
@@ -1737,31 +1774,31 @@ module Google
|
|
1737
1774
|
|
1738
1775
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1739
1776
|
# 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/).
|
1777
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1778
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1779
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1780
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1781
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1782
|
+
# logical expression that allows access to a resource only if the expression
|
1783
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1784
|
+
# the request, the resource, or both. To learn which resources support
|
1785
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1786
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1787
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1788
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1789
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1790
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1791
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1792
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1793
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1794
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1795
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1796
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1797
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1798
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1799
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1800
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1801
|
+
# cloud.google.com/iam/docs/).
|
1765
1802
|
class Policy
|
1766
1803
|
include Google::Apis::Core::Hashable
|
1767
1804
|
|
@@ -1770,9 +1807,14 @@ module Google
|
|
1770
1807
|
# @return [Array<Google::Apis::CloudkmsV1::AuditConfig>]
|
1771
1808
|
attr_accessor :audit_configs
|
1772
1809
|
|
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
|
1810
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
1811
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
1812
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
1813
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
1814
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
1815
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
1816
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
1817
|
+
# principals to the `bindings` in the `Policy`.
|
1776
1818
|
# Corresponds to the JSON property `bindings`
|
1777
1819
|
# @return [Array<Google::Apis::CloudkmsV1::Binding>]
|
1778
1820
|
attr_accessor :bindings
|
@@ -1900,31 +1942,31 @@ module Google
|
|
1900
1942
|
|
1901
1943
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1902
1944
|
# 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/).
|
1945
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1946
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1947
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1948
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1949
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1950
|
+
# logical expression that allows access to a resource only if the expression
|
1951
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1952
|
+
# the request, the resource, or both. To learn which resources support
|
1953
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1954
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
1955
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1956
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1957
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1958
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1959
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1960
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1961
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
1962
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
1963
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1964
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
1965
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
1966
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
1967
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
1968
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
1969
|
+
# cloud.google.com/iam/docs/).
|
1928
1970
|
# Corresponds to the JSON property `policy`
|
1929
1971
|
# @return [Google::Apis::CloudkmsV1::Policy]
|
1930
1972
|
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.16.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 = "20220104"
|
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
|
@@ -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
|
@@ -232,13 +350,16 @@ module Google
|
|
232
350
|
# REQUIRED: The resource for which the policy is being requested. See the
|
233
351
|
# operation documentation for the appropriate value for this field.
|
234
352
|
# @param [Fixnum] options_requested_policy_version
|
235
|
-
# Optional. The policy
|
236
|
-
# 3. Requests specifying an invalid value will be
|
237
|
-
# policies with any conditional bindings must
|
238
|
-
#
|
239
|
-
# field unset.
|
240
|
-
#
|
241
|
-
#
|
353
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
354
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
355
|
+
# rejected. Requests for policies with any conditional role bindings must
|
356
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
357
|
+
# valid value or leave the field unset. The policy in the response might use the
|
358
|
+
# policy version that you specified, or it might use a lower policy version. For
|
359
|
+
# example, if you specify version 3, but the policy has no conditional role
|
360
|
+
# bindings, the response uses version 1. To learn which resources support
|
361
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
362
|
+
# google.com/iam/help/conditions/resource-policies).
|
242
363
|
# @param [String] fields
|
243
364
|
# Selector specifying which fields to include in a partial response.
|
244
365
|
# @param [String] quota_user
|
@@ -544,13 +665,16 @@ module Google
|
|
544
665
|
# REQUIRED: The resource for which the policy is being requested. See the
|
545
666
|
# operation documentation for the appropriate value for this field.
|
546
667
|
# @param [Fixnum] options_requested_policy_version
|
547
|
-
# Optional. The policy
|
548
|
-
# 3. Requests specifying an invalid value will be
|
549
|
-
# policies with any conditional bindings must
|
550
|
-
#
|
551
|
-
# field unset.
|
552
|
-
#
|
553
|
-
#
|
668
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
669
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
670
|
+
# rejected. Requests for policies with any conditional role bindings must
|
671
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
672
|
+
# valid value or leave the field unset. The policy in the response might use the
|
673
|
+
# policy version that you specified, or it might use a lower policy version. For
|
674
|
+
# example, if you specify version 3, but the policy has no conditional role
|
675
|
+
# bindings, the response uses version 1. To learn which resources support
|
676
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
677
|
+
# google.com/iam/help/conditions/resource-policies).
|
554
678
|
# @param [String] fields
|
555
679
|
# Selector specifying which fields to include in a partial response.
|
556
680
|
# @param [String] quota_user
|
@@ -1290,13 +1414,16 @@ module Google
|
|
1290
1414
|
# REQUIRED: The resource for which the policy is being requested. See the
|
1291
1415
|
# operation documentation for the appropriate value for this field.
|
1292
1416
|
# @param [Fixnum] options_requested_policy_version
|
1293
|
-
# Optional. The policy
|
1294
|
-
# 3. Requests specifying an invalid value will be
|
1295
|
-
# policies with any conditional bindings must
|
1296
|
-
#
|
1297
|
-
# field unset.
|
1298
|
-
#
|
1299
|
-
#
|
1417
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1418
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1419
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1420
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1421
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1422
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1423
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1424
|
+
# bindings, the response uses version 1. To learn which resources support
|
1425
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1426
|
+
# google.com/iam/help/conditions/resource-policies).
|
1300
1427
|
# @param [String] fields
|
1301
1428
|
# Selector specifying which fields to include in a partial response.
|
1302
1429
|
# @param [String] quota_user
|
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.16.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:
|
11
|
+
date: 2022-01-10 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.16.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:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Key Management Service (KMS) API V1
|