google-cloud-kms 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/kms.rb +6 -0
- data/lib/google/cloud/kms/v1.rb +6 -0
- data/lib/google/cloud/kms/v1/credentials.rb +1 -0
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/resources.rb +1 -0
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/service.rb +3 -2
- data/lib/google/cloud/kms/v1/doc/google/iam/v1/iam_policy.rb +4 -3
- data/lib/google/cloud/kms/v1/doc/google/iam/v1/policy.rb +5 -4
- data/lib/google/cloud/kms/v1/doc/google/protobuf/duration.rb +1 -0
- data/lib/google/cloud/kms/v1/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/kms/v1/doc/google/protobuf/timestamp.rb +9 -6
- data/lib/google/cloud/kms/v1/doc/overview.rb +1 -0
- data/lib/google/cloud/kms/v1/key_management_service_client.rb +7 -5
- data/lib/google/cloud/kms/v1/resources_pb.rb +1 -0
- data/lib/google/cloud/kms/v1/service_pb.rb +1 -0
- data/lib/google/cloud/kms/v1/service_services_pb.rb +1 -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: fd3abb269ec04fc114467064d0c5eb206a471a379b7be28a084c5d39da9abb86
|
4
|
+
data.tar.gz: 770f440cb19a642e11d3238fcf50c2bc6be99e4684b817c158cbfe9447ce647b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5b8d2864052c66b6e6c9d529ddc2d537e2880b315d920080662412b75b947cbffcd2fde915cdd4b8c5836bcb7fbf0010f585044de8931b80d3f49d64ee06820
|
7
|
+
data.tar.gz: 1b9c2c96d27cb7c6d35b0fc8dd553e0cf19a2f54d40f18fb4e2024e4899ddf6bd87d1907711bdc1480afa9ce7e51c05abb8119a47c6b1ba196e2058523df8f05
|
data/lib/google/cloud/kms.rb
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/gax"
|
16
17
|
require "pathname"
|
17
18
|
|
@@ -36,6 +37,11 @@ module Google
|
|
36
37
|
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/library/cloudkms.googleapis.com)
|
37
38
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
38
39
|
#
|
40
|
+
# ### Installation
|
41
|
+
# ```
|
42
|
+
# $ gem install google-cloud-kms
|
43
|
+
# ```
|
44
|
+
#
|
39
45
|
# ### Next Steps
|
40
46
|
# - Read the [Google Cloud Key Management Service (KMS) API Product documentation][Product Documentation]
|
41
47
|
# to learn more about the product and see How-to Guides.
|
data/lib/google/cloud/kms/v1.rb
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/cloud/kms/v1/key_management_service_client"
|
16
17
|
|
17
18
|
module Google
|
@@ -36,6 +37,11 @@ module Google
|
|
36
37
|
# 3. [Enable the Google Cloud Key Management Service (KMS) API.](https://console.cloud.google.com/apis/library/cloudkms.googleapis.com)
|
37
38
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
38
39
|
#
|
40
|
+
# ### Installation
|
41
|
+
# ```
|
42
|
+
# $ gem install google-cloud-kms
|
43
|
+
# ```
|
44
|
+
#
|
39
45
|
# ### Next Steps
|
40
46
|
# - Read the [Google Cloud Key Management Service (KMS) API Product documentation][Product Documentation]
|
41
47
|
# to learn more about the product and see How-to Guides.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Cloud
|
17
18
|
module Kms
|
@@ -135,7 +136,7 @@ module Google
|
|
135
136
|
# @!attribute [rw] key_ring_id
|
136
137
|
# @return [String]
|
137
138
|
# Required. It must be unique within a location and match the regular
|
138
|
-
# expression +[a-zA-Z0-9_-]{1,63}+
|
139
|
+
# expression +[a-zA-Z0-9_-]\\{1,63}+
|
139
140
|
# @!attribute [rw] key_ring
|
140
141
|
# @return [Google::Cloud::Kms::V1::KeyRing]
|
141
142
|
# A {Google::Cloud::Kms::V1::KeyRing KeyRing} with initial field values.
|
@@ -149,7 +150,7 @@ module Google
|
|
149
150
|
# @!attribute [rw] crypto_key_id
|
150
151
|
# @return [String]
|
151
152
|
# Required. It must be unique within a KeyRing and match the regular
|
152
|
-
# expression +[a-zA-Z0-9_-]{1,63}+
|
153
|
+
# expression +[a-zA-Z0-9_-]\\{1,63}+
|
153
154
|
# @!attribute [rw] crypto_key
|
154
155
|
# @return [Google::Cloud::Kms::V1::CryptoKey]
|
155
156
|
# A {Google::Cloud::Kms::V1::CryptoKey CryptoKey} with initial field values.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Iam
|
17
18
|
module V1
|
@@ -20,7 +21,7 @@ module Google
|
|
20
21
|
# @return [String]
|
21
22
|
# REQUIRED: The resource for which the policy is being specified.
|
22
23
|
# +resource+ is usually specified as a path. For example, a Project
|
23
|
-
# resource is specified as +projects
|
24
|
+
# resource is specified as +projects/\\{project}+.
|
24
25
|
# @!attribute [rw] policy
|
25
26
|
# @return [Google::Iam::V1::Policy]
|
26
27
|
# REQUIRED: The complete policy to be applied to the +resource+. The size of
|
@@ -34,7 +35,7 @@ module Google
|
|
34
35
|
# @return [String]
|
35
36
|
# REQUIRED: The resource for which the policy is being requested.
|
36
37
|
# +resource+ is usually specified as a path. For example, a Project
|
37
|
-
# resource is specified as +projects
|
38
|
+
# resource is specified as +projects/\\{project}+.
|
38
39
|
class GetIamPolicyRequest; end
|
39
40
|
|
40
41
|
# Request message for +TestIamPermissions+ method.
|
@@ -42,7 +43,7 @@ module Google
|
|
42
43
|
# @return [String]
|
43
44
|
# REQUIRED: The resource for which the policy detail is being requested.
|
44
45
|
# +resource+ is usually specified as a path. For example, a Project
|
45
|
-
# resource is specified as +projects
|
46
|
+
# resource is specified as +projects/\\{project}+.
|
46
47
|
# @!attribute [rw] permissions
|
47
48
|
# @return [Array<String>]
|
48
49
|
# The set of permissions to check for the +resource+. Permissions with
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Iam
|
17
18
|
module V1
|
@@ -85,17 +86,17 @@ module Google
|
|
85
86
|
# * +allAuthenticatedUsers+: A special identifier that represents anyone
|
86
87
|
# who is authenticated with a Google account or a service account.
|
87
88
|
#
|
88
|
-
# * +user
|
89
|
+
# * +user:\\{emailid}+: An email address that represents a specific Google
|
89
90
|
# account. For example, +alice@gmail.com+ or +joe@example.com+.
|
90
91
|
#
|
91
92
|
#
|
92
|
-
# * +serviceAccount
|
93
|
+
# * +serviceAccount:\\{emailid}+: An email address that represents a service
|
93
94
|
# account. For example, +my-other-app@appspot.gserviceaccount.com+.
|
94
95
|
#
|
95
|
-
# * +group
|
96
|
+
# * +group:\\{emailid}+: An email address that represents a Google group.
|
96
97
|
# For example, +admins@example.com+.
|
97
98
|
#
|
98
|
-
# * +domain
|
99
|
+
# * +domain:\\{domain}+: A Google Apps domain name that represents all the
|
99
100
|
# users of that domain. For example, +google.com+ or +example.com+.
|
100
101
|
class Binding; end
|
101
102
|
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +FieldMask+ represents a set of symbolic field paths, for example:
|
@@ -215,6 +216,12 @@ module Google
|
|
215
216
|
#
|
216
217
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
218
|
# paths.
|
219
|
+
#
|
220
|
+
# == Field Mask Verification
|
221
|
+
#
|
222
|
+
# The implementation of any API method which has a FieldMask type field in the
|
223
|
+
# request should verify the included field paths, and return an
|
224
|
+
# +INVALID_ARGUMENT+ error if any path is duplicated or unmappable.
|
218
225
|
# @!attribute [rw] paths
|
219
226
|
# @return [Array<String>]
|
220
227
|
# The set of field mask paths.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# A Timestamp represents a point in time independent of any time zone
|
@@ -72,12 +73,14 @@ module Google
|
|
72
73
|
#
|
73
74
|
# In JSON format, the Timestamp type is encoded as a string in the
|
74
75
|
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
75
|
-
# format is "{year}
|
76
|
-
# where {year} is always expressed using four digits while {month}, {day},
|
77
|
-
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
76
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
77
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
78
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
78
79
|
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
79
80
|
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
80
|
-
# is required
|
81
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
82
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
83
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
81
84
|
#
|
82
85
|
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
83
86
|
# 01:30 UTC on January 15, 2017.
|
@@ -88,8 +91,8 @@ module Google
|
|
88
91
|
# to this format using [+strftime+](https://docs.python.org/2/library/time.html#time.strftime)
|
89
92
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
90
93
|
# can use the Joda Time's [+ISODateTimeFormat.dateTime()+](
|
91
|
-
# http://joda-time
|
92
|
-
# to obtain a formatter capable of generating timestamps in this format.
|
94
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
95
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
93
96
|
# @!attribute [rw] seconds
|
94
97
|
# @return [Integer]
|
95
98
|
# Represents seconds of UTC time since Unix epoch
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -46,6 +47,7 @@ module Google
|
|
46
47
|
# @!attribute [r] iam_policy_stub
|
47
48
|
# @return [Google::Iam::V1::IAMPolicy::Stub]
|
48
49
|
class KeyManagementServiceClient
|
50
|
+
# @private
|
49
51
|
attr_reader :key_management_service_stub, :iam_policy_stub
|
50
52
|
|
51
53
|
# The default address of the service.
|
@@ -717,7 +719,7 @@ module Google
|
|
717
719
|
# {Google::Cloud::Kms::V1::KeyRing KeyRings}, in the format +projects/*/locations/*+.
|
718
720
|
# @param key_ring_id [String]
|
719
721
|
# Required. It must be unique within a location and match the regular
|
720
|
-
# expression +[a-zA-Z0-9_-]{1,63}+
|
722
|
+
# expression +[a-zA-Z0-9_-]\\{1,63}+
|
721
723
|
# @param key_ring [Google::Cloud::Kms::V1::KeyRing | Hash]
|
722
724
|
# A {Google::Cloud::Kms::V1::KeyRing KeyRing} with initial field values.
|
723
725
|
# A hash of the same form as `Google::Cloud::Kms::V1::KeyRing`
|
@@ -767,7 +769,7 @@ module Google
|
|
767
769
|
# {Google::Cloud::Kms::V1::CryptoKey CryptoKeys}.
|
768
770
|
# @param crypto_key_id [String]
|
769
771
|
# Required. It must be unique within a KeyRing and match the regular
|
770
|
-
# expression +[a-zA-Z0-9_-]{1,63}+
|
772
|
+
# expression +[a-zA-Z0-9_-]\\{1,63}+
|
771
773
|
# @param crypto_key [Google::Cloud::Kms::V1::CryptoKey | Hash]
|
772
774
|
# A {Google::Cloud::Kms::V1::CryptoKey CryptoKey} with initial field values.
|
773
775
|
# A hash of the same form as `Google::Cloud::Kms::V1::CryptoKey`
|
@@ -1160,7 +1162,7 @@ module Google
|
|
1160
1162
|
# @param resource [String]
|
1161
1163
|
# REQUIRED: The resource for which the policy is being specified.
|
1162
1164
|
# +resource+ is usually specified as a path. For example, a Project
|
1163
|
-
# resource is specified as +projects
|
1165
|
+
# resource is specified as +projects/\\{project}+.
|
1164
1166
|
# @param policy [Google::Iam::V1::Policy | Hash]
|
1165
1167
|
# REQUIRED: The complete policy to be applied to the +resource+. The size of
|
1166
1168
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
@@ -1206,7 +1208,7 @@ module Google
|
|
1206
1208
|
# @param resource [String]
|
1207
1209
|
# REQUIRED: The resource for which the policy is being requested.
|
1208
1210
|
# +resource+ is usually specified as a path. For example, a Project
|
1209
|
-
# resource is specified as +projects
|
1211
|
+
# resource is specified as +projects/\\{project}+.
|
1210
1212
|
# @param options [Google::Gax::CallOptions]
|
1211
1213
|
# Overrides the default settings for this call, e.g, timeout,
|
1212
1214
|
# retries, etc.
|
@@ -1240,7 +1242,7 @@ module Google
|
|
1240
1242
|
# @param resource [String]
|
1241
1243
|
# REQUIRED: The resource for which the policy detail is being requested.
|
1242
1244
|
# +resource+ is usually specified as a path. For example, a Project
|
1243
|
-
# resource is specified as +projects
|
1245
|
+
# resource is specified as +projects/\\{project}+.
|
1244
1246
|
# @param permissions [Array<String>]
|
1245
1247
|
# The set of permissions to check for the +resource+. Permissions with
|
1246
1248
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
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.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: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|