google-cloud-kms 2.1.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d11d4a06c54157c231d6490458bf7fde3befcaba44903122b1f1bbe5591c6de
4
- data.tar.gz: 03f0ab5ea9020045c61fd3a32d5a6b2ce980b42efcc21b3c45ce17ff56863c92
3
+ metadata.gz: b90768c9f373a6fb3fe7c432c1632721af4e4af01596ddef3bcdc94b4d668521
4
+ data.tar.gz: c038c594a6e9c6e06c7e2065ad9fa544585d7423daa6104c51c9d02d397b4927
5
5
  SHA512:
6
- metadata.gz: 7bb9dde205f03809ee6a142e8f8cdf30edf70da8b6ebb3927cbc899bd80c76eb769f4e6c7bcac42cff05155c10e05c786d70cbdc380fe24e73b899c05a451872
7
- data.tar.gz: 25e7881a5d22d39ce24da8cedf1e5ab7fcd95a9580e572adbdce9c25492c5624bdde5659256f790be740fa959e76d7cb0ce37ed64775cd0099e091ed79a3b8ed
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
- {file:https://github.com/grpc/grpc/blob/master/doc/statuscodes.md gRPC error codes}
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
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Kms
23
- VERSION = "2.1.2"
23
+ VERSION = "2.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.1.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-07-12 00:00:00.000000000 Z
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