google-cloud-kms-v1 0.25.1 → 0.27.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 +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/kms/v1/autokey/client.rb +713 -0
- data/lib/google/cloud/kms/v1/autokey/credentials.rb +52 -0
- data/lib/google/cloud/kms/v1/autokey/operations.rb +809 -0
- data/lib/google/cloud/kms/v1/autokey/paths.rb +90 -0
- data/lib/google/cloud/kms/v1/autokey/rest/client.rb +675 -0
- data/lib/google/cloud/kms/v1/autokey/rest/operations.rb +902 -0
- data/lib/google/cloud/kms/v1/autokey/rest/service_stub.rb +247 -0
- data/lib/google/cloud/kms/v1/autokey/rest.rb +70 -0
- data/lib/google/cloud/kms/v1/autokey.rb +72 -0
- data/lib/google/cloud/kms/v1/autokey_admin/client.rb +677 -0
- data/lib/google/cloud/kms/v1/autokey_admin/credentials.rb +52 -0
- data/lib/google/cloud/kms/v1/autokey_admin/paths.rb +61 -0
- data/lib/google/cloud/kms/v1/autokey_admin/rest/client.rb +639 -0
- data/lib/google/cloud/kms/v1/autokey_admin/rest/service_stub.rb +247 -0
- data/lib/google/cloud/kms/v1/autokey_admin/rest.rb +59 -0
- data/lib/google/cloud/kms/v1/autokey_admin.rb +61 -0
- data/lib/google/cloud/kms/v1/autokey_admin_pb.rb +53 -0
- data/lib/google/cloud/kms/v1/autokey_admin_services_pb.rb +62 -0
- data/lib/google/cloud/kms/v1/autokey_pb.rb +53 -0
- data/lib/google/cloud/kms/v1/autokey_services_pb.rb +71 -0
- data/lib/google/cloud/kms/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/kms/v1/ekm_service/client.rb +17 -7
- data/lib/google/cloud/kms/v1/ekm_service/rest/client.rb +17 -7
- data/lib/google/cloud/kms/v1/key_management_service/client.rb +59 -28
- data/lib/google/cloud/kms/v1/key_management_service/rest/client.rb +59 -28
- data/lib/google/cloud/kms/v1/resources_pb.rb +3 -1
- data/lib/google/cloud/kms/v1/rest.rb +3 -1
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/lib/google/cloud/kms/v1.rb +4 -2
- data/proto_docs/google/cloud/kms/v1/autokey.rb +123 -0
- data/proto_docs/google/cloud/kms/v1/autokey_admin.rb +99 -0
- data/proto_docs/google/cloud/kms/v1/resources.rb +97 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +27 -2
@@ -0,0 +1,123 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 Cloud
|
22
|
+
module Kms
|
23
|
+
module V1
|
24
|
+
# Request message for
|
25
|
+
# {::Google::Cloud::Kms::V1::Autokey::Client#create_key_handle Autokey.CreateKeyHandle}.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. Name of the resource project and location to create the
|
29
|
+
# {::Google::Cloud::Kms::V1::KeyHandle KeyHandle} in, e.g.
|
30
|
+
# `projects/{PROJECT_ID}/locations/{LOCATION}`.
|
31
|
+
# @!attribute [rw] key_handle_id
|
32
|
+
# @return [::String]
|
33
|
+
# Optional. Id of the {::Google::Cloud::Kms::V1::KeyHandle KeyHandle}. Must be
|
34
|
+
# unique to the resource project and location. If not provided by the caller,
|
35
|
+
# a new UUID is used.
|
36
|
+
# @!attribute [rw] key_handle
|
37
|
+
# @return [::Google::Cloud::Kms::V1::KeyHandle]
|
38
|
+
# Required. {::Google::Cloud::Kms::V1::KeyHandle KeyHandle} to create.
|
39
|
+
class CreateKeyHandleRequest
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
end
|
43
|
+
|
44
|
+
# Request message for {::Google::Cloud::Kms::V1::Autokey::Client#get_key_handle GetKeyHandle}.
|
45
|
+
# @!attribute [rw] name
|
46
|
+
# @return [::String]
|
47
|
+
# Required. Name of the {::Google::Cloud::Kms::V1::KeyHandle KeyHandle} resource,
|
48
|
+
# e.g.
|
49
|
+
# `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
|
50
|
+
class GetKeyHandleRequest
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
|
55
|
+
# Resource-oriented representation of a request to Cloud KMS Autokey and the
|
56
|
+
# resulting provisioning of a {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}.
|
57
|
+
# @!attribute [rw] name
|
58
|
+
# @return [::String]
|
59
|
+
# Identifier. Name of the {::Google::Cloud::Kms::V1::KeyHandle KeyHandle}
|
60
|
+
# resource, e.g.
|
61
|
+
# `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
|
62
|
+
# @!attribute [r] kms_key
|
63
|
+
# @return [::String]
|
64
|
+
# Output only. Name of a {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} that has
|
65
|
+
# been provisioned for Customer Managed Encryption Key (CMEK) use in the
|
66
|
+
# {::Google::Cloud::Kms::V1::KeyHandle KeyHandle} project and location for the
|
67
|
+
# requested resource type. The {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}
|
68
|
+
# project will reflect the value configured in the
|
69
|
+
# {::Google::Cloud::Kms::V1::AutokeyConfig AutokeyConfig} on the resource
|
70
|
+
# project's ancestor folder at the time of the
|
71
|
+
# {::Google::Cloud::Kms::V1::KeyHandle KeyHandle} creation. If more than one
|
72
|
+
# ancestor folder has a configured
|
73
|
+
# {::Google::Cloud::Kms::V1::AutokeyConfig AutokeyConfig}, the nearest of these
|
74
|
+
# configurations is used.
|
75
|
+
# @!attribute [rw] resource_type_selector
|
76
|
+
# @return [::String]
|
77
|
+
# Required. Indicates the resource type that the resulting
|
78
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} is meant to protect, e.g.
|
79
|
+
# `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource
|
80
|
+
# types.
|
81
|
+
class KeyHandle
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
|
86
|
+
# Metadata message for
|
87
|
+
# {::Google::Cloud::Kms::V1::Autokey::Client#create_key_handle CreateKeyHandle} long-running
|
88
|
+
# operation response.
|
89
|
+
class CreateKeyHandleMetadata
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
|
94
|
+
# Request message for
|
95
|
+
# {::Google::Cloud::Kms::V1::Autokey::Client#list_key_handles Autokey.ListKeyHandles}.
|
96
|
+
# @!attribute [rw] parent
|
97
|
+
# @return [::String]
|
98
|
+
# Required. Name of the resource project and location from which to list
|
99
|
+
# {::Google::Cloud::Kms::V1::KeyHandle KeyHandles}, e.g.
|
100
|
+
# `projects/{PROJECT_ID}/locations/{LOCATION}`.
|
101
|
+
# @!attribute [rw] filter
|
102
|
+
# @return [::String]
|
103
|
+
# Optional. Filter to apply when listing
|
104
|
+
# {::Google::Cloud::Kms::V1::KeyHandle KeyHandles}, e.g.
|
105
|
+
# `resource_type_selector="{SERVICE}.googleapis.com/{TYPE}"`.
|
106
|
+
class ListKeyHandlesRequest
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
111
|
+
# Response message for
|
112
|
+
# {::Google::Cloud::Kms::V1::Autokey::Client#list_key_handles Autokey.ListKeyHandles}.
|
113
|
+
# @!attribute [rw] key_handles
|
114
|
+
# @return [::Array<::Google::Cloud::Kms::V1::KeyHandle>]
|
115
|
+
# Resulting {::Google::Cloud::Kms::V1::KeyHandle KeyHandles}.
|
116
|
+
class ListKeyHandlesResponse
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 Cloud
|
22
|
+
module Kms
|
23
|
+
module V1
|
24
|
+
# Request message for
|
25
|
+
# {::Google::Cloud::Kms::V1::AutokeyAdmin::Client#update_autokey_config UpdateAutokeyConfig}.
|
26
|
+
# @!attribute [rw] autokey_config
|
27
|
+
# @return [::Google::Cloud::Kms::V1::AutokeyConfig]
|
28
|
+
# Required. {::Google::Cloud::Kms::V1::AutokeyConfig AutokeyConfig} with values to
|
29
|
+
# update.
|
30
|
+
# @!attribute [rw] update_mask
|
31
|
+
# @return [::Google::Protobuf::FieldMask]
|
32
|
+
# Required. Masks which fields of the
|
33
|
+
# {::Google::Cloud::Kms::V1::AutokeyConfig AutokeyConfig} to update, e.g.
|
34
|
+
# `keyProject`.
|
35
|
+
class UpdateAutokeyConfigRequest
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
end
|
39
|
+
|
40
|
+
# Request message for
|
41
|
+
# {::Google::Cloud::Kms::V1::AutokeyAdmin::Client#get_autokey_config GetAutokeyConfig}.
|
42
|
+
# @!attribute [rw] name
|
43
|
+
# @return [::String]
|
44
|
+
# Required. Name of the {::Google::Cloud::Kms::V1::AutokeyConfig AutokeyConfig}
|
45
|
+
# resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
|
46
|
+
class GetAutokeyConfigRequest
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
end
|
50
|
+
|
51
|
+
# Cloud KMS Autokey configuration for a folder.
|
52
|
+
# @!attribute [rw] name
|
53
|
+
# @return [::String]
|
54
|
+
# Identifier. Name of the {::Google::Cloud::Kms::V1::AutokeyConfig AutokeyConfig}
|
55
|
+
# resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
|
56
|
+
# @!attribute [rw] key_project
|
57
|
+
# @return [::String]
|
58
|
+
# Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or
|
59
|
+
# `projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new
|
60
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} when a
|
61
|
+
# {::Google::Cloud::Kms::V1::KeyHandle KeyHandle} is created. On
|
62
|
+
# {::Google::Cloud::Kms::V1::AutokeyAdmin::Client#update_autokey_config UpdateAutokeyConfig},
|
63
|
+
# the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on
|
64
|
+
# this key project. Once configured, for Cloud KMS Autokey to function
|
65
|
+
# properly, this key project must have the Cloud KMS API activated and the
|
66
|
+
# Cloud KMS Service Agent for this key project must be granted the
|
67
|
+
# `cloudkms.admin` role (or pertinent permissions). A request with an empty
|
68
|
+
# key project field will clear the configuration.
|
69
|
+
class AutokeyConfig
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# Request message for
|
75
|
+
# {::Google::Cloud::Kms::V1::AutokeyAdmin::Client#show_effective_autokey_config ShowEffectiveAutokeyConfig}.
|
76
|
+
# @!attribute [rw] parent
|
77
|
+
# @return [::String]
|
78
|
+
# Required. Name of the resource project to the show effective Cloud KMS
|
79
|
+
# Autokey configuration for. This may be helpful for interrogating the effect
|
80
|
+
# of nested folder configurations on a given resource project.
|
81
|
+
class ShowEffectiveAutokeyConfigRequest
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
|
86
|
+
# Response message for
|
87
|
+
# {::Google::Cloud::Kms::V1::AutokeyAdmin::Client#show_effective_autokey_config ShowEffectiveAutokeyConfig}.
|
88
|
+
# @!attribute [rw] key_project
|
89
|
+
# @return [::String]
|
90
|
+
# Name of the key project configured in the resource project's folder
|
91
|
+
# ancestry.
|
92
|
+
class ShowEffectiveAutokeyConfigResponse
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -137,6 +137,16 @@ module Google
|
|
137
137
|
# resource name in the format `projects/*/locations/*/ekmConnections/*`.
|
138
138
|
# Note, this list is non-exhaustive and may apply to additional
|
139
139
|
# {::Google::Cloud::Kms::V1::ProtectionLevel ProtectionLevels} in the future.
|
140
|
+
# @!attribute [rw] key_access_justifications_policy
|
141
|
+
# @return [::Google::Cloud::Kms::V1::KeyAccessJustificationsPolicy]
|
142
|
+
# Optional. The policy used for Key Access Justifications Policy Enforcement.
|
143
|
+
# If this field is present and this key is enrolled in Key Access
|
144
|
+
# Justifications Policy Enforcement, the policy will be evaluated in encrypt,
|
145
|
+
# decrypt, and sign operations, and the operation will fail if rejected by
|
146
|
+
# the policy. The policy is defined by specifying zero or more allowed
|
147
|
+
# justification codes.
|
148
|
+
# https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
|
149
|
+
# By default, this field is absent, and all justification codes are allowed.
|
140
150
|
class CryptoKey
|
141
151
|
include ::Google::Protobuf::MessageExts
|
142
152
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -516,6 +526,9 @@ module Google
|
|
516
526
|
# https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms
|
517
527
|
EC_SIGN_SECP256K1_SHA256 = 31
|
518
528
|
|
529
|
+
# EdDSA on the Curve25519 in pure mode (taking data as input).
|
530
|
+
EC_SIGN_ED25519 = 40
|
531
|
+
|
519
532
|
# HMAC-SHA256 signing with a 256 bit key.
|
520
533
|
HMAC_SHA256 = 32
|
521
534
|
|
@@ -873,6 +886,23 @@ module Google
|
|
873
886
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
874
887
|
end
|
875
888
|
|
889
|
+
# A
|
890
|
+
# {::Google::Cloud::Kms::V1::KeyAccessJustificationsPolicy KeyAccessJustificationsPolicy}
|
891
|
+
# specifies zero or more allowed
|
892
|
+
# {::Google::Cloud::Kms::V1::AccessReason AccessReason} values for encrypt, decrypt,
|
893
|
+
# and sign operations on a {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}.
|
894
|
+
# @!attribute [rw] allowed_access_reasons
|
895
|
+
# @return [::Array<::Google::Cloud::Kms::V1::AccessReason>]
|
896
|
+
# The list of allowed reasons for access to a
|
897
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey}. Zero allowed access reasons
|
898
|
+
# means all encrypt, decrypt, and sign operations for the
|
899
|
+
# {::Google::Cloud::Kms::V1::CryptoKey CryptoKey} associated with this policy will
|
900
|
+
# fail.
|
901
|
+
class KeyAccessJustificationsPolicy
|
902
|
+
include ::Google::Protobuf::MessageExts
|
903
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
904
|
+
end
|
905
|
+
|
876
906
|
# {::Google::Cloud::Kms::V1::ProtectionLevel ProtectionLevel} specifies how
|
877
907
|
# cryptographic operations are performed. For more information, see [Protection
|
878
908
|
# levels] (https://cloud.google.com/kms/docs/algorithms#protection_levels).
|
@@ -892,6 +922,73 @@ module Google
|
|
892
922
|
# Crypto operations are performed in an EKM-over-VPC backend.
|
893
923
|
EXTERNAL_VPC = 4
|
894
924
|
end
|
925
|
+
|
926
|
+
# Describes the reason for a data access. Please refer to
|
927
|
+
# https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
|
928
|
+
# for the detailed semantic meaning of justification reason codes.
|
929
|
+
module AccessReason
|
930
|
+
# Unspecified access reason.
|
931
|
+
REASON_UNSPECIFIED = 0
|
932
|
+
|
933
|
+
# Customer-initiated support.
|
934
|
+
CUSTOMER_INITIATED_SUPPORT = 1
|
935
|
+
|
936
|
+
# Google-initiated access for system management and troubleshooting.
|
937
|
+
GOOGLE_INITIATED_SERVICE = 2
|
938
|
+
|
939
|
+
# Google-initiated access in response to a legal request or legal process.
|
940
|
+
THIRD_PARTY_DATA_REQUEST = 3
|
941
|
+
|
942
|
+
# Google-initiated access for security, fraud, abuse, or compliance purposes.
|
943
|
+
GOOGLE_INITIATED_REVIEW = 4
|
944
|
+
|
945
|
+
# Customer uses their account to perform any access to their own data which
|
946
|
+
# their IAM policy authorizes.
|
947
|
+
CUSTOMER_INITIATED_ACCESS = 5
|
948
|
+
|
949
|
+
# Google systems access customer data to help optimize the structure of the
|
950
|
+
# data or quality for future uses by the customer.
|
951
|
+
GOOGLE_INITIATED_SYSTEM_OPERATION = 6
|
952
|
+
|
953
|
+
# No reason is expected for this key request.
|
954
|
+
REASON_NOT_EXPECTED = 7
|
955
|
+
|
956
|
+
# Customer uses their account to perform any access to their own data which
|
957
|
+
# their IAM policy authorizes, and one of the following is true:
|
958
|
+
#
|
959
|
+
# * A Google administrator has reset the root-access account associated with
|
960
|
+
# the user's organization within the past 7 days.
|
961
|
+
# * A Google-initiated emergency access operation has interacted with a
|
962
|
+
# resource in the same project or folder as the currently accessed resource
|
963
|
+
# within the past 7 days.
|
964
|
+
MODIFIED_CUSTOMER_INITIATED_ACCESS = 8
|
965
|
+
|
966
|
+
# Google systems access customer data to help optimize the structure of the
|
967
|
+
# data or quality for future uses by the customer, and one of the following
|
968
|
+
# is true:
|
969
|
+
#
|
970
|
+
# * A Google administrator has reset the root-access account associated with
|
971
|
+
# the user's organization within the past 7 days.
|
972
|
+
# * A Google-initiated emergency access operation has interacted with a
|
973
|
+
# resource in the same project or folder as the currently accessed resource
|
974
|
+
# within the past 7 days.
|
975
|
+
MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION = 9
|
976
|
+
|
977
|
+
# Google-initiated access to maintain system reliability.
|
978
|
+
GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 10
|
979
|
+
|
980
|
+
# One of the following operations is being executed while simultaneously
|
981
|
+
# encountering an internal technical issue which prevented a more precise
|
982
|
+
# justification code from being generated:
|
983
|
+
#
|
984
|
+
# * Your account has been used to perform any access to your own data which
|
985
|
+
# your IAM policy authorizes.
|
986
|
+
# * An automated Google system operates on encrypted customer data which your
|
987
|
+
# IAM policy authorizes.
|
988
|
+
# * Customer-initiated Google support access.
|
989
|
+
# * Google-initiated support access to protect system reliability.
|
990
|
+
CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING = 11
|
991
|
+
end
|
895
992
|
end
|
896
993
|
end
|
897
994
|
end
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 Longrunning
|
22
|
+
# This resource represents a long-running operation that is the result of a
|
23
|
+
# network API call.
|
24
|
+
# @!attribute [rw] name
|
25
|
+
# @return [::String]
|
26
|
+
# The server-assigned name, which is only unique within the same service that
|
27
|
+
# originally returns it. If you use the default HTTP mapping, the
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
|
+
# @!attribute [rw] metadata
|
30
|
+
# @return [::Google::Protobuf::Any]
|
31
|
+
# Service-specific metadata associated with the operation. It typically
|
32
|
+
# contains progress information and common metadata such as create time.
|
33
|
+
# Some services might not provide such metadata. Any method that returns a
|
34
|
+
# long-running operation should document the metadata type, if any.
|
35
|
+
# @!attribute [rw] done
|
36
|
+
# @return [::Boolean]
|
37
|
+
# If the value is `false`, it means the operation is still in progress.
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
|
+
# available.
|
40
|
+
# @!attribute [rw] error
|
41
|
+
# @return [::Google::Rpc::Status]
|
42
|
+
# The error result of the operation in case of failure or cancellation.
|
43
|
+
# @!attribute [rw] response
|
44
|
+
# @return [::Google::Protobuf::Any]
|
45
|
+
# The normal response of the operation in case of success. If the original
|
46
|
+
# method returns no data on success, such as `Delete`, the response is
|
47
|
+
# `google.protobuf.Empty`. If the original method is standard
|
48
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
49
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
50
|
+
# is the original method name. For example, if the original method name
|
51
|
+
# is `TakeSnapshot()`, the inferred response type is
|
52
|
+
# `TakeSnapshotResponse`.
|
53
|
+
class Operation
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
|
+
end
|
57
|
+
|
58
|
+
# The request message for Operations.GetOperation.
|
59
|
+
# @!attribute [rw] name
|
60
|
+
# @return [::String]
|
61
|
+
# The name of the operation resource.
|
62
|
+
class GetOperationRequest
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# The request message for Operations.ListOperations.
|
68
|
+
# @!attribute [rw] name
|
69
|
+
# @return [::String]
|
70
|
+
# The name of the operation's parent resource.
|
71
|
+
# @!attribute [rw] filter
|
72
|
+
# @return [::String]
|
73
|
+
# The standard list filter.
|
74
|
+
# @!attribute [rw] page_size
|
75
|
+
# @return [::Integer]
|
76
|
+
# The standard list page size.
|
77
|
+
# @!attribute [rw] page_token
|
78
|
+
# @return [::String]
|
79
|
+
# The standard list page token.
|
80
|
+
class ListOperationsRequest
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
+
end
|
84
|
+
|
85
|
+
# The response message for Operations.ListOperations.
|
86
|
+
# @!attribute [rw] operations
|
87
|
+
# @return [::Array<::Google::Longrunning::Operation>]
|
88
|
+
# A list of operations that matches the specified filter in the request.
|
89
|
+
# @!attribute [rw] next_page_token
|
90
|
+
# @return [::String]
|
91
|
+
# The standard List next-page token.
|
92
|
+
class ListOperationsResponse
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# The request message for Operations.CancelOperation.
|
98
|
+
# @!attribute [rw] name
|
99
|
+
# @return [::String]
|
100
|
+
# The name of the operation resource to be cancelled.
|
101
|
+
class CancelOperationRequest
|
102
|
+
include ::Google::Protobuf::MessageExts
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
|
+
end
|
105
|
+
|
106
|
+
# The request message for Operations.DeleteOperation.
|
107
|
+
# @!attribute [rw] name
|
108
|
+
# @return [::String]
|
109
|
+
# The name of the operation resource to be deleted.
|
110
|
+
class DeleteOperationRequest
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
114
|
+
|
115
|
+
# The request message for Operations.WaitOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to wait on.
|
119
|
+
# @!attribute [rw] timeout
|
120
|
+
# @return [::Google::Protobuf::Duration]
|
121
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
122
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
123
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
124
|
+
class WaitOperationRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
129
|
+
# A message representing the message types used by a long-running operation.
|
130
|
+
#
|
131
|
+
# Example:
|
132
|
+
#
|
133
|
+
# rpc LongRunningRecognize(LongRunningRecognizeRequest)
|
134
|
+
# returns (google.longrunning.Operation) {
|
135
|
+
# option (google.longrunning.operation_info) = {
|
136
|
+
# response_type: "LongRunningRecognizeResponse"
|
137
|
+
# metadata_type: "LongRunningRecognizeMetadata"
|
138
|
+
# };
|
139
|
+
# }
|
140
|
+
# @!attribute [rw] response_type
|
141
|
+
# @return [::String]
|
142
|
+
# Required. The message name of the primary return type for this
|
143
|
+
# long-running operation.
|
144
|
+
# This type will be used to deserialize the LRO's response.
|
145
|
+
#
|
146
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
147
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
148
|
+
#
|
149
|
+
# Note: Altering this value constitutes a breaking change.
|
150
|
+
# @!attribute [rw] metadata_type
|
151
|
+
# @return [::String]
|
152
|
+
# Required. The message name of the metadata type for this long-running
|
153
|
+
# operation.
|
154
|
+
#
|
155
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
156
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
157
|
+
#
|
158
|
+
# Note: Altering this value constitutes a breaking change.
|
159
|
+
class OperationInfo
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
23
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
24
|
+
# or the response type of an API method. For instance:
|
25
|
+
#
|
26
|
+
# service Foo {
|
27
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
|
+
# }
|
29
|
+
class Empty
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 Rpc
|
22
|
+
# The `Status` type defines a logical error model that is suitable for
|
23
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
24
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
25
|
+
# three pieces of data: error code, error message, and error details.
|
26
|
+
#
|
27
|
+
# You can find out more about this error model and how to work with it in the
|
28
|
+
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
|
+
# @!attribute [rw] code
|
30
|
+
# @return [::Integer]
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
33
|
+
# @!attribute [rw] message
|
34
|
+
# @return [::String]
|
35
|
+
# A developer-facing error message, which should be in English. Any
|
36
|
+
# user-facing error message should be localized and sent in the
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
39
|
+
# @!attribute [rw] details
|
40
|
+
# @return [::Array<::Google::Protobuf::Any>]
|
41
|
+
# A list of messages that carry the error details. There is a common set of
|
42
|
+
# message types for APIs to use.
|
43
|
+
class Status
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
end
|
47
|
+
end
|
48
|
+
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.27.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: 2024-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -100,6 +100,26 @@ files:
|
|
100
100
|
- lib/google-cloud-kms-v1.rb
|
101
101
|
- lib/google/cloud/kms/v1.rb
|
102
102
|
- lib/google/cloud/kms/v1/_helpers.rb
|
103
|
+
- lib/google/cloud/kms/v1/autokey.rb
|
104
|
+
- lib/google/cloud/kms/v1/autokey/client.rb
|
105
|
+
- lib/google/cloud/kms/v1/autokey/credentials.rb
|
106
|
+
- lib/google/cloud/kms/v1/autokey/operations.rb
|
107
|
+
- lib/google/cloud/kms/v1/autokey/paths.rb
|
108
|
+
- lib/google/cloud/kms/v1/autokey/rest.rb
|
109
|
+
- lib/google/cloud/kms/v1/autokey/rest/client.rb
|
110
|
+
- lib/google/cloud/kms/v1/autokey/rest/operations.rb
|
111
|
+
- lib/google/cloud/kms/v1/autokey/rest/service_stub.rb
|
112
|
+
- lib/google/cloud/kms/v1/autokey_admin.rb
|
113
|
+
- lib/google/cloud/kms/v1/autokey_admin/client.rb
|
114
|
+
- lib/google/cloud/kms/v1/autokey_admin/credentials.rb
|
115
|
+
- lib/google/cloud/kms/v1/autokey_admin/paths.rb
|
116
|
+
- lib/google/cloud/kms/v1/autokey_admin/rest.rb
|
117
|
+
- lib/google/cloud/kms/v1/autokey_admin/rest/client.rb
|
118
|
+
- lib/google/cloud/kms/v1/autokey_admin/rest/service_stub.rb
|
119
|
+
- lib/google/cloud/kms/v1/autokey_admin_pb.rb
|
120
|
+
- lib/google/cloud/kms/v1/autokey_admin_services_pb.rb
|
121
|
+
- lib/google/cloud/kms/v1/autokey_pb.rb
|
122
|
+
- lib/google/cloud/kms/v1/autokey_services_pb.rb
|
103
123
|
- lib/google/cloud/kms/v1/bindings_override.rb
|
104
124
|
- lib/google/cloud/kms/v1/ekm_service.rb
|
105
125
|
- lib/google/cloud/kms/v1/ekm_service/client.rb
|
@@ -130,14 +150,19 @@ files:
|
|
130
150
|
- proto_docs/google/api/field_behavior.rb
|
131
151
|
- proto_docs/google/api/launch_stage.rb
|
132
152
|
- proto_docs/google/api/resource.rb
|
153
|
+
- proto_docs/google/cloud/kms/v1/autokey.rb
|
154
|
+
- proto_docs/google/cloud/kms/v1/autokey_admin.rb
|
133
155
|
- proto_docs/google/cloud/kms/v1/ekm_service.rb
|
134
156
|
- proto_docs/google/cloud/kms/v1/resources.rb
|
135
157
|
- proto_docs/google/cloud/kms/v1/service.rb
|
158
|
+
- proto_docs/google/longrunning/operations.rb
|
136
159
|
- proto_docs/google/protobuf/any.rb
|
137
160
|
- proto_docs/google/protobuf/duration.rb
|
161
|
+
- proto_docs/google/protobuf/empty.rb
|
138
162
|
- proto_docs/google/protobuf/field_mask.rb
|
139
163
|
- proto_docs/google/protobuf/timestamp.rb
|
140
164
|
- proto_docs/google/protobuf/wrappers.rb
|
165
|
+
- proto_docs/google/rpc/status.rb
|
141
166
|
- proto_docs/google/type/expr.rb
|
142
167
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
143
168
|
licenses:
|