google-cloud-kms-v1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/kms/v1/_helpers.rb +19 -0
- data/lib/google/cloud/kms/v1/ekm_service/client.rb +28 -0
- data/lib/google/cloud/kms/v1/iam_policy/client.rb +21 -332
- data/lib/google/cloud/kms/v1/iam_policy/credentials.rb +6 -2
- data/lib/google/cloud/kms/v1/iam_policy.rb +5 -31
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +28 -0
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/lib/google/cloud/kms/v1.rb +0 -1
- data/proto_docs/google/cloud/kms/v1/service.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +141 -0
- metadata +37 -12
- data/proto_docs/google/iam/v1/iam_policy.rb +0 -87
- data/proto_docs/google/iam/v1/options.rb +0 -50
- data/proto_docs/google/iam/v1/policy.rb +0 -418
@@ -1264,7 +1264,7 @@ module Google
|
|
1264
1264
|
end
|
1265
1265
|
|
1266
1266
|
# Cloud KMS metadata for the given
|
1267
|
-
#
|
1267
|
+
# `::Google::Cloud::Location::Location`.
|
1268
1268
|
# @!attribute [rw] hsm_available
|
1269
1269
|
# @return [::Boolean]
|
1270
1270
|
# Indicates whether {::Google::Cloud::Kms::V1::CryptoKey CryptoKeys} with
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
23
|
+
# URL that describes the type of the serialized message.
|
24
|
+
#
|
25
|
+
# Protobuf library provides support to pack/unpack Any values in the form
|
26
|
+
# of utility functions or additional generated methods of the Any type.
|
27
|
+
#
|
28
|
+
# Example 1: Pack and unpack a message in C++.
|
29
|
+
#
|
30
|
+
# Foo foo = ...;
|
31
|
+
# Any any;
|
32
|
+
# any.PackFrom(foo);
|
33
|
+
# ...
|
34
|
+
# if (any.UnpackTo(&foo)) {
|
35
|
+
# ...
|
36
|
+
# }
|
37
|
+
#
|
38
|
+
# Example 2: Pack and unpack a message in Java.
|
39
|
+
#
|
40
|
+
# Foo foo = ...;
|
41
|
+
# Any any = Any.pack(foo);
|
42
|
+
# ...
|
43
|
+
# if (any.is(Foo.class)) {
|
44
|
+
# foo = any.unpack(Foo.class);
|
45
|
+
# }
|
46
|
+
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
|
+
#
|
49
|
+
# foo = Foo(...)
|
50
|
+
# any = Any()
|
51
|
+
# any.Pack(foo)
|
52
|
+
# ...
|
53
|
+
# if any.Is(Foo.DESCRIPTOR):
|
54
|
+
# any.Unpack(foo)
|
55
|
+
# ...
|
56
|
+
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
|
+
#
|
59
|
+
# foo := &pb.Foo{...}
|
60
|
+
# any, err := anypb.New(foo)
|
61
|
+
# if err != nil {
|
62
|
+
# ...
|
63
|
+
# }
|
64
|
+
# ...
|
65
|
+
# foo := &pb.Foo{}
|
66
|
+
# if err := any.UnmarshalTo(foo); err != nil {
|
67
|
+
# ...
|
68
|
+
# }
|
69
|
+
#
|
70
|
+
# The pack methods provided by protobuf library will by default use
|
71
|
+
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
72
|
+
# methods only use the fully qualified type name after the last '/'
|
73
|
+
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
|
+
# name "y.z".
|
75
|
+
#
|
76
|
+
#
|
77
|
+
# JSON
|
78
|
+
#
|
79
|
+
# The JSON representation of an `Any` value uses the regular
|
80
|
+
# representation of the deserialized, embedded message, with an
|
81
|
+
# additional field `@type` which contains the type URL. Example:
|
82
|
+
#
|
83
|
+
# package google.profile;
|
84
|
+
# message Person {
|
85
|
+
# string first_name = 1;
|
86
|
+
# string last_name = 2;
|
87
|
+
# }
|
88
|
+
#
|
89
|
+
# {
|
90
|
+
# "@type": "type.googleapis.com/google.profile.Person",
|
91
|
+
# "firstName": <string>,
|
92
|
+
# "lastName": <string>
|
93
|
+
# }
|
94
|
+
#
|
95
|
+
# If the embedded message type is well-known and has a custom JSON
|
96
|
+
# representation, that representation will be embedded adding a field
|
97
|
+
# `value` which holds the custom JSON in addition to the `@type`
|
98
|
+
# field. Example (for message [google.protobuf.Duration][]):
|
99
|
+
#
|
100
|
+
# {
|
101
|
+
# "@type": "type.googleapis.com/google.protobuf.Duration",
|
102
|
+
# "value": "1.212s"
|
103
|
+
# }
|
104
|
+
# @!attribute [rw] type_url
|
105
|
+
# @return [::String]
|
106
|
+
# A URL/resource name that uniquely identifies the type of the serialized
|
107
|
+
# protocol buffer message. This string must contain at least
|
108
|
+
# one "/" character. The last segment of the URL's path must represent
|
109
|
+
# the fully qualified name of the type (as in
|
110
|
+
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
111
|
+
# (e.g., leading "." is not accepted).
|
112
|
+
#
|
113
|
+
# In practice, teams usually precompile into the binary all types that they
|
114
|
+
# expect it to use in the context of Any. However, for URLs which use the
|
115
|
+
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
116
|
+
# server that maps type URLs to message definitions as follows:
|
117
|
+
#
|
118
|
+
# * If no scheme is provided, `https` is assumed.
|
119
|
+
# * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
120
|
+
# value in binary format, or produce an error.
|
121
|
+
# * Applications are allowed to cache lookup results based on the
|
122
|
+
# URL, or have them precompiled into a binary to avoid any
|
123
|
+
# lookup. Therefore, binary compatibility needs to be preserved
|
124
|
+
# on changes to types. (Use versioned type names to manage
|
125
|
+
# breaking changes.)
|
126
|
+
#
|
127
|
+
# Note: this functionality is not currently available in the official
|
128
|
+
# protobuf release, and it is not used for type URLs beginning with
|
129
|
+
# type.googleapis.com.
|
130
|
+
#
|
131
|
+
# Schemes other than `http`, `https` (or the empty scheme) might be
|
132
|
+
# used with implementation specific semantics.
|
133
|
+
# @!attribute [rw] value
|
134
|
+
# @return [::String]
|
135
|
+
# Must be a valid serialized protocol buffer of the above specified type.
|
136
|
+
class Any
|
137
|
+
include ::Google::Protobuf::MessageExts
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.14.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: 2022-
|
11
|
+
date: 2022-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -45,19 +45,45 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: google-cloud-location
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '0.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
54
57
|
type: :runtime
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
|
-
- - "
|
61
|
+
- - ">="
|
59
62
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
63
|
+
version: '0.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: google-iam-v1
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.0'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.a
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.0'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.a
|
61
87
|
- !ruby/object:Gem::Dependency
|
62
88
|
name: google-style
|
63
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,6 +211,7 @@ files:
|
|
185
211
|
- README.md
|
186
212
|
- lib/google-cloud-kms-v1.rb
|
187
213
|
- lib/google/cloud/kms/v1.rb
|
214
|
+
- lib/google/cloud/kms/v1/_helpers.rb
|
188
215
|
- lib/google/cloud/kms/v1/ekm_service.rb
|
189
216
|
- lib/google/cloud/kms/v1/ekm_service/client.rb
|
190
217
|
- lib/google/cloud/kms/v1/ekm_service/credentials.rb
|
@@ -208,9 +235,7 @@ files:
|
|
208
235
|
- proto_docs/google/cloud/kms/v1/ekm_service.rb
|
209
236
|
- proto_docs/google/cloud/kms/v1/resources.rb
|
210
237
|
- proto_docs/google/cloud/kms/v1/service.rb
|
211
|
-
- proto_docs/google/
|
212
|
-
- proto_docs/google/iam/v1/options.rb
|
213
|
-
- proto_docs/google/iam/v1/policy.rb
|
238
|
+
- proto_docs/google/protobuf/any.rb
|
214
239
|
- proto_docs/google/protobuf/duration.rb
|
215
240
|
- proto_docs/google/protobuf/field_mask.rb
|
216
241
|
- proto_docs/google/protobuf/timestamp.rb
|
@@ -1,87 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2020 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Iam
|
22
|
-
module V1
|
23
|
-
# Request message for `SetIamPolicy` method.
|
24
|
-
# @!attribute [rw] resource
|
25
|
-
# @return [::String]
|
26
|
-
# REQUIRED: The resource for which the policy is being specified.
|
27
|
-
# See the operation documentation for the appropriate value for this field.
|
28
|
-
# @!attribute [rw] policy
|
29
|
-
# @return [::Google::Iam::V1::Policy]
|
30
|
-
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
31
|
-
# the policy is limited to a few 10s of KB. An empty policy is a
|
32
|
-
# valid policy but certain Cloud Platform services (such as Projects)
|
33
|
-
# might reject them.
|
34
|
-
# @!attribute [rw] update_mask
|
35
|
-
# @return [::Google::Protobuf::FieldMask]
|
36
|
-
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
37
|
-
# the fields in the mask will be modified. If no mask is provided, the
|
38
|
-
# following default mask is used:
|
39
|
-
#
|
40
|
-
# `paths: "bindings, etag"`
|
41
|
-
class SetIamPolicyRequest
|
42
|
-
include ::Google::Protobuf::MessageExts
|
43
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
-
end
|
45
|
-
|
46
|
-
# Request message for `GetIamPolicy` method.
|
47
|
-
# @!attribute [rw] resource
|
48
|
-
# @return [::String]
|
49
|
-
# REQUIRED: The resource for which the policy is being requested.
|
50
|
-
# See the operation documentation for the appropriate value for this field.
|
51
|
-
# @!attribute [rw] options
|
52
|
-
# @return [::Google::Iam::V1::GetPolicyOptions]
|
53
|
-
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
54
|
-
# `GetIamPolicy`.
|
55
|
-
class GetIamPolicyRequest
|
56
|
-
include ::Google::Protobuf::MessageExts
|
57
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
-
end
|
59
|
-
|
60
|
-
# Request message for `TestIamPermissions` method.
|
61
|
-
# @!attribute [rw] resource
|
62
|
-
# @return [::String]
|
63
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
64
|
-
# See the operation documentation for the appropriate value for this field.
|
65
|
-
# @!attribute [rw] permissions
|
66
|
-
# @return [::Array<::String>]
|
67
|
-
# The set of permissions to check for the `resource`. Permissions with
|
68
|
-
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
69
|
-
# information see
|
70
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
71
|
-
class TestIamPermissionsRequest
|
72
|
-
include ::Google::Protobuf::MessageExts
|
73
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
-
end
|
75
|
-
|
76
|
-
# Response message for `TestIamPermissions` method.
|
77
|
-
# @!attribute [rw] permissions
|
78
|
-
# @return [::Array<::String>]
|
79
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
80
|
-
# allowed.
|
81
|
-
class TestIamPermissionsResponse
|
82
|
-
include ::Google::Protobuf::MessageExts
|
83
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2020 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Iam
|
22
|
-
module V1
|
23
|
-
# Encapsulates settings provided to GetIamPolicy.
|
24
|
-
# @!attribute [rw] requested_policy_version
|
25
|
-
# @return [::Integer]
|
26
|
-
# Optional. The maximum policy version that will be used to format the
|
27
|
-
# policy.
|
28
|
-
#
|
29
|
-
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
30
|
-
# rejected.
|
31
|
-
#
|
32
|
-
# Requests for policies with any conditional role bindings must specify
|
33
|
-
# version 3. Policies with no conditional role bindings may specify any valid
|
34
|
-
# value or leave the field unset.
|
35
|
-
#
|
36
|
-
# The policy in the response might use the policy version that you specified,
|
37
|
-
# or it might use a lower policy version. For example, if you specify version
|
38
|
-
# 3, but the policy has no conditional role bindings, the response uses
|
39
|
-
# version 1.
|
40
|
-
#
|
41
|
-
# To learn which resources support conditions in their IAM policies, see the
|
42
|
-
# [IAM
|
43
|
-
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
44
|
-
class GetPolicyOptions
|
45
|
-
include ::Google::Protobuf::MessageExts
|
46
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|