google-cloud-kms 1.5.0 → 1.5.1
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +0 -5
- data/lib/google/cloud/kms/v1/key_management_service_client.rb +17 -25
- data/lib/google/cloud/kms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f03c9fa470302d031ea26c617d1a195a3de9109a115c467ad76290e81c7cc08
|
|
4
|
+
data.tar.gz: b2f9371d3d862d890d653d94b1b2dc09c5ec5f2cd9d505469f4afe211e9c172e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41308a1c12ca9e1f5190f1f3a5fa9808dc0ccb69e476becac1d6fcd96f69d84a56356a2ebd89ca227f11b15167782cc07bde1310ee44fab4047d01645441a631
|
|
7
|
+
data.tar.gz: a6c245fb6848593a547b318249d826b0499394b909055f82e76cdf1305c6a9824c5f6a7f7275c2212130a91624a6f0cfaf8751530b7c9dd92e275c633fac8d97
|
data/AUTHENTICATION.md
CHANGED
|
@@ -170,8 +170,3 @@ Developers service account.
|
|
|
170
170
|
|
|
171
171
|
The key file you download will be used by this library to authenticate API
|
|
172
172
|
requests and should be stored in a secure location.
|
|
173
|
-
|
|
174
|
-
## Troubleshooting
|
|
175
|
-
|
|
176
|
-
If you're having trouble authenticating you can ask for help by following the
|
|
177
|
-
{file:TROUBLESHOOTING.md Troubleshooting Guide}.
|
|
@@ -101,12 +101,6 @@ module Google
|
|
|
101
101
|
|
|
102
102
|
private_constant :CRYPTO_KEY_PATH_TEMPLATE
|
|
103
103
|
|
|
104
|
-
CRYPTO_KEY_PATH_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
105
|
-
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key_path=**}"
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
private_constant :CRYPTO_KEY_PATH_PATH_TEMPLATE
|
|
109
|
-
|
|
110
104
|
CRYPTO_KEY_VERSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
111
105
|
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}"
|
|
112
106
|
)
|
|
@@ -147,18 +141,8 @@ module Google
|
|
|
147
141
|
end
|
|
148
142
|
|
|
149
143
|
# Returns a fully-qualified crypto_key_path resource name string.
|
|
150
|
-
# @param project [String]
|
|
151
|
-
# @param location [String]
|
|
152
|
-
# @param key_ring [String]
|
|
153
|
-
# @param crypto_key_path [String]
|
|
154
|
-
# @return [String]
|
|
155
144
|
def self.crypto_key_path_path project, location, key_ring, crypto_key_path
|
|
156
|
-
|
|
157
|
-
:"project" => project,
|
|
158
|
-
:"location" => location,
|
|
159
|
-
:"key_ring" => key_ring,
|
|
160
|
-
:"crypto_key_path" => crypto_key_path
|
|
161
|
-
)
|
|
145
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key_path}"
|
|
162
146
|
end
|
|
163
147
|
|
|
164
148
|
# Returns a fully-qualified crypto_key_version resource name string.
|
|
@@ -1374,11 +1358,13 @@ module Google
|
|
|
1374
1358
|
# require "google/cloud/kms"
|
|
1375
1359
|
#
|
|
1376
1360
|
# key_management_client = Google::Cloud::Kms.new(version: :v1)
|
|
1377
|
-
#
|
|
1361
|
+
#
|
|
1362
|
+
# # TODO: Initialize `name`:
|
|
1363
|
+
# name = ''
|
|
1378
1364
|
#
|
|
1379
1365
|
# # TODO: Initialize `plaintext`:
|
|
1380
1366
|
# plaintext = ''
|
|
1381
|
-
# response = key_management_client.encrypt(
|
|
1367
|
+
# response = key_management_client.encrypt(name, plaintext)
|
|
1382
1368
|
|
|
1383
1369
|
def encrypt \
|
|
1384
1370
|
name,
|
|
@@ -1702,11 +1688,13 @@ module Google
|
|
|
1702
1688
|
# require "google/cloud/kms"
|
|
1703
1689
|
#
|
|
1704
1690
|
# key_management_client = Google::Cloud::Kms.new(version: :v1)
|
|
1705
|
-
#
|
|
1691
|
+
#
|
|
1692
|
+
# # TODO: Initialize `resource`:
|
|
1693
|
+
# resource = ''
|
|
1706
1694
|
#
|
|
1707
1695
|
# # TODO: Initialize `policy`:
|
|
1708
1696
|
# policy = {}
|
|
1709
|
-
# response = key_management_client.set_iam_policy(
|
|
1697
|
+
# response = key_management_client.set_iam_policy(resource, policy)
|
|
1710
1698
|
|
|
1711
1699
|
def set_iam_policy \
|
|
1712
1700
|
resource,
|
|
@@ -1744,8 +1732,10 @@ module Google
|
|
|
1744
1732
|
# require "google/cloud/kms"
|
|
1745
1733
|
#
|
|
1746
1734
|
# key_management_client = Google::Cloud::Kms.new(version: :v1)
|
|
1747
|
-
#
|
|
1748
|
-
#
|
|
1735
|
+
#
|
|
1736
|
+
# # TODO: Initialize `resource`:
|
|
1737
|
+
# resource = ''
|
|
1738
|
+
# response = key_management_client.get_iam_policy(resource)
|
|
1749
1739
|
|
|
1750
1740
|
def get_iam_policy \
|
|
1751
1741
|
resource,
|
|
@@ -1788,11 +1778,13 @@ module Google
|
|
|
1788
1778
|
# require "google/cloud/kms"
|
|
1789
1779
|
#
|
|
1790
1780
|
# key_management_client = Google::Cloud::Kms.new(version: :v1)
|
|
1791
|
-
#
|
|
1781
|
+
#
|
|
1782
|
+
# # TODO: Initialize `resource`:
|
|
1783
|
+
# resource = ''
|
|
1792
1784
|
#
|
|
1793
1785
|
# # TODO: Initialize `permissions`:
|
|
1794
1786
|
# permissions = []
|
|
1795
|
-
# response = key_management_client.test_iam_permissions(
|
|
1787
|
+
# response = key_management_client.test_iam_permissions(resource, permissions)
|
|
1796
1788
|
|
|
1797
1789
|
def test_iam_permissions \
|
|
1798
1790
|
resource,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-kms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|