google-cloud-kms 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIGRATING.md +1 -1
- data/lib/google/cloud/kms/version.rb +1 -1
- data/lib/google/cloud/kms.rb +54 -0
- 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: b90768c9f373a6fb3fe7c432c1632721af4e4af01596ddef3bcdc94b4d668521
|
4
|
+
data.tar.gz: c038c594a6e9c6e06c7e2065ad9fa544585d7423daa6104c51c9d02d397b4927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7164cf7922e4ddbb008afaed0238d4c6d2b89764e9817ec7c1b65522c654a5218b4a5d19f9fae41049645758afb9325e3b49d887186680c26f711ecf6de3dc70
|
7
|
+
data.tar.gz: 9e15079040961ac6ac8c991078a758c5a9481465dfc7462bad15272bd06db098864160baae95d7bad3741a255d610bf77fa8bde8f18edba75c84c1564a2cb2b5
|
data/MIGRATING.md
CHANGED
@@ -268,7 +268,7 @@ end
|
|
268
268
|
### Handling Errors
|
269
269
|
|
270
270
|
The client reports standard
|
271
|
-
|
271
|
+
[gRPC error codes](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md)
|
272
272
|
by raising exceptions. In older releases, these exceptions were located in the
|
273
273
|
`Google::Gax` namespace and were subclasses of the `Google::Gax::GaxError` base
|
274
274
|
exception class, defined in the `google-gax` gem. However, these classes were
|
data/lib/google/cloud/kms.rb
CHANGED
@@ -85,6 +85,60 @@ module Google
|
|
85
85
|
package_module.const_get(:KeyManagementService).const_get(:Client).new(&block)
|
86
86
|
end
|
87
87
|
|
88
|
+
##
|
89
|
+
# Create a new client object for IAMPolicy.
|
90
|
+
#
|
91
|
+
# By default, this returns an instance of
|
92
|
+
# [Google::Cloud::Kms::V1::IAMPolicy::Client](https://googleapis.dev/ruby/google-cloud-kms-v1/latest/Google/Cloud/Kms/V1/IAMPolicy/Client.html)
|
93
|
+
# for version V1 of the API.
|
94
|
+
# However, you can specify specify a different API version by passing it in the
|
95
|
+
# `version` parameter. If the IAMPolicy service is
|
96
|
+
# supported by that API version, and the corresponding gem is available, the
|
97
|
+
# appropriate versioned client will be returned.
|
98
|
+
#
|
99
|
+
# ## About IAMPolicy
|
100
|
+
#
|
101
|
+
# ## API Overview
|
102
|
+
#
|
103
|
+
# Manages Identity and Access Management (IAM) policies.
|
104
|
+
#
|
105
|
+
# Any implementation of an API that offers access control features
|
106
|
+
# implements the google.iam.v1.IAMPolicy interface.
|
107
|
+
#
|
108
|
+
# ## Data model
|
109
|
+
#
|
110
|
+
# Access control is applied when a principal (user or service account), takes
|
111
|
+
# some action on a resource exposed by a service. Resources, identified by
|
112
|
+
# URI-like names, are the unit of access control specification. Service
|
113
|
+
# implementations can choose the granularity of access control and the
|
114
|
+
# supported permissions for their resources.
|
115
|
+
# For example one database service may allow access control to be
|
116
|
+
# specified only at the Table level, whereas another might allow access control
|
117
|
+
# to also be specified at the Column level.
|
118
|
+
#
|
119
|
+
# ## Policy Structure
|
120
|
+
#
|
121
|
+
# See google.iam.v1.Policy
|
122
|
+
#
|
123
|
+
# This is intentionally not a CRUD style API because access control policies
|
124
|
+
# are created and deleted implicitly with the resources to which they are
|
125
|
+
# attached.
|
126
|
+
#
|
127
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
128
|
+
# Defaults to `:v1`.
|
129
|
+
# @return [IAMPolicy::Client] A client object for the specified version.
|
130
|
+
#
|
131
|
+
def self.iam_policy version: :v1, &block
|
132
|
+
require "google/cloud/kms/#{version.to_s.downcase}"
|
133
|
+
|
134
|
+
package_name = Google::Cloud::Kms
|
135
|
+
.constants
|
136
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
137
|
+
.first
|
138
|
+
package_module = Google::Cloud::Kms.const_get package_name
|
139
|
+
package_module.const_get(:IAMPolicy).const_get(:Client).new(&block)
|
140
|
+
end
|
141
|
+
|
88
142
|
##
|
89
143
|
# Configure the google-cloud-kms library.
|
90
144
|
#
|
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.
|
4
|
+
version: 2.2.0
|
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-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|