google-cloud-kms 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1c6d1cdabdaf0ca3bb255d7b636fa0f47490479c5db68a90bf451c32b042f02
4
- data.tar.gz: 52d45e6b8caeccfd4f1567e1bd56c2de982bf97fae4edc8990712c5747862d4d
3
+ metadata.gz: 9f03c9fa470302d031ea26c617d1a195a3de9109a115c467ad76290e81c7cc08
4
+ data.tar.gz: b2f9371d3d862d890d653d94b1b2dc09c5ec5f2cd9d505469f4afe211e9c172e
5
5
  SHA512:
6
- metadata.gz: 021373de34c3d0cf19f6ca0efb6300716994828a111b224b7ebdb3234510d3d71e83a7fa9fcb8dd5edd2a5ed2ace15c48291026b86193fa68c26e0e1fc743e05
7
- data.tar.gz: 4ee6da1d708d76ce4338a9c73fa957e442aff0b93b56003b5adc17d0a363e5412a2fd008d77717dbc8df0dc657b159be9586310c8a2443a0ec3d16cc0474336b
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
- CRYPTO_KEY_PATH_PATH_TEMPLATE.render(
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
- # formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY_PATH]")
1361
+ #
1362
+ # # TODO: Initialize `name`:
1363
+ # name = ''
1378
1364
  #
1379
1365
  # # TODO: Initialize `plaintext`:
1380
1366
  # plaintext = ''
1381
- # response = key_management_client.encrypt(formatted_name, plaintext)
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
- # formatted_resource = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
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(formatted_resource, 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
- # formatted_resource = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
1748
- # response = key_management_client.get_iam_policy(formatted_resource)
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
- # formatted_resource = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
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(formatted_resource, permissions)
1787
+ # response = key_management_client.test_iam_permissions(resource, permissions)
1796
1788
 
1797
1789
  def test_iam_permissions \
1798
1790
  resource,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Kms
19
- VERSION = "1.5.0".freeze
19
+ VERSION = "1.5.1".freeze
20
20
  end
21
21
  end
22
22
  end
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.0
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-03-11 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax