google-cloud-kms 0.2.5 → 0.3.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/kms.rb +2 -2
- data/lib/google/cloud/kms/v1.rb +2 -2
- data/lib/google/cloud/kms/v1/credentials.rb +1 -1
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/resources.rb +1 -1
- data/lib/google/cloud/kms/v1/doc/google/cloud/kms/v1/service.rb +1 -1
- data/lib/google/cloud/kms/v1/doc/google/iam/v1/iam_policy.rb +1 -43
- data/lib/google/cloud/kms/v1/doc/google/iam/v1/policy.rb +1 -108
- data/lib/google/cloud/kms/v1/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/kms/v1/doc/google/protobuf/field_mask.rb +1 -1
- data/lib/google/cloud/kms/v1/doc/google/protobuf/timestamp.rb +1 -1
- data/lib/google/cloud/kms/v1/helpers.rb +15 -15
- data/lib/google/cloud/kms/v1/key_management_service_client.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec163d046bca9e1cd304f37b5b1d412017ebafbc777cf35b9b51b1b66219a223
|
4
|
+
data.tar.gz: 5c309df7134b5d315326087c4dc4b9587b2d2583f4f4b4a1b83169d41787b926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feb4407b2af7d2d1a5f68059668414122ddaf1555163cda0687f11b0298c3a96351e7bee266893d0ff66bc17ed5f6384c957d3d2a2172c7319450582ee3490dd
|
7
|
+
data.tar.gz: be09802523463180a1c69b1beeb9ebc1c4c8ffa2c934af957ae0e803b1e6da2b422ee7c7216cd62d5a9d5ebe787938c117eb116cc9216a7f656bb43f2fc822d2
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruby Client for Cloud Key Management Service (KMS) API ([
|
1
|
+
# Ruby Client for Cloud Key Management Service (KMS) API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
2
2
|
|
3
3
|
[Cloud Key Management Service (KMS) API][Product Documentation]:
|
4
4
|
Manages keys and performs cryptographic operations in a central cloud
|
data/lib/google/cloud/kms.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Key Management Service (KMS) API ([
|
24
|
+
# # Ruby Client for Cloud Key Management Service (KMS) API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
26
|
# [Cloud Key Management Service (KMS) API][Product Documentation]:
|
27
27
|
# Manages keys and performs cryptographic operations in a central cloud
|
data/lib/google/cloud/kms/v1.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rubocop:disable LineLength
|
24
24
|
|
25
25
|
##
|
26
|
-
# # Ruby Client for Cloud Key Management Service (KMS) API ([
|
26
|
+
# # Ruby Client for Cloud Key Management Service (KMS) API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
27
27
|
#
|
28
28
|
# [Cloud Key Management Service (KMS) API][Product Documentation]:
|
29
29
|
# Manages keys and performs cryptographic operations in a central cloud
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -16,48 +16,6 @@
|
|
16
16
|
module Google
|
17
17
|
module Iam
|
18
18
|
module V1
|
19
|
-
# Request message for `SetIamPolicy` method.
|
20
|
-
# @!attribute [rw] resource
|
21
|
-
# @return [String]
|
22
|
-
# REQUIRED: The resource for which the policy is being specified.
|
23
|
-
# `resource` is usually specified as a path. For example, a Project
|
24
|
-
# resource is specified as `projects/{project}`.
|
25
|
-
# @!attribute [rw] policy
|
26
|
-
# @return [Google::Iam::V1::Policy]
|
27
|
-
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
28
|
-
# the policy is limited to a few 10s of KB. An empty policy is a
|
29
|
-
# valid policy but certain Cloud Platform services (such as Projects)
|
30
|
-
# might reject them.
|
31
|
-
class SetIamPolicyRequest; end
|
32
|
-
|
33
|
-
# Request message for `GetIamPolicy` method.
|
34
|
-
# @!attribute [rw] resource
|
35
|
-
# @return [String]
|
36
|
-
# REQUIRED: The resource for which the policy is being requested.
|
37
|
-
# `resource` is usually specified as a path. For example, a Project
|
38
|
-
# resource is specified as `projects/{project}`.
|
39
|
-
class GetIamPolicyRequest; end
|
40
|
-
|
41
|
-
# Request message for `TestIamPermissions` method.
|
42
|
-
# @!attribute [rw] resource
|
43
|
-
# @return [String]
|
44
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
45
|
-
# `resource` is usually specified as a path. For example, a Project
|
46
|
-
# resource is specified as `projects/{project}`.
|
47
|
-
# @!attribute [rw] permissions
|
48
|
-
# @return [Array<String>]
|
49
|
-
# The set of permissions to check for the `resource`. Permissions with
|
50
|
-
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
51
|
-
# information see
|
52
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
53
|
-
class TestIamPermissionsRequest; end
|
54
|
-
|
55
|
-
# Response message for `TestIamPermissions` method.
|
56
|
-
# @!attribute [rw] permissions
|
57
|
-
# @return [Array<String>]
|
58
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
59
|
-
# allowed.
|
60
|
-
class TestIamPermissionsResponse; end
|
61
19
|
end
|
62
20
|
end
|
63
21
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -16,113 +16,6 @@
|
|
16
16
|
module Google
|
17
17
|
module Iam
|
18
18
|
module V1
|
19
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
20
|
-
# specify access control policies for Cloud Platform resources.
|
21
|
-
#
|
22
|
-
#
|
23
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
24
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
25
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
26
|
-
# defined by IAM.
|
27
|
-
#
|
28
|
-
# **Example**
|
29
|
-
#
|
30
|
-
# {
|
31
|
-
# "bindings": [
|
32
|
-
# {
|
33
|
-
# "role": "roles/owner",
|
34
|
-
# "members": [
|
35
|
-
# "user:mike@example.com",
|
36
|
-
# "group:admins@example.com",
|
37
|
-
# "domain:google.com",
|
38
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
39
|
-
# ]
|
40
|
-
# },
|
41
|
-
# {
|
42
|
-
# "role": "roles/viewer",
|
43
|
-
# "members": ["user:sean@example.com"]
|
44
|
-
# }
|
45
|
-
# ]
|
46
|
-
# }
|
47
|
-
#
|
48
|
-
# For a description of IAM and its features, see the
|
49
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
50
|
-
# @!attribute [rw] version
|
51
|
-
# @return [Integer]
|
52
|
-
# Version of the `Policy`. The default version is 0.
|
53
|
-
# @!attribute [rw] bindings
|
54
|
-
# @return [Array<Google::Iam::V1::Binding>]
|
55
|
-
# Associates a list of `members` to a `role`.
|
56
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
57
|
-
# `bindings` with no members will result in an error.
|
58
|
-
# @!attribute [rw] etag
|
59
|
-
# @return [String]
|
60
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
61
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
62
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
63
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
64
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
65
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
66
|
-
# ensure that their change will be applied to the same version of the policy.
|
67
|
-
#
|
68
|
-
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
69
|
-
# policy is overwritten blindly.
|
70
|
-
class Policy; end
|
71
|
-
|
72
|
-
# Associates `members` with a `role`.
|
73
|
-
# @!attribute [rw] role
|
74
|
-
# @return [String]
|
75
|
-
# Role that is assigned to `members`.
|
76
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
77
|
-
# Required
|
78
|
-
# @!attribute [rw] members
|
79
|
-
# @return [Array<String>]
|
80
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
81
|
-
# `members` can have the following values:
|
82
|
-
#
|
83
|
-
# * `allUsers`: A special identifier that represents anyone who is
|
84
|
-
# on the internet; with or without a Google account.
|
85
|
-
#
|
86
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
87
|
-
# who is authenticated with a Google account or a service account.
|
88
|
-
#
|
89
|
-
# * `user:{emailid}`: An email address that represents a specific Google
|
90
|
-
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
91
|
-
#
|
92
|
-
#
|
93
|
-
# * `serviceAccount:{emailid}`: An email address that represents a service
|
94
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
95
|
-
#
|
96
|
-
# * `group:{emailid}`: An email address that represents a Google group.
|
97
|
-
# For example, `admins@example.com`.
|
98
|
-
#
|
99
|
-
# * `domain:{domain}`: A Google Apps domain name that represents all the
|
100
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
101
|
-
class Binding; end
|
102
|
-
|
103
|
-
# The difference delta between two policies.
|
104
|
-
# @!attribute [rw] binding_deltas
|
105
|
-
# @return [Array<Google::Iam::V1::BindingDelta>]
|
106
|
-
# The delta for Bindings between two policies.
|
107
|
-
class PolicyDelta; end
|
108
|
-
|
109
|
-
# One delta entry for Binding. Each individual change (only one member in each
|
110
|
-
# entry) to a binding will be a separate entry.
|
111
|
-
# @!attribute [rw] action
|
112
|
-
# @return [Google::Iam::V1::BindingDelta::Action]
|
113
|
-
# The action that was performed on a Binding.
|
114
|
-
# Required
|
115
|
-
# @!attribute [rw] role
|
116
|
-
# @return [String]
|
117
|
-
# Role that is assigned to `members`.
|
118
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
119
|
-
# Required
|
120
|
-
# @!attribute [rw] member
|
121
|
-
# @return [String]
|
122
|
-
# A single identity requesting access for a Cloud Platform resource.
|
123
|
-
# Follows the same format of Binding.members.
|
124
|
-
# Required
|
125
|
-
class BindingDelta; end
|
126
19
|
end
|
127
20
|
end
|
128
21
|
end
|
@@ -16,44 +16,44 @@
|
|
16
16
|
module Kms
|
17
17
|
module V1
|
18
18
|
class KeyManagementServiceClient
|
19
|
-
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.
|
19
|
+
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path.
|
20
20
|
# @param project [String]
|
21
21
|
# @param location [String]
|
22
22
|
# @param key_ring [String]
|
23
23
|
# @param crypto_key [String]
|
24
|
-
# @param crypto_key_version [String]
|
25
24
|
# @return [String]
|
26
|
-
def
|
27
|
-
self.class.
|
25
|
+
def crypto_key_path project, location, key_ring, crypto_key
|
26
|
+
self.class.crypto_key_path project, location, key_ring, crypto_key
|
28
27
|
end
|
29
28
|
|
30
|
-
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.
|
29
|
+
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path_path.
|
31
30
|
# @param project [String]
|
32
31
|
# @param location [String]
|
33
32
|
# @param key_ring [String]
|
33
|
+
# @param crypto_key_path [String]
|
34
34
|
# @return [String]
|
35
|
-
def
|
36
|
-
self.class.
|
35
|
+
def crypto_key_path_path project, location, key_ring, crypto_key_path
|
36
|
+
self.class.crypto_key_path_path project, location, key_ring, crypto_key_path
|
37
37
|
end
|
38
38
|
|
39
|
-
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.
|
39
|
+
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_version_path.
|
40
40
|
# @param project [String]
|
41
41
|
# @param location [String]
|
42
42
|
# @param key_ring [String]
|
43
|
-
# @param
|
43
|
+
# @param crypto_key [String]
|
44
|
+
# @param crypto_key_version [String]
|
44
45
|
# @return [String]
|
45
|
-
def
|
46
|
-
self.class.
|
46
|
+
def crypto_key_version_path project, location, key_ring, crypto_key, crypto_key_version
|
47
|
+
self.class.crypto_key_version_path project, location, key_ring, crypto_key, crypto_key_version
|
47
48
|
end
|
48
49
|
|
49
|
-
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.
|
50
|
+
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path.
|
50
51
|
# @param project [String]
|
51
52
|
# @param location [String]
|
52
53
|
# @param key_ring [String]
|
53
|
-
# @param crypto_key [String]
|
54
54
|
# @return [String]
|
55
|
-
def
|
56
|
-
self.class.
|
55
|
+
def key_ring_path project, location, key_ring
|
56
|
+
self.class.key_ring_path project, location, key_ring
|
57
57
|
end
|
58
58
|
|
59
59
|
# Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.location_path.
|
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.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.61.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.61.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.7.
|
157
|
+
rubygems_version: 2.7.6
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: API Client library for Cloud Key Management Service (KMS) API
|