google-cloud-kms-v1 0.10.2 → 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/AUTHENTICATION.md +6 -6
- data/README.md +14 -9
- data/lib/google/cloud/kms/v1/ekm_service/client.rb +731 -0
- data/lib/google/cloud/kms/v1/ekm_service/credentials.rb +52 -0
- data/lib/google/cloud/kms/v1/ekm_service/paths.rb +90 -0
- data/lib/google/cloud/kms/v1/ekm_service.rb +53 -0
- data/lib/google/cloud/kms/v1/ekm_service_pb.rb +80 -0
- data/lib/google/cloud/kms/v1/ekm_service_services_pb.rb +57 -0
- data/lib/google/cloud/kms/v1/iam_policy/client.rb +13 -4
- data/lib/google/cloud/kms/v1/iam_policy.rb +2 -1
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +427 -276
- data/lib/google/cloud/kms/v1/resources_pb.rb +12 -2
- data/lib/google/cloud/kms/v1/service_pb.rb +2 -1
- data/lib/google/cloud/kms/v1/service_services_pb.rb +84 -48
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/lib/google/cloud/kms/v1.rb +4 -1
- data/proto_docs/google/cloud/kms/v1/ekm_service.rb +226 -0
- data/proto_docs/google/cloud/kms/v1/resources.rb +299 -160
- data/proto_docs/google/cloud/kms/v1/service.rb +653 -412
- data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
- data/proto_docs/google/iam/v1/options.rb +14 -4
- data/proto_docs/google/iam/v1/policy.rb +208 -38
- metadata +23 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f10686db80a964240043f203dded6a9074650cf7f3653cb737c3d3b89f5009b
|
4
|
+
data.tar.gz: 9475c9e13b2d034a930443788b4b21cb5219912ec3df417b173dbc2b0fc40a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036c2b4564f29cc9f45b284811a19bf320d97d16749869f37fb4f773b412b7d1f9cd8d8f20d725de658b0bac229e76106d14a77d4a35056c06fdf603cf5b6342
|
7
|
+
data.tar.gz: ed3f825d6e63158921be8774fffdd52180758a6b725a28ea98bcd4909c001ec9f57d64f7803985e99216cfb25d1ad48c1d8fe21ef3c75dc81c001e601e38a2c2
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export KMS_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/kms/v1"
|
29
29
|
|
30
|
-
client = ::Google::Cloud::Kms::V1::
|
30
|
+
client = ::Google::Cloud::Kms::V1::EkmService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-kms-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{::Google::Cloud::Kms::V1::
|
67
|
+
{::Google::Cloud::Kms::V1::EkmService::Credentials}):
|
68
68
|
|
69
69
|
* `KMS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `KMS_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/kms/v1"
|
|
77
77
|
|
78
78
|
ENV["KMS_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = ::Google::Cloud::Kms::V1::
|
80
|
+
client = ::Google::Cloud::Kms::V1::EkmService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ it in an environment variable. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/kms/v1"
|
90
90
|
|
91
|
-
client = ::Google::Cloud::Kms::V1::
|
91
|
+
client = ::Google::Cloud::Kms::V1::EkmService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/kms/v1"
|
100
100
|
|
101
|
-
::Google::Cloud::Kms::V1::
|
101
|
+
::Google::Cloud::Kms::V1::EkmService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = ::Google::Cloud::Kms::V1::
|
105
|
+
client = ::Google::Cloud::Kms::V1::EkmService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -32,12 +32,12 @@ In order to use this library, you first need to go through the following steps:
|
|
32
32
|
```ruby
|
33
33
|
require "google/cloud/kms/v1"
|
34
34
|
|
35
|
-
client = ::Google::Cloud::Kms::V1::
|
36
|
-
request = ::Google::Cloud::Kms::V1::
|
37
|
-
response = client.
|
35
|
+
client = ::Google::Cloud::Kms::V1::EkmService::Client.new
|
36
|
+
request = ::Google::Cloud::Kms::V1::ListEkmConnectionsRequest.new # (request fields as keyword arguments...)
|
37
|
+
response = client.list_ekm_connections request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/kms)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|