google-cloud-kms 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +61 -2
- 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: 201bfd363234aefb913ed8b088aa2cede51afe4943a882114839e8c582d3b018
|
4
|
+
data.tar.gz: 6cc2f6753495b80bc49d92a40034bed8c8fa74dedfa4769063c7c294d935452d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dbe4d31d73a2b2bad63a50217ceb5e4e74e3aa3d868811cff3d2b10855f9ddf9d156fca90672c95f28fc778df8bd88ff7f5454ae9c44d9f25fef8856e073263
|
7
|
+
data.tar.gz: d30c7188a05c2152947ac0190ebd2af0c65d611b5ef91d56a2db5b4b84afc031e1dc3f1f39540e30922111d239dba0a7aed4598e9f260ea555eeea4c133c3e77
|
data/README.md
CHANGED
@@ -6,9 +6,10 @@ Manages keys and performs cryptographic operations in a central cloud service, f
|
|
6
6
|
|
7
7
|
Actual client classes for the various versions of this API are defined in
|
8
8
|
_versioned_ client gems, with names of the form `google-cloud-kms-v*`.
|
9
|
-
The gem `google-cloud-kms` is
|
9
|
+
The gem `google-cloud-kms` is the main client library that brings the
|
10
10
|
verisoned gems in as dependencies, and provides high-level methods for
|
11
|
-
constructing clients.
|
11
|
+
constructing clients. More information on versioned clients can be found below
|
12
|
+
in the section titled *Which client should I use?*.
|
12
13
|
|
13
14
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-kms/latest)
|
14
15
|
for this library, google-cloud-kms, to see the convenience methods for
|
@@ -77,3 +78,61 @@ in security maintenance, and not end of life. Currently, this means Ruby 2.4
|
|
77
78
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
78
79
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
79
80
|
about the Ruby support schedule.
|
81
|
+
|
82
|
+
## Which client should I use?
|
83
|
+
|
84
|
+
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
85
|
+
client library with a name such as `google-cloud-kms`,
|
86
|
+
and lower-level _versioned_ client libraries with names such as
|
87
|
+
`google-cloud-kms-v1`.
|
88
|
+
_In most cases, you should install the main client._
|
89
|
+
|
90
|
+
### What's the difference between the main client and a versioned client?
|
91
|
+
|
92
|
+
A _versioned client_ provides a basic set of data types and client classes for
|
93
|
+
a _single version_ of a specific service. (That is, for a service with multiple
|
94
|
+
versions, there might be a separate versioned client for each service version.)
|
95
|
+
Most versioned clients are written and maintained by a code generator.
|
96
|
+
|
97
|
+
The _main client_ is designed to provide you with the _recommended_ client
|
98
|
+
interfaces for the service. There will be only one main client for any given
|
99
|
+
service, even a service with multiple versions. The main client includes
|
100
|
+
factory methods for constructing the client objects we recommend for most
|
101
|
+
users. In some cases, those will be classes provided by an underlying versioned
|
102
|
+
client; in other cases, they will be handwritten higher-level client objects
|
103
|
+
with additional capabilities, convenience methods, or best practices built in.
|
104
|
+
Generally, the main client will default to a recommended service version,
|
105
|
+
although in some cases you can override this if you need to talk to a specific
|
106
|
+
service version.
|
107
|
+
|
108
|
+
### Why would I want to use the main client?
|
109
|
+
|
110
|
+
We recommend that most users install the main client gem for a service. You can
|
111
|
+
identify this gem as the one _without_ a version in its name, e.g.
|
112
|
+
`google-cloud-kms`.
|
113
|
+
The main client is recommended because it will embody the best practices for
|
114
|
+
accessing the service, and may also provide more convenient interfaces or
|
115
|
+
tighter integration into frameworks and third-party libraries. In addition, the
|
116
|
+
documentation and samples published by Google will generally demonstrate use of
|
117
|
+
the main client.
|
118
|
+
|
119
|
+
### Why would I want to use a versioned client?
|
120
|
+
|
121
|
+
You can use a versioned client if you are content with a possibly lower-level
|
122
|
+
class interface, you explicitly want to avoid features provided by the main
|
123
|
+
client, or you want to access a specific service version not be covered by the
|
124
|
+
main client. You can identify versioned client gems because the service version
|
125
|
+
is part of the name, e.g. `google-cloud-kms-v1`.
|
126
|
+
|
127
|
+
### What about the google-apis-<name> clients?
|
128
|
+
|
129
|
+
Client library gems with names that begin with `google-apis-` are based on an
|
130
|
+
older code generation technology. They talk to a REST/JSON backend (whereas
|
131
|
+
most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
|
132
|
+
not offer the same performance, features, and ease of use provided by more
|
133
|
+
modern clients.
|
134
|
+
|
135
|
+
The `google-apis-` clients have wide coverage across Google services, so you
|
136
|
+
might need to use one if there is no modern client available for the service.
|
137
|
+
However, if a modern client is available, we generally recommend it over the
|
138
|
+
older `google-apis-` clients.
|
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: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|