google-cloud-kms-v1 0.3.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +5 -5
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/kms/v1/iam_policy/client.rb +14 -8
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +57 -113
- data/lib/google/cloud/kms/v1/resources_pb.rb +1 -0
- data/lib/google/cloud/kms/v1/service_services_pb.rb +2 -1
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/cloud/kms/v1/resources.rb +4 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +21 -14
- data/lib/google/iam/v1/iam_policy_services_pb.rb +0 -81
@@ -19,30 +19,53 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
27
53
|
# @!attribute [rw] expression
|
28
54
|
# @return [::String]
|
29
|
-
# Textual representation of an expression in
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# The application context of the containing message determines which
|
33
|
-
# well-known feature set of CEL is supported.
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
34
57
|
# @!attribute [rw] title
|
35
58
|
# @return [::String]
|
36
|
-
#
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
37
60
|
# its purpose. This can be used e.g. in UIs which allow to enter the
|
38
61
|
# expression.
|
39
62
|
# @!attribute [rw] description
|
40
63
|
# @return [::String]
|
41
|
-
#
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
42
65
|
# describes the expression, e.g. when hovered over it in a UI.
|
43
66
|
# @!attribute [rw] location
|
44
67
|
# @return [::String]
|
45
|
-
#
|
68
|
+
# Optional. String indicating the location of the expression for error
|
46
69
|
# reporting, e.g. a file name and a position in the file.
|
47
70
|
class Expr
|
48
71
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-kms-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
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-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +53,7 @@ dependencies:
|
|
47
53
|
version: 0.6.10
|
48
54
|
- - "<"
|
49
55
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
56
|
+
version: 2.a
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,21 +63,21 @@ dependencies:
|
|
57
63
|
version: 0.6.10
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
66
|
+
version: 2.a
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: google-style
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
71
|
- - "~>"
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
73
|
+
version: 1.25.1
|
68
74
|
type: :development
|
69
75
|
prerelease: false
|
70
76
|
version_requirements: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
78
|
- - "~>"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
80
|
+
version: 1.25.1
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: minitest
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +177,9 @@ dependencies:
|
|
171
177
|
- !ruby/object:Gem::Version
|
172
178
|
version: '0.9'
|
173
179
|
description: Manages keys and performs cryptographic operations in a central cloud
|
174
|
-
service, for direct use by other cloud resources and applications.
|
180
|
+
service, for direct use by other cloud resources and applications. Note that google-cloud-kms-v1
|
181
|
+
is a version-specific client library. For most uses, we recommend installing the
|
182
|
+
main client library google-cloud-kms instead. See the readme for more details.
|
175
183
|
email: googleapis-packages@google.com
|
176
184
|
executables: []
|
177
185
|
extensions: []
|
@@ -194,7 +202,6 @@ files:
|
|
194
202
|
- lib/google/cloud/kms/v1/service_pb.rb
|
195
203
|
- lib/google/cloud/kms/v1/service_services_pb.rb
|
196
204
|
- lib/google/cloud/kms/v1/version.rb
|
197
|
-
- lib/google/iam/v1/iam_policy_services_pb.rb
|
198
205
|
- proto_docs/README.md
|
199
206
|
- proto_docs/google/api/field_behavior.rb
|
200
207
|
- proto_docs/google/api/resource.rb
|
@@ -220,14 +227,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
227
|
requirements:
|
221
228
|
- - ">="
|
222
229
|
- !ruby/object:Gem::Version
|
223
|
-
version: '2.
|
230
|
+
version: '2.5'
|
224
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
232
|
requirements:
|
226
233
|
- - ">="
|
227
234
|
- !ruby/object:Gem::Version
|
228
235
|
version: '0'
|
229
236
|
requirements: []
|
230
|
-
rubygems_version: 3.2.
|
237
|
+
rubygems_version: 3.2.17
|
231
238
|
signing_key:
|
232
239
|
specification_version: 4
|
233
240
|
summary: API Client library for the Cloud Key Management Service (KMS) V1 API
|
@@ -1,81 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/iam/v1/iam_policy.proto for package 'google.iam.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/iam/v1/iam_policy_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Iam
|
25
|
-
module V1
|
26
|
-
module IAMPolicy
|
27
|
-
# ## API Overview
|
28
|
-
#
|
29
|
-
# Manages Identity and Access Management (IAM) policies.
|
30
|
-
#
|
31
|
-
# Any implementation of an API that offers access control features
|
32
|
-
# implements the google.iam.v1.IAMPolicy interface.
|
33
|
-
#
|
34
|
-
# ## Data model
|
35
|
-
#
|
36
|
-
# Access control is applied when a principal (user or service account), takes
|
37
|
-
# some action on a resource exposed by a service. Resources, identified by
|
38
|
-
# URI-like names, are the unit of access control specification. Service
|
39
|
-
# implementations can choose the granularity of access control and the
|
40
|
-
# supported permissions for their resources.
|
41
|
-
# For example one database service may allow access control to be
|
42
|
-
# specified only at the Table level, whereas another might allow access control
|
43
|
-
# to also be specified at the Column level.
|
44
|
-
#
|
45
|
-
# ## Policy Structure
|
46
|
-
#
|
47
|
-
# See google.iam.v1.Policy
|
48
|
-
#
|
49
|
-
# This is intentionally not a CRUD style API because access control policies
|
50
|
-
# are created and deleted implicitly with the resources to which they are
|
51
|
-
# attached.
|
52
|
-
class Service
|
53
|
-
|
54
|
-
include GRPC::GenericService
|
55
|
-
|
56
|
-
self.marshal_class_method = :encode
|
57
|
-
self.unmarshal_class_method = :decode
|
58
|
-
self.service_name = 'google.iam.v1.IAMPolicy'
|
59
|
-
|
60
|
-
# Sets the access control policy on the specified resource. Replaces any
|
61
|
-
# existing policy.
|
62
|
-
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
63
|
-
# Gets the access control policy for a resource.
|
64
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
65
|
-
# set.
|
66
|
-
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
67
|
-
# Returns permissions that a caller has on the specified resource.
|
68
|
-
# If the resource does not exist, this will return an empty set of
|
69
|
-
# permissions, not a NOT_FOUND error.
|
70
|
-
#
|
71
|
-
# Note: This operation is designed to be used for building permission-aware
|
72
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
73
|
-
# may "fail open" without warning.
|
74
|
-
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
75
|
-
end
|
76
|
-
|
77
|
-
Stub = Service.rpc_stub_class
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|