google-cloud-kms 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/README.md +1 -1
- data/lib/google/cloud/kms.rb +1 -1
- data/lib/google/cloud/kms/v1.rb +53 -53
- data/lib/google/cloud/kms/v1/credentials.rb +4 -4
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/service.rb +0 -11
- data/lib/google/cloud/kms/v1/doc/overview.rb +1 -1
- data/lib/google/cloud/kms/v1/key_management_service_client.rb +19 -19
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0075e7a82449395adb6756f9086bb2e3be1990331278909f2f850fab4848dee9
|
4
|
+
data.tar.gz: 9b426d4abea0663438057280bcf24b25229dd89d5544e1e97f619be69b58a297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1096b32f6efed721958472aae0877c2c0dd0221c8c486658913e6d0dff1694bc89ce649341291b59d4686eacdfd52a1daa20364a63c2c01c041708323cb7038
|
7
|
+
data.tar.gz: 8c1cb60b70dc1304151f61e17d96b5de710a52a46385ac9ec8ea9893ed75b4db2b5034b0f974d4f787b2dd3333e5b11cbde1f4c479bd8b3e74213dd0be2b0346
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ steps:
|
|
12
12
|
|
13
13
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
14
14
|
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
15
|
-
3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/
|
15
|
+
3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/library/cloudkms.googleapis.com)
|
16
16
|
4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
17
17
|
|
18
18
|
### Installation
|
data/lib/google/cloud/kms.rb
CHANGED
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
#
|
34
34
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
35
35
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
36
|
-
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/
|
36
|
+
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/library/cloudkms.googleapis.com)
|
37
37
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
38
38
|
#
|
39
39
|
# ### Next Steps
|
data/lib/google/cloud/kms/v1.rb
CHANGED
@@ -16,60 +16,60 @@ require "google/cloud/kms/v1/key_management_service_client"
|
|
16
16
|
|
17
17
|
module Google
|
18
18
|
module Cloud
|
19
|
-
# rubocop:disable LineLength
|
20
|
-
|
21
|
-
##
|
22
|
-
# # Ruby Client for Google Cloud Key Management Service (KMS) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
23
|
-
#
|
24
|
-
# [Google Cloud Key Management Service (KMS) API][Product Documentation]:
|
25
|
-
# Manages encryption for your cloud services the same way you do on-premises.
|
26
|
-
# You can generate, use, rotate, and destroy AES256 encryption keys.
|
27
|
-
# - [Product Documentation][]
|
28
|
-
#
|
29
|
-
# ## Quick Start
|
30
|
-
# In order to use this library, you first need to go through the following
|
31
|
-
# steps:
|
32
|
-
#
|
33
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
34
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
35
|
-
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/api/kms)
|
36
|
-
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
37
|
-
#
|
38
|
-
# ### Next Steps
|
39
|
-
# - Read the [Google Cloud Key Management Service (KMS) API Product documentation][Product Documentation]
|
40
|
-
# to learn more about the product and see How-to Guides.
|
41
|
-
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
42
|
-
# to see the full list of Cloud APIs that we cover.
|
43
|
-
#
|
44
|
-
# [Product Documentation]: https://cloud.google.com/kms
|
45
|
-
#
|
46
|
-
# ## Enabling Logging
|
47
|
-
#
|
48
|
-
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
50
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
51
|
-
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
|
-
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
|
-
#
|
54
|
-
# Configuring a Ruby stdlib logger:
|
55
|
-
#
|
56
|
-
# ```ruby
|
57
|
-
# require "logger"
|
58
|
-
#
|
59
|
-
# module MyLogger
|
60
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
61
|
-
# def logger
|
62
|
-
# LOGGER
|
63
|
-
# end
|
64
|
-
# end
|
65
|
-
#
|
66
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
# module GRPC
|
68
|
-
# extend MyLogger
|
69
|
-
# end
|
70
|
-
# ```
|
71
|
-
#
|
72
19
|
module Kms
|
20
|
+
# rubocop:disable LineLength
|
21
|
+
|
22
|
+
##
|
23
|
+
# # Ruby Client for Google Cloud Key Management Service (KMS) API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
24
|
+
#
|
25
|
+
# [Google Cloud Key Management Service (KMS) API][Product Documentation]:
|
26
|
+
# Manages encryption for your cloud services the same way you do on-premises.
|
27
|
+
# You can generate, use, rotate, and destroy AES256 encryption keys.
|
28
|
+
# - [Product Documentation][]
|
29
|
+
#
|
30
|
+
# ## Quick Start
|
31
|
+
# In order to use this library, you first need to go through the following
|
32
|
+
# steps:
|
33
|
+
#
|
34
|
+
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
35
|
+
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
36
|
+
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/library/cloudkms.googleapis.com)
|
37
|
+
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
38
|
+
#
|
39
|
+
# ### Next Steps
|
40
|
+
# - Read the [Google Cloud Key Management Service (KMS) API Product documentation][Product Documentation]
|
41
|
+
# to learn more about the product and see How-to Guides.
|
42
|
+
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
43
|
+
# to see the full list of Cloud APIs that we cover.
|
44
|
+
#
|
45
|
+
# [Product Documentation]: https://cloud.google.com/kms
|
46
|
+
#
|
47
|
+
# ## Enabling Logging
|
48
|
+
#
|
49
|
+
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
50
|
+
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
51
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
52
|
+
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
53
|
+
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
54
|
+
#
|
55
|
+
# Configuring a Ruby stdlib logger:
|
56
|
+
#
|
57
|
+
# ```ruby
|
58
|
+
# require "logger"
|
59
|
+
#
|
60
|
+
# module MyLogger
|
61
|
+
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
62
|
+
# def logger
|
63
|
+
# LOGGER
|
64
|
+
# end
|
65
|
+
# end
|
66
|
+
#
|
67
|
+
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
68
|
+
# module GRPC
|
69
|
+
# extend MyLogger
|
70
|
+
# end
|
71
|
+
# ```
|
72
|
+
#
|
73
73
|
module V1
|
74
74
|
# rubocop:enable LineLength
|
75
75
|
|
@@ -22,13 +22,13 @@ module Google
|
|
22
22
|
SCOPE = [
|
23
23
|
"https://www.googleapis.com/auth/cloud-platform"
|
24
24
|
].freeze
|
25
|
-
PATH_ENV_VARS = %w(
|
26
|
-
|
25
|
+
PATH_ENV_VARS = %w(KMS_CREDENTIALS
|
26
|
+
KMS_KEYFILE
|
27
27
|
GOOGLE_CLOUD_CREDENTIALS
|
28
28
|
GOOGLE_CLOUD_KEYFILE
|
29
29
|
GCLOUD_KEYFILE)
|
30
|
-
JSON_ENV_VARS = %w(
|
31
|
-
|
30
|
+
JSON_ENV_VARS = %w(KMS_CREDENTIALS_JSON
|
31
|
+
KMS_KEYFILE_JSON
|
32
32
|
GOOGLE_CLOUD_CREDENTIALS_JSON
|
33
33
|
GOOGLE_CLOUD_KEYFILE_JSON
|
34
34
|
GCLOUD_KEYFILE_JSON)
|
@@ -15,17 +15,6 @@
|
|
15
15
|
module Google
|
16
16
|
module Cloud
|
17
17
|
module Kms
|
18
|
-
##
|
19
|
-
# # Google Cloud Key Management Service (KMS) API Contents
|
20
|
-
#
|
21
|
-
# | Class | Description |
|
22
|
-
# | ----- | ----------- |
|
23
|
-
# | [KeyManagementServiceClient][] | Google Cloud Key Management Service |
|
24
|
-
# | [Data Types][] | Data types for Google::Cloud::Kms::V1 |
|
25
|
-
#
|
26
|
-
# [KeyManagementServiceClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-kms/latest/google/cloud/kms/v1/keymanagementserviceclient
|
27
|
-
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-kms/latest/google/cloud/kms/v1/datatypes
|
28
|
-
#
|
29
18
|
module V1
|
30
19
|
# Request message for {Google::Cloud::Kms::V1::KeyManagementService::ListKeyRings KeyManagementService::ListKeyRings}.
|
31
20
|
# @!attribute [rw] parent
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
#
|
31
31
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
32
32
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
33
|
-
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/
|
33
|
+
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/library/cloudkms.googleapis.com)
|
34
34
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
35
35
|
#
|
36
36
|
# ### Installation
|
@@ -480,7 +480,7 @@ module Google
|
|
480
480
|
# @example
|
481
481
|
# require "google/cloud/kms"
|
482
482
|
#
|
483
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
483
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
484
484
|
# formatted_parent = Google::Cloud::Kms::V1::KeyManagementServiceClient.location_path("[PROJECT]", "[LOCATION]")
|
485
485
|
#
|
486
486
|
# # Iterate over all results.
|
@@ -535,7 +535,7 @@ module Google
|
|
535
535
|
# @example
|
536
536
|
# require "google/cloud/kms"
|
537
537
|
#
|
538
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
538
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
539
539
|
# formatted_parent = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
|
540
540
|
#
|
541
541
|
# # Iterate over all results.
|
@@ -590,7 +590,7 @@ module Google
|
|
590
590
|
# @example
|
591
591
|
# require "google/cloud/kms"
|
592
592
|
#
|
593
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
593
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
594
594
|
# formatted_parent = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
|
595
595
|
#
|
596
596
|
# # Iterate over all results.
|
@@ -634,7 +634,7 @@ module Google
|
|
634
634
|
# @example
|
635
635
|
# require "google/cloud/kms"
|
636
636
|
#
|
637
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
637
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
638
638
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
|
639
639
|
# response = key_management_service_client.get_key_ring(formatted_name)
|
640
640
|
|
@@ -665,7 +665,7 @@ module Google
|
|
665
665
|
# @example
|
666
666
|
# require "google/cloud/kms"
|
667
667
|
#
|
668
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
668
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
669
669
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
|
670
670
|
# response = key_management_service_client.get_crypto_key(formatted_name)
|
671
671
|
|
@@ -695,7 +695,7 @@ module Google
|
|
695
695
|
# @example
|
696
696
|
# require "google/cloud/kms"
|
697
697
|
#
|
698
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
698
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
699
699
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_version_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]")
|
700
700
|
# response = key_management_service_client.get_crypto_key_version(formatted_name)
|
701
701
|
|
@@ -733,7 +733,7 @@ module Google
|
|
733
733
|
# @example
|
734
734
|
# require "google/cloud/kms"
|
735
735
|
#
|
736
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
736
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
737
737
|
# formatted_parent = Google::Cloud::Kms::V1::KeyManagementServiceClient.location_path("[PROJECT]", "[LOCATION]")
|
738
738
|
#
|
739
739
|
# # TODO: Initialize +key_ring_id+:
|
@@ -783,7 +783,7 @@ module Google
|
|
783
783
|
# @example
|
784
784
|
# require "google/cloud/kms"
|
785
785
|
#
|
786
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
786
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
787
787
|
# formatted_parent = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
|
788
788
|
# crypto_key_id = "my-app-key"
|
789
789
|
# purpose = :ENCRYPT_DECRYPT
|
@@ -837,7 +837,7 @@ module Google
|
|
837
837
|
# @example
|
838
838
|
# require "google/cloud/kms"
|
839
839
|
#
|
840
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
840
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
841
841
|
# formatted_parent = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
|
842
842
|
#
|
843
843
|
# # TODO: Initialize +crypto_key_version+:
|
@@ -878,7 +878,7 @@ module Google
|
|
878
878
|
# @example
|
879
879
|
# require "google/cloud/kms"
|
880
880
|
#
|
881
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
881
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
882
882
|
#
|
883
883
|
# # TODO: Initialize +crypto_key+:
|
884
884
|
# crypto_key = {}
|
@@ -927,7 +927,7 @@ module Google
|
|
927
927
|
# @example
|
928
928
|
# require "google/cloud/kms"
|
929
929
|
#
|
930
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
930
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
931
931
|
#
|
932
932
|
# # TODO: Initialize +crypto_key_version+:
|
933
933
|
# crypto_key_version = {}
|
@@ -974,7 +974,7 @@ module Google
|
|
974
974
|
# @example
|
975
975
|
# require "google/cloud/kms"
|
976
976
|
#
|
977
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
977
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
978
978
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY_PATH]")
|
979
979
|
#
|
980
980
|
# # TODO: Initialize +plaintext+:
|
@@ -1018,7 +1018,7 @@ module Google
|
|
1018
1018
|
# @example
|
1019
1019
|
# require "google/cloud/kms"
|
1020
1020
|
#
|
1021
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1021
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1022
1022
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
|
1023
1023
|
#
|
1024
1024
|
# # TODO: Initialize +ciphertext+:
|
@@ -1057,7 +1057,7 @@ module Google
|
|
1057
1057
|
# @example
|
1058
1058
|
# require "google/cloud/kms"
|
1059
1059
|
#
|
1060
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1060
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1061
1061
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
|
1062
1062
|
#
|
1063
1063
|
# # TODO: Initialize +crypto_key_version_id+:
|
@@ -1103,7 +1103,7 @@ module Google
|
|
1103
1103
|
# @example
|
1104
1104
|
# require "google/cloud/kms"
|
1105
1105
|
#
|
1106
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1106
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1107
1107
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_version_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]")
|
1108
1108
|
# response = key_management_service_client.destroy_crypto_key_version(formatted_name)
|
1109
1109
|
|
@@ -1139,7 +1139,7 @@ module Google
|
|
1139
1139
|
# @example
|
1140
1140
|
# require "google/cloud/kms"
|
1141
1141
|
#
|
1142
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1142
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1143
1143
|
# formatted_name = Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_version_path("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]")
|
1144
1144
|
# response = key_management_service_client.restore_crypto_key_version(formatted_name)
|
1145
1145
|
|
@@ -1179,7 +1179,7 @@ module Google
|
|
1179
1179
|
# @example
|
1180
1180
|
# require "google/cloud/kms"
|
1181
1181
|
#
|
1182
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1182
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1183
1183
|
# formatted_resource = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
|
1184
1184
|
#
|
1185
1185
|
# # TODO: Initialize +policy+:
|
@@ -1218,7 +1218,7 @@ module Google
|
|
1218
1218
|
# @example
|
1219
1219
|
# require "google/cloud/kms"
|
1220
1220
|
#
|
1221
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1221
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1222
1222
|
# formatted_resource = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
|
1223
1223
|
# response = key_management_service_client.get_iam_policy(formatted_resource)
|
1224
1224
|
|
@@ -1257,7 +1257,7 @@ module Google
|
|
1257
1257
|
# @example
|
1258
1258
|
# require "google/cloud/kms"
|
1259
1259
|
#
|
1260
|
-
# key_management_service_client = Google::Cloud::Kms.new(version: :
|
1260
|
+
# key_management_service_client = Google::Cloud::Kms.new(version: :v1)
|
1261
1261
|
# formatted_resource = Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path("[PROJECT]", "[LOCATION]", "[KEY_RING]")
|
1262
1262
|
#
|
1263
1263
|
# # TODO: Initialize +permissions+:
|
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: 0.2.
|
4
|
+
version: 0.2.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: 2018-
|
11
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redcarpet
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rubocop
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +94,20 @@ dependencies:
|
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0.9'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.9'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.9'
|
83
111
|
description: google-cloud-kms is the official library for Google Cloud Key Management
|
84
112
|
Service (KMS) API.
|
85
113
|
email: googleapis-packages@google.com
|