google-cloud-kms-v1 1.9.2 → 1.10.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/lib/google/cloud/kms/v1/hsm_management/client.rb +1477 -0
- data/lib/google/cloud/kms/v1/hsm_management/credentials.rb +52 -0
- data/lib/google/cloud/kms/v1/hsm_management/operations.rb +841 -0
- data/lib/google/cloud/kms/v1/hsm_management/paths.rb +90 -0
- data/lib/google/cloud/kms/v1/hsm_management/rest/client.rb +1380 -0
- data/lib/google/cloud/kms/v1/hsm_management/rest/operations.rb +925 -0
- data/lib/google/cloud/kms/v1/hsm_management/rest/service_stub.rb +634 -0
- data/lib/google/cloud/kms/v1/hsm_management/rest.rb +60 -0
- data/lib/google/cloud/kms/v1/hsm_management.rb +62 -0
- data/lib/google/cloud/kms/v1/hsm_management_pb.rb +86 -0
- data/lib/google/cloud/kms/v1/hsm_management_services_pb.rb +91 -0
- data/lib/google/cloud/kms/v1/resources_pb.rb +1 -1
- data/lib/google/cloud/kms/v1/rest.rb +1 -0
- data/lib/google/cloud/kms/v1/service_pb.rb +1 -1
- data/lib/google/cloud/kms/v1/version.rb +1 -1
- data/lib/google/cloud/kms/v1.rb +1 -0
- data/proto_docs/google/cloud/kms/v1/hsm_management.rb +877 -0
- data/proto_docs/google/cloud/kms/v1/resources.rb +29 -9
- data/proto_docs/google/cloud/kms/v1/service.rb +6 -0
- metadata +13 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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
|
+
module HsmManagement
|
|
25
|
+
# Path helper methods for the HsmManagement API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified Location resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
#
|
|
37
|
+
# @return [::String]
|
|
38
|
+
def location_path project:, location:
|
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
40
|
+
|
|
41
|
+
"projects/#{project}/locations/#{location}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
##
|
|
45
|
+
# Create a fully-qualified SingleTenantHsmInstance resource string.
|
|
46
|
+
#
|
|
47
|
+
# The resource will be in the following format:
|
|
48
|
+
#
|
|
49
|
+
# `projects/{project}/locations/{location}/singleTenantHsmInstances/{single_tenant_hsm_instance}`
|
|
50
|
+
#
|
|
51
|
+
# @param project [String]
|
|
52
|
+
# @param location [String]
|
|
53
|
+
# @param single_tenant_hsm_instance [String]
|
|
54
|
+
#
|
|
55
|
+
# @return [::String]
|
|
56
|
+
def single_tenant_hsm_instance_path project:, location:, single_tenant_hsm_instance:
|
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
58
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
59
|
+
|
|
60
|
+
"projects/#{project}/locations/#{location}/singleTenantHsmInstances/#{single_tenant_hsm_instance}"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
##
|
|
64
|
+
# Create a fully-qualified SingleTenantHsmInstanceProposal resource string.
|
|
65
|
+
#
|
|
66
|
+
# The resource will be in the following format:
|
|
67
|
+
#
|
|
68
|
+
# `projects/{project}/locations/{location}/singleTenantHsmInstances/{single_tenant_hsm_instance}/proposals/{proposal}`
|
|
69
|
+
#
|
|
70
|
+
# @param project [String]
|
|
71
|
+
# @param location [String]
|
|
72
|
+
# @param single_tenant_hsm_instance [String]
|
|
73
|
+
# @param proposal [String]
|
|
74
|
+
#
|
|
75
|
+
# @return [::String]
|
|
76
|
+
def single_tenant_hsm_instance_proposal_path project:, location:, single_tenant_hsm_instance:, proposal:
|
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
78
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
79
|
+
raise ::ArgumentError, "single_tenant_hsm_instance cannot contain /" if single_tenant_hsm_instance.to_s.include? "/"
|
|
80
|
+
|
|
81
|
+
"projects/#{project}/locations/#{location}/singleTenantHsmInstances/#{single_tenant_hsm_instance}/proposals/#{proposal}"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
extend self
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|