google-cloud-security-private_ca-v1 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-security-private_ca-v1.rb +21 -0
- data/lib/google/cloud/security/private_ca/v1.rb +40 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service.rb +53 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +2891 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/credentials.rb +53 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +657 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/paths.rb +155 -0
- data/lib/google/cloud/security/private_ca/v1/version.rb +30 -0
- data/lib/google/cloud/security/privateca/v1/resources_pb.rb +368 -0
- data/lib/google/cloud/security/privateca/v1/service_pb.rb +254 -0
- data/lib/google/cloud/security/privateca/v1/service_services_pb.rb +119 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +65 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/security/privateca/v1/resources.rb +1188 -0
- data/proto_docs/google/cloud/security/privateca/v1/service.rb +934 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +221 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/security/private_ca/v1"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
require "google/cloud/security/private_ca/v1/certificate_authority_service"
|
20
|
+
require "google/cloud/security/private_ca/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Security
|
25
|
+
module PrivateCA
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# require "google/cloud/security/private_ca/v1"
|
30
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
31
|
+
#
|
32
|
+
module V1
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
40
|
+
require "google/cloud/security/private_ca/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/security/private_ca/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/security/private_ca/v1/certificate_authority_service/credentials"
|
26
|
+
require "google/cloud/security/private_ca/v1/certificate_authority_service/paths"
|
27
|
+
require "google/cloud/security/private_ca/v1/certificate_authority_service/operations"
|
28
|
+
require "google/cloud/security/private_ca/v1/certificate_authority_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Security
|
33
|
+
module PrivateCA
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client Certificate Authority Service} manages private
|
37
|
+
# certificate authorities and issued certificates.
|
38
|
+
#
|
39
|
+
# To load this service and instantiate a client:
|
40
|
+
#
|
41
|
+
# require "google/cloud/security/private_ca/v1/certificate_authority_service"
|
42
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
43
|
+
#
|
44
|
+
module CertificateAuthorityService
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "certificate_authority_service", "helpers.rb"
|
53
|
+
require "google/cloud/security/private_ca/v1/certificate_authority_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,2891 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/security/privateca/v1/service_pb"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Security
|
25
|
+
module PrivateCA
|
26
|
+
module V1
|
27
|
+
module CertificateAuthorityService
|
28
|
+
##
|
29
|
+
# Client for the CertificateAuthorityService service.
|
30
|
+
#
|
31
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client Certificate Authority Service} manages private
|
32
|
+
# certificate authorities and issued certificates.
|
33
|
+
#
|
34
|
+
class Client
|
35
|
+
include Paths
|
36
|
+
|
37
|
+
# @private
|
38
|
+
attr_reader :certificate_authority_service_stub
|
39
|
+
|
40
|
+
##
|
41
|
+
# Configure the CertificateAuthorityService Client class.
|
42
|
+
#
|
43
|
+
# See {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client::Configuration}
|
44
|
+
# for a description of the configuration fields.
|
45
|
+
#
|
46
|
+
# ## Example
|
47
|
+
#
|
48
|
+
# To modify the configuration for all CertificateAuthorityService clients:
|
49
|
+
#
|
50
|
+
# ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
# @yield [config] Configure the Client client.
|
55
|
+
# @yieldparam config [Client::Configuration]
|
56
|
+
#
|
57
|
+
# @return [Client::Configuration]
|
58
|
+
#
|
59
|
+
def self.configure
|
60
|
+
@configure ||= begin
|
61
|
+
namespace = ["Google", "Cloud", "Security", "PrivateCA", "V1"]
|
62
|
+
parent_config = while namespace.any?
|
63
|
+
parent_name = namespace.join "::"
|
64
|
+
parent_const = const_get parent_name
|
65
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
66
|
+
namespace.pop
|
67
|
+
end
|
68
|
+
default_config = Client::Configuration.new parent_config
|
69
|
+
|
70
|
+
default_config.timeout = 60.0
|
71
|
+
default_config.retry_policy = {
|
72
|
+
initial_delay: 0.1,
|
73
|
+
max_delay: 60.0,
|
74
|
+
multiplier: 1.3,
|
75
|
+
retry_codes: [2, 14, 4]
|
76
|
+
}
|
77
|
+
|
78
|
+
default_config
|
79
|
+
end
|
80
|
+
yield @configure if block_given?
|
81
|
+
@configure
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Configure the CertificateAuthorityService Client instance.
|
86
|
+
#
|
87
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
88
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
89
|
+
# should be made on {Client.configure}.
|
90
|
+
#
|
91
|
+
# See {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client::Configuration}
|
92
|
+
# for a description of the configuration fields.
|
93
|
+
#
|
94
|
+
# @yield [config] Configure the Client client.
|
95
|
+
# @yieldparam config [Client::Configuration]
|
96
|
+
#
|
97
|
+
# @return [Client::Configuration]
|
98
|
+
#
|
99
|
+
def configure
|
100
|
+
yield @config if block_given?
|
101
|
+
@config
|
102
|
+
end
|
103
|
+
|
104
|
+
##
|
105
|
+
# Create a new CertificateAuthorityService client object.
|
106
|
+
#
|
107
|
+
# ## Examples
|
108
|
+
#
|
109
|
+
# To create a new CertificateAuthorityService client with the default
|
110
|
+
# configuration:
|
111
|
+
#
|
112
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
113
|
+
#
|
114
|
+
# To create a new CertificateAuthorityService client with a custom
|
115
|
+
# configuration:
|
116
|
+
#
|
117
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new do |config|
|
118
|
+
# config.timeout = 10.0
|
119
|
+
# end
|
120
|
+
#
|
121
|
+
# @yield [config] Configure the CertificateAuthorityService client.
|
122
|
+
# @yieldparam config [Client::Configuration]
|
123
|
+
#
|
124
|
+
def initialize
|
125
|
+
# These require statements are intentionally placed here to initialize
|
126
|
+
# the gRPC module only when it's required.
|
127
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
128
|
+
require "gapic/grpc"
|
129
|
+
require "google/cloud/security/privateca/v1/service_services_pb"
|
130
|
+
|
131
|
+
# Create the configuration object
|
132
|
+
@config = Configuration.new Client.configure
|
133
|
+
|
134
|
+
# Yield the configuration if needed
|
135
|
+
yield @config if block_given?
|
136
|
+
|
137
|
+
# Create credentials
|
138
|
+
credentials = @config.credentials
|
139
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
140
|
+
# but only if the default endpoint does not have a region prefix.
|
141
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
142
|
+
@config.endpoint == Client.configure.endpoint &&
|
143
|
+
!@config.endpoint.split(".").first.include?("-")
|
144
|
+
credentials ||= Credentials.default scope: @config.scope,
|
145
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
146
|
+
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
147
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
148
|
+
end
|
149
|
+
@quota_project_id = @config.quota_project
|
150
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
151
|
+
|
152
|
+
@operations_client = Operations.new do |config|
|
153
|
+
config.credentials = credentials
|
154
|
+
config.endpoint = @config.endpoint
|
155
|
+
end
|
156
|
+
|
157
|
+
@certificate_authority_service_stub = ::Gapic::ServiceStub.new(
|
158
|
+
::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Stub,
|
159
|
+
credentials: credentials,
|
160
|
+
endpoint: @config.endpoint,
|
161
|
+
channel_args: @config.channel_args,
|
162
|
+
interceptors: @config.interceptors
|
163
|
+
)
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# Get the associated client for long-running operations.
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Operations]
|
170
|
+
#
|
171
|
+
attr_reader :operations_client
|
172
|
+
|
173
|
+
# Service calls
|
174
|
+
|
175
|
+
##
|
176
|
+
# Create a new {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} in a given Project, Location from a particular
|
177
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
|
178
|
+
#
|
179
|
+
# @overload create_certificate(request, options = nil)
|
180
|
+
# Pass arguments to `create_certificate` via a request object, either of type
|
181
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest} or an equivalent Hash.
|
182
|
+
#
|
183
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest, ::Hash]
|
184
|
+
# A request object representing the call parameters. Required. To specify no
|
185
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
186
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
187
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
188
|
+
#
|
189
|
+
# @overload create_certificate(parent: nil, certificate_id: nil, certificate: nil, request_id: nil, validate_only: nil, issuing_certificate_authority_id: nil)
|
190
|
+
# Pass arguments to `create_certificate` via keyword arguments. Note that at
|
191
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
192
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
193
|
+
#
|
194
|
+
# @param parent [::String]
|
195
|
+
# Required. The resource name of the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} associated with the {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate},
|
196
|
+
# in the format `projects/*/locations/*/caPools/*`.
|
197
|
+
# @param certificate_id [::String]
|
198
|
+
# Optional. It must be unique within a location and match the regular
|
199
|
+
# expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
|
200
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the Enterprise [CertificateAuthority.Tier][],
|
201
|
+
# but is optional and its value is ignored otherwise.
|
202
|
+
# @param certificate [::Google::Cloud::Security::PrivateCA::V1::Certificate, ::Hash]
|
203
|
+
# Required. A {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} with initial field values.
|
204
|
+
# @param request_id [::String]
|
205
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
206
|
+
# retry your request, the server will know to ignore the request if it has
|
207
|
+
# already been completed. The server will guarantee that for at least 60
|
208
|
+
# minutes since the first request.
|
209
|
+
#
|
210
|
+
# For example, consider a situation where you make an initial request and t
|
211
|
+
# he request times out. If you make the request again with the same request
|
212
|
+
# ID, the server can check if original operation with the same request ID
|
213
|
+
# was received, and if so, will ignore the second request. This prevents
|
214
|
+
# clients from accidentally creating duplicate commitments.
|
215
|
+
#
|
216
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
217
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
218
|
+
# @param validate_only [::Boolean]
|
219
|
+
# Optional. If this is true, no {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} resource will be persisted regardless
|
220
|
+
# of the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}'s {::Google::Cloud::Security::PrivateCA::V1::CaPool#tier tier}, and the returned {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate}
|
221
|
+
# will not contain the {::Google::Cloud::Security::PrivateCA::V1::Certificate#pem_certificate pem_certificate} field.
|
222
|
+
# @param issuing_certificate_authority_id [::String]
|
223
|
+
# Optional. The resource ID of the {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} that should issue the
|
224
|
+
# certificate. This optional field will ignore the load-balancing scheme of
|
225
|
+
# the Pool and directly issue the certificate from the CA with the specified
|
226
|
+
# ID, contained in the same {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} referenced by `parent`. Per-CA quota
|
227
|
+
# rules apply. If left empty, a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} will be chosen from
|
228
|
+
# the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} by the service. For example, to issue a {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} from
|
229
|
+
# a Certificate Authority with resource name
|
230
|
+
# "projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca",
|
231
|
+
# you can set the {::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest#parent parent} to
|
232
|
+
# "projects/my-project/locations/us-central1/caPools/my-pool" and the
|
233
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest#issuing_certificate_authority_id issuing_certificate_authority_id} to "my-ca".
|
234
|
+
#
|
235
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
236
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
237
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
238
|
+
#
|
239
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
240
|
+
#
|
241
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
242
|
+
#
|
243
|
+
def create_certificate request, options = nil
|
244
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
245
|
+
|
246
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest
|
247
|
+
|
248
|
+
# Converts hash and nil to an options object
|
249
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
250
|
+
|
251
|
+
# Customize the options with defaults
|
252
|
+
metadata = @config.rpcs.create_certificate.metadata.to_h
|
253
|
+
|
254
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
255
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
256
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
257
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
258
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
259
|
+
|
260
|
+
header_params = {
|
261
|
+
"parent" => request.parent
|
262
|
+
}
|
263
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
264
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
265
|
+
|
266
|
+
options.apply_defaults timeout: @config.rpcs.create_certificate.timeout,
|
267
|
+
metadata: metadata,
|
268
|
+
retry_policy: @config.rpcs.create_certificate.retry_policy
|
269
|
+
options.apply_defaults metadata: @config.metadata,
|
270
|
+
retry_policy: @config.retry_policy
|
271
|
+
|
272
|
+
@certificate_authority_service_stub.call_rpc :create_certificate, request, options: options do |response, operation|
|
273
|
+
yield response, operation if block_given?
|
274
|
+
return response
|
275
|
+
end
|
276
|
+
rescue ::GRPC::BadStatus => e
|
277
|
+
raise ::Google::Cloud::Error.from_error(e)
|
278
|
+
end
|
279
|
+
|
280
|
+
##
|
281
|
+
# Returns a {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate}.
|
282
|
+
#
|
283
|
+
# @overload get_certificate(request, options = nil)
|
284
|
+
# Pass arguments to `get_certificate` via a request object, either of type
|
285
|
+
# {::Google::Cloud::Security::PrivateCA::V1::GetCertificateRequest} or an equivalent Hash.
|
286
|
+
#
|
287
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::GetCertificateRequest, ::Hash]
|
288
|
+
# A request object representing the call parameters. Required. To specify no
|
289
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
290
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
291
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
292
|
+
#
|
293
|
+
# @overload get_certificate(name: nil)
|
294
|
+
# Pass arguments to `get_certificate` via keyword arguments. Note that at
|
295
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
296
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
297
|
+
#
|
298
|
+
# @param name [::String]
|
299
|
+
# Required. The {::Google::Cloud::Security::PrivateCA::V1::Certificate#name name} of the {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} to get.
|
300
|
+
#
|
301
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
302
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
303
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
304
|
+
#
|
305
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
306
|
+
#
|
307
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
308
|
+
#
|
309
|
+
def get_certificate request, options = nil
|
310
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
|
+
|
312
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::GetCertificateRequest
|
313
|
+
|
314
|
+
# Converts hash and nil to an options object
|
315
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
316
|
+
|
317
|
+
# Customize the options with defaults
|
318
|
+
metadata = @config.rpcs.get_certificate.metadata.to_h
|
319
|
+
|
320
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
321
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
322
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
323
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
324
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
325
|
+
|
326
|
+
header_params = {
|
327
|
+
"name" => request.name
|
328
|
+
}
|
329
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
330
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
331
|
+
|
332
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate.timeout,
|
333
|
+
metadata: metadata,
|
334
|
+
retry_policy: @config.rpcs.get_certificate.retry_policy
|
335
|
+
options.apply_defaults metadata: @config.metadata,
|
336
|
+
retry_policy: @config.retry_policy
|
337
|
+
|
338
|
+
@certificate_authority_service_stub.call_rpc :get_certificate, request, options: options do |response, operation|
|
339
|
+
yield response, operation if block_given?
|
340
|
+
return response
|
341
|
+
end
|
342
|
+
rescue ::GRPC::BadStatus => e
|
343
|
+
raise ::Google::Cloud::Error.from_error(e)
|
344
|
+
end
|
345
|
+
|
346
|
+
##
|
347
|
+
# Lists {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificates}.
|
348
|
+
#
|
349
|
+
# @overload list_certificates(request, options = nil)
|
350
|
+
# Pass arguments to `list_certificates` via a request object, either of type
|
351
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificatesRequest} or an equivalent Hash.
|
352
|
+
#
|
353
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::ListCertificatesRequest, ::Hash]
|
354
|
+
# A request object representing the call parameters. Required. To specify no
|
355
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
356
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
357
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
358
|
+
#
|
359
|
+
# @overload list_certificates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
360
|
+
# Pass arguments to `list_certificates` via keyword arguments. Note that at
|
361
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
362
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
363
|
+
#
|
364
|
+
# @param parent [::String]
|
365
|
+
# Required. The resource name of the location associated with the
|
366
|
+
# {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificates}, in the format
|
367
|
+
# `projects/*/locations/*/caPools/*`.
|
368
|
+
# @param page_size [::Integer]
|
369
|
+
# Optional. Limit on the number of
|
370
|
+
# {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificates} to include in the
|
371
|
+
# response. Further {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificates} can subsequently be obtained
|
372
|
+
# by including the
|
373
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificatesResponse#next_page_token ListCertificatesResponse.next_page_token} in a subsequent
|
374
|
+
# request. If unspecified, the server will pick an appropriate default.
|
375
|
+
# @param page_token [::String]
|
376
|
+
# Optional. Pagination token, returned earlier via
|
377
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificatesResponse#next_page_token ListCertificatesResponse.next_page_token}.
|
378
|
+
# @param filter [::String]
|
379
|
+
# Optional. Only include resources that match the filter in the response. For details
|
380
|
+
# on supported filters and syntax, see [Certificates Filtering
|
381
|
+
# documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
|
382
|
+
# @param order_by [::String]
|
383
|
+
# Optional. Specify how the results should be sorted. For details on supported fields
|
384
|
+
# and syntax, see [Certificates Sorting
|
385
|
+
# documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
|
386
|
+
#
|
387
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
388
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::Certificate>]
|
389
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
390
|
+
#
|
391
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::Certificate>]
|
392
|
+
#
|
393
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
394
|
+
#
|
395
|
+
def list_certificates request, options = nil
|
396
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
397
|
+
|
398
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::ListCertificatesRequest
|
399
|
+
|
400
|
+
# Converts hash and nil to an options object
|
401
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
402
|
+
|
403
|
+
# Customize the options with defaults
|
404
|
+
metadata = @config.rpcs.list_certificates.metadata.to_h
|
405
|
+
|
406
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
407
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
408
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
409
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
410
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
411
|
+
|
412
|
+
header_params = {
|
413
|
+
"parent" => request.parent
|
414
|
+
}
|
415
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
416
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
417
|
+
|
418
|
+
options.apply_defaults timeout: @config.rpcs.list_certificates.timeout,
|
419
|
+
metadata: metadata,
|
420
|
+
retry_policy: @config.rpcs.list_certificates.retry_policy
|
421
|
+
options.apply_defaults metadata: @config.metadata,
|
422
|
+
retry_policy: @config.retry_policy
|
423
|
+
|
424
|
+
@certificate_authority_service_stub.call_rpc :list_certificates, request, options: options do |response, operation|
|
425
|
+
response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificates, request, response, operation, options
|
426
|
+
yield response, operation if block_given?
|
427
|
+
return response
|
428
|
+
end
|
429
|
+
rescue ::GRPC::BadStatus => e
|
430
|
+
raise ::Google::Cloud::Error.from_error(e)
|
431
|
+
end
|
432
|
+
|
433
|
+
##
|
434
|
+
# Revoke a {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate}.
|
435
|
+
#
|
436
|
+
# @overload revoke_certificate(request, options = nil)
|
437
|
+
# Pass arguments to `revoke_certificate` via a request object, either of type
|
438
|
+
# {::Google::Cloud::Security::PrivateCA::V1::RevokeCertificateRequest} or an equivalent Hash.
|
439
|
+
#
|
440
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::RevokeCertificateRequest, ::Hash]
|
441
|
+
# A request object representing the call parameters. Required. To specify no
|
442
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
443
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
444
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
445
|
+
#
|
446
|
+
# @overload revoke_certificate(name: nil, reason: nil, request_id: nil)
|
447
|
+
# Pass arguments to `revoke_certificate` via keyword arguments. Note that at
|
448
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
449
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
450
|
+
#
|
451
|
+
# @param name [::String]
|
452
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} in the
|
453
|
+
# format
|
454
|
+
# `projects/*/locations/*/caPools/*/certificates/*`.
|
455
|
+
# @param reason [::Google::Cloud::Security::PrivateCA::V1::RevocationReason]
|
456
|
+
# Required. The {::Google::Cloud::Security::PrivateCA::V1::RevocationReason RevocationReason} for revoking this certificate.
|
457
|
+
# @param request_id [::String]
|
458
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
459
|
+
# retry your request, the server will know to ignore the request if it has
|
460
|
+
# already been completed. The server will guarantee that for at least 60
|
461
|
+
# minutes since the first request.
|
462
|
+
#
|
463
|
+
# For example, consider a situation where you make an initial request and t
|
464
|
+
# he request times out. If you make the request again with the same request
|
465
|
+
# ID, the server can check if original operation with the same request ID
|
466
|
+
# was received, and if so, will ignore the second request. This prevents
|
467
|
+
# clients from accidentally creating duplicate commitments.
|
468
|
+
#
|
469
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
470
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
471
|
+
#
|
472
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
473
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
474
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
475
|
+
#
|
476
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
477
|
+
#
|
478
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
479
|
+
#
|
480
|
+
def revoke_certificate request, options = nil
|
481
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
482
|
+
|
483
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::RevokeCertificateRequest
|
484
|
+
|
485
|
+
# Converts hash and nil to an options object
|
486
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
487
|
+
|
488
|
+
# Customize the options with defaults
|
489
|
+
metadata = @config.rpcs.revoke_certificate.metadata.to_h
|
490
|
+
|
491
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
492
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
493
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
494
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
495
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
496
|
+
|
497
|
+
header_params = {
|
498
|
+
"name" => request.name
|
499
|
+
}
|
500
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
501
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
502
|
+
|
503
|
+
options.apply_defaults timeout: @config.rpcs.revoke_certificate.timeout,
|
504
|
+
metadata: metadata,
|
505
|
+
retry_policy: @config.rpcs.revoke_certificate.retry_policy
|
506
|
+
options.apply_defaults metadata: @config.metadata,
|
507
|
+
retry_policy: @config.retry_policy
|
508
|
+
|
509
|
+
@certificate_authority_service_stub.call_rpc :revoke_certificate, request, options: options do |response, operation|
|
510
|
+
yield response, operation if block_given?
|
511
|
+
return response
|
512
|
+
end
|
513
|
+
rescue ::GRPC::BadStatus => e
|
514
|
+
raise ::Google::Cloud::Error.from_error(e)
|
515
|
+
end
|
516
|
+
|
517
|
+
##
|
518
|
+
# Update a {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate}. Currently, the only field you can update is the
|
519
|
+
# {::Google::Cloud::Security::PrivateCA::V1::Certificate#labels labels} field.
|
520
|
+
#
|
521
|
+
# @overload update_certificate(request, options = nil)
|
522
|
+
# Pass arguments to `update_certificate` via a request object, either of type
|
523
|
+
# {::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRequest} or an equivalent Hash.
|
524
|
+
#
|
525
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRequest, ::Hash]
|
526
|
+
# A request object representing the call parameters. Required. To specify no
|
527
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
528
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
529
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
530
|
+
#
|
531
|
+
# @overload update_certificate(certificate: nil, update_mask: nil, request_id: nil)
|
532
|
+
# Pass arguments to `update_certificate` via keyword arguments. Note that at
|
533
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
534
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
535
|
+
#
|
536
|
+
# @param certificate [::Google::Cloud::Security::PrivateCA::V1::Certificate, ::Hash]
|
537
|
+
# Required. {::Google::Cloud::Security::PrivateCA::V1::Certificate Certificate} with updated values.
|
538
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
539
|
+
# Required. A list of fields to be updated in this request.
|
540
|
+
# @param request_id [::String]
|
541
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
542
|
+
# retry your request, the server will know to ignore the request if it has
|
543
|
+
# already been completed. The server will guarantee that for at least 60
|
544
|
+
# minutes since the first request.
|
545
|
+
#
|
546
|
+
# For example, consider a situation where you make an initial request and t
|
547
|
+
# he request times out. If you make the request again with the same request
|
548
|
+
# ID, the server can check if original operation with the same request ID
|
549
|
+
# was received, and if so, will ignore the second request. This prevents
|
550
|
+
# clients from accidentally creating duplicate commitments.
|
551
|
+
#
|
552
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
553
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
554
|
+
#
|
555
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
556
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
557
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
558
|
+
#
|
559
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
560
|
+
#
|
561
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
562
|
+
#
|
563
|
+
def update_certificate request, options = nil
|
564
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
565
|
+
|
566
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRequest
|
567
|
+
|
568
|
+
# Converts hash and nil to an options object
|
569
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
570
|
+
|
571
|
+
# Customize the options with defaults
|
572
|
+
metadata = @config.rpcs.update_certificate.metadata.to_h
|
573
|
+
|
574
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
575
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
576
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
577
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
578
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
579
|
+
|
580
|
+
header_params = {
|
581
|
+
"certificate.name" => request.certificate.name
|
582
|
+
}
|
583
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
584
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
585
|
+
|
586
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate.timeout,
|
587
|
+
metadata: metadata,
|
588
|
+
retry_policy: @config.rpcs.update_certificate.retry_policy
|
589
|
+
options.apply_defaults metadata: @config.metadata,
|
590
|
+
retry_policy: @config.retry_policy
|
591
|
+
|
592
|
+
@certificate_authority_service_stub.call_rpc :update_certificate, request, options: options do |response, operation|
|
593
|
+
yield response, operation if block_given?
|
594
|
+
return response
|
595
|
+
end
|
596
|
+
rescue ::GRPC::BadStatus => e
|
597
|
+
raise ::Google::Cloud::Error.from_error(e)
|
598
|
+
end
|
599
|
+
|
600
|
+
##
|
601
|
+
# Activate a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} that is in state
|
602
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::State::AWAITING_USER_ACTIVATION AWAITING_USER_ACTIVATION}
|
603
|
+
# and is of type {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::Type::SUBORDINATE SUBORDINATE}. After
|
604
|
+
# the parent Certificate Authority signs a certificate signing request from
|
605
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client#fetch_certificate_authority_csr FetchCertificateAuthorityCsr}, this method can complete the activation
|
606
|
+
# process.
|
607
|
+
#
|
608
|
+
# @overload activate_certificate_authority(request, options = nil)
|
609
|
+
# Pass arguments to `activate_certificate_authority` via a request object, either of type
|
610
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ActivateCertificateAuthorityRequest} or an equivalent Hash.
|
611
|
+
#
|
612
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::ActivateCertificateAuthorityRequest, ::Hash]
|
613
|
+
# A request object representing the call parameters. Required. To specify no
|
614
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
615
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
616
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
617
|
+
#
|
618
|
+
# @overload activate_certificate_authority(name: nil, pem_ca_certificate: nil, subordinate_config: nil, request_id: nil)
|
619
|
+
# Pass arguments to `activate_certificate_authority` via keyword arguments. Note that at
|
620
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
621
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
622
|
+
#
|
623
|
+
# @param name [::String]
|
624
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the
|
625
|
+
# format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
626
|
+
# @param pem_ca_certificate [::String]
|
627
|
+
# Required. The signed CA certificate issued from
|
628
|
+
# {::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrResponse#pem_csr FetchCertificateAuthorityCsrResponse.pem_csr}.
|
629
|
+
# @param subordinate_config [::Google::Cloud::Security::PrivateCA::V1::SubordinateConfig, ::Hash]
|
630
|
+
# Required. Must include information about the issuer of 'pem_ca_certificate', and any
|
631
|
+
# further issuers until the self-signed CA.
|
632
|
+
# @param request_id [::String]
|
633
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
634
|
+
# retry your request, the server will know to ignore the request if it has
|
635
|
+
# already been completed. The server will guarantee that for at least 60
|
636
|
+
# minutes since the first request.
|
637
|
+
#
|
638
|
+
# For example, consider a situation where you make an initial request and t
|
639
|
+
# he request times out. If you make the request again with the same request
|
640
|
+
# ID, the server can check if original operation with the same request ID
|
641
|
+
# was received, and if so, will ignore the second request. This prevents
|
642
|
+
# clients from accidentally creating duplicate commitments.
|
643
|
+
#
|
644
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
645
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
646
|
+
#
|
647
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
648
|
+
# @yieldparam response [::Gapic::Operation]
|
649
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
650
|
+
#
|
651
|
+
# @return [::Gapic::Operation]
|
652
|
+
#
|
653
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
654
|
+
#
|
655
|
+
def activate_certificate_authority request, options = nil
|
656
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
657
|
+
|
658
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::ActivateCertificateAuthorityRequest
|
659
|
+
|
660
|
+
# Converts hash and nil to an options object
|
661
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
662
|
+
|
663
|
+
# Customize the options with defaults
|
664
|
+
metadata = @config.rpcs.activate_certificate_authority.metadata.to_h
|
665
|
+
|
666
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
667
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
668
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
669
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
670
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
671
|
+
|
672
|
+
header_params = {
|
673
|
+
"name" => request.name
|
674
|
+
}
|
675
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
676
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
677
|
+
|
678
|
+
options.apply_defaults timeout: @config.rpcs.activate_certificate_authority.timeout,
|
679
|
+
metadata: metadata,
|
680
|
+
retry_policy: @config.rpcs.activate_certificate_authority.retry_policy
|
681
|
+
options.apply_defaults metadata: @config.metadata,
|
682
|
+
retry_policy: @config.retry_policy
|
683
|
+
|
684
|
+
@certificate_authority_service_stub.call_rpc :activate_certificate_authority, request, options: options do |response, operation|
|
685
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
686
|
+
yield response, operation if block_given?
|
687
|
+
return response
|
688
|
+
end
|
689
|
+
rescue ::GRPC::BadStatus => e
|
690
|
+
raise ::Google::Cloud::Error.from_error(e)
|
691
|
+
end
|
692
|
+
|
693
|
+
##
|
694
|
+
# Create a new {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in a given Project and Location.
|
695
|
+
#
|
696
|
+
# @overload create_certificate_authority(request, options = nil)
|
697
|
+
# Pass arguments to `create_certificate_authority` via a request object, either of type
|
698
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CreateCertificateAuthorityRequest} or an equivalent Hash.
|
699
|
+
#
|
700
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateAuthorityRequest, ::Hash]
|
701
|
+
# A request object representing the call parameters. Required. To specify no
|
702
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
703
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
704
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
705
|
+
#
|
706
|
+
# @overload create_certificate_authority(parent: nil, certificate_authority_id: nil, certificate_authority: nil, request_id: nil)
|
707
|
+
# Pass arguments to `create_certificate_authority` via keyword arguments. Note that at
|
708
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
709
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
710
|
+
#
|
711
|
+
# @param parent [::String]
|
712
|
+
# Required. The resource name of the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} associated with the
|
713
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthorities}, in the format
|
714
|
+
# `projects/*/locations/*/caPools/*`.
|
715
|
+
# @param certificate_authority_id [::String]
|
716
|
+
# Required. It must be unique within a location and match the regular
|
717
|
+
# expression `[a-zA-Z0-9_-]{1,63}`
|
718
|
+
# @param certificate_authority [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority, ::Hash]
|
719
|
+
# Required. A {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} with initial field values.
|
720
|
+
# @param request_id [::String]
|
721
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
722
|
+
# retry your request, the server will know to ignore the request if it has
|
723
|
+
# already been completed. The server will guarantee that for at least 60
|
724
|
+
# minutes since the first request.
|
725
|
+
#
|
726
|
+
# For example, consider a situation where you make an initial request and t
|
727
|
+
# he request times out. If you make the request again with the same request
|
728
|
+
# ID, the server can check if original operation with the same request ID
|
729
|
+
# was received, and if so, will ignore the second request. This prevents
|
730
|
+
# clients from accidentally creating duplicate commitments.
|
731
|
+
#
|
732
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
733
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
734
|
+
#
|
735
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
736
|
+
# @yieldparam response [::Gapic::Operation]
|
737
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
738
|
+
#
|
739
|
+
# @return [::Gapic::Operation]
|
740
|
+
#
|
741
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
742
|
+
#
|
743
|
+
def create_certificate_authority request, options = nil
|
744
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
745
|
+
|
746
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateAuthorityRequest
|
747
|
+
|
748
|
+
# Converts hash and nil to an options object
|
749
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
750
|
+
|
751
|
+
# Customize the options with defaults
|
752
|
+
metadata = @config.rpcs.create_certificate_authority.metadata.to_h
|
753
|
+
|
754
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
755
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
756
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
757
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
758
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
759
|
+
|
760
|
+
header_params = {
|
761
|
+
"parent" => request.parent
|
762
|
+
}
|
763
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
764
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
765
|
+
|
766
|
+
options.apply_defaults timeout: @config.rpcs.create_certificate_authority.timeout,
|
767
|
+
metadata: metadata,
|
768
|
+
retry_policy: @config.rpcs.create_certificate_authority.retry_policy
|
769
|
+
options.apply_defaults metadata: @config.metadata,
|
770
|
+
retry_policy: @config.retry_policy
|
771
|
+
|
772
|
+
@certificate_authority_service_stub.call_rpc :create_certificate_authority, request, options: options do |response, operation|
|
773
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
774
|
+
yield response, operation if block_given?
|
775
|
+
return response
|
776
|
+
end
|
777
|
+
rescue ::GRPC::BadStatus => e
|
778
|
+
raise ::Google::Cloud::Error.from_error(e)
|
779
|
+
end
|
780
|
+
|
781
|
+
##
|
782
|
+
# Disable a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}.
|
783
|
+
#
|
784
|
+
# @overload disable_certificate_authority(request, options = nil)
|
785
|
+
# Pass arguments to `disable_certificate_authority` via a request object, either of type
|
786
|
+
# {::Google::Cloud::Security::PrivateCA::V1::DisableCertificateAuthorityRequest} or an equivalent Hash.
|
787
|
+
#
|
788
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::DisableCertificateAuthorityRequest, ::Hash]
|
789
|
+
# A request object representing the call parameters. Required. To specify no
|
790
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
791
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
792
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
793
|
+
#
|
794
|
+
# @overload disable_certificate_authority(name: nil, request_id: nil)
|
795
|
+
# Pass arguments to `disable_certificate_authority` via keyword arguments. Note that at
|
796
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
797
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
798
|
+
#
|
799
|
+
# @param name [::String]
|
800
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the
|
801
|
+
# format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
802
|
+
# @param request_id [::String]
|
803
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
804
|
+
# retry your request, the server will know to ignore the request if it has
|
805
|
+
# already been completed. The server will guarantee that for at least 60
|
806
|
+
# minutes since the first request.
|
807
|
+
#
|
808
|
+
# For example, consider a situation where you make an initial request and t
|
809
|
+
# he request times out. If you make the request again with the same request
|
810
|
+
# ID, the server can check if original operation with the same request ID
|
811
|
+
# was received, and if so, will ignore the second request. This prevents
|
812
|
+
# clients from accidentally creating duplicate commitments.
|
813
|
+
#
|
814
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
815
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
816
|
+
#
|
817
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
818
|
+
# @yieldparam response [::Gapic::Operation]
|
819
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
820
|
+
#
|
821
|
+
# @return [::Gapic::Operation]
|
822
|
+
#
|
823
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
824
|
+
#
|
825
|
+
def disable_certificate_authority request, options = nil
|
826
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
827
|
+
|
828
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::DisableCertificateAuthorityRequest
|
829
|
+
|
830
|
+
# Converts hash and nil to an options object
|
831
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
832
|
+
|
833
|
+
# Customize the options with defaults
|
834
|
+
metadata = @config.rpcs.disable_certificate_authority.metadata.to_h
|
835
|
+
|
836
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
837
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
838
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
839
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
840
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
841
|
+
|
842
|
+
header_params = {
|
843
|
+
"name" => request.name
|
844
|
+
}
|
845
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
846
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
847
|
+
|
848
|
+
options.apply_defaults timeout: @config.rpcs.disable_certificate_authority.timeout,
|
849
|
+
metadata: metadata,
|
850
|
+
retry_policy: @config.rpcs.disable_certificate_authority.retry_policy
|
851
|
+
options.apply_defaults metadata: @config.metadata,
|
852
|
+
retry_policy: @config.retry_policy
|
853
|
+
|
854
|
+
@certificate_authority_service_stub.call_rpc :disable_certificate_authority, request, options: options do |response, operation|
|
855
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
856
|
+
yield response, operation if block_given?
|
857
|
+
return response
|
858
|
+
end
|
859
|
+
rescue ::GRPC::BadStatus => e
|
860
|
+
raise ::Google::Cloud::Error.from_error(e)
|
861
|
+
end
|
862
|
+
|
863
|
+
##
|
864
|
+
# Enable a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}.
|
865
|
+
#
|
866
|
+
# @overload enable_certificate_authority(request, options = nil)
|
867
|
+
# Pass arguments to `enable_certificate_authority` via a request object, either of type
|
868
|
+
# {::Google::Cloud::Security::PrivateCA::V1::EnableCertificateAuthorityRequest} or an equivalent Hash.
|
869
|
+
#
|
870
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::EnableCertificateAuthorityRequest, ::Hash]
|
871
|
+
# A request object representing the call parameters. Required. To specify no
|
872
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
873
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
874
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
875
|
+
#
|
876
|
+
# @overload enable_certificate_authority(name: nil, request_id: nil)
|
877
|
+
# Pass arguments to `enable_certificate_authority` via keyword arguments. Note that at
|
878
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
879
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
880
|
+
#
|
881
|
+
# @param name [::String]
|
882
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the
|
883
|
+
# format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
884
|
+
# @param request_id [::String]
|
885
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
886
|
+
# retry your request, the server will know to ignore the request if it has
|
887
|
+
# already been completed. The server will guarantee that for at least 60
|
888
|
+
# minutes since the first request.
|
889
|
+
#
|
890
|
+
# For example, consider a situation where you make an initial request and t
|
891
|
+
# he request times out. If you make the request again with the same request
|
892
|
+
# ID, the server can check if original operation with the same request ID
|
893
|
+
# was received, and if so, will ignore the second request. This prevents
|
894
|
+
# clients from accidentally creating duplicate commitments.
|
895
|
+
#
|
896
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
897
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
898
|
+
#
|
899
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
900
|
+
# @yieldparam response [::Gapic::Operation]
|
901
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
902
|
+
#
|
903
|
+
# @return [::Gapic::Operation]
|
904
|
+
#
|
905
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
906
|
+
#
|
907
|
+
def enable_certificate_authority request, options = nil
|
908
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
909
|
+
|
910
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::EnableCertificateAuthorityRequest
|
911
|
+
|
912
|
+
# Converts hash and nil to an options object
|
913
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
914
|
+
|
915
|
+
# Customize the options with defaults
|
916
|
+
metadata = @config.rpcs.enable_certificate_authority.metadata.to_h
|
917
|
+
|
918
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
919
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
920
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
921
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
922
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
923
|
+
|
924
|
+
header_params = {
|
925
|
+
"name" => request.name
|
926
|
+
}
|
927
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
928
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
929
|
+
|
930
|
+
options.apply_defaults timeout: @config.rpcs.enable_certificate_authority.timeout,
|
931
|
+
metadata: metadata,
|
932
|
+
retry_policy: @config.rpcs.enable_certificate_authority.retry_policy
|
933
|
+
options.apply_defaults metadata: @config.metadata,
|
934
|
+
retry_policy: @config.retry_policy
|
935
|
+
|
936
|
+
@certificate_authority_service_stub.call_rpc :enable_certificate_authority, request, options: options do |response, operation|
|
937
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
938
|
+
yield response, operation if block_given?
|
939
|
+
return response
|
940
|
+
end
|
941
|
+
rescue ::GRPC::BadStatus => e
|
942
|
+
raise ::Google::Cloud::Error.from_error(e)
|
943
|
+
end
|
944
|
+
|
945
|
+
##
|
946
|
+
# Fetch a certificate signing request (CSR) from a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}
|
947
|
+
# that is in state
|
948
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::State::AWAITING_USER_ACTIVATION AWAITING_USER_ACTIVATION}
|
949
|
+
# and is of type {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::Type::SUBORDINATE SUBORDINATE}. The
|
950
|
+
# CSR must then be signed by the desired parent Certificate Authority, which
|
951
|
+
# could be another {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} resource, or could be an on-prem
|
952
|
+
# certificate authority. See also {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client#activate_certificate_authority ActivateCertificateAuthority}.
|
953
|
+
#
|
954
|
+
# @overload fetch_certificate_authority_csr(request, options = nil)
|
955
|
+
# Pass arguments to `fetch_certificate_authority_csr` via a request object, either of type
|
956
|
+
# {::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrRequest} or an equivalent Hash.
|
957
|
+
#
|
958
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrRequest, ::Hash]
|
959
|
+
# A request object representing the call parameters. Required. To specify no
|
960
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
961
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
962
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
963
|
+
#
|
964
|
+
# @overload fetch_certificate_authority_csr(name: nil)
|
965
|
+
# Pass arguments to `fetch_certificate_authority_csr` via keyword arguments. Note that at
|
966
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
967
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
968
|
+
#
|
969
|
+
# @param name [::String]
|
970
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the
|
971
|
+
# format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
972
|
+
#
|
973
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
974
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrResponse]
|
975
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
976
|
+
#
|
977
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrResponse]
|
978
|
+
#
|
979
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
980
|
+
#
|
981
|
+
def fetch_certificate_authority_csr request, options = nil
|
982
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
983
|
+
|
984
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrRequest
|
985
|
+
|
986
|
+
# Converts hash and nil to an options object
|
987
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
988
|
+
|
989
|
+
# Customize the options with defaults
|
990
|
+
metadata = @config.rpcs.fetch_certificate_authority_csr.metadata.to_h
|
991
|
+
|
992
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
993
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
994
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
995
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
996
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
997
|
+
|
998
|
+
header_params = {
|
999
|
+
"name" => request.name
|
1000
|
+
}
|
1001
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1002
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1003
|
+
|
1004
|
+
options.apply_defaults timeout: @config.rpcs.fetch_certificate_authority_csr.timeout,
|
1005
|
+
metadata: metadata,
|
1006
|
+
retry_policy: @config.rpcs.fetch_certificate_authority_csr.retry_policy
|
1007
|
+
options.apply_defaults metadata: @config.metadata,
|
1008
|
+
retry_policy: @config.retry_policy
|
1009
|
+
|
1010
|
+
@certificate_authority_service_stub.call_rpc :fetch_certificate_authority_csr, request, options: options do |response, operation|
|
1011
|
+
yield response, operation if block_given?
|
1012
|
+
return response
|
1013
|
+
end
|
1014
|
+
rescue ::GRPC::BadStatus => e
|
1015
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
##
|
1019
|
+
# Returns a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}.
|
1020
|
+
#
|
1021
|
+
# @overload get_certificate_authority(request, options = nil)
|
1022
|
+
# Pass arguments to `get_certificate_authority` via a request object, either of type
|
1023
|
+
# {::Google::Cloud::Security::PrivateCA::V1::GetCertificateAuthorityRequest} or an equivalent Hash.
|
1024
|
+
#
|
1025
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::GetCertificateAuthorityRequest, ::Hash]
|
1026
|
+
# A request object representing the call parameters. Required. To specify no
|
1027
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1028
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1029
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1030
|
+
#
|
1031
|
+
# @overload get_certificate_authority(name: nil)
|
1032
|
+
# Pass arguments to `get_certificate_authority` via keyword arguments. Note that at
|
1033
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1034
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1035
|
+
#
|
1036
|
+
# @param name [::String]
|
1037
|
+
# Required. The {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority#name name} of the {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} to
|
1038
|
+
# get.
|
1039
|
+
#
|
1040
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1041
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority]
|
1042
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1043
|
+
#
|
1044
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority]
|
1045
|
+
#
|
1046
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1047
|
+
#
|
1048
|
+
def get_certificate_authority request, options = nil
|
1049
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1050
|
+
|
1051
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::GetCertificateAuthorityRequest
|
1052
|
+
|
1053
|
+
# Converts hash and nil to an options object
|
1054
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1055
|
+
|
1056
|
+
# Customize the options with defaults
|
1057
|
+
metadata = @config.rpcs.get_certificate_authority.metadata.to_h
|
1058
|
+
|
1059
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1060
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1061
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1062
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1063
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1064
|
+
|
1065
|
+
header_params = {
|
1066
|
+
"name" => request.name
|
1067
|
+
}
|
1068
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1069
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1070
|
+
|
1071
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate_authority.timeout,
|
1072
|
+
metadata: metadata,
|
1073
|
+
retry_policy: @config.rpcs.get_certificate_authority.retry_policy
|
1074
|
+
options.apply_defaults metadata: @config.metadata,
|
1075
|
+
retry_policy: @config.retry_policy
|
1076
|
+
|
1077
|
+
@certificate_authority_service_stub.call_rpc :get_certificate_authority, request, options: options do |response, operation|
|
1078
|
+
yield response, operation if block_given?
|
1079
|
+
return response
|
1080
|
+
end
|
1081
|
+
rescue ::GRPC::BadStatus => e
|
1082
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
##
|
1086
|
+
# Lists {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthorities}.
|
1087
|
+
#
|
1088
|
+
# @overload list_certificate_authorities(request, options = nil)
|
1089
|
+
# Pass arguments to `list_certificate_authorities` via a request object, either of type
|
1090
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesRequest} or an equivalent Hash.
|
1091
|
+
#
|
1092
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesRequest, ::Hash]
|
1093
|
+
# A request object representing the call parameters. Required. To specify no
|
1094
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1095
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1096
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1097
|
+
#
|
1098
|
+
# @overload list_certificate_authorities(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1099
|
+
# Pass arguments to `list_certificate_authorities` via keyword arguments. Note that at
|
1100
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1101
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1102
|
+
#
|
1103
|
+
# @param parent [::String]
|
1104
|
+
# Required. The resource name of the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} associated with the
|
1105
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthorities}, in the format
|
1106
|
+
# `projects/*/locations/*/caPools/*`.
|
1107
|
+
# @param page_size [::Integer]
|
1108
|
+
# Optional. Limit on the number of {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthorities} to
|
1109
|
+
# include in the response.
|
1110
|
+
# Further {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthorities} can subsequently be
|
1111
|
+
# obtained by including the
|
1112
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesResponse#next_page_token ListCertificateAuthoritiesResponse.next_page_token} in a subsequent
|
1113
|
+
# request. If unspecified, the server will pick an appropriate default.
|
1114
|
+
# @param page_token [::String]
|
1115
|
+
# Optional. Pagination token, returned earlier via
|
1116
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesResponse#next_page_token ListCertificateAuthoritiesResponse.next_page_token}.
|
1117
|
+
# @param filter [::String]
|
1118
|
+
# Optional. Only include resources that match the filter in the response.
|
1119
|
+
# @param order_by [::String]
|
1120
|
+
# Optional. Specify how the results should be sorted.
|
1121
|
+
#
|
1122
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1123
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority>]
|
1124
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1125
|
+
#
|
1126
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority>]
|
1127
|
+
#
|
1128
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1129
|
+
#
|
1130
|
+
def list_certificate_authorities request, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1132
|
+
|
1133
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesRequest
|
1134
|
+
|
1135
|
+
# Converts hash and nil to an options object
|
1136
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1137
|
+
|
1138
|
+
# Customize the options with defaults
|
1139
|
+
metadata = @config.rpcs.list_certificate_authorities.metadata.to_h
|
1140
|
+
|
1141
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1142
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1143
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1144
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1145
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1146
|
+
|
1147
|
+
header_params = {
|
1148
|
+
"parent" => request.parent
|
1149
|
+
}
|
1150
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1151
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1152
|
+
|
1153
|
+
options.apply_defaults timeout: @config.rpcs.list_certificate_authorities.timeout,
|
1154
|
+
metadata: metadata,
|
1155
|
+
retry_policy: @config.rpcs.list_certificate_authorities.retry_policy
|
1156
|
+
options.apply_defaults metadata: @config.metadata,
|
1157
|
+
retry_policy: @config.retry_policy
|
1158
|
+
|
1159
|
+
@certificate_authority_service_stub.call_rpc :list_certificate_authorities, request, options: options do |response, operation|
|
1160
|
+
response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_authorities, request, response, operation, options
|
1161
|
+
yield response, operation if block_given?
|
1162
|
+
return response
|
1163
|
+
end
|
1164
|
+
rescue ::GRPC::BadStatus => e
|
1165
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
##
|
1169
|
+
# Undelete a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} that has been deleted.
|
1170
|
+
#
|
1171
|
+
# @overload undelete_certificate_authority(request, options = nil)
|
1172
|
+
# Pass arguments to `undelete_certificate_authority` via a request object, either of type
|
1173
|
+
# {::Google::Cloud::Security::PrivateCA::V1::UndeleteCertificateAuthorityRequest} or an equivalent Hash.
|
1174
|
+
#
|
1175
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::UndeleteCertificateAuthorityRequest, ::Hash]
|
1176
|
+
# A request object representing the call parameters. Required. To specify no
|
1177
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1178
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1179
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1180
|
+
#
|
1181
|
+
# @overload undelete_certificate_authority(name: nil, request_id: nil)
|
1182
|
+
# Pass arguments to `undelete_certificate_authority` via keyword arguments. Note that at
|
1183
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1184
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1185
|
+
#
|
1186
|
+
# @param name [::String]
|
1187
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the
|
1188
|
+
# format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
1189
|
+
# @param request_id [::String]
|
1190
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1191
|
+
# retry your request, the server will know to ignore the request if it has
|
1192
|
+
# already been completed. The server will guarantee that for at least 60
|
1193
|
+
# minutes since the first request.
|
1194
|
+
#
|
1195
|
+
# For example, consider a situation where you make an initial request and t
|
1196
|
+
# he request times out. If you make the request again with the same request
|
1197
|
+
# ID, the server can check if original operation with the same request ID
|
1198
|
+
# was received, and if so, will ignore the second request. This prevents
|
1199
|
+
# clients from accidentally creating duplicate commitments.
|
1200
|
+
#
|
1201
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1202
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1203
|
+
#
|
1204
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1205
|
+
# @yieldparam response [::Gapic::Operation]
|
1206
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1207
|
+
#
|
1208
|
+
# @return [::Gapic::Operation]
|
1209
|
+
#
|
1210
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1211
|
+
#
|
1212
|
+
def undelete_certificate_authority request, options = nil
|
1213
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1214
|
+
|
1215
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::UndeleteCertificateAuthorityRequest
|
1216
|
+
|
1217
|
+
# Converts hash and nil to an options object
|
1218
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1219
|
+
|
1220
|
+
# Customize the options with defaults
|
1221
|
+
metadata = @config.rpcs.undelete_certificate_authority.metadata.to_h
|
1222
|
+
|
1223
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1224
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1225
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1226
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1227
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1228
|
+
|
1229
|
+
header_params = {
|
1230
|
+
"name" => request.name
|
1231
|
+
}
|
1232
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1233
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1234
|
+
|
1235
|
+
options.apply_defaults timeout: @config.rpcs.undelete_certificate_authority.timeout,
|
1236
|
+
metadata: metadata,
|
1237
|
+
retry_policy: @config.rpcs.undelete_certificate_authority.retry_policy
|
1238
|
+
options.apply_defaults metadata: @config.metadata,
|
1239
|
+
retry_policy: @config.retry_policy
|
1240
|
+
|
1241
|
+
@certificate_authority_service_stub.call_rpc :undelete_certificate_authority, request, options: options do |response, operation|
|
1242
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1243
|
+
yield response, operation if block_given?
|
1244
|
+
return response
|
1245
|
+
end
|
1246
|
+
rescue ::GRPC::BadStatus => e
|
1247
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
##
|
1251
|
+
# Delete a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}.
|
1252
|
+
#
|
1253
|
+
# @overload delete_certificate_authority(request, options = nil)
|
1254
|
+
# Pass arguments to `delete_certificate_authority` via a request object, either of type
|
1255
|
+
# {::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateAuthorityRequest} or an equivalent Hash.
|
1256
|
+
#
|
1257
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateAuthorityRequest, ::Hash]
|
1258
|
+
# A request object representing the call parameters. Required. To specify no
|
1259
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1260
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1261
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1262
|
+
#
|
1263
|
+
# @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil)
|
1264
|
+
# Pass arguments to `delete_certificate_authority` via keyword arguments. Note that at
|
1265
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1266
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1267
|
+
#
|
1268
|
+
# @param name [::String]
|
1269
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the
|
1270
|
+
# format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
1271
|
+
# @param request_id [::String]
|
1272
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1273
|
+
# retry your request, the server will know to ignore the request if it has
|
1274
|
+
# already been completed. The server will guarantee that for at least 60
|
1275
|
+
# minutes since the first request.
|
1276
|
+
#
|
1277
|
+
# For example, consider a situation where you make an initial request and t
|
1278
|
+
# he request times out. If you make the request again with the same request
|
1279
|
+
# ID, the server can check if original operation with the same request ID
|
1280
|
+
# was received, and if so, will ignore the second request. This prevents
|
1281
|
+
# clients from accidentally creating duplicate commitments.
|
1282
|
+
#
|
1283
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1284
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1285
|
+
# @param ignore_active_certificates [::Boolean]
|
1286
|
+
# Optional. This field allows the CA to be deleted even if the CA has
|
1287
|
+
# active certs. Active certs include both unrevoked and unexpired certs.
|
1288
|
+
#
|
1289
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1290
|
+
# @yieldparam response [::Gapic::Operation]
|
1291
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1292
|
+
#
|
1293
|
+
# @return [::Gapic::Operation]
|
1294
|
+
#
|
1295
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1296
|
+
#
|
1297
|
+
def delete_certificate_authority request, options = nil
|
1298
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1299
|
+
|
1300
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateAuthorityRequest
|
1301
|
+
|
1302
|
+
# Converts hash and nil to an options object
|
1303
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1304
|
+
|
1305
|
+
# Customize the options with defaults
|
1306
|
+
metadata = @config.rpcs.delete_certificate_authority.metadata.to_h
|
1307
|
+
|
1308
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1309
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1310
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1311
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1312
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1313
|
+
|
1314
|
+
header_params = {
|
1315
|
+
"name" => request.name
|
1316
|
+
}
|
1317
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1318
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1319
|
+
|
1320
|
+
options.apply_defaults timeout: @config.rpcs.delete_certificate_authority.timeout,
|
1321
|
+
metadata: metadata,
|
1322
|
+
retry_policy: @config.rpcs.delete_certificate_authority.retry_policy
|
1323
|
+
options.apply_defaults metadata: @config.metadata,
|
1324
|
+
retry_policy: @config.retry_policy
|
1325
|
+
|
1326
|
+
@certificate_authority_service_stub.call_rpc :delete_certificate_authority, request, options: options do |response, operation|
|
1327
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1328
|
+
yield response, operation if block_given?
|
1329
|
+
return response
|
1330
|
+
end
|
1331
|
+
rescue ::GRPC::BadStatus => e
|
1332
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
##
|
1336
|
+
# Update a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}.
|
1337
|
+
#
|
1338
|
+
# @overload update_certificate_authority(request, options = nil)
|
1339
|
+
# Pass arguments to `update_certificate_authority` via a request object, either of type
|
1340
|
+
# {::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateAuthorityRequest} or an equivalent Hash.
|
1341
|
+
#
|
1342
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateAuthorityRequest, ::Hash]
|
1343
|
+
# A request object representing the call parameters. Required. To specify no
|
1344
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1345
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1346
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1347
|
+
#
|
1348
|
+
# @overload update_certificate_authority(certificate_authority: nil, update_mask: nil, request_id: nil)
|
1349
|
+
# Pass arguments to `update_certificate_authority` via keyword arguments. Note that at
|
1350
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1351
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1352
|
+
#
|
1353
|
+
# @param certificate_authority [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority, ::Hash]
|
1354
|
+
# Required. {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} with updated values.
|
1355
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1356
|
+
# Required. A list of fields to be updated in this request.
|
1357
|
+
# @param request_id [::String]
|
1358
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1359
|
+
# retry your request, the server will know to ignore the request if it has
|
1360
|
+
# already been completed. The server will guarantee that for at least 60
|
1361
|
+
# minutes since the first request.
|
1362
|
+
#
|
1363
|
+
# For example, consider a situation where you make an initial request and t
|
1364
|
+
# he request times out. If you make the request again with the same request
|
1365
|
+
# ID, the server can check if original operation with the same request ID
|
1366
|
+
# was received, and if so, will ignore the second request. This prevents
|
1367
|
+
# clients from accidentally creating duplicate commitments.
|
1368
|
+
#
|
1369
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1370
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1371
|
+
#
|
1372
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1373
|
+
# @yieldparam response [::Gapic::Operation]
|
1374
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1375
|
+
#
|
1376
|
+
# @return [::Gapic::Operation]
|
1377
|
+
#
|
1378
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1379
|
+
#
|
1380
|
+
def update_certificate_authority request, options = nil
|
1381
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1382
|
+
|
1383
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateAuthorityRequest
|
1384
|
+
|
1385
|
+
# Converts hash and nil to an options object
|
1386
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1387
|
+
|
1388
|
+
# Customize the options with defaults
|
1389
|
+
metadata = @config.rpcs.update_certificate_authority.metadata.to_h
|
1390
|
+
|
1391
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1392
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1393
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1394
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1395
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1396
|
+
|
1397
|
+
header_params = {
|
1398
|
+
"certificate_authority.name" => request.certificate_authority.name
|
1399
|
+
}
|
1400
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1401
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1402
|
+
|
1403
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate_authority.timeout,
|
1404
|
+
metadata: metadata,
|
1405
|
+
retry_policy: @config.rpcs.update_certificate_authority.retry_policy
|
1406
|
+
options.apply_defaults metadata: @config.metadata,
|
1407
|
+
retry_policy: @config.retry_policy
|
1408
|
+
|
1409
|
+
@certificate_authority_service_stub.call_rpc :update_certificate_authority, request, options: options do |response, operation|
|
1410
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1411
|
+
yield response, operation if block_given?
|
1412
|
+
return response
|
1413
|
+
end
|
1414
|
+
rescue ::GRPC::BadStatus => e
|
1415
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
##
|
1419
|
+
# Create a {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
|
1420
|
+
#
|
1421
|
+
# @overload create_ca_pool(request, options = nil)
|
1422
|
+
# Pass arguments to `create_ca_pool` via a request object, either of type
|
1423
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CreateCaPoolRequest} or an equivalent Hash.
|
1424
|
+
#
|
1425
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::CreateCaPoolRequest, ::Hash]
|
1426
|
+
# A request object representing the call parameters. Required. To specify no
|
1427
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1428
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1429
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1430
|
+
#
|
1431
|
+
# @overload create_ca_pool(parent: nil, ca_pool_id: nil, ca_pool: nil, request_id: nil)
|
1432
|
+
# Pass arguments to `create_ca_pool` via keyword arguments. Note that at
|
1433
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1434
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1435
|
+
#
|
1436
|
+
# @param parent [::String]
|
1437
|
+
# Required. The resource name of the location associated with the
|
1438
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}, in the format `projects/*/locations/*`.
|
1439
|
+
# @param ca_pool_id [::String]
|
1440
|
+
# Required. It must be unique within a location and match the regular
|
1441
|
+
# expression `[a-zA-Z0-9_-]{1,63}`
|
1442
|
+
# @param ca_pool [::Google::Cloud::Security::PrivateCA::V1::CaPool, ::Hash]
|
1443
|
+
# Required. A {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} with initial field values.
|
1444
|
+
# @param request_id [::String]
|
1445
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1446
|
+
# retry your request, the server will know to ignore the request if it has
|
1447
|
+
# already been completed. The server will guarantee that for at least 60
|
1448
|
+
# minutes since the first request.
|
1449
|
+
#
|
1450
|
+
# For example, consider a situation where you make an initial request and t
|
1451
|
+
# he request times out. If you make the request again with the same request
|
1452
|
+
# ID, the server can check if original operation with the same request ID
|
1453
|
+
# was received, and if so, will ignore the second request. This prevents
|
1454
|
+
# clients from accidentally creating duplicate commitments.
|
1455
|
+
#
|
1456
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1457
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1458
|
+
#
|
1459
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1460
|
+
# @yieldparam response [::Gapic::Operation]
|
1461
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1462
|
+
#
|
1463
|
+
# @return [::Gapic::Operation]
|
1464
|
+
#
|
1465
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1466
|
+
#
|
1467
|
+
def create_ca_pool request, options = nil
|
1468
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1469
|
+
|
1470
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::CreateCaPoolRequest
|
1471
|
+
|
1472
|
+
# Converts hash and nil to an options object
|
1473
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1474
|
+
|
1475
|
+
# Customize the options with defaults
|
1476
|
+
metadata = @config.rpcs.create_ca_pool.metadata.to_h
|
1477
|
+
|
1478
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1479
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1480
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1481
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1482
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1483
|
+
|
1484
|
+
header_params = {
|
1485
|
+
"parent" => request.parent
|
1486
|
+
}
|
1487
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1488
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1489
|
+
|
1490
|
+
options.apply_defaults timeout: @config.rpcs.create_ca_pool.timeout,
|
1491
|
+
metadata: metadata,
|
1492
|
+
retry_policy: @config.rpcs.create_ca_pool.retry_policy
|
1493
|
+
options.apply_defaults metadata: @config.metadata,
|
1494
|
+
retry_policy: @config.retry_policy
|
1495
|
+
|
1496
|
+
@certificate_authority_service_stub.call_rpc :create_ca_pool, request, options: options do |response, operation|
|
1497
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1498
|
+
yield response, operation if block_given?
|
1499
|
+
return response
|
1500
|
+
end
|
1501
|
+
rescue ::GRPC::BadStatus => e
|
1502
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1503
|
+
end
|
1504
|
+
|
1505
|
+
##
|
1506
|
+
# Update a {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
|
1507
|
+
#
|
1508
|
+
# @overload update_ca_pool(request, options = nil)
|
1509
|
+
# Pass arguments to `update_ca_pool` via a request object, either of type
|
1510
|
+
# {::Google::Cloud::Security::PrivateCA::V1::UpdateCaPoolRequest} or an equivalent Hash.
|
1511
|
+
#
|
1512
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::UpdateCaPoolRequest, ::Hash]
|
1513
|
+
# A request object representing the call parameters. Required. To specify no
|
1514
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1515
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1516
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1517
|
+
#
|
1518
|
+
# @overload update_ca_pool(ca_pool: nil, update_mask: nil, request_id: nil)
|
1519
|
+
# Pass arguments to `update_ca_pool` via keyword arguments. Note that at
|
1520
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1521
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1522
|
+
#
|
1523
|
+
# @param ca_pool [::Google::Cloud::Security::PrivateCA::V1::CaPool, ::Hash]
|
1524
|
+
# Required. {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} with updated values.
|
1525
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1526
|
+
# Required. A list of fields to be updated in this request.
|
1527
|
+
# @param request_id [::String]
|
1528
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1529
|
+
# retry your request, the server will know to ignore the request if it has
|
1530
|
+
# already been completed. The server will guarantee that for at least 60
|
1531
|
+
# minutes since the first request.
|
1532
|
+
#
|
1533
|
+
# For example, consider a situation where you make an initial request and t
|
1534
|
+
# he request times out. If you make the request again with the same request
|
1535
|
+
# ID, the server can check if original operation with the same request ID
|
1536
|
+
# was received, and if so, will ignore the second request. This prevents
|
1537
|
+
# clients from accidentally creating duplicate commitments.
|
1538
|
+
#
|
1539
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1540
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1541
|
+
#
|
1542
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1543
|
+
# @yieldparam response [::Gapic::Operation]
|
1544
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1545
|
+
#
|
1546
|
+
# @return [::Gapic::Operation]
|
1547
|
+
#
|
1548
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1549
|
+
#
|
1550
|
+
def update_ca_pool request, options = nil
|
1551
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1552
|
+
|
1553
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::UpdateCaPoolRequest
|
1554
|
+
|
1555
|
+
# Converts hash and nil to an options object
|
1556
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1557
|
+
|
1558
|
+
# Customize the options with defaults
|
1559
|
+
metadata = @config.rpcs.update_ca_pool.metadata.to_h
|
1560
|
+
|
1561
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1562
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1563
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1564
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1565
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1566
|
+
|
1567
|
+
header_params = {
|
1568
|
+
"ca_pool.name" => request.ca_pool.name
|
1569
|
+
}
|
1570
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1571
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1572
|
+
|
1573
|
+
options.apply_defaults timeout: @config.rpcs.update_ca_pool.timeout,
|
1574
|
+
metadata: metadata,
|
1575
|
+
retry_policy: @config.rpcs.update_ca_pool.retry_policy
|
1576
|
+
options.apply_defaults metadata: @config.metadata,
|
1577
|
+
retry_policy: @config.retry_policy
|
1578
|
+
|
1579
|
+
@certificate_authority_service_stub.call_rpc :update_ca_pool, request, options: options do |response, operation|
|
1580
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1581
|
+
yield response, operation if block_given?
|
1582
|
+
return response
|
1583
|
+
end
|
1584
|
+
rescue ::GRPC::BadStatus => e
|
1585
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
##
|
1589
|
+
# Returns a {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
|
1590
|
+
#
|
1591
|
+
# @overload get_ca_pool(request, options = nil)
|
1592
|
+
# Pass arguments to `get_ca_pool` via a request object, either of type
|
1593
|
+
# {::Google::Cloud::Security::PrivateCA::V1::GetCaPoolRequest} or an equivalent Hash.
|
1594
|
+
#
|
1595
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::GetCaPoolRequest, ::Hash]
|
1596
|
+
# A request object representing the call parameters. Required. To specify no
|
1597
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1598
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1599
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1600
|
+
#
|
1601
|
+
# @overload get_ca_pool(name: nil)
|
1602
|
+
# Pass arguments to `get_ca_pool` via keyword arguments. Note that at
|
1603
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1604
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1605
|
+
#
|
1606
|
+
# @param name [::String]
|
1607
|
+
# Required. The {::Google::Cloud::Security::PrivateCA::V1::CaPool#name name} of the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} to get.
|
1608
|
+
#
|
1609
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1610
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::CaPool]
|
1611
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1612
|
+
#
|
1613
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::CaPool]
|
1614
|
+
#
|
1615
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1616
|
+
#
|
1617
|
+
def get_ca_pool request, options = nil
|
1618
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1619
|
+
|
1620
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::GetCaPoolRequest
|
1621
|
+
|
1622
|
+
# Converts hash and nil to an options object
|
1623
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1624
|
+
|
1625
|
+
# Customize the options with defaults
|
1626
|
+
metadata = @config.rpcs.get_ca_pool.metadata.to_h
|
1627
|
+
|
1628
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1629
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1630
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1631
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1632
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1633
|
+
|
1634
|
+
header_params = {
|
1635
|
+
"name" => request.name
|
1636
|
+
}
|
1637
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1638
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1639
|
+
|
1640
|
+
options.apply_defaults timeout: @config.rpcs.get_ca_pool.timeout,
|
1641
|
+
metadata: metadata,
|
1642
|
+
retry_policy: @config.rpcs.get_ca_pool.retry_policy
|
1643
|
+
options.apply_defaults metadata: @config.metadata,
|
1644
|
+
retry_policy: @config.retry_policy
|
1645
|
+
|
1646
|
+
@certificate_authority_service_stub.call_rpc :get_ca_pool, request, options: options do |response, operation|
|
1647
|
+
yield response, operation if block_given?
|
1648
|
+
return response
|
1649
|
+
end
|
1650
|
+
rescue ::GRPC::BadStatus => e
|
1651
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
##
|
1655
|
+
# Lists {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPools}.
|
1656
|
+
#
|
1657
|
+
# @overload list_ca_pools(request, options = nil)
|
1658
|
+
# Pass arguments to `list_ca_pools` via a request object, either of type
|
1659
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsRequest} or an equivalent Hash.
|
1660
|
+
#
|
1661
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsRequest, ::Hash]
|
1662
|
+
# A request object representing the call parameters. Required. To specify no
|
1663
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1664
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1665
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1666
|
+
#
|
1667
|
+
# @overload list_ca_pools(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1668
|
+
# Pass arguments to `list_ca_pools` via keyword arguments. Note that at
|
1669
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1670
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1671
|
+
#
|
1672
|
+
# @param parent [::String]
|
1673
|
+
# Required. The resource name of the location associated with the
|
1674
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPools}, in the format
|
1675
|
+
# `projects/*/locations/*`.
|
1676
|
+
# @param page_size [::Integer]
|
1677
|
+
# Optional. Limit on the number of {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPools} to
|
1678
|
+
# include in the response.
|
1679
|
+
# Further {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPools} can subsequently be
|
1680
|
+
# obtained by including the
|
1681
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsResponse#next_page_token ListCaPoolsResponse.next_page_token} in a subsequent
|
1682
|
+
# request. If unspecified, the server will pick an appropriate default.
|
1683
|
+
# @param page_token [::String]
|
1684
|
+
# Optional. Pagination token, returned earlier via
|
1685
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsResponse#next_page_token ListCaPoolsResponse.next_page_token}.
|
1686
|
+
# @param filter [::String]
|
1687
|
+
# Optional. Only include resources that match the filter in the response.
|
1688
|
+
# @param order_by [::String]
|
1689
|
+
# Optional. Specify how the results should be sorted.
|
1690
|
+
#
|
1691
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1692
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CaPool>]
|
1693
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1694
|
+
#
|
1695
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CaPool>]
|
1696
|
+
#
|
1697
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1698
|
+
#
|
1699
|
+
def list_ca_pools request, options = nil
|
1700
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1701
|
+
|
1702
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsRequest
|
1703
|
+
|
1704
|
+
# Converts hash and nil to an options object
|
1705
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1706
|
+
|
1707
|
+
# Customize the options with defaults
|
1708
|
+
metadata = @config.rpcs.list_ca_pools.metadata.to_h
|
1709
|
+
|
1710
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1711
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1712
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1713
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1714
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1715
|
+
|
1716
|
+
header_params = {
|
1717
|
+
"parent" => request.parent
|
1718
|
+
}
|
1719
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1720
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1721
|
+
|
1722
|
+
options.apply_defaults timeout: @config.rpcs.list_ca_pools.timeout,
|
1723
|
+
metadata: metadata,
|
1724
|
+
retry_policy: @config.rpcs.list_ca_pools.retry_policy
|
1725
|
+
options.apply_defaults metadata: @config.metadata,
|
1726
|
+
retry_policy: @config.retry_policy
|
1727
|
+
|
1728
|
+
@certificate_authority_service_stub.call_rpc :list_ca_pools, request, options: options do |response, operation|
|
1729
|
+
response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_ca_pools, request, response, operation, options
|
1730
|
+
yield response, operation if block_given?
|
1731
|
+
return response
|
1732
|
+
end
|
1733
|
+
rescue ::GRPC::BadStatus => e
|
1734
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
##
|
1738
|
+
# Delete a {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
|
1739
|
+
#
|
1740
|
+
# @overload delete_ca_pool(request, options = nil)
|
1741
|
+
# Pass arguments to `delete_ca_pool` via a request object, either of type
|
1742
|
+
# {::Google::Cloud::Security::PrivateCA::V1::DeleteCaPoolRequest} or an equivalent Hash.
|
1743
|
+
#
|
1744
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::DeleteCaPoolRequest, ::Hash]
|
1745
|
+
# A request object representing the call parameters. Required. To specify no
|
1746
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1747
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1748
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1749
|
+
#
|
1750
|
+
# @overload delete_ca_pool(name: nil, request_id: nil)
|
1751
|
+
# Pass arguments to `delete_ca_pool` via keyword arguments. Note that at
|
1752
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1753
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1754
|
+
#
|
1755
|
+
# @param name [::String]
|
1756
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} in the
|
1757
|
+
# format `projects/*/locations/*/caPools/*`.
|
1758
|
+
# @param request_id [::String]
|
1759
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1760
|
+
# retry your request, the server will know to ignore the request if it has
|
1761
|
+
# already been completed. The server will guarantee that for at least 60
|
1762
|
+
# minutes since the first request.
|
1763
|
+
#
|
1764
|
+
# For example, consider a situation where you make an initial request and t
|
1765
|
+
# he request times out. If you make the request again with the same request
|
1766
|
+
# ID, the server can check if original operation with the same request ID
|
1767
|
+
# was received, and if so, will ignore the second request. This prevents
|
1768
|
+
# clients from accidentally creating duplicate commitments.
|
1769
|
+
#
|
1770
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1771
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1772
|
+
#
|
1773
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1774
|
+
# @yieldparam response [::Gapic::Operation]
|
1775
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1776
|
+
#
|
1777
|
+
# @return [::Gapic::Operation]
|
1778
|
+
#
|
1779
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1780
|
+
#
|
1781
|
+
def delete_ca_pool request, options = nil
|
1782
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1783
|
+
|
1784
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::DeleteCaPoolRequest
|
1785
|
+
|
1786
|
+
# Converts hash and nil to an options object
|
1787
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1788
|
+
|
1789
|
+
# Customize the options with defaults
|
1790
|
+
metadata = @config.rpcs.delete_ca_pool.metadata.to_h
|
1791
|
+
|
1792
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1793
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1794
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1795
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1796
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1797
|
+
|
1798
|
+
header_params = {
|
1799
|
+
"name" => request.name
|
1800
|
+
}
|
1801
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1802
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1803
|
+
|
1804
|
+
options.apply_defaults timeout: @config.rpcs.delete_ca_pool.timeout,
|
1805
|
+
metadata: metadata,
|
1806
|
+
retry_policy: @config.rpcs.delete_ca_pool.retry_policy
|
1807
|
+
options.apply_defaults metadata: @config.metadata,
|
1808
|
+
retry_policy: @config.retry_policy
|
1809
|
+
|
1810
|
+
@certificate_authority_service_stub.call_rpc :delete_ca_pool, request, options: options do |response, operation|
|
1811
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1812
|
+
yield response, operation if block_given?
|
1813
|
+
return response
|
1814
|
+
end
|
1815
|
+
rescue ::GRPC::BadStatus => e
|
1816
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
##
|
1820
|
+
# FetchCaCerts returns the current trust anchor for the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}. This will
|
1821
|
+
# include CA certificate chains for all ACTIVE {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}
|
1822
|
+
# resources in the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
|
1823
|
+
#
|
1824
|
+
# @overload fetch_ca_certs(request, options = nil)
|
1825
|
+
# Pass arguments to `fetch_ca_certs` via a request object, either of type
|
1826
|
+
# {::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsRequest} or an equivalent Hash.
|
1827
|
+
#
|
1828
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsRequest, ::Hash]
|
1829
|
+
# A request object representing the call parameters. Required. To specify no
|
1830
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1831
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1832
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1833
|
+
#
|
1834
|
+
# @overload fetch_ca_certs(ca_pool: nil, request_id: nil)
|
1835
|
+
# Pass arguments to `fetch_ca_certs` via keyword arguments. Note that at
|
1836
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1837
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1838
|
+
#
|
1839
|
+
# @param ca_pool [::String]
|
1840
|
+
# Required. The resource name for the {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool} in the
|
1841
|
+
# format `projects/*/locations/*/caPools/*`.
|
1842
|
+
# @param request_id [::String]
|
1843
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
1844
|
+
# retry your request, the server will know to ignore the request if it has
|
1845
|
+
# already been completed. The server will guarantee that for at least 60
|
1846
|
+
# minutes since the first request.
|
1847
|
+
#
|
1848
|
+
# For example, consider a situation where you make an initial request and t
|
1849
|
+
# he request times out. If you make the request again with the same request
|
1850
|
+
# ID, the server can check if original operation with the same request ID
|
1851
|
+
# was received, and if so, will ignore the second request. This prevents
|
1852
|
+
# clients from accidentally creating duplicate commitments.
|
1853
|
+
#
|
1854
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1855
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1856
|
+
#
|
1857
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1858
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse]
|
1859
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1860
|
+
#
|
1861
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse]
|
1862
|
+
#
|
1863
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1864
|
+
#
|
1865
|
+
def fetch_ca_certs request, options = nil
|
1866
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1867
|
+
|
1868
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsRequest
|
1869
|
+
|
1870
|
+
# Converts hash and nil to an options object
|
1871
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1872
|
+
|
1873
|
+
# Customize the options with defaults
|
1874
|
+
metadata = @config.rpcs.fetch_ca_certs.metadata.to_h
|
1875
|
+
|
1876
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1877
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1878
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1879
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1880
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1881
|
+
|
1882
|
+
header_params = {
|
1883
|
+
"ca_pool" => request.ca_pool
|
1884
|
+
}
|
1885
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1886
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1887
|
+
|
1888
|
+
options.apply_defaults timeout: @config.rpcs.fetch_ca_certs.timeout,
|
1889
|
+
metadata: metadata,
|
1890
|
+
retry_policy: @config.rpcs.fetch_ca_certs.retry_policy
|
1891
|
+
options.apply_defaults metadata: @config.metadata,
|
1892
|
+
retry_policy: @config.retry_policy
|
1893
|
+
|
1894
|
+
@certificate_authority_service_stub.call_rpc :fetch_ca_certs, request, options: options do |response, operation|
|
1895
|
+
yield response, operation if block_given?
|
1896
|
+
return response
|
1897
|
+
end
|
1898
|
+
rescue ::GRPC::BadStatus => e
|
1899
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
##
|
1903
|
+
# Returns a {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationList}.
|
1904
|
+
#
|
1905
|
+
# @overload get_certificate_revocation_list(request, options = nil)
|
1906
|
+
# Pass arguments to `get_certificate_revocation_list` via a request object, either of type
|
1907
|
+
# {::Google::Cloud::Security::PrivateCA::V1::GetCertificateRevocationListRequest} or an equivalent Hash.
|
1908
|
+
#
|
1909
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::GetCertificateRevocationListRequest, ::Hash]
|
1910
|
+
# A request object representing the call parameters. Required. To specify no
|
1911
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1912
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1913
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1914
|
+
#
|
1915
|
+
# @overload get_certificate_revocation_list(name: nil)
|
1916
|
+
# Pass arguments to `get_certificate_revocation_list` via keyword arguments. Note that at
|
1917
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1918
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1919
|
+
#
|
1920
|
+
# @param name [::String]
|
1921
|
+
# Required. The {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList#name name} of the
|
1922
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationList} to get.
|
1923
|
+
#
|
1924
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1925
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList]
|
1926
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1927
|
+
#
|
1928
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList]
|
1929
|
+
#
|
1930
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1931
|
+
#
|
1932
|
+
def get_certificate_revocation_list request, options = nil
|
1933
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1934
|
+
|
1935
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::GetCertificateRevocationListRequest
|
1936
|
+
|
1937
|
+
# Converts hash and nil to an options object
|
1938
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1939
|
+
|
1940
|
+
# Customize the options with defaults
|
1941
|
+
metadata = @config.rpcs.get_certificate_revocation_list.metadata.to_h
|
1942
|
+
|
1943
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1944
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1945
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1946
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1947
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1948
|
+
|
1949
|
+
header_params = {
|
1950
|
+
"name" => request.name
|
1951
|
+
}
|
1952
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1953
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1954
|
+
|
1955
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate_revocation_list.timeout,
|
1956
|
+
metadata: metadata,
|
1957
|
+
retry_policy: @config.rpcs.get_certificate_revocation_list.retry_policy
|
1958
|
+
options.apply_defaults metadata: @config.metadata,
|
1959
|
+
retry_policy: @config.retry_policy
|
1960
|
+
|
1961
|
+
@certificate_authority_service_stub.call_rpc :get_certificate_revocation_list, request, options: options do |response, operation|
|
1962
|
+
yield response, operation if block_given?
|
1963
|
+
return response
|
1964
|
+
end
|
1965
|
+
rescue ::GRPC::BadStatus => e
|
1966
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
##
|
1970
|
+
# Lists {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationLists}.
|
1971
|
+
#
|
1972
|
+
# @overload list_certificate_revocation_lists(request, options = nil)
|
1973
|
+
# Pass arguments to `list_certificate_revocation_lists` via a request object, either of type
|
1974
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsRequest} or an equivalent Hash.
|
1975
|
+
#
|
1976
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsRequest, ::Hash]
|
1977
|
+
# A request object representing the call parameters. Required. To specify no
|
1978
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1979
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1980
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1981
|
+
#
|
1982
|
+
# @overload list_certificate_revocation_lists(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1983
|
+
# Pass arguments to `list_certificate_revocation_lists` via keyword arguments. Note that at
|
1984
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1985
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1986
|
+
#
|
1987
|
+
# @param parent [::String]
|
1988
|
+
# Required. The resource name of the location associated with the
|
1989
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationLists}, in the format
|
1990
|
+
# `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
|
1991
|
+
# @param page_size [::Integer]
|
1992
|
+
# Optional. Limit on the number of
|
1993
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationLists} to include in the
|
1994
|
+
# response. Further {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationLists}
|
1995
|
+
# can subsequently be obtained by including the
|
1996
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse#next_page_token ListCertificateRevocationListsResponse.next_page_token} in a subsequent
|
1997
|
+
# request. If unspecified, the server will pick an appropriate default.
|
1998
|
+
# @param page_token [::String]
|
1999
|
+
# Optional. Pagination token, returned earlier via
|
2000
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse#next_page_token ListCertificateRevocationListsResponse.next_page_token}.
|
2001
|
+
# @param filter [::String]
|
2002
|
+
# Optional. Only include resources that match the filter in the response.
|
2003
|
+
# @param order_by [::String]
|
2004
|
+
# Optional. Specify how the results should be sorted.
|
2005
|
+
#
|
2006
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2007
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList>]
|
2008
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2009
|
+
#
|
2010
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList>]
|
2011
|
+
#
|
2012
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2013
|
+
#
|
2014
|
+
def list_certificate_revocation_lists request, options = nil
|
2015
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2016
|
+
|
2017
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsRequest
|
2018
|
+
|
2019
|
+
# Converts hash and nil to an options object
|
2020
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2021
|
+
|
2022
|
+
# Customize the options with defaults
|
2023
|
+
metadata = @config.rpcs.list_certificate_revocation_lists.metadata.to_h
|
2024
|
+
|
2025
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2026
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2027
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2028
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2029
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2030
|
+
|
2031
|
+
header_params = {
|
2032
|
+
"parent" => request.parent
|
2033
|
+
}
|
2034
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2035
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2036
|
+
|
2037
|
+
options.apply_defaults timeout: @config.rpcs.list_certificate_revocation_lists.timeout,
|
2038
|
+
metadata: metadata,
|
2039
|
+
retry_policy: @config.rpcs.list_certificate_revocation_lists.retry_policy
|
2040
|
+
options.apply_defaults metadata: @config.metadata,
|
2041
|
+
retry_policy: @config.retry_policy
|
2042
|
+
|
2043
|
+
@certificate_authority_service_stub.call_rpc :list_certificate_revocation_lists, request, options: options do |response, operation|
|
2044
|
+
response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_revocation_lists, request, response, operation, options
|
2045
|
+
yield response, operation if block_given?
|
2046
|
+
return response
|
2047
|
+
end
|
2048
|
+
rescue ::GRPC::BadStatus => e
|
2049
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
##
|
2053
|
+
# Update a {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationList}.
|
2054
|
+
#
|
2055
|
+
# @overload update_certificate_revocation_list(request, options = nil)
|
2056
|
+
# Pass arguments to `update_certificate_revocation_list` via a request object, either of type
|
2057
|
+
# {::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRevocationListRequest} or an equivalent Hash.
|
2058
|
+
#
|
2059
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRevocationListRequest, ::Hash]
|
2060
|
+
# A request object representing the call parameters. Required. To specify no
|
2061
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2062
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2063
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2064
|
+
#
|
2065
|
+
# @overload update_certificate_revocation_list(certificate_revocation_list: nil, update_mask: nil, request_id: nil)
|
2066
|
+
# Pass arguments to `update_certificate_revocation_list` via keyword arguments. Note that at
|
2067
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2068
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2069
|
+
#
|
2070
|
+
# @param certificate_revocation_list [::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList, ::Hash]
|
2071
|
+
# Required. {::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList CertificateRevocationList} with updated values.
|
2072
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2073
|
+
# Required. A list of fields to be updated in this request.
|
2074
|
+
# @param request_id [::String]
|
2075
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
2076
|
+
# retry your request, the server will know to ignore the request if it has
|
2077
|
+
# already been completed. The server will guarantee that for at least 60
|
2078
|
+
# minutes since the first request.
|
2079
|
+
#
|
2080
|
+
# For example, consider a situation where you make an initial request and t
|
2081
|
+
# he request times out. If you make the request again with the same request
|
2082
|
+
# ID, the server can check if original operation with the same request ID
|
2083
|
+
# was received, and if so, will ignore the second request. This prevents
|
2084
|
+
# clients from accidentally creating duplicate commitments.
|
2085
|
+
#
|
2086
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2087
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2088
|
+
#
|
2089
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2090
|
+
# @yieldparam response [::Gapic::Operation]
|
2091
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2092
|
+
#
|
2093
|
+
# @return [::Gapic::Operation]
|
2094
|
+
#
|
2095
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2096
|
+
#
|
2097
|
+
def update_certificate_revocation_list request, options = nil
|
2098
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2099
|
+
|
2100
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRevocationListRequest
|
2101
|
+
|
2102
|
+
# Converts hash and nil to an options object
|
2103
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2104
|
+
|
2105
|
+
# Customize the options with defaults
|
2106
|
+
metadata = @config.rpcs.update_certificate_revocation_list.metadata.to_h
|
2107
|
+
|
2108
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2109
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2110
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2111
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2112
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2113
|
+
|
2114
|
+
header_params = {
|
2115
|
+
"certificate_revocation_list.name" => request.certificate_revocation_list.name
|
2116
|
+
}
|
2117
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2118
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2119
|
+
|
2120
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate_revocation_list.timeout,
|
2121
|
+
metadata: metadata,
|
2122
|
+
retry_policy: @config.rpcs.update_certificate_revocation_list.retry_policy
|
2123
|
+
options.apply_defaults metadata: @config.metadata,
|
2124
|
+
retry_policy: @config.retry_policy
|
2125
|
+
|
2126
|
+
@certificate_authority_service_stub.call_rpc :update_certificate_revocation_list, request, options: options do |response, operation|
|
2127
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2128
|
+
yield response, operation if block_given?
|
2129
|
+
return response
|
2130
|
+
end
|
2131
|
+
rescue ::GRPC::BadStatus => e
|
2132
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2133
|
+
end
|
2134
|
+
|
2135
|
+
##
|
2136
|
+
# Create a new {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate} in a given Project and Location.
|
2137
|
+
#
|
2138
|
+
# @overload create_certificate_template(request, options = nil)
|
2139
|
+
# Pass arguments to `create_certificate_template` via a request object, either of type
|
2140
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CreateCertificateTemplateRequest} or an equivalent Hash.
|
2141
|
+
#
|
2142
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateTemplateRequest, ::Hash]
|
2143
|
+
# A request object representing the call parameters. Required. To specify no
|
2144
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2145
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2146
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2147
|
+
#
|
2148
|
+
# @overload create_certificate_template(parent: nil, certificate_template_id: nil, certificate_template: nil, request_id: nil)
|
2149
|
+
# Pass arguments to `create_certificate_template` via keyword arguments. Note that at
|
2150
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2151
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2152
|
+
#
|
2153
|
+
# @param parent [::String]
|
2154
|
+
# Required. The resource name of the location associated with the
|
2155
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate}, in the format
|
2156
|
+
# `projects/*/locations/*`.
|
2157
|
+
# @param certificate_template_id [::String]
|
2158
|
+
# Required. It must be unique within a location and match the regular
|
2159
|
+
# expression `[a-zA-Z0-9_-]{1,63}`
|
2160
|
+
# @param certificate_template [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate, ::Hash]
|
2161
|
+
# Required. A {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate} with initial field values.
|
2162
|
+
# @param request_id [::String]
|
2163
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
2164
|
+
# retry your request, the server will know to ignore the request if it has
|
2165
|
+
# already been completed. The server will guarantee that for at least 60
|
2166
|
+
# minutes since the first request.
|
2167
|
+
#
|
2168
|
+
# For example, consider a situation where you make an initial request and t
|
2169
|
+
# he request times out. If you make the request again with the same request
|
2170
|
+
# ID, the server can check if original operation with the same request ID
|
2171
|
+
# was received, and if so, will ignore the second request. This prevents
|
2172
|
+
# clients from accidentally creating duplicate commitments.
|
2173
|
+
#
|
2174
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2175
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2176
|
+
#
|
2177
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2178
|
+
# @yieldparam response [::Gapic::Operation]
|
2179
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2180
|
+
#
|
2181
|
+
# @return [::Gapic::Operation]
|
2182
|
+
#
|
2183
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2184
|
+
#
|
2185
|
+
def create_certificate_template request, options = nil
|
2186
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2187
|
+
|
2188
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateTemplateRequest
|
2189
|
+
|
2190
|
+
# Converts hash and nil to an options object
|
2191
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2192
|
+
|
2193
|
+
# Customize the options with defaults
|
2194
|
+
metadata = @config.rpcs.create_certificate_template.metadata.to_h
|
2195
|
+
|
2196
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2197
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2198
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2199
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2200
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2201
|
+
|
2202
|
+
header_params = {
|
2203
|
+
"parent" => request.parent
|
2204
|
+
}
|
2205
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2206
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2207
|
+
|
2208
|
+
options.apply_defaults timeout: @config.rpcs.create_certificate_template.timeout,
|
2209
|
+
metadata: metadata,
|
2210
|
+
retry_policy: @config.rpcs.create_certificate_template.retry_policy
|
2211
|
+
options.apply_defaults metadata: @config.metadata,
|
2212
|
+
retry_policy: @config.retry_policy
|
2213
|
+
|
2214
|
+
@certificate_authority_service_stub.call_rpc :create_certificate_template, request, options: options do |response, operation|
|
2215
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2216
|
+
yield response, operation if block_given?
|
2217
|
+
return response
|
2218
|
+
end
|
2219
|
+
rescue ::GRPC::BadStatus => e
|
2220
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
##
|
2224
|
+
# DeleteCertificateTemplate deletes a {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate}.
|
2225
|
+
#
|
2226
|
+
# @overload delete_certificate_template(request, options = nil)
|
2227
|
+
# Pass arguments to `delete_certificate_template` via a request object, either of type
|
2228
|
+
# {::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateTemplateRequest} or an equivalent Hash.
|
2229
|
+
#
|
2230
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateTemplateRequest, ::Hash]
|
2231
|
+
# A request object representing the call parameters. Required. To specify no
|
2232
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2233
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2234
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2235
|
+
#
|
2236
|
+
# @overload delete_certificate_template(name: nil, request_id: nil)
|
2237
|
+
# Pass arguments to `delete_certificate_template` via keyword arguments. Note that at
|
2238
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2239
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2240
|
+
#
|
2241
|
+
# @param name [::String]
|
2242
|
+
# Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate} in the format
|
2243
|
+
# `projects/*/locations/*/certificateTemplates/*`.
|
2244
|
+
# @param request_id [::String]
|
2245
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
2246
|
+
# retry your request, the server will know to ignore the request if it has
|
2247
|
+
# already been completed. The server will guarantee that for at least 60
|
2248
|
+
# minutes since the first request.
|
2249
|
+
#
|
2250
|
+
# For example, consider a situation where you make an initial request and t
|
2251
|
+
# he request times out. If you make the request again with the same request
|
2252
|
+
# ID, the server can check if original operation with the same request ID
|
2253
|
+
# was received, and if so, will ignore the second request. This prevents
|
2254
|
+
# clients from accidentally creating duplicate commitments.
|
2255
|
+
#
|
2256
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2257
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2258
|
+
#
|
2259
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2260
|
+
# @yieldparam response [::Gapic::Operation]
|
2261
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2262
|
+
#
|
2263
|
+
# @return [::Gapic::Operation]
|
2264
|
+
#
|
2265
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2266
|
+
#
|
2267
|
+
def delete_certificate_template request, options = nil
|
2268
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2269
|
+
|
2270
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateTemplateRequest
|
2271
|
+
|
2272
|
+
# Converts hash and nil to an options object
|
2273
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2274
|
+
|
2275
|
+
# Customize the options with defaults
|
2276
|
+
metadata = @config.rpcs.delete_certificate_template.metadata.to_h
|
2277
|
+
|
2278
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2279
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2280
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2281
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2282
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2283
|
+
|
2284
|
+
header_params = {
|
2285
|
+
"name" => request.name
|
2286
|
+
}
|
2287
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2288
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2289
|
+
|
2290
|
+
options.apply_defaults timeout: @config.rpcs.delete_certificate_template.timeout,
|
2291
|
+
metadata: metadata,
|
2292
|
+
retry_policy: @config.rpcs.delete_certificate_template.retry_policy
|
2293
|
+
options.apply_defaults metadata: @config.metadata,
|
2294
|
+
retry_policy: @config.retry_policy
|
2295
|
+
|
2296
|
+
@certificate_authority_service_stub.call_rpc :delete_certificate_template, request, options: options do |response, operation|
|
2297
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2298
|
+
yield response, operation if block_given?
|
2299
|
+
return response
|
2300
|
+
end
|
2301
|
+
rescue ::GRPC::BadStatus => e
|
2302
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2303
|
+
end
|
2304
|
+
|
2305
|
+
##
|
2306
|
+
# Returns a {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate}.
|
2307
|
+
#
|
2308
|
+
# @overload get_certificate_template(request, options = nil)
|
2309
|
+
# Pass arguments to `get_certificate_template` via a request object, either of type
|
2310
|
+
# {::Google::Cloud::Security::PrivateCA::V1::GetCertificateTemplateRequest} or an equivalent Hash.
|
2311
|
+
#
|
2312
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::GetCertificateTemplateRequest, ::Hash]
|
2313
|
+
# A request object representing the call parameters. Required. To specify no
|
2314
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2315
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2316
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2317
|
+
#
|
2318
|
+
# @overload get_certificate_template(name: nil)
|
2319
|
+
# Pass arguments to `get_certificate_template` via keyword arguments. Note that at
|
2320
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2321
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2322
|
+
#
|
2323
|
+
# @param name [::String]
|
2324
|
+
# Required. The {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate#name name} of the {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate} to
|
2325
|
+
# get.
|
2326
|
+
#
|
2327
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2328
|
+
# @yieldparam response [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate]
|
2329
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2330
|
+
#
|
2331
|
+
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate]
|
2332
|
+
#
|
2333
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2334
|
+
#
|
2335
|
+
def get_certificate_template request, options = nil
|
2336
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2337
|
+
|
2338
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::GetCertificateTemplateRequest
|
2339
|
+
|
2340
|
+
# Converts hash and nil to an options object
|
2341
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2342
|
+
|
2343
|
+
# Customize the options with defaults
|
2344
|
+
metadata = @config.rpcs.get_certificate_template.metadata.to_h
|
2345
|
+
|
2346
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2347
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2348
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2349
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2350
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2351
|
+
|
2352
|
+
header_params = {
|
2353
|
+
"name" => request.name
|
2354
|
+
}
|
2355
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2356
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2357
|
+
|
2358
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate_template.timeout,
|
2359
|
+
metadata: metadata,
|
2360
|
+
retry_policy: @config.rpcs.get_certificate_template.retry_policy
|
2361
|
+
options.apply_defaults metadata: @config.metadata,
|
2362
|
+
retry_policy: @config.retry_policy
|
2363
|
+
|
2364
|
+
@certificate_authority_service_stub.call_rpc :get_certificate_template, request, options: options do |response, operation|
|
2365
|
+
yield response, operation if block_given?
|
2366
|
+
return response
|
2367
|
+
end
|
2368
|
+
rescue ::GRPC::BadStatus => e
|
2369
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
##
|
2373
|
+
# Lists {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplates}.
|
2374
|
+
#
|
2375
|
+
# @overload list_certificate_templates(request, options = nil)
|
2376
|
+
# Pass arguments to `list_certificate_templates` via a request object, either of type
|
2377
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesRequest} or an equivalent Hash.
|
2378
|
+
#
|
2379
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesRequest, ::Hash]
|
2380
|
+
# A request object representing the call parameters. Required. To specify no
|
2381
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2382
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2383
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2384
|
+
#
|
2385
|
+
# @overload list_certificate_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2386
|
+
# Pass arguments to `list_certificate_templates` via keyword arguments. Note that at
|
2387
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2388
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2389
|
+
#
|
2390
|
+
# @param parent [::String]
|
2391
|
+
# Required. The resource name of the location associated with the
|
2392
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplates}, in the format
|
2393
|
+
# `projects/*/locations/*`.
|
2394
|
+
# @param page_size [::Integer]
|
2395
|
+
# Optional. Limit on the number of
|
2396
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplates} to include in the response.
|
2397
|
+
# Further {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplates} can subsequently be
|
2398
|
+
# obtained by including the
|
2399
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse#next_page_token ListCertificateTemplatesResponse.next_page_token} in a subsequent
|
2400
|
+
# request. If unspecified, the server will pick an appropriate default.
|
2401
|
+
# @param page_token [::String]
|
2402
|
+
# Optional. Pagination token, returned earlier via
|
2403
|
+
# {::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse#next_page_token ListCertificateTemplatesResponse.next_page_token}.
|
2404
|
+
# @param filter [::String]
|
2405
|
+
# Optional. Only include resources that match the filter in the response.
|
2406
|
+
# @param order_by [::String]
|
2407
|
+
# Optional. Specify how the results should be sorted.
|
2408
|
+
#
|
2409
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2410
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate>]
|
2411
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2412
|
+
#
|
2413
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate>]
|
2414
|
+
#
|
2415
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2416
|
+
#
|
2417
|
+
def list_certificate_templates request, options = nil
|
2418
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2419
|
+
|
2420
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesRequest
|
2421
|
+
|
2422
|
+
# Converts hash and nil to an options object
|
2423
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2424
|
+
|
2425
|
+
# Customize the options with defaults
|
2426
|
+
metadata = @config.rpcs.list_certificate_templates.metadata.to_h
|
2427
|
+
|
2428
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2429
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2430
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2431
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2432
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2433
|
+
|
2434
|
+
header_params = {
|
2435
|
+
"parent" => request.parent
|
2436
|
+
}
|
2437
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2438
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2439
|
+
|
2440
|
+
options.apply_defaults timeout: @config.rpcs.list_certificate_templates.timeout,
|
2441
|
+
metadata: metadata,
|
2442
|
+
retry_policy: @config.rpcs.list_certificate_templates.retry_policy
|
2443
|
+
options.apply_defaults metadata: @config.metadata,
|
2444
|
+
retry_policy: @config.retry_policy
|
2445
|
+
|
2446
|
+
@certificate_authority_service_stub.call_rpc :list_certificate_templates, request, options: options do |response, operation|
|
2447
|
+
response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_templates, request, response, operation, options
|
2448
|
+
yield response, operation if block_given?
|
2449
|
+
return response
|
2450
|
+
end
|
2451
|
+
rescue ::GRPC::BadStatus => e
|
2452
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2453
|
+
end
|
2454
|
+
|
2455
|
+
##
|
2456
|
+
# Update a {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate}.
|
2457
|
+
#
|
2458
|
+
# @overload update_certificate_template(request, options = nil)
|
2459
|
+
# Pass arguments to `update_certificate_template` via a request object, either of type
|
2460
|
+
# {::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateTemplateRequest} or an equivalent Hash.
|
2461
|
+
#
|
2462
|
+
# @param request [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateTemplateRequest, ::Hash]
|
2463
|
+
# A request object representing the call parameters. Required. To specify no
|
2464
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2465
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2466
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2467
|
+
#
|
2468
|
+
# @overload update_certificate_template(certificate_template: nil, update_mask: nil, request_id: nil)
|
2469
|
+
# Pass arguments to `update_certificate_template` via keyword arguments. Note that at
|
2470
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2471
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2472
|
+
#
|
2473
|
+
# @param certificate_template [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate, ::Hash]
|
2474
|
+
# Required. {::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate CertificateTemplate} with updated values.
|
2475
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2476
|
+
# Required. A list of fields to be updated in this request.
|
2477
|
+
# @param request_id [::String]
|
2478
|
+
# Optional. An ID to identify requests. Specify a unique request ID so that if you must
|
2479
|
+
# retry your request, the server will know to ignore the request if it has
|
2480
|
+
# already been completed. The server will guarantee that for at least 60
|
2481
|
+
# minutes since the first request.
|
2482
|
+
#
|
2483
|
+
# For example, consider a situation where you make an initial request and t
|
2484
|
+
# he request times out. If you make the request again with the same request
|
2485
|
+
# ID, the server can check if original operation with the same request ID
|
2486
|
+
# was received, and if so, will ignore the second request. This prevents
|
2487
|
+
# clients from accidentally creating duplicate commitments.
|
2488
|
+
#
|
2489
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
2490
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
2491
|
+
#
|
2492
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2493
|
+
# @yieldparam response [::Gapic::Operation]
|
2494
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2495
|
+
#
|
2496
|
+
# @return [::Gapic::Operation]
|
2497
|
+
#
|
2498
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2499
|
+
#
|
2500
|
+
def update_certificate_template request, options = nil
|
2501
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2502
|
+
|
2503
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateTemplateRequest
|
2504
|
+
|
2505
|
+
# Converts hash and nil to an options object
|
2506
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2507
|
+
|
2508
|
+
# Customize the options with defaults
|
2509
|
+
metadata = @config.rpcs.update_certificate_template.metadata.to_h
|
2510
|
+
|
2511
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2512
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2513
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2514
|
+
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2515
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2516
|
+
|
2517
|
+
header_params = {
|
2518
|
+
"certificate_template.name" => request.certificate_template.name
|
2519
|
+
}
|
2520
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2521
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2522
|
+
|
2523
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate_template.timeout,
|
2524
|
+
metadata: metadata,
|
2525
|
+
retry_policy: @config.rpcs.update_certificate_template.retry_policy
|
2526
|
+
options.apply_defaults metadata: @config.metadata,
|
2527
|
+
retry_policy: @config.retry_policy
|
2528
|
+
|
2529
|
+
@certificate_authority_service_stub.call_rpc :update_certificate_template, request, options: options do |response, operation|
|
2530
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2531
|
+
yield response, operation if block_given?
|
2532
|
+
return response
|
2533
|
+
end
|
2534
|
+
rescue ::GRPC::BadStatus => e
|
2535
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2536
|
+
end
|
2537
|
+
|
2538
|
+
##
|
2539
|
+
# Configuration class for the CertificateAuthorityService API.
|
2540
|
+
#
|
2541
|
+
# This class represents the configuration for CertificateAuthorityService,
|
2542
|
+
# providing control over timeouts, retry behavior, logging, transport
|
2543
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
2544
|
+
# applied individually to specific RPCs. See
|
2545
|
+
# {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client::Configuration::Rpcs}
|
2546
|
+
# for a list of RPCs that can be configured independently.
|
2547
|
+
#
|
2548
|
+
# Configuration can be applied globally to all clients, or to a single client
|
2549
|
+
# on construction.
|
2550
|
+
#
|
2551
|
+
# # Examples
|
2552
|
+
#
|
2553
|
+
# To modify the global config, setting the timeout for create_certificate
|
2554
|
+
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
2555
|
+
#
|
2556
|
+
# ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.configure do |config|
|
2557
|
+
# config.timeout = 10.0
|
2558
|
+
# config.rpcs.create_certificate.timeout = 20.0
|
2559
|
+
# end
|
2560
|
+
#
|
2561
|
+
# To apply the above configuration only to a new client:
|
2562
|
+
#
|
2563
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new do |config|
|
2564
|
+
# config.timeout = 10.0
|
2565
|
+
# config.rpcs.create_certificate.timeout = 20.0
|
2566
|
+
# end
|
2567
|
+
#
|
2568
|
+
# @!attribute [rw] endpoint
|
2569
|
+
# The hostname or hostname:port of the service endpoint.
|
2570
|
+
# Defaults to `"privateca.googleapis.com"`.
|
2571
|
+
# @return [::String]
|
2572
|
+
# @!attribute [rw] credentials
|
2573
|
+
# Credentials to send with calls. You may provide any of the following types:
|
2574
|
+
# * (`String`) The path to a service account key file in JSON format
|
2575
|
+
# * (`Hash`) A service account key as a Hash
|
2576
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2577
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
2578
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2579
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
2580
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2581
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2582
|
+
# * (`nil`) indicating no credentials
|
2583
|
+
# @return [::Object]
|
2584
|
+
# @!attribute [rw] scope
|
2585
|
+
# The OAuth scopes
|
2586
|
+
# @return [::Array<::String>]
|
2587
|
+
# @!attribute [rw] lib_name
|
2588
|
+
# The library name as recorded in instrumentation and logging
|
2589
|
+
# @return [::String]
|
2590
|
+
# @!attribute [rw] lib_version
|
2591
|
+
# The library version as recorded in instrumentation and logging
|
2592
|
+
# @return [::String]
|
2593
|
+
# @!attribute [rw] channel_args
|
2594
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
2595
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
2596
|
+
# @return [::Hash]
|
2597
|
+
# @!attribute [rw] interceptors
|
2598
|
+
# An array of interceptors that are run before calls are executed.
|
2599
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
2600
|
+
# @!attribute [rw] timeout
|
2601
|
+
# The call timeout in seconds.
|
2602
|
+
# @return [::Numeric]
|
2603
|
+
# @!attribute [rw] metadata
|
2604
|
+
# Additional gRPC headers to be sent with the call.
|
2605
|
+
# @return [::Hash{::Symbol=>::String}]
|
2606
|
+
# @!attribute [rw] retry_policy
|
2607
|
+
# The retry policy. The value is a hash with the following keys:
|
2608
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2609
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2610
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2611
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2612
|
+
# trigger a retry.
|
2613
|
+
# @return [::Hash]
|
2614
|
+
# @!attribute [rw] quota_project
|
2615
|
+
# A separate project against which to charge quota.
|
2616
|
+
# @return [::String]
|
2617
|
+
#
|
2618
|
+
class Configuration
|
2619
|
+
extend ::Gapic::Config
|
2620
|
+
|
2621
|
+
config_attr :endpoint, "privateca.googleapis.com", ::String
|
2622
|
+
config_attr :credentials, nil do |value|
|
2623
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2624
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2625
|
+
allowed.any? { |klass| klass === value }
|
2626
|
+
end
|
2627
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2628
|
+
config_attr :lib_name, nil, ::String, nil
|
2629
|
+
config_attr :lib_version, nil, ::String, nil
|
2630
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
2631
|
+
config_attr :interceptors, nil, ::Array, nil
|
2632
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2633
|
+
config_attr :metadata, nil, ::Hash, nil
|
2634
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2635
|
+
config_attr :quota_project, nil, ::String, nil
|
2636
|
+
|
2637
|
+
# @private
|
2638
|
+
def initialize parent_config = nil
|
2639
|
+
@parent_config = parent_config unless parent_config.nil?
|
2640
|
+
|
2641
|
+
yield self if block_given?
|
2642
|
+
end
|
2643
|
+
|
2644
|
+
##
|
2645
|
+
# Configurations for individual RPCs
|
2646
|
+
# @return [Rpcs]
|
2647
|
+
#
|
2648
|
+
def rpcs
|
2649
|
+
@rpcs ||= begin
|
2650
|
+
parent_rpcs = nil
|
2651
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2652
|
+
Rpcs.new parent_rpcs
|
2653
|
+
end
|
2654
|
+
end
|
2655
|
+
|
2656
|
+
##
|
2657
|
+
# Configuration RPC class for the CertificateAuthorityService API.
|
2658
|
+
#
|
2659
|
+
# Includes fields providing the configuration for each RPC in this service.
|
2660
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
2661
|
+
# the following configuration fields:
|
2662
|
+
#
|
2663
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
2664
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
2665
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
2666
|
+
# include the following keys:
|
2667
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2668
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2669
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2670
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2671
|
+
# trigger a retry.
|
2672
|
+
#
|
2673
|
+
class Rpcs
|
2674
|
+
##
|
2675
|
+
# RPC-specific configuration for `create_certificate`
|
2676
|
+
# @return [::Gapic::Config::Method]
|
2677
|
+
#
|
2678
|
+
attr_reader :create_certificate
|
2679
|
+
##
|
2680
|
+
# RPC-specific configuration for `get_certificate`
|
2681
|
+
# @return [::Gapic::Config::Method]
|
2682
|
+
#
|
2683
|
+
attr_reader :get_certificate
|
2684
|
+
##
|
2685
|
+
# RPC-specific configuration for `list_certificates`
|
2686
|
+
# @return [::Gapic::Config::Method]
|
2687
|
+
#
|
2688
|
+
attr_reader :list_certificates
|
2689
|
+
##
|
2690
|
+
# RPC-specific configuration for `revoke_certificate`
|
2691
|
+
# @return [::Gapic::Config::Method]
|
2692
|
+
#
|
2693
|
+
attr_reader :revoke_certificate
|
2694
|
+
##
|
2695
|
+
# RPC-specific configuration for `update_certificate`
|
2696
|
+
# @return [::Gapic::Config::Method]
|
2697
|
+
#
|
2698
|
+
attr_reader :update_certificate
|
2699
|
+
##
|
2700
|
+
# RPC-specific configuration for `activate_certificate_authority`
|
2701
|
+
# @return [::Gapic::Config::Method]
|
2702
|
+
#
|
2703
|
+
attr_reader :activate_certificate_authority
|
2704
|
+
##
|
2705
|
+
# RPC-specific configuration for `create_certificate_authority`
|
2706
|
+
# @return [::Gapic::Config::Method]
|
2707
|
+
#
|
2708
|
+
attr_reader :create_certificate_authority
|
2709
|
+
##
|
2710
|
+
# RPC-specific configuration for `disable_certificate_authority`
|
2711
|
+
# @return [::Gapic::Config::Method]
|
2712
|
+
#
|
2713
|
+
attr_reader :disable_certificate_authority
|
2714
|
+
##
|
2715
|
+
# RPC-specific configuration for `enable_certificate_authority`
|
2716
|
+
# @return [::Gapic::Config::Method]
|
2717
|
+
#
|
2718
|
+
attr_reader :enable_certificate_authority
|
2719
|
+
##
|
2720
|
+
# RPC-specific configuration for `fetch_certificate_authority_csr`
|
2721
|
+
# @return [::Gapic::Config::Method]
|
2722
|
+
#
|
2723
|
+
attr_reader :fetch_certificate_authority_csr
|
2724
|
+
##
|
2725
|
+
# RPC-specific configuration for `get_certificate_authority`
|
2726
|
+
# @return [::Gapic::Config::Method]
|
2727
|
+
#
|
2728
|
+
attr_reader :get_certificate_authority
|
2729
|
+
##
|
2730
|
+
# RPC-specific configuration for `list_certificate_authorities`
|
2731
|
+
# @return [::Gapic::Config::Method]
|
2732
|
+
#
|
2733
|
+
attr_reader :list_certificate_authorities
|
2734
|
+
##
|
2735
|
+
# RPC-specific configuration for `undelete_certificate_authority`
|
2736
|
+
# @return [::Gapic::Config::Method]
|
2737
|
+
#
|
2738
|
+
attr_reader :undelete_certificate_authority
|
2739
|
+
##
|
2740
|
+
# RPC-specific configuration for `delete_certificate_authority`
|
2741
|
+
# @return [::Gapic::Config::Method]
|
2742
|
+
#
|
2743
|
+
attr_reader :delete_certificate_authority
|
2744
|
+
##
|
2745
|
+
# RPC-specific configuration for `update_certificate_authority`
|
2746
|
+
# @return [::Gapic::Config::Method]
|
2747
|
+
#
|
2748
|
+
attr_reader :update_certificate_authority
|
2749
|
+
##
|
2750
|
+
# RPC-specific configuration for `create_ca_pool`
|
2751
|
+
# @return [::Gapic::Config::Method]
|
2752
|
+
#
|
2753
|
+
attr_reader :create_ca_pool
|
2754
|
+
##
|
2755
|
+
# RPC-specific configuration for `update_ca_pool`
|
2756
|
+
# @return [::Gapic::Config::Method]
|
2757
|
+
#
|
2758
|
+
attr_reader :update_ca_pool
|
2759
|
+
##
|
2760
|
+
# RPC-specific configuration for `get_ca_pool`
|
2761
|
+
# @return [::Gapic::Config::Method]
|
2762
|
+
#
|
2763
|
+
attr_reader :get_ca_pool
|
2764
|
+
##
|
2765
|
+
# RPC-specific configuration for `list_ca_pools`
|
2766
|
+
# @return [::Gapic::Config::Method]
|
2767
|
+
#
|
2768
|
+
attr_reader :list_ca_pools
|
2769
|
+
##
|
2770
|
+
# RPC-specific configuration for `delete_ca_pool`
|
2771
|
+
# @return [::Gapic::Config::Method]
|
2772
|
+
#
|
2773
|
+
attr_reader :delete_ca_pool
|
2774
|
+
##
|
2775
|
+
# RPC-specific configuration for `fetch_ca_certs`
|
2776
|
+
# @return [::Gapic::Config::Method]
|
2777
|
+
#
|
2778
|
+
attr_reader :fetch_ca_certs
|
2779
|
+
##
|
2780
|
+
# RPC-specific configuration for `get_certificate_revocation_list`
|
2781
|
+
# @return [::Gapic::Config::Method]
|
2782
|
+
#
|
2783
|
+
attr_reader :get_certificate_revocation_list
|
2784
|
+
##
|
2785
|
+
# RPC-specific configuration for `list_certificate_revocation_lists`
|
2786
|
+
# @return [::Gapic::Config::Method]
|
2787
|
+
#
|
2788
|
+
attr_reader :list_certificate_revocation_lists
|
2789
|
+
##
|
2790
|
+
# RPC-specific configuration for `update_certificate_revocation_list`
|
2791
|
+
# @return [::Gapic::Config::Method]
|
2792
|
+
#
|
2793
|
+
attr_reader :update_certificate_revocation_list
|
2794
|
+
##
|
2795
|
+
# RPC-specific configuration for `create_certificate_template`
|
2796
|
+
# @return [::Gapic::Config::Method]
|
2797
|
+
#
|
2798
|
+
attr_reader :create_certificate_template
|
2799
|
+
##
|
2800
|
+
# RPC-specific configuration for `delete_certificate_template`
|
2801
|
+
# @return [::Gapic::Config::Method]
|
2802
|
+
#
|
2803
|
+
attr_reader :delete_certificate_template
|
2804
|
+
##
|
2805
|
+
# RPC-specific configuration for `get_certificate_template`
|
2806
|
+
# @return [::Gapic::Config::Method]
|
2807
|
+
#
|
2808
|
+
attr_reader :get_certificate_template
|
2809
|
+
##
|
2810
|
+
# RPC-specific configuration for `list_certificate_templates`
|
2811
|
+
# @return [::Gapic::Config::Method]
|
2812
|
+
#
|
2813
|
+
attr_reader :list_certificate_templates
|
2814
|
+
##
|
2815
|
+
# RPC-specific configuration for `update_certificate_template`
|
2816
|
+
# @return [::Gapic::Config::Method]
|
2817
|
+
#
|
2818
|
+
attr_reader :update_certificate_template
|
2819
|
+
|
2820
|
+
# @private
|
2821
|
+
def initialize parent_rpcs = nil
|
2822
|
+
create_certificate_config = parent_rpcs.create_certificate if parent_rpcs.respond_to? :create_certificate
|
2823
|
+
@create_certificate = ::Gapic::Config::Method.new create_certificate_config
|
2824
|
+
get_certificate_config = parent_rpcs.get_certificate if parent_rpcs.respond_to? :get_certificate
|
2825
|
+
@get_certificate = ::Gapic::Config::Method.new get_certificate_config
|
2826
|
+
list_certificates_config = parent_rpcs.list_certificates if parent_rpcs.respond_to? :list_certificates
|
2827
|
+
@list_certificates = ::Gapic::Config::Method.new list_certificates_config
|
2828
|
+
revoke_certificate_config = parent_rpcs.revoke_certificate if parent_rpcs.respond_to? :revoke_certificate
|
2829
|
+
@revoke_certificate = ::Gapic::Config::Method.new revoke_certificate_config
|
2830
|
+
update_certificate_config = parent_rpcs.update_certificate if parent_rpcs.respond_to? :update_certificate
|
2831
|
+
@update_certificate = ::Gapic::Config::Method.new update_certificate_config
|
2832
|
+
activate_certificate_authority_config = parent_rpcs.activate_certificate_authority if parent_rpcs.respond_to? :activate_certificate_authority
|
2833
|
+
@activate_certificate_authority = ::Gapic::Config::Method.new activate_certificate_authority_config
|
2834
|
+
create_certificate_authority_config = parent_rpcs.create_certificate_authority if parent_rpcs.respond_to? :create_certificate_authority
|
2835
|
+
@create_certificate_authority = ::Gapic::Config::Method.new create_certificate_authority_config
|
2836
|
+
disable_certificate_authority_config = parent_rpcs.disable_certificate_authority if parent_rpcs.respond_to? :disable_certificate_authority
|
2837
|
+
@disable_certificate_authority = ::Gapic::Config::Method.new disable_certificate_authority_config
|
2838
|
+
enable_certificate_authority_config = parent_rpcs.enable_certificate_authority if parent_rpcs.respond_to? :enable_certificate_authority
|
2839
|
+
@enable_certificate_authority = ::Gapic::Config::Method.new enable_certificate_authority_config
|
2840
|
+
fetch_certificate_authority_csr_config = parent_rpcs.fetch_certificate_authority_csr if parent_rpcs.respond_to? :fetch_certificate_authority_csr
|
2841
|
+
@fetch_certificate_authority_csr = ::Gapic::Config::Method.new fetch_certificate_authority_csr_config
|
2842
|
+
get_certificate_authority_config = parent_rpcs.get_certificate_authority if parent_rpcs.respond_to? :get_certificate_authority
|
2843
|
+
@get_certificate_authority = ::Gapic::Config::Method.new get_certificate_authority_config
|
2844
|
+
list_certificate_authorities_config = parent_rpcs.list_certificate_authorities if parent_rpcs.respond_to? :list_certificate_authorities
|
2845
|
+
@list_certificate_authorities = ::Gapic::Config::Method.new list_certificate_authorities_config
|
2846
|
+
undelete_certificate_authority_config = parent_rpcs.undelete_certificate_authority if parent_rpcs.respond_to? :undelete_certificate_authority
|
2847
|
+
@undelete_certificate_authority = ::Gapic::Config::Method.new undelete_certificate_authority_config
|
2848
|
+
delete_certificate_authority_config = parent_rpcs.delete_certificate_authority if parent_rpcs.respond_to? :delete_certificate_authority
|
2849
|
+
@delete_certificate_authority = ::Gapic::Config::Method.new delete_certificate_authority_config
|
2850
|
+
update_certificate_authority_config = parent_rpcs.update_certificate_authority if parent_rpcs.respond_to? :update_certificate_authority
|
2851
|
+
@update_certificate_authority = ::Gapic::Config::Method.new update_certificate_authority_config
|
2852
|
+
create_ca_pool_config = parent_rpcs.create_ca_pool if parent_rpcs.respond_to? :create_ca_pool
|
2853
|
+
@create_ca_pool = ::Gapic::Config::Method.new create_ca_pool_config
|
2854
|
+
update_ca_pool_config = parent_rpcs.update_ca_pool if parent_rpcs.respond_to? :update_ca_pool
|
2855
|
+
@update_ca_pool = ::Gapic::Config::Method.new update_ca_pool_config
|
2856
|
+
get_ca_pool_config = parent_rpcs.get_ca_pool if parent_rpcs.respond_to? :get_ca_pool
|
2857
|
+
@get_ca_pool = ::Gapic::Config::Method.new get_ca_pool_config
|
2858
|
+
list_ca_pools_config = parent_rpcs.list_ca_pools if parent_rpcs.respond_to? :list_ca_pools
|
2859
|
+
@list_ca_pools = ::Gapic::Config::Method.new list_ca_pools_config
|
2860
|
+
delete_ca_pool_config = parent_rpcs.delete_ca_pool if parent_rpcs.respond_to? :delete_ca_pool
|
2861
|
+
@delete_ca_pool = ::Gapic::Config::Method.new delete_ca_pool_config
|
2862
|
+
fetch_ca_certs_config = parent_rpcs.fetch_ca_certs if parent_rpcs.respond_to? :fetch_ca_certs
|
2863
|
+
@fetch_ca_certs = ::Gapic::Config::Method.new fetch_ca_certs_config
|
2864
|
+
get_certificate_revocation_list_config = parent_rpcs.get_certificate_revocation_list if parent_rpcs.respond_to? :get_certificate_revocation_list
|
2865
|
+
@get_certificate_revocation_list = ::Gapic::Config::Method.new get_certificate_revocation_list_config
|
2866
|
+
list_certificate_revocation_lists_config = parent_rpcs.list_certificate_revocation_lists if parent_rpcs.respond_to? :list_certificate_revocation_lists
|
2867
|
+
@list_certificate_revocation_lists = ::Gapic::Config::Method.new list_certificate_revocation_lists_config
|
2868
|
+
update_certificate_revocation_list_config = parent_rpcs.update_certificate_revocation_list if parent_rpcs.respond_to? :update_certificate_revocation_list
|
2869
|
+
@update_certificate_revocation_list = ::Gapic::Config::Method.new update_certificate_revocation_list_config
|
2870
|
+
create_certificate_template_config = parent_rpcs.create_certificate_template if parent_rpcs.respond_to? :create_certificate_template
|
2871
|
+
@create_certificate_template = ::Gapic::Config::Method.new create_certificate_template_config
|
2872
|
+
delete_certificate_template_config = parent_rpcs.delete_certificate_template if parent_rpcs.respond_to? :delete_certificate_template
|
2873
|
+
@delete_certificate_template = ::Gapic::Config::Method.new delete_certificate_template_config
|
2874
|
+
get_certificate_template_config = parent_rpcs.get_certificate_template if parent_rpcs.respond_to? :get_certificate_template
|
2875
|
+
@get_certificate_template = ::Gapic::Config::Method.new get_certificate_template_config
|
2876
|
+
list_certificate_templates_config = parent_rpcs.list_certificate_templates if parent_rpcs.respond_to? :list_certificate_templates
|
2877
|
+
@list_certificate_templates = ::Gapic::Config::Method.new list_certificate_templates_config
|
2878
|
+
update_certificate_template_config = parent_rpcs.update_certificate_template if parent_rpcs.respond_to? :update_certificate_template
|
2879
|
+
@update_certificate_template = ::Gapic::Config::Method.new update_certificate_template_config
|
2880
|
+
|
2881
|
+
yield self if block_given?
|
2882
|
+
end
|
2883
|
+
end
|
2884
|
+
end
|
2885
|
+
end
|
2886
|
+
end
|
2887
|
+
end
|
2888
|
+
end
|
2889
|
+
end
|
2890
|
+
end
|
2891
|
+
end
|