google-cloud-security-private_ca-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-security-private_ca-v1beta1.rb +21 -0
  7. data/lib/google/cloud/security/private_ca/v1beta1.rb +37 -0
  8. data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service.rb +53 -0
  9. data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/client.rb +2065 -0
  10. data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/credentials.rb +53 -0
  11. data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb +572 -0
  12. data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/paths.rb +132 -0
  13. data/lib/google/cloud/security/private_ca/v1beta1/version.rb +30 -0
  14. data/lib/google/cloud/security/privateca/v1beta1/resources_pb.rb +330 -0
  15. data/lib/google/cloud/security/privateca/v1beta1/service_pb.rb +184 -0
  16. data/lib/google/cloud/security/privateca/v1beta1/service_services_pb.rb +99 -0
  17. data/proto_docs/README.md +4 -0
  18. data/proto_docs/google/api/field_behavior.rb +59 -0
  19. data/proto_docs/google/api/resource.rb +283 -0
  20. data/proto_docs/google/cloud/security/privateca/v1beta1/resources.rb +981 -0
  21. data/proto_docs/google/cloud/security/privateca/v1beta1/service.rb +633 -0
  22. data/proto_docs/google/longrunning/operations.rb +150 -0
  23. data/proto_docs/google/protobuf/any.rb +138 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. data/proto_docs/google/protobuf/empty.rb +36 -0
  26. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  27. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  28. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  29. data/proto_docs/google/rpc/status.rb +46 -0
  30. metadata +212 -0
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # 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/v1beta1"
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/security/private_ca/v1beta1/certificate_authority_service"
20
+ require "google/cloud/security/private_ca/v1beta1/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/v1beta1"
30
+ # client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
31
+ #
32
+ module V1beta1
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/security/private_ca/v1beta1/version"
24
+
25
+ require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/credentials"
26
+ require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/paths"
27
+ require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations"
28
+ require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Security
33
+ module PrivateCA
34
+ module V1beta1
35
+ ##
36
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::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/v1beta1/certificate_authority_service"
42
+ # client = ::Google::Cloud::Security::PrivateCA::V1beta1::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/v1beta1/certificate_authority_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,2065 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/security/privateca/v1beta1/service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Security
25
+ module PrivateCA
26
+ module V1beta1
27
+ module CertificateAuthorityService
28
+ ##
29
+ # Client for the CertificateAuthorityService service.
30
+ #
31
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::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::V1beta1::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::V1beta1::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", "V1beta1"]
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::V1beta1::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::V1beta1::CertificateAuthorityService::Client.new
113
+ #
114
+ # To create a new CertificateAuthorityService client with a custom
115
+ # configuration:
116
+ #
117
+ # client = ::Google::Cloud::Security::PrivateCA::V1beta1::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/v1beta1/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
+ credentials ||= Credentials.default scope: @config.scope
140
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
141
+ credentials = Credentials.new credentials, scope: @config.scope
142
+ end
143
+ @quota_project_id = @config.quota_project
144
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
145
+
146
+ @operations_client = Operations.new do |config|
147
+ config.credentials = credentials
148
+ config.endpoint = @config.endpoint
149
+ end
150
+
151
+ @certificate_authority_service_stub = ::Gapic::ServiceStub.new(
152
+ ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Stub,
153
+ credentials: credentials,
154
+ endpoint: @config.endpoint,
155
+ channel_args: @config.channel_args,
156
+ interceptors: @config.interceptors
157
+ )
158
+ end
159
+
160
+ ##
161
+ # Get the associated client for long-running operations.
162
+ #
163
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Operations]
164
+ #
165
+ attr_reader :operations_client
166
+
167
+ # Service calls
168
+
169
+ ##
170
+ # Create a new {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} in a given Project, Location from a particular
171
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}.
172
+ #
173
+ # @overload create_certificate(request, options = nil)
174
+ # Pass arguments to `create_certificate` via a request object, either of type
175
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest} or an equivalent Hash.
176
+ #
177
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest, ::Hash]
178
+ # A request object representing the call parameters. Required. To specify no
179
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
180
+ # @param options [::Gapic::CallOptions, ::Hash]
181
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
182
+ #
183
+ # @overload create_certificate(parent: nil, certificate_id: nil, certificate: nil, request_id: nil)
184
+ # Pass arguments to `create_certificate` via keyword arguments. Note that at
185
+ # least one keyword argument is required. To specify no parameters, or to keep all
186
+ # the default parameter values, pass an empty Hash as a request object (see above).
187
+ #
188
+ # @param parent [::String]
189
+ # Required. The resource name of the location and {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}
190
+ # associated with the {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate}, in the format
191
+ # `projects/*/locations/*/certificateAuthorities/*`.
192
+ # @param certificate_id [::String]
193
+ # Optional. It must be unique within a location and match the regular
194
+ # expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
195
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the Enterprise {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::Tier CertificateAuthority.Tier},
196
+ # but is optional and its value is ignored otherwise.
197
+ # @param certificate [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate, ::Hash]
198
+ # Required. A {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} with initial field values.
199
+ # @param request_id [::String]
200
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
201
+ # retry your request, the server will know to ignore the request if it has
202
+ # already been completed. The server will guarantee that for at least 60
203
+ # minutes since the first request.
204
+ #
205
+ # For example, consider a situation where you make an initial request and t
206
+ # he request times out. If you make the request again with the same request
207
+ # ID, the server can check if original operation with the same request ID
208
+ # was received, and if so, will ignore the second request. This prevents
209
+ # clients from accidentally creating duplicate commitments.
210
+ #
211
+ # The request ID must be a valid UUID with the exception that zero UUID is
212
+ # not supported (00000000-0000-0000-0000-000000000000).
213
+ #
214
+ # @yield [response, operation] Access the result along with the RPC operation
215
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
216
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
217
+ #
218
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
219
+ #
220
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
221
+ #
222
+ def create_certificate request, options = nil
223
+ raise ::ArgumentError, "request must be provided" if request.nil?
224
+
225
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest
226
+
227
+ # Converts hash and nil to an options object
228
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
229
+
230
+ # Customize the options with defaults
231
+ metadata = @config.rpcs.create_certificate.metadata.to_h
232
+
233
+ # Set x-goog-api-client and x-goog-user-project headers
234
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
235
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
236
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
237
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
238
+
239
+ header_params = {
240
+ "parent" => request.parent
241
+ }
242
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
243
+ metadata[:"x-goog-request-params"] ||= request_params_header
244
+
245
+ options.apply_defaults timeout: @config.rpcs.create_certificate.timeout,
246
+ metadata: metadata,
247
+ retry_policy: @config.rpcs.create_certificate.retry_policy
248
+ options.apply_defaults metadata: @config.metadata,
249
+ retry_policy: @config.retry_policy
250
+
251
+ @certificate_authority_service_stub.call_rpc :create_certificate, request, options: options do |response, operation|
252
+ yield response, operation if block_given?
253
+ return response
254
+ end
255
+ rescue ::GRPC::BadStatus => e
256
+ raise ::Google::Cloud::Error.from_error(e)
257
+ end
258
+
259
+ ##
260
+ # Returns a {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate}.
261
+ #
262
+ # @overload get_certificate(request, options = nil)
263
+ # Pass arguments to `get_certificate` via a request object, either of type
264
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest} or an equivalent Hash.
265
+ #
266
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest, ::Hash]
267
+ # A request object representing the call parameters. Required. To specify no
268
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
269
+ # @param options [::Gapic::CallOptions, ::Hash]
270
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
271
+ #
272
+ # @overload get_certificate(name: nil)
273
+ # Pass arguments to `get_certificate` via keyword arguments. Note that at
274
+ # least one keyword argument is required. To specify no parameters, or to keep all
275
+ # the default parameter values, pass an empty Hash as a request object (see above).
276
+ #
277
+ # @param name [::String]
278
+ # Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate#name name} of the {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} to get.
279
+ #
280
+ # @yield [response, operation] Access the result along with the RPC operation
281
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
282
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
283
+ #
284
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
285
+ #
286
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
287
+ #
288
+ def get_certificate request, options = nil
289
+ raise ::ArgumentError, "request must be provided" if request.nil?
290
+
291
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest
292
+
293
+ # Converts hash and nil to an options object
294
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
295
+
296
+ # Customize the options with defaults
297
+ metadata = @config.rpcs.get_certificate.metadata.to_h
298
+
299
+ # Set x-goog-api-client and x-goog-user-project headers
300
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
301
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
302
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
303
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
304
+
305
+ header_params = {
306
+ "name" => request.name
307
+ }
308
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
309
+ metadata[:"x-goog-request-params"] ||= request_params_header
310
+
311
+ options.apply_defaults timeout: @config.rpcs.get_certificate.timeout,
312
+ metadata: metadata,
313
+ retry_policy: @config.rpcs.get_certificate.retry_policy
314
+ options.apply_defaults metadata: @config.metadata,
315
+ retry_policy: @config.retry_policy
316
+
317
+ @certificate_authority_service_stub.call_rpc :get_certificate, request, options: options do |response, operation|
318
+ yield response, operation if block_given?
319
+ return response
320
+ end
321
+ rescue ::GRPC::BadStatus => e
322
+ raise ::Google::Cloud::Error.from_error(e)
323
+ end
324
+
325
+ ##
326
+ # Lists {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates}.
327
+ #
328
+ # @overload list_certificates(request, options = nil)
329
+ # Pass arguments to `list_certificates` via a request object, either of type
330
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest} or an equivalent Hash.
331
+ #
332
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest, ::Hash]
333
+ # A request object representing the call parameters. Required. To specify no
334
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
335
+ # @param options [::Gapic::CallOptions, ::Hash]
336
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
337
+ #
338
+ # @overload list_certificates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
339
+ # Pass arguments to `list_certificates` via keyword arguments. Note that at
340
+ # least one keyword argument is required. To specify no parameters, or to keep all
341
+ # the default parameter values, pass an empty Hash as a request object (see above).
342
+ #
343
+ # @param parent [::String]
344
+ # Required. The resource name of the location associated with the
345
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates}, in the format
346
+ # `projects/*/locations/*/certificateauthorities/*`.
347
+ # @param page_size [::Integer]
348
+ # Optional. Limit on the number of
349
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates} to include in the
350
+ # response. Further {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates} can subsequently be obtained
351
+ # by including the
352
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse#next_page_token ListCertificatesResponse.next_page_token} in a subsequent
353
+ # request. If unspecified, the server will pick an appropriate default.
354
+ # @param page_token [::String]
355
+ # Optional. Pagination token, returned earlier via
356
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse#next_page_token ListCertificatesResponse.next_page_token}.
357
+ # @param filter [::String]
358
+ # Optional. Only include resources that match the filter in the response. For details
359
+ # on supported filters and syntax, see [Certificates Filtering
360
+ # documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
361
+ # @param order_by [::String]
362
+ # Optional. Specify how the results should be sorted. For details on supported fields
363
+ # and syntax, see [Certificates Sorting
364
+ # documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
365
+ #
366
+ # @yield [response, operation] Access the result along with the RPC operation
367
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::Certificate>]
368
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
369
+ #
370
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::Certificate>]
371
+ #
372
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
373
+ #
374
+ def list_certificates request, options = nil
375
+ raise ::ArgumentError, "request must be provided" if request.nil?
376
+
377
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest
378
+
379
+ # Converts hash and nil to an options object
380
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
381
+
382
+ # Customize the options with defaults
383
+ metadata = @config.rpcs.list_certificates.metadata.to_h
384
+
385
+ # Set x-goog-api-client and x-goog-user-project headers
386
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
387
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
388
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
389
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
390
+
391
+ header_params = {
392
+ "parent" => request.parent
393
+ }
394
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
395
+ metadata[:"x-goog-request-params"] ||= request_params_header
396
+
397
+ options.apply_defaults timeout: @config.rpcs.list_certificates.timeout,
398
+ metadata: metadata,
399
+ retry_policy: @config.rpcs.list_certificates.retry_policy
400
+ options.apply_defaults metadata: @config.metadata,
401
+ retry_policy: @config.retry_policy
402
+
403
+ @certificate_authority_service_stub.call_rpc :list_certificates, request, options: options do |response, operation|
404
+ response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificates, request, response, operation, options
405
+ yield response, operation if block_given?
406
+ return response
407
+ end
408
+ rescue ::GRPC::BadStatus => e
409
+ raise ::Google::Cloud::Error.from_error(e)
410
+ end
411
+
412
+ ##
413
+ # Revoke a {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate}.
414
+ #
415
+ # @overload revoke_certificate(request, options = nil)
416
+ # Pass arguments to `revoke_certificate` via a request object, either of type
417
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest} or an equivalent Hash.
418
+ #
419
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest, ::Hash]
420
+ # A request object representing the call parameters. Required. To specify no
421
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
422
+ # @param options [::Gapic::CallOptions, ::Hash]
423
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
424
+ #
425
+ # @overload revoke_certificate(name: nil, reason: nil, request_id: nil)
426
+ # Pass arguments to `revoke_certificate` via keyword arguments. Note that at
427
+ # least one keyword argument is required. To specify no parameters, or to keep all
428
+ # the default parameter values, pass an empty Hash as a request object (see above).
429
+ #
430
+ # @param name [::String]
431
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} in the
432
+ # format `projects/*/locations/*/certificateAuthorities/*/certificates/*`.
433
+ # @param reason [::Google::Cloud::Security::PrivateCA::V1beta1::RevocationReason]
434
+ # Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::RevocationReason RevocationReason} for revoking this certificate.
435
+ # @param request_id [::String]
436
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
437
+ # retry your request, the server will know to ignore the request if it has
438
+ # already been completed. The server will guarantee that for at least 60
439
+ # minutes since the first request.
440
+ #
441
+ # For example, consider a situation where you make an initial request and t
442
+ # he request times out. If you make the request again with the same request
443
+ # ID, the server can check if original operation with the same request ID
444
+ # was received, and if so, will ignore the second request. This prevents
445
+ # clients from accidentally creating duplicate commitments.
446
+ #
447
+ # The request ID must be a valid UUID with the exception that zero UUID is
448
+ # not supported (00000000-0000-0000-0000-000000000000).
449
+ #
450
+ # @yield [response, operation] Access the result along with the RPC operation
451
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
452
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
453
+ #
454
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
455
+ #
456
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
457
+ #
458
+ def revoke_certificate request, options = nil
459
+ raise ::ArgumentError, "request must be provided" if request.nil?
460
+
461
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest
462
+
463
+ # Converts hash and nil to an options object
464
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
465
+
466
+ # Customize the options with defaults
467
+ metadata = @config.rpcs.revoke_certificate.metadata.to_h
468
+
469
+ # Set x-goog-api-client and x-goog-user-project headers
470
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
472
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
473
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
474
+
475
+ header_params = {
476
+ "name" => request.name
477
+ }
478
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
479
+ metadata[:"x-goog-request-params"] ||= request_params_header
480
+
481
+ options.apply_defaults timeout: @config.rpcs.revoke_certificate.timeout,
482
+ metadata: metadata,
483
+ retry_policy: @config.rpcs.revoke_certificate.retry_policy
484
+ options.apply_defaults metadata: @config.metadata,
485
+ retry_policy: @config.retry_policy
486
+
487
+ @certificate_authority_service_stub.call_rpc :revoke_certificate, request, options: options do |response, operation|
488
+ yield response, operation if block_given?
489
+ return response
490
+ end
491
+ rescue ::GRPC::BadStatus => e
492
+ raise ::Google::Cloud::Error.from_error(e)
493
+ end
494
+
495
+ ##
496
+ # Update a {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate}. Currently, the only field you can update is the
497
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate#labels labels} field.
498
+ #
499
+ # @overload update_certificate(request, options = nil)
500
+ # Pass arguments to `update_certificate` via a request object, either of type
501
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest} or an equivalent Hash.
502
+ #
503
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest, ::Hash]
504
+ # A request object representing the call parameters. Required. To specify no
505
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
506
+ # @param options [::Gapic::CallOptions, ::Hash]
507
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
508
+ #
509
+ # @overload update_certificate(certificate: nil, update_mask: nil, request_id: nil)
510
+ # Pass arguments to `update_certificate` via keyword arguments. Note that at
511
+ # least one keyword argument is required. To specify no parameters, or to keep all
512
+ # the default parameter values, pass an empty Hash as a request object (see above).
513
+ #
514
+ # @param certificate [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate, ::Hash]
515
+ # Required. {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificate} with updated values.
516
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
517
+ # Required. A list of fields to be updated in this request.
518
+ # @param request_id [::String]
519
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
520
+ # retry your request, the server will know to ignore the request if it has
521
+ # already been completed. The server will guarantee that for at least 60
522
+ # minutes since the first request.
523
+ #
524
+ # For example, consider a situation where you make an initial request and t
525
+ # he request times out. If you make the request again with the same request
526
+ # ID, the server can check if original operation with the same request ID
527
+ # was received, and if so, will ignore the second request. This prevents
528
+ # clients from accidentally creating duplicate commitments.
529
+ #
530
+ # The request ID must be a valid UUID with the exception that zero UUID is
531
+ # not supported (00000000-0000-0000-0000-000000000000).
532
+ #
533
+ # @yield [response, operation] Access the result along with the RPC operation
534
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
535
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
536
+ #
537
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
538
+ #
539
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
540
+ #
541
+ def update_certificate request, options = nil
542
+ raise ::ArgumentError, "request must be provided" if request.nil?
543
+
544
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest
545
+
546
+ # Converts hash and nil to an options object
547
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
548
+
549
+ # Customize the options with defaults
550
+ metadata = @config.rpcs.update_certificate.metadata.to_h
551
+
552
+ # Set x-goog-api-client and x-goog-user-project headers
553
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
554
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
555
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
556
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
557
+
558
+ header_params = {
559
+ "certificate.name" => request.certificate.name
560
+ }
561
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
562
+ metadata[:"x-goog-request-params"] ||= request_params_header
563
+
564
+ options.apply_defaults timeout: @config.rpcs.update_certificate.timeout,
565
+ metadata: metadata,
566
+ retry_policy: @config.rpcs.update_certificate.retry_policy
567
+ options.apply_defaults metadata: @config.metadata,
568
+ retry_policy: @config.retry_policy
569
+
570
+ @certificate_authority_service_stub.call_rpc :update_certificate, request, options: options do |response, operation|
571
+ yield response, operation if block_given?
572
+ return response
573
+ end
574
+ rescue ::GRPC::BadStatus => e
575
+ raise ::Google::Cloud::Error.from_error(e)
576
+ end
577
+
578
+ ##
579
+ # Activate a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} that is in state
580
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::State::PENDING_ACTIVATION PENDING_ACTIVATION} and is
581
+ # of type {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::Type::SUBORDINATE SUBORDINATE}. After the
582
+ # parent Certificate Authority signs a certificate signing request from
583
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#fetch_certificate_authority_csr FetchCertificateAuthorityCsr}, this method can complete the activation
584
+ # process.
585
+ #
586
+ # @overload activate_certificate_authority(request, options = nil)
587
+ # Pass arguments to `activate_certificate_authority` via a request object, either of type
588
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest} or an equivalent Hash.
589
+ #
590
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest, ::Hash]
591
+ # A request object representing the call parameters. Required. To specify no
592
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
593
+ # @param options [::Gapic::CallOptions, ::Hash]
594
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
595
+ #
596
+ # @overload activate_certificate_authority(name: nil, pem_ca_certificate: nil, subordinate_config: nil, request_id: nil)
597
+ # Pass arguments to `activate_certificate_authority` via keyword arguments. Note that at
598
+ # least one keyword argument is required. To specify no parameters, or to keep all
599
+ # the default parameter values, pass an empty Hash as a request object (see above).
600
+ #
601
+ # @param name [::String]
602
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
603
+ # format `projects/*/locations/*/certificateAuthorities/*`.
604
+ # @param pem_ca_certificate [::String]
605
+ # Required. The signed CA certificate issued from
606
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse#pem_csr FetchCertificateAuthorityCsrResponse.pem_csr}.
607
+ # @param subordinate_config [::Google::Cloud::Security::PrivateCA::V1beta1::SubordinateConfig, ::Hash]
608
+ # Required. Must include information about the issuer of 'pem_ca_certificate', and any
609
+ # further issuers until the self-signed CA.
610
+ # @param request_id [::String]
611
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
612
+ # retry your request, the server will know to ignore the request if it has
613
+ # already been completed. The server will guarantee that for at least 60
614
+ # minutes since the first request.
615
+ #
616
+ # For example, consider a situation where you make an initial request and t
617
+ # he request times out. If you make the request again with the same request
618
+ # ID, the server can check if original operation with the same request ID
619
+ # was received, and if so, will ignore the second request. This prevents
620
+ # clients from accidentally creating duplicate commitments.
621
+ #
622
+ # The request ID must be a valid UUID with the exception that zero UUID is
623
+ # not supported (00000000-0000-0000-0000-000000000000).
624
+ #
625
+ # @yield [response, operation] Access the result along with the RPC operation
626
+ # @yieldparam response [::Gapic::Operation]
627
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
628
+ #
629
+ # @return [::Gapic::Operation]
630
+ #
631
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
632
+ #
633
+ def activate_certificate_authority request, options = nil
634
+ raise ::ArgumentError, "request must be provided" if request.nil?
635
+
636
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest
637
+
638
+ # Converts hash and nil to an options object
639
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
640
+
641
+ # Customize the options with defaults
642
+ metadata = @config.rpcs.activate_certificate_authority.metadata.to_h
643
+
644
+ # Set x-goog-api-client and x-goog-user-project headers
645
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
647
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
648
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
649
+
650
+ header_params = {
651
+ "name" => request.name
652
+ }
653
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
654
+ metadata[:"x-goog-request-params"] ||= request_params_header
655
+
656
+ options.apply_defaults timeout: @config.rpcs.activate_certificate_authority.timeout,
657
+ metadata: metadata,
658
+ retry_policy: @config.rpcs.activate_certificate_authority.retry_policy
659
+ options.apply_defaults metadata: @config.metadata,
660
+ retry_policy: @config.retry_policy
661
+
662
+ @certificate_authority_service_stub.call_rpc :activate_certificate_authority, request, options: options do |response, operation|
663
+ response = ::Gapic::Operation.new response, @operations_client, options: options
664
+ yield response, operation if block_given?
665
+ return response
666
+ end
667
+ rescue ::GRPC::BadStatus => e
668
+ raise ::Google::Cloud::Error.from_error(e)
669
+ end
670
+
671
+ ##
672
+ # Create a new {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in a given Project and Location.
673
+ #
674
+ # @overload create_certificate_authority(request, options = nil)
675
+ # Pass arguments to `create_certificate_authority` via a request object, either of type
676
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest} or an equivalent Hash.
677
+ #
678
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest, ::Hash]
679
+ # A request object representing the call parameters. Required. To specify no
680
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
681
+ # @param options [::Gapic::CallOptions, ::Hash]
682
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
683
+ #
684
+ # @overload create_certificate_authority(parent: nil, certificate_authority_id: nil, certificate_authority: nil, request_id: nil)
685
+ # Pass arguments to `create_certificate_authority` via keyword arguments. Note that at
686
+ # least one keyword argument is required. To specify no parameters, or to keep all
687
+ # the default parameter values, pass an empty Hash as a request object (see above).
688
+ #
689
+ # @param parent [::String]
690
+ # Required. The resource name of the location associated with the
691
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities}, in the format
692
+ # `projects/*/locations/*`.
693
+ # @param certificate_authority_id [::String]
694
+ # Required. It must be unique within a location and match the regular
695
+ # expression `[a-zA-Z0-9_-]{1,63}`
696
+ # @param certificate_authority [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority, ::Hash]
697
+ # Required. A {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} with initial field values.
698
+ # @param request_id [::String]
699
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
700
+ # retry your request, the server will know to ignore the request if it has
701
+ # already been completed. The server will guarantee that for at least 60
702
+ # minutes since the first request.
703
+ #
704
+ # For example, consider a situation where you make an initial request and t
705
+ # he request times out. If you make the request again with the same request
706
+ # ID, the server can check if original operation with the same request ID
707
+ # was received, and if so, will ignore the second request. This prevents
708
+ # clients from accidentally creating duplicate commitments.
709
+ #
710
+ # The request ID must be a valid UUID with the exception that zero UUID is
711
+ # not supported (00000000-0000-0000-0000-000000000000).
712
+ #
713
+ # @yield [response, operation] Access the result along with the RPC operation
714
+ # @yieldparam response [::Gapic::Operation]
715
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
716
+ #
717
+ # @return [::Gapic::Operation]
718
+ #
719
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
720
+ #
721
+ def create_certificate_authority request, options = nil
722
+ raise ::ArgumentError, "request must be provided" if request.nil?
723
+
724
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest
725
+
726
+ # Converts hash and nil to an options object
727
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
728
+
729
+ # Customize the options with defaults
730
+ metadata = @config.rpcs.create_certificate_authority.metadata.to_h
731
+
732
+ # Set x-goog-api-client and x-goog-user-project headers
733
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
734
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
735
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
736
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
+
738
+ header_params = {
739
+ "parent" => request.parent
740
+ }
741
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
742
+ metadata[:"x-goog-request-params"] ||= request_params_header
743
+
744
+ options.apply_defaults timeout: @config.rpcs.create_certificate_authority.timeout,
745
+ metadata: metadata,
746
+ retry_policy: @config.rpcs.create_certificate_authority.retry_policy
747
+ options.apply_defaults metadata: @config.metadata,
748
+ retry_policy: @config.retry_policy
749
+
750
+ @certificate_authority_service_stub.call_rpc :create_certificate_authority, request, options: options do |response, operation|
751
+ response = ::Gapic::Operation.new response, @operations_client, options: options
752
+ yield response, operation if block_given?
753
+ return response
754
+ end
755
+ rescue ::GRPC::BadStatus => e
756
+ raise ::Google::Cloud::Error.from_error(e)
757
+ end
758
+
759
+ ##
760
+ # Disable a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}.
761
+ #
762
+ # @overload disable_certificate_authority(request, options = nil)
763
+ # Pass arguments to `disable_certificate_authority` via a request object, either of type
764
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest} or an equivalent Hash.
765
+ #
766
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest, ::Hash]
767
+ # A request object representing the call parameters. Required. To specify no
768
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
769
+ # @param options [::Gapic::CallOptions, ::Hash]
770
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
771
+ #
772
+ # @overload disable_certificate_authority(name: nil, request_id: nil)
773
+ # Pass arguments to `disable_certificate_authority` via keyword arguments. Note that at
774
+ # least one keyword argument is required. To specify no parameters, or to keep all
775
+ # the default parameter values, pass an empty Hash as a request object (see above).
776
+ #
777
+ # @param name [::String]
778
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
779
+ # format `projects/*/locations/*/certificateAuthorities/*`.
780
+ # @param request_id [::String]
781
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
782
+ # retry your request, the server will know to ignore the request if it has
783
+ # already been completed. The server will guarantee that for at least 60
784
+ # minutes since the first request.
785
+ #
786
+ # For example, consider a situation where you make an initial request and t
787
+ # he request times out. If you make the request again with the same request
788
+ # ID, the server can check if original operation with the same request ID
789
+ # was received, and if so, will ignore the second request. This prevents
790
+ # clients from accidentally creating duplicate commitments.
791
+ #
792
+ # The request ID must be a valid UUID with the exception that zero UUID is
793
+ # not supported (00000000-0000-0000-0000-000000000000).
794
+ #
795
+ # @yield [response, operation] Access the result along with the RPC operation
796
+ # @yieldparam response [::Gapic::Operation]
797
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
798
+ #
799
+ # @return [::Gapic::Operation]
800
+ #
801
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
802
+ #
803
+ def disable_certificate_authority request, options = nil
804
+ raise ::ArgumentError, "request must be provided" if request.nil?
805
+
806
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest
807
+
808
+ # Converts hash and nil to an options object
809
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
810
+
811
+ # Customize the options with defaults
812
+ metadata = @config.rpcs.disable_certificate_authority.metadata.to_h
813
+
814
+ # Set x-goog-api-client and x-goog-user-project headers
815
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
816
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
817
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
818
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
819
+
820
+ header_params = {
821
+ "name" => request.name
822
+ }
823
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
824
+ metadata[:"x-goog-request-params"] ||= request_params_header
825
+
826
+ options.apply_defaults timeout: @config.rpcs.disable_certificate_authority.timeout,
827
+ metadata: metadata,
828
+ retry_policy: @config.rpcs.disable_certificate_authority.retry_policy
829
+ options.apply_defaults metadata: @config.metadata,
830
+ retry_policy: @config.retry_policy
831
+
832
+ @certificate_authority_service_stub.call_rpc :disable_certificate_authority, request, options: options do |response, operation|
833
+ response = ::Gapic::Operation.new response, @operations_client, options: options
834
+ yield response, operation if block_given?
835
+ return response
836
+ end
837
+ rescue ::GRPC::BadStatus => e
838
+ raise ::Google::Cloud::Error.from_error(e)
839
+ end
840
+
841
+ ##
842
+ # Enable a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}.
843
+ #
844
+ # @overload enable_certificate_authority(request, options = nil)
845
+ # Pass arguments to `enable_certificate_authority` via a request object, either of type
846
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest} or an equivalent Hash.
847
+ #
848
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest, ::Hash]
849
+ # A request object representing the call parameters. Required. To specify no
850
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
851
+ # @param options [::Gapic::CallOptions, ::Hash]
852
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
853
+ #
854
+ # @overload enable_certificate_authority(name: nil, request_id: nil)
855
+ # Pass arguments to `enable_certificate_authority` via keyword arguments. Note that at
856
+ # least one keyword argument is required. To specify no parameters, or to keep all
857
+ # the default parameter values, pass an empty Hash as a request object (see above).
858
+ #
859
+ # @param name [::String]
860
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
861
+ # format `projects/*/locations/*/certificateAuthorities/*`.
862
+ # @param request_id [::String]
863
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
864
+ # retry your request, the server will know to ignore the request if it has
865
+ # already been completed. The server will guarantee that for at least 60
866
+ # minutes since the first request.
867
+ #
868
+ # For example, consider a situation where you make an initial request and t
869
+ # he request times out. If you make the request again with the same request
870
+ # ID, the server can check if original operation with the same request ID
871
+ # was received, and if so, will ignore the second request. This prevents
872
+ # clients from accidentally creating duplicate commitments.
873
+ #
874
+ # The request ID must be a valid UUID with the exception that zero UUID is
875
+ # not supported (00000000-0000-0000-0000-000000000000).
876
+ #
877
+ # @yield [response, operation] Access the result along with the RPC operation
878
+ # @yieldparam response [::Gapic::Operation]
879
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
880
+ #
881
+ # @return [::Gapic::Operation]
882
+ #
883
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
884
+ #
885
+ def enable_certificate_authority request, options = nil
886
+ raise ::ArgumentError, "request must be provided" if request.nil?
887
+
888
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest
889
+
890
+ # Converts hash and nil to an options object
891
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
892
+
893
+ # Customize the options with defaults
894
+ metadata = @config.rpcs.enable_certificate_authority.metadata.to_h
895
+
896
+ # Set x-goog-api-client and x-goog-user-project headers
897
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
898
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
899
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
900
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
901
+
902
+ header_params = {
903
+ "name" => request.name
904
+ }
905
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
906
+ metadata[:"x-goog-request-params"] ||= request_params_header
907
+
908
+ options.apply_defaults timeout: @config.rpcs.enable_certificate_authority.timeout,
909
+ metadata: metadata,
910
+ retry_policy: @config.rpcs.enable_certificate_authority.retry_policy
911
+ options.apply_defaults metadata: @config.metadata,
912
+ retry_policy: @config.retry_policy
913
+
914
+ @certificate_authority_service_stub.call_rpc :enable_certificate_authority, request, options: options do |response, operation|
915
+ response = ::Gapic::Operation.new response, @operations_client, options: options
916
+ yield response, operation if block_given?
917
+ return response
918
+ end
919
+ rescue ::GRPC::BadStatus => e
920
+ raise ::Google::Cloud::Error.from_error(e)
921
+ end
922
+
923
+ ##
924
+ # Fetch a certificate signing request (CSR) from a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}
925
+ # that is in state
926
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::State::PENDING_ACTIVATION PENDING_ACTIVATION} and is
927
+ # of type {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::Type::SUBORDINATE SUBORDINATE}. The CSR must
928
+ # then be signed by the desired parent Certificate Authority, which could be
929
+ # another {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} resource, or could be an on-prem
930
+ # certificate authority. See also {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client#activate_certificate_authority ActivateCertificateAuthority}.
931
+ #
932
+ # @overload fetch_certificate_authority_csr(request, options = nil)
933
+ # Pass arguments to `fetch_certificate_authority_csr` via a request object, either of type
934
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest} or an equivalent Hash.
935
+ #
936
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest, ::Hash]
937
+ # A request object representing the call parameters. Required. To specify no
938
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
939
+ # @param options [::Gapic::CallOptions, ::Hash]
940
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
941
+ #
942
+ # @overload fetch_certificate_authority_csr(name: nil)
943
+ # Pass arguments to `fetch_certificate_authority_csr` via keyword arguments. Note that at
944
+ # least one keyword argument is required. To specify no parameters, or to keep all
945
+ # the default parameter values, pass an empty Hash as a request object (see above).
946
+ #
947
+ # @param name [::String]
948
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
949
+ # format `projects/*/locations/*/certificateAuthorities/*`.
950
+ #
951
+ # @yield [response, operation] Access the result along with the RPC operation
952
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse]
953
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
954
+ #
955
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse]
956
+ #
957
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
958
+ #
959
+ def fetch_certificate_authority_csr request, options = nil
960
+ raise ::ArgumentError, "request must be provided" if request.nil?
961
+
962
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest
963
+
964
+ # Converts hash and nil to an options object
965
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
966
+
967
+ # Customize the options with defaults
968
+ metadata = @config.rpcs.fetch_certificate_authority_csr.metadata.to_h
969
+
970
+ # Set x-goog-api-client and x-goog-user-project headers
971
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
972
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
973
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
974
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
975
+
976
+ header_params = {
977
+ "name" => request.name
978
+ }
979
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
980
+ metadata[:"x-goog-request-params"] ||= request_params_header
981
+
982
+ options.apply_defaults timeout: @config.rpcs.fetch_certificate_authority_csr.timeout,
983
+ metadata: metadata,
984
+ retry_policy: @config.rpcs.fetch_certificate_authority_csr.retry_policy
985
+ options.apply_defaults metadata: @config.metadata,
986
+ retry_policy: @config.retry_policy
987
+
988
+ @certificate_authority_service_stub.call_rpc :fetch_certificate_authority_csr, request, options: options do |response, operation|
989
+ yield response, operation if block_given?
990
+ return response
991
+ end
992
+ rescue ::GRPC::BadStatus => e
993
+ raise ::Google::Cloud::Error.from_error(e)
994
+ end
995
+
996
+ ##
997
+ # Returns a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}.
998
+ #
999
+ # @overload get_certificate_authority(request, options = nil)
1000
+ # Pass arguments to `get_certificate_authority` via a request object, either of type
1001
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest} or an equivalent Hash.
1002
+ #
1003
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest, ::Hash]
1004
+ # A request object representing the call parameters. Required. To specify no
1005
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1006
+ # @param options [::Gapic::CallOptions, ::Hash]
1007
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1008
+ #
1009
+ # @overload get_certificate_authority(name: nil)
1010
+ # Pass arguments to `get_certificate_authority` via keyword arguments. Note that at
1011
+ # least one keyword argument is required. To specify no parameters, or to keep all
1012
+ # the default parameter values, pass an empty Hash as a request object (see above).
1013
+ #
1014
+ # @param name [::String]
1015
+ # Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority#name name} of the {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} to
1016
+ # get.
1017
+ #
1018
+ # @yield [response, operation] Access the result along with the RPC operation
1019
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
1020
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1021
+ #
1022
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
1023
+ #
1024
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1025
+ #
1026
+ def get_certificate_authority request, options = nil
1027
+ raise ::ArgumentError, "request must be provided" if request.nil?
1028
+
1029
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest
1030
+
1031
+ # Converts hash and nil to an options object
1032
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1033
+
1034
+ # Customize the options with defaults
1035
+ metadata = @config.rpcs.get_certificate_authority.metadata.to_h
1036
+
1037
+ # Set x-goog-api-client and x-goog-user-project headers
1038
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1039
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1040
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1041
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1042
+
1043
+ header_params = {
1044
+ "name" => request.name
1045
+ }
1046
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1047
+ metadata[:"x-goog-request-params"] ||= request_params_header
1048
+
1049
+ options.apply_defaults timeout: @config.rpcs.get_certificate_authority.timeout,
1050
+ metadata: metadata,
1051
+ retry_policy: @config.rpcs.get_certificate_authority.retry_policy
1052
+ options.apply_defaults metadata: @config.metadata,
1053
+ retry_policy: @config.retry_policy
1054
+
1055
+ @certificate_authority_service_stub.call_rpc :get_certificate_authority, request, options: options do |response, operation|
1056
+ yield response, operation if block_given?
1057
+ return response
1058
+ end
1059
+ rescue ::GRPC::BadStatus => e
1060
+ raise ::Google::Cloud::Error.from_error(e)
1061
+ end
1062
+
1063
+ ##
1064
+ # Lists {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities}.
1065
+ #
1066
+ # @overload list_certificate_authorities(request, options = nil)
1067
+ # Pass arguments to `list_certificate_authorities` via a request object, either of type
1068
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest} or an equivalent Hash.
1069
+ #
1070
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest, ::Hash]
1071
+ # A request object representing the call parameters. Required. To specify no
1072
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1073
+ # @param options [::Gapic::CallOptions, ::Hash]
1074
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1075
+ #
1076
+ # @overload list_certificate_authorities(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1077
+ # Pass arguments to `list_certificate_authorities` via keyword arguments. Note that at
1078
+ # least one keyword argument is required. To specify no parameters, or to keep all
1079
+ # the default parameter values, pass an empty Hash as a request object (see above).
1080
+ #
1081
+ # @param parent [::String]
1082
+ # Required. The resource name of the location associated with the
1083
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities}, in the format
1084
+ # `projects/*/locations/*`.
1085
+ # @param page_size [::Integer]
1086
+ # Optional. Limit on the number of {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities} to
1087
+ # include in the response.
1088
+ # Further {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthorities} can subsequently be
1089
+ # obtained by including the
1090
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse#next_page_token ListCertificateAuthoritiesResponse.next_page_token} in a subsequent
1091
+ # request. If unspecified, the server will pick an appropriate default.
1092
+ # @param page_token [::String]
1093
+ # Optional. Pagination token, returned earlier via
1094
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse#next_page_token ListCertificateAuthoritiesResponse.next_page_token}.
1095
+ # @param filter [::String]
1096
+ # Optional. Only include resources that match the filter in the response.
1097
+ # @param order_by [::String]
1098
+ # Optional. Specify how the results should be sorted.
1099
+ #
1100
+ # @yield [response, operation] Access the result along with the RPC operation
1101
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority>]
1102
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1103
+ #
1104
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority>]
1105
+ #
1106
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1107
+ #
1108
+ def list_certificate_authorities request, options = nil
1109
+ raise ::ArgumentError, "request must be provided" if request.nil?
1110
+
1111
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest
1112
+
1113
+ # Converts hash and nil to an options object
1114
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1115
+
1116
+ # Customize the options with defaults
1117
+ metadata = @config.rpcs.list_certificate_authorities.metadata.to_h
1118
+
1119
+ # Set x-goog-api-client and x-goog-user-project headers
1120
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1121
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1122
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1123
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1124
+
1125
+ header_params = {
1126
+ "parent" => request.parent
1127
+ }
1128
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1129
+ metadata[:"x-goog-request-params"] ||= request_params_header
1130
+
1131
+ options.apply_defaults timeout: @config.rpcs.list_certificate_authorities.timeout,
1132
+ metadata: metadata,
1133
+ retry_policy: @config.rpcs.list_certificate_authorities.retry_policy
1134
+ options.apply_defaults metadata: @config.metadata,
1135
+ retry_policy: @config.retry_policy
1136
+
1137
+ @certificate_authority_service_stub.call_rpc :list_certificate_authorities, request, options: options do |response, operation|
1138
+ response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_authorities, request, response, operation, options
1139
+ yield response, operation if block_given?
1140
+ return response
1141
+ end
1142
+ rescue ::GRPC::BadStatus => e
1143
+ raise ::Google::Cloud::Error.from_error(e)
1144
+ end
1145
+
1146
+ ##
1147
+ # Restore a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} that is scheduled for deletion.
1148
+ #
1149
+ # @overload restore_certificate_authority(request, options = nil)
1150
+ # Pass arguments to `restore_certificate_authority` via a request object, either of type
1151
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest} or an equivalent Hash.
1152
+ #
1153
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest, ::Hash]
1154
+ # A request object representing the call parameters. Required. To specify no
1155
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1156
+ # @param options [::Gapic::CallOptions, ::Hash]
1157
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1158
+ #
1159
+ # @overload restore_certificate_authority(name: nil, request_id: nil)
1160
+ # Pass arguments to `restore_certificate_authority` via keyword arguments. Note that at
1161
+ # least one keyword argument is required. To specify no parameters, or to keep all
1162
+ # the default parameter values, pass an empty Hash as a request object (see above).
1163
+ #
1164
+ # @param name [::String]
1165
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
1166
+ # format `projects/*/locations/*/certificateAuthorities/*`.
1167
+ # @param request_id [::String]
1168
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
1169
+ # retry your request, the server will know to ignore the request if it has
1170
+ # already been completed. The server will guarantee that for at least 60
1171
+ # minutes since the first request.
1172
+ #
1173
+ # For example, consider a situation where you make an initial request and t
1174
+ # he request times out. If you make the request again with the same request
1175
+ # ID, the server can check if original operation with the same request ID
1176
+ # was received, and if so, will ignore the second request. This prevents
1177
+ # clients from accidentally creating duplicate commitments.
1178
+ #
1179
+ # The request ID must be a valid UUID with the exception that zero UUID is
1180
+ # not supported (00000000-0000-0000-0000-000000000000).
1181
+ #
1182
+ # @yield [response, operation] Access the result along with the RPC operation
1183
+ # @yieldparam response [::Gapic::Operation]
1184
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1185
+ #
1186
+ # @return [::Gapic::Operation]
1187
+ #
1188
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1189
+ #
1190
+ def restore_certificate_authority request, options = nil
1191
+ raise ::ArgumentError, "request must be provided" if request.nil?
1192
+
1193
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest
1194
+
1195
+ # Converts hash and nil to an options object
1196
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1197
+
1198
+ # Customize the options with defaults
1199
+ metadata = @config.rpcs.restore_certificate_authority.metadata.to_h
1200
+
1201
+ # Set x-goog-api-client and x-goog-user-project headers
1202
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1203
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1204
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1205
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1206
+
1207
+ header_params = {
1208
+ "name" => request.name
1209
+ }
1210
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1211
+ metadata[:"x-goog-request-params"] ||= request_params_header
1212
+
1213
+ options.apply_defaults timeout: @config.rpcs.restore_certificate_authority.timeout,
1214
+ metadata: metadata,
1215
+ retry_policy: @config.rpcs.restore_certificate_authority.retry_policy
1216
+ options.apply_defaults metadata: @config.metadata,
1217
+ retry_policy: @config.retry_policy
1218
+
1219
+ @certificate_authority_service_stub.call_rpc :restore_certificate_authority, request, options: options do |response, operation|
1220
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1221
+ yield response, operation if block_given?
1222
+ return response
1223
+ end
1224
+ rescue ::GRPC::BadStatus => e
1225
+ raise ::Google::Cloud::Error.from_error(e)
1226
+ end
1227
+
1228
+ ##
1229
+ # Schedule a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} for deletion.
1230
+ #
1231
+ # @overload schedule_delete_certificate_authority(request, options = nil)
1232
+ # Pass arguments to `schedule_delete_certificate_authority` via a request object, either of type
1233
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest} or an equivalent Hash.
1234
+ #
1235
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest, ::Hash]
1236
+ # A request object representing the call parameters. Required. To specify no
1237
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1238
+ # @param options [::Gapic::CallOptions, ::Hash]
1239
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1240
+ #
1241
+ # @overload schedule_delete_certificate_authority(name: nil, request_id: nil)
1242
+ # Pass arguments to `schedule_delete_certificate_authority` via keyword arguments. Note that at
1243
+ # least one keyword argument is required. To specify no parameters, or to keep all
1244
+ # the default parameter values, pass an empty Hash as a request object (see above).
1245
+ #
1246
+ # @param name [::String]
1247
+ # Required. The resource name for this {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} in the
1248
+ # format `projects/*/locations/*/certificateAuthorities/*`.
1249
+ # @param request_id [::String]
1250
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
1251
+ # retry your request, the server will know to ignore the request if it has
1252
+ # already been completed. The server will guarantee that for at least 60
1253
+ # minutes since the first request.
1254
+ #
1255
+ # For example, consider a situation where you make an initial request and t
1256
+ # he request times out. If you make the request again with the same request
1257
+ # ID, the server can check if original operation with the same request ID
1258
+ # was received, and if so, will ignore the second request. This prevents
1259
+ # clients from accidentally creating duplicate commitments.
1260
+ #
1261
+ # The request ID must be a valid UUID with the exception that zero UUID is
1262
+ # not supported (00000000-0000-0000-0000-000000000000).
1263
+ #
1264
+ # @yield [response, operation] Access the result along with the RPC operation
1265
+ # @yieldparam response [::Gapic::Operation]
1266
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1267
+ #
1268
+ # @return [::Gapic::Operation]
1269
+ #
1270
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1271
+ #
1272
+ def schedule_delete_certificate_authority request, options = nil
1273
+ raise ::ArgumentError, "request must be provided" if request.nil?
1274
+
1275
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest
1276
+
1277
+ # Converts hash and nil to an options object
1278
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1279
+
1280
+ # Customize the options with defaults
1281
+ metadata = @config.rpcs.schedule_delete_certificate_authority.metadata.to_h
1282
+
1283
+ # Set x-goog-api-client and x-goog-user-project headers
1284
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1285
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1286
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1287
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1288
+
1289
+ header_params = {
1290
+ "name" => request.name
1291
+ }
1292
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1293
+ metadata[:"x-goog-request-params"] ||= request_params_header
1294
+
1295
+ options.apply_defaults timeout: @config.rpcs.schedule_delete_certificate_authority.timeout,
1296
+ metadata: metadata,
1297
+ retry_policy: @config.rpcs.schedule_delete_certificate_authority.retry_policy
1298
+ options.apply_defaults metadata: @config.metadata,
1299
+ retry_policy: @config.retry_policy
1300
+
1301
+ @certificate_authority_service_stub.call_rpc :schedule_delete_certificate_authority, request, options: options do |response, operation|
1302
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1303
+ yield response, operation if block_given?
1304
+ return response
1305
+ end
1306
+ rescue ::GRPC::BadStatus => e
1307
+ raise ::Google::Cloud::Error.from_error(e)
1308
+ end
1309
+
1310
+ ##
1311
+ # Update a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}.
1312
+ #
1313
+ # @overload update_certificate_authority(request, options = nil)
1314
+ # Pass arguments to `update_certificate_authority` via a request object, either of type
1315
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest} or an equivalent Hash.
1316
+ #
1317
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest, ::Hash]
1318
+ # A request object representing the call parameters. Required. To specify no
1319
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1320
+ # @param options [::Gapic::CallOptions, ::Hash]
1321
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1322
+ #
1323
+ # @overload update_certificate_authority(certificate_authority: nil, update_mask: nil, request_id: nil)
1324
+ # Pass arguments to `update_certificate_authority` via keyword arguments. Note that at
1325
+ # least one keyword argument is required. To specify no parameters, or to keep all
1326
+ # the default parameter values, pass an empty Hash as a request object (see above).
1327
+ #
1328
+ # @param certificate_authority [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority, ::Hash]
1329
+ # Required. {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority} with updated values.
1330
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1331
+ # Required. A list of fields to be updated in this request.
1332
+ # @param request_id [::String]
1333
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
1334
+ # retry your request, the server will know to ignore the request if it has
1335
+ # already been completed. The server will guarantee that for at least 60
1336
+ # minutes since the first request.
1337
+ #
1338
+ # For example, consider a situation where you make an initial request and t
1339
+ # he request times out. If you make the request again with the same request
1340
+ # ID, the server can check if original operation with the same request ID
1341
+ # was received, and if so, will ignore the second request. This prevents
1342
+ # clients from accidentally creating duplicate commitments.
1343
+ #
1344
+ # The request ID must be a valid UUID with the exception that zero UUID is
1345
+ # not supported (00000000-0000-0000-0000-000000000000).
1346
+ #
1347
+ # @yield [response, operation] Access the result along with the RPC operation
1348
+ # @yieldparam response [::Gapic::Operation]
1349
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1350
+ #
1351
+ # @return [::Gapic::Operation]
1352
+ #
1353
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1354
+ #
1355
+ def update_certificate_authority request, options = nil
1356
+ raise ::ArgumentError, "request must be provided" if request.nil?
1357
+
1358
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest
1359
+
1360
+ # Converts hash and nil to an options object
1361
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1362
+
1363
+ # Customize the options with defaults
1364
+ metadata = @config.rpcs.update_certificate_authority.metadata.to_h
1365
+
1366
+ # Set x-goog-api-client and x-goog-user-project headers
1367
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1368
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1369
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1370
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1371
+
1372
+ header_params = {
1373
+ "certificate_authority.name" => request.certificate_authority.name
1374
+ }
1375
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1376
+ metadata[:"x-goog-request-params"] ||= request_params_header
1377
+
1378
+ options.apply_defaults timeout: @config.rpcs.update_certificate_authority.timeout,
1379
+ metadata: metadata,
1380
+ retry_policy: @config.rpcs.update_certificate_authority.retry_policy
1381
+ options.apply_defaults metadata: @config.metadata,
1382
+ retry_policy: @config.retry_policy
1383
+
1384
+ @certificate_authority_service_stub.call_rpc :update_certificate_authority, request, options: options do |response, operation|
1385
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1386
+ yield response, operation if block_given?
1387
+ return response
1388
+ end
1389
+ rescue ::GRPC::BadStatus => e
1390
+ raise ::Google::Cloud::Error.from_error(e)
1391
+ end
1392
+
1393
+ ##
1394
+ # Returns a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationList}.
1395
+ #
1396
+ # @overload get_certificate_revocation_list(request, options = nil)
1397
+ # Pass arguments to `get_certificate_revocation_list` via a request object, either of type
1398
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest} or an equivalent Hash.
1399
+ #
1400
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest, ::Hash]
1401
+ # A request object representing the call parameters. Required. To specify no
1402
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1403
+ # @param options [::Gapic::CallOptions, ::Hash]
1404
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1405
+ #
1406
+ # @overload get_certificate_revocation_list(name: nil)
1407
+ # Pass arguments to `get_certificate_revocation_list` via keyword arguments. Note that at
1408
+ # least one keyword argument is required. To specify no parameters, or to keep all
1409
+ # the default parameter values, pass an empty Hash as a request object (see above).
1410
+ #
1411
+ # @param name [::String]
1412
+ # Required. The {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList#name name} of the
1413
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationList} to get.
1414
+ #
1415
+ # @yield [response, operation] Access the result along with the RPC operation
1416
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList]
1417
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1418
+ #
1419
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList]
1420
+ #
1421
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1422
+ #
1423
+ def get_certificate_revocation_list request, options = nil
1424
+ raise ::ArgumentError, "request must be provided" if request.nil?
1425
+
1426
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest
1427
+
1428
+ # Converts hash and nil to an options object
1429
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1430
+
1431
+ # Customize the options with defaults
1432
+ metadata = @config.rpcs.get_certificate_revocation_list.metadata.to_h
1433
+
1434
+ # Set x-goog-api-client and x-goog-user-project headers
1435
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1436
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1437
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1438
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1439
+
1440
+ header_params = {
1441
+ "name" => request.name
1442
+ }
1443
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1444
+ metadata[:"x-goog-request-params"] ||= request_params_header
1445
+
1446
+ options.apply_defaults timeout: @config.rpcs.get_certificate_revocation_list.timeout,
1447
+ metadata: metadata,
1448
+ retry_policy: @config.rpcs.get_certificate_revocation_list.retry_policy
1449
+ options.apply_defaults metadata: @config.metadata,
1450
+ retry_policy: @config.retry_policy
1451
+
1452
+ @certificate_authority_service_stub.call_rpc :get_certificate_revocation_list, request, options: options do |response, operation|
1453
+ yield response, operation if block_given?
1454
+ return response
1455
+ end
1456
+ rescue ::GRPC::BadStatus => e
1457
+ raise ::Google::Cloud::Error.from_error(e)
1458
+ end
1459
+
1460
+ ##
1461
+ # Lists {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists}.
1462
+ #
1463
+ # @overload list_certificate_revocation_lists(request, options = nil)
1464
+ # Pass arguments to `list_certificate_revocation_lists` via a request object, either of type
1465
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest} or an equivalent Hash.
1466
+ #
1467
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest, ::Hash]
1468
+ # A request object representing the call parameters. Required. To specify no
1469
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1470
+ # @param options [::Gapic::CallOptions, ::Hash]
1471
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1472
+ #
1473
+ # @overload list_certificate_revocation_lists(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1474
+ # Pass arguments to `list_certificate_revocation_lists` via keyword arguments. Note that at
1475
+ # least one keyword argument is required. To specify no parameters, or to keep all
1476
+ # the default parameter values, pass an empty Hash as a request object (see above).
1477
+ #
1478
+ # @param parent [::String]
1479
+ # Required. The resource name of the location associated with the
1480
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists}, in the format
1481
+ # `projects/*/locations/*/certificateauthorities/*`.
1482
+ # @param page_size [::Integer]
1483
+ # Optional. Limit on the number of
1484
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists} to include in the
1485
+ # response. Further {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationLists}
1486
+ # can subsequently be obtained by including the
1487
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse#next_page_token ListCertificateRevocationListsResponse.next_page_token} in a subsequent
1488
+ # request. If unspecified, the server will pick an appropriate default.
1489
+ # @param page_token [::String]
1490
+ # Optional. Pagination token, returned earlier via
1491
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse#next_page_token ListCertificateRevocationListsResponse.next_page_token}.
1492
+ # @param filter [::String]
1493
+ # Optional. Only include resources that match the filter in the response.
1494
+ # @param order_by [::String]
1495
+ # Optional. Specify how the results should be sorted.
1496
+ #
1497
+ # @yield [response, operation] Access the result along with the RPC operation
1498
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList>]
1499
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1500
+ #
1501
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList>]
1502
+ #
1503
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1504
+ #
1505
+ def list_certificate_revocation_lists request, options = nil
1506
+ raise ::ArgumentError, "request must be provided" if request.nil?
1507
+
1508
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest
1509
+
1510
+ # Converts hash and nil to an options object
1511
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1512
+
1513
+ # Customize the options with defaults
1514
+ metadata = @config.rpcs.list_certificate_revocation_lists.metadata.to_h
1515
+
1516
+ # Set x-goog-api-client and x-goog-user-project headers
1517
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1518
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1519
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1520
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1521
+
1522
+ header_params = {
1523
+ "parent" => request.parent
1524
+ }
1525
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1526
+ metadata[:"x-goog-request-params"] ||= request_params_header
1527
+
1528
+ options.apply_defaults timeout: @config.rpcs.list_certificate_revocation_lists.timeout,
1529
+ metadata: metadata,
1530
+ retry_policy: @config.rpcs.list_certificate_revocation_lists.retry_policy
1531
+ options.apply_defaults metadata: @config.metadata,
1532
+ retry_policy: @config.retry_policy
1533
+
1534
+ @certificate_authority_service_stub.call_rpc :list_certificate_revocation_lists, request, options: options do |response, operation|
1535
+ response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_revocation_lists, request, response, operation, options
1536
+ yield response, operation if block_given?
1537
+ return response
1538
+ end
1539
+ rescue ::GRPC::BadStatus => e
1540
+ raise ::Google::Cloud::Error.from_error(e)
1541
+ end
1542
+
1543
+ ##
1544
+ # Update a {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationList}.
1545
+ #
1546
+ # @overload update_certificate_revocation_list(request, options = nil)
1547
+ # Pass arguments to `update_certificate_revocation_list` via a request object, either of type
1548
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest} or an equivalent Hash.
1549
+ #
1550
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest, ::Hash]
1551
+ # A request object representing the call parameters. Required. To specify no
1552
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1553
+ # @param options [::Gapic::CallOptions, ::Hash]
1554
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1555
+ #
1556
+ # @overload update_certificate_revocation_list(certificate_revocation_list: nil, update_mask: nil, request_id: nil)
1557
+ # Pass arguments to `update_certificate_revocation_list` via keyword arguments. Note that at
1558
+ # least one keyword argument is required. To specify no parameters, or to keep all
1559
+ # the default parameter values, pass an empty Hash as a request object (see above).
1560
+ #
1561
+ # @param certificate_revocation_list [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList, ::Hash]
1562
+ # Required. {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList CertificateRevocationList} with updated values.
1563
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1564
+ # Required. A list of fields to be updated in this request.
1565
+ # @param request_id [::String]
1566
+ # Optional. An ID to identify requests. Specify a unique request ID so that if you must
1567
+ # retry your request, the server will know to ignore the request if it has
1568
+ # already been completed. The server will guarantee that for at least 60
1569
+ # minutes since the first request.
1570
+ #
1571
+ # For example, consider a situation where you make an initial request and t
1572
+ # he request times out. If you make the request again with the same request
1573
+ # ID, the server can check if original operation with the same request ID
1574
+ # was received, and if so, will ignore the second request. This prevents
1575
+ # clients from accidentally creating duplicate commitments.
1576
+ #
1577
+ # The request ID must be a valid UUID with the exception that zero UUID is
1578
+ # not supported (00000000-0000-0000-0000-000000000000).
1579
+ #
1580
+ # @yield [response, operation] Access the result along with the RPC operation
1581
+ # @yieldparam response [::Gapic::Operation]
1582
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1583
+ #
1584
+ # @return [::Gapic::Operation]
1585
+ #
1586
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1587
+ #
1588
+ def update_certificate_revocation_list request, options = nil
1589
+ raise ::ArgumentError, "request must be provided" if request.nil?
1590
+
1591
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest
1592
+
1593
+ # Converts hash and nil to an options object
1594
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1595
+
1596
+ # Customize the options with defaults
1597
+ metadata = @config.rpcs.update_certificate_revocation_list.metadata.to_h
1598
+
1599
+ # Set x-goog-api-client and x-goog-user-project headers
1600
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1601
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1602
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1603
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1604
+
1605
+ header_params = {
1606
+ "certificate_revocation_list.name" => request.certificate_revocation_list.name
1607
+ }
1608
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1609
+ metadata[:"x-goog-request-params"] ||= request_params_header
1610
+
1611
+ options.apply_defaults timeout: @config.rpcs.update_certificate_revocation_list.timeout,
1612
+ metadata: metadata,
1613
+ retry_policy: @config.rpcs.update_certificate_revocation_list.retry_policy
1614
+ options.apply_defaults metadata: @config.metadata,
1615
+ retry_policy: @config.retry_policy
1616
+
1617
+ @certificate_authority_service_stub.call_rpc :update_certificate_revocation_list, request, options: options do |response, operation|
1618
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1619
+ yield response, operation if block_given?
1620
+ return response
1621
+ end
1622
+ rescue ::GRPC::BadStatus => e
1623
+ raise ::Google::Cloud::Error.from_error(e)
1624
+ end
1625
+
1626
+ ##
1627
+ # Returns a {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfig}.
1628
+ #
1629
+ # @overload get_reusable_config(request, options = nil)
1630
+ # Pass arguments to `get_reusable_config` via a request object, either of type
1631
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest} or an equivalent Hash.
1632
+ #
1633
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest, ::Hash]
1634
+ # A request object representing the call parameters. Required. To specify no
1635
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1636
+ # @param options [::Gapic::CallOptions, ::Hash]
1637
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1638
+ #
1639
+ # @overload get_reusable_config(name: nil)
1640
+ # Pass arguments to `get_reusable_config` via keyword arguments. Note that at
1641
+ # least one keyword argument is required. To specify no parameters, or to keep all
1642
+ # the default parameter values, pass an empty Hash as a request object (see above).
1643
+ #
1644
+ # @param name [::String]
1645
+ # Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
1646
+ #
1647
+ # @yield [response, operation] Access the result along with the RPC operation
1648
+ # @yieldparam response [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig]
1649
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1650
+ #
1651
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig]
1652
+ #
1653
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1654
+ #
1655
+ def get_reusable_config request, options = nil
1656
+ raise ::ArgumentError, "request must be provided" if request.nil?
1657
+
1658
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest
1659
+
1660
+ # Converts hash and nil to an options object
1661
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1662
+
1663
+ # Customize the options with defaults
1664
+ metadata = @config.rpcs.get_reusable_config.metadata.to_h
1665
+
1666
+ # Set x-goog-api-client and x-goog-user-project headers
1667
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1668
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1669
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1670
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1671
+
1672
+ header_params = {
1673
+ "name" => request.name
1674
+ }
1675
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1676
+ metadata[:"x-goog-request-params"] ||= request_params_header
1677
+
1678
+ options.apply_defaults timeout: @config.rpcs.get_reusable_config.timeout,
1679
+ metadata: metadata,
1680
+ retry_policy: @config.rpcs.get_reusable_config.retry_policy
1681
+ options.apply_defaults metadata: @config.metadata,
1682
+ retry_policy: @config.retry_policy
1683
+
1684
+ @certificate_authority_service_stub.call_rpc :get_reusable_config, request, options: options do |response, operation|
1685
+ yield response, operation if block_given?
1686
+ return response
1687
+ end
1688
+ rescue ::GRPC::BadStatus => e
1689
+ raise ::Google::Cloud::Error.from_error(e)
1690
+ end
1691
+
1692
+ ##
1693
+ # Lists {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs}.
1694
+ #
1695
+ # @overload list_reusable_configs(request, options = nil)
1696
+ # Pass arguments to `list_reusable_configs` via a request object, either of type
1697
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest} or an equivalent Hash.
1698
+ #
1699
+ # @param request [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest, ::Hash]
1700
+ # A request object representing the call parameters. Required. To specify no
1701
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1702
+ # @param options [::Gapic::CallOptions, ::Hash]
1703
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1704
+ #
1705
+ # @overload list_reusable_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1706
+ # Pass arguments to `list_reusable_configs` via keyword arguments. Note that at
1707
+ # least one keyword argument is required. To specify no parameters, or to keep all
1708
+ # the default parameter values, pass an empty Hash as a request object (see above).
1709
+ #
1710
+ # @param parent [::String]
1711
+ # Required. The resource name of the location associated with the
1712
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs}, in the format
1713
+ # `projects/*/locations/*`.
1714
+ # @param page_size [::Integer]
1715
+ # Optional. Limit on the number of
1716
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs} to include in the response.
1717
+ # Further {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfigs} can subsequently be
1718
+ # obtained by including the
1719
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse#next_page_token ListReusableConfigsResponse.next_page_token} in a subsequent request. If
1720
+ # unspecified, the server will pick an appropriate default.
1721
+ # @param page_token [::String]
1722
+ # Optional. Pagination token, returned earlier via
1723
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse#next_page_token ListReusableConfigsResponse.next_page_token}.
1724
+ # @param filter [::String]
1725
+ # Optional. Only include resources that match the filter in the response.
1726
+ # @param order_by [::String]
1727
+ # Optional. Specify how the results should be sorted.
1728
+ #
1729
+ # @yield [response, operation] Access the result along with the RPC operation
1730
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig>]
1731
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1732
+ #
1733
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig>]
1734
+ #
1735
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1736
+ #
1737
+ def list_reusable_configs request, options = nil
1738
+ raise ::ArgumentError, "request must be provided" if request.nil?
1739
+
1740
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest
1741
+
1742
+ # Converts hash and nil to an options object
1743
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1744
+
1745
+ # Customize the options with defaults
1746
+ metadata = @config.rpcs.list_reusable_configs.metadata.to_h
1747
+
1748
+ # Set x-goog-api-client and x-goog-user-project headers
1749
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1750
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1751
+ gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1752
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1753
+
1754
+ header_params = {
1755
+ "parent" => request.parent
1756
+ }
1757
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1758
+ metadata[:"x-goog-request-params"] ||= request_params_header
1759
+
1760
+ options.apply_defaults timeout: @config.rpcs.list_reusable_configs.timeout,
1761
+ metadata: metadata,
1762
+ retry_policy: @config.rpcs.list_reusable_configs.retry_policy
1763
+ options.apply_defaults metadata: @config.metadata,
1764
+ retry_policy: @config.retry_policy
1765
+
1766
+ @certificate_authority_service_stub.call_rpc :list_reusable_configs, request, options: options do |response, operation|
1767
+ response = ::Gapic::PagedEnumerable.new @certificate_authority_service_stub, :list_reusable_configs, request, response, operation, options
1768
+ yield response, operation if block_given?
1769
+ return response
1770
+ end
1771
+ rescue ::GRPC::BadStatus => e
1772
+ raise ::Google::Cloud::Error.from_error(e)
1773
+ end
1774
+
1775
+ ##
1776
+ # Configuration class for the CertificateAuthorityService API.
1777
+ #
1778
+ # This class represents the configuration for CertificateAuthorityService,
1779
+ # providing control over timeouts, retry behavior, logging, transport
1780
+ # parameters, and other low-level controls. Certain parameters can also be
1781
+ # applied individually to specific RPCs. See
1782
+ # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client::Configuration::Rpcs}
1783
+ # for a list of RPCs that can be configured independently.
1784
+ #
1785
+ # Configuration can be applied globally to all clients, or to a single client
1786
+ # on construction.
1787
+ #
1788
+ # # Examples
1789
+ #
1790
+ # To modify the global config, setting the timeout for create_certificate
1791
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
1792
+ #
1793
+ # ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.configure do |config|
1794
+ # config.timeout = 10.0
1795
+ # config.rpcs.create_certificate.timeout = 20.0
1796
+ # end
1797
+ #
1798
+ # To apply the above configuration only to a new client:
1799
+ #
1800
+ # client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new do |config|
1801
+ # config.timeout = 10.0
1802
+ # config.rpcs.create_certificate.timeout = 20.0
1803
+ # end
1804
+ #
1805
+ # @!attribute [rw] endpoint
1806
+ # The hostname or hostname:port of the service endpoint.
1807
+ # Defaults to `"privateca.googleapis.com"`.
1808
+ # @return [::String]
1809
+ # @!attribute [rw] credentials
1810
+ # Credentials to send with calls. You may provide any of the following types:
1811
+ # * (`String`) The path to a service account key file in JSON format
1812
+ # * (`Hash`) A service account key as a Hash
1813
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1814
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1815
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1816
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1817
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1818
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1819
+ # * (`nil`) indicating no credentials
1820
+ # @return [::Object]
1821
+ # @!attribute [rw] scope
1822
+ # The OAuth scopes
1823
+ # @return [::Array<::String>]
1824
+ # @!attribute [rw] lib_name
1825
+ # The library name as recorded in instrumentation and logging
1826
+ # @return [::String]
1827
+ # @!attribute [rw] lib_version
1828
+ # The library version as recorded in instrumentation and logging
1829
+ # @return [::String]
1830
+ # @!attribute [rw] channel_args
1831
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1832
+ # `GRPC::Core::Channel` object is provided as the credential.
1833
+ # @return [::Hash]
1834
+ # @!attribute [rw] interceptors
1835
+ # An array of interceptors that are run before calls are executed.
1836
+ # @return [::Array<::GRPC::ClientInterceptor>]
1837
+ # @!attribute [rw] timeout
1838
+ # The call timeout in seconds.
1839
+ # @return [::Numeric]
1840
+ # @!attribute [rw] metadata
1841
+ # Additional gRPC headers to be sent with the call.
1842
+ # @return [::Hash{::Symbol=>::String}]
1843
+ # @!attribute [rw] retry_policy
1844
+ # The retry policy. The value is a hash with the following keys:
1845
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1846
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1847
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1848
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1849
+ # trigger a retry.
1850
+ # @return [::Hash]
1851
+ # @!attribute [rw] quota_project
1852
+ # A separate project against which to charge quota.
1853
+ # @return [::String]
1854
+ #
1855
+ class Configuration
1856
+ extend ::Gapic::Config
1857
+
1858
+ config_attr :endpoint, "privateca.googleapis.com", ::String
1859
+ config_attr :credentials, nil do |value|
1860
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1861
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1862
+ allowed.any? { |klass| klass === value }
1863
+ end
1864
+ config_attr :scope, nil, ::String, ::Array, nil
1865
+ config_attr :lib_name, nil, ::String, nil
1866
+ config_attr :lib_version, nil, ::String, nil
1867
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1868
+ config_attr :interceptors, nil, ::Array, nil
1869
+ config_attr :timeout, nil, ::Numeric, nil
1870
+ config_attr :metadata, nil, ::Hash, nil
1871
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1872
+ config_attr :quota_project, nil, ::String, nil
1873
+
1874
+ # @private
1875
+ def initialize parent_config = nil
1876
+ @parent_config = parent_config unless parent_config.nil?
1877
+
1878
+ yield self if block_given?
1879
+ end
1880
+
1881
+ ##
1882
+ # Configurations for individual RPCs
1883
+ # @return [Rpcs]
1884
+ #
1885
+ def rpcs
1886
+ @rpcs ||= begin
1887
+ parent_rpcs = nil
1888
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1889
+ Rpcs.new parent_rpcs
1890
+ end
1891
+ end
1892
+
1893
+ ##
1894
+ # Configuration RPC class for the CertificateAuthorityService API.
1895
+ #
1896
+ # Includes fields providing the configuration for each RPC in this service.
1897
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1898
+ # the following configuration fields:
1899
+ #
1900
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1901
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1902
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1903
+ # include the following keys:
1904
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1905
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1906
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1907
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1908
+ # trigger a retry.
1909
+ #
1910
+ class Rpcs
1911
+ ##
1912
+ # RPC-specific configuration for `create_certificate`
1913
+ # @return [::Gapic::Config::Method]
1914
+ #
1915
+ attr_reader :create_certificate
1916
+ ##
1917
+ # RPC-specific configuration for `get_certificate`
1918
+ # @return [::Gapic::Config::Method]
1919
+ #
1920
+ attr_reader :get_certificate
1921
+ ##
1922
+ # RPC-specific configuration for `list_certificates`
1923
+ # @return [::Gapic::Config::Method]
1924
+ #
1925
+ attr_reader :list_certificates
1926
+ ##
1927
+ # RPC-specific configuration for `revoke_certificate`
1928
+ # @return [::Gapic::Config::Method]
1929
+ #
1930
+ attr_reader :revoke_certificate
1931
+ ##
1932
+ # RPC-specific configuration for `update_certificate`
1933
+ # @return [::Gapic::Config::Method]
1934
+ #
1935
+ attr_reader :update_certificate
1936
+ ##
1937
+ # RPC-specific configuration for `activate_certificate_authority`
1938
+ # @return [::Gapic::Config::Method]
1939
+ #
1940
+ attr_reader :activate_certificate_authority
1941
+ ##
1942
+ # RPC-specific configuration for `create_certificate_authority`
1943
+ # @return [::Gapic::Config::Method]
1944
+ #
1945
+ attr_reader :create_certificate_authority
1946
+ ##
1947
+ # RPC-specific configuration for `disable_certificate_authority`
1948
+ # @return [::Gapic::Config::Method]
1949
+ #
1950
+ attr_reader :disable_certificate_authority
1951
+ ##
1952
+ # RPC-specific configuration for `enable_certificate_authority`
1953
+ # @return [::Gapic::Config::Method]
1954
+ #
1955
+ attr_reader :enable_certificate_authority
1956
+ ##
1957
+ # RPC-specific configuration for `fetch_certificate_authority_csr`
1958
+ # @return [::Gapic::Config::Method]
1959
+ #
1960
+ attr_reader :fetch_certificate_authority_csr
1961
+ ##
1962
+ # RPC-specific configuration for `get_certificate_authority`
1963
+ # @return [::Gapic::Config::Method]
1964
+ #
1965
+ attr_reader :get_certificate_authority
1966
+ ##
1967
+ # RPC-specific configuration for `list_certificate_authorities`
1968
+ # @return [::Gapic::Config::Method]
1969
+ #
1970
+ attr_reader :list_certificate_authorities
1971
+ ##
1972
+ # RPC-specific configuration for `restore_certificate_authority`
1973
+ # @return [::Gapic::Config::Method]
1974
+ #
1975
+ attr_reader :restore_certificate_authority
1976
+ ##
1977
+ # RPC-specific configuration for `schedule_delete_certificate_authority`
1978
+ # @return [::Gapic::Config::Method]
1979
+ #
1980
+ attr_reader :schedule_delete_certificate_authority
1981
+ ##
1982
+ # RPC-specific configuration for `update_certificate_authority`
1983
+ # @return [::Gapic::Config::Method]
1984
+ #
1985
+ attr_reader :update_certificate_authority
1986
+ ##
1987
+ # RPC-specific configuration for `get_certificate_revocation_list`
1988
+ # @return [::Gapic::Config::Method]
1989
+ #
1990
+ attr_reader :get_certificate_revocation_list
1991
+ ##
1992
+ # RPC-specific configuration for `list_certificate_revocation_lists`
1993
+ # @return [::Gapic::Config::Method]
1994
+ #
1995
+ attr_reader :list_certificate_revocation_lists
1996
+ ##
1997
+ # RPC-specific configuration for `update_certificate_revocation_list`
1998
+ # @return [::Gapic::Config::Method]
1999
+ #
2000
+ attr_reader :update_certificate_revocation_list
2001
+ ##
2002
+ # RPC-specific configuration for `get_reusable_config`
2003
+ # @return [::Gapic::Config::Method]
2004
+ #
2005
+ attr_reader :get_reusable_config
2006
+ ##
2007
+ # RPC-specific configuration for `list_reusable_configs`
2008
+ # @return [::Gapic::Config::Method]
2009
+ #
2010
+ attr_reader :list_reusable_configs
2011
+
2012
+ # @private
2013
+ def initialize parent_rpcs = nil
2014
+ create_certificate_config = parent_rpcs&.create_certificate if parent_rpcs&.respond_to? :create_certificate
2015
+ @create_certificate = ::Gapic::Config::Method.new create_certificate_config
2016
+ get_certificate_config = parent_rpcs&.get_certificate if parent_rpcs&.respond_to? :get_certificate
2017
+ @get_certificate = ::Gapic::Config::Method.new get_certificate_config
2018
+ list_certificates_config = parent_rpcs&.list_certificates if parent_rpcs&.respond_to? :list_certificates
2019
+ @list_certificates = ::Gapic::Config::Method.new list_certificates_config
2020
+ revoke_certificate_config = parent_rpcs&.revoke_certificate if parent_rpcs&.respond_to? :revoke_certificate
2021
+ @revoke_certificate = ::Gapic::Config::Method.new revoke_certificate_config
2022
+ update_certificate_config = parent_rpcs&.update_certificate if parent_rpcs&.respond_to? :update_certificate
2023
+ @update_certificate = ::Gapic::Config::Method.new update_certificate_config
2024
+ activate_certificate_authority_config = parent_rpcs&.activate_certificate_authority if parent_rpcs&.respond_to? :activate_certificate_authority
2025
+ @activate_certificate_authority = ::Gapic::Config::Method.new activate_certificate_authority_config
2026
+ create_certificate_authority_config = parent_rpcs&.create_certificate_authority if parent_rpcs&.respond_to? :create_certificate_authority
2027
+ @create_certificate_authority = ::Gapic::Config::Method.new create_certificate_authority_config
2028
+ disable_certificate_authority_config = parent_rpcs&.disable_certificate_authority if parent_rpcs&.respond_to? :disable_certificate_authority
2029
+ @disable_certificate_authority = ::Gapic::Config::Method.new disable_certificate_authority_config
2030
+ enable_certificate_authority_config = parent_rpcs&.enable_certificate_authority if parent_rpcs&.respond_to? :enable_certificate_authority
2031
+ @enable_certificate_authority = ::Gapic::Config::Method.new enable_certificate_authority_config
2032
+ fetch_certificate_authority_csr_config = parent_rpcs&.fetch_certificate_authority_csr if parent_rpcs&.respond_to? :fetch_certificate_authority_csr
2033
+ @fetch_certificate_authority_csr = ::Gapic::Config::Method.new fetch_certificate_authority_csr_config
2034
+ get_certificate_authority_config = parent_rpcs&.get_certificate_authority if parent_rpcs&.respond_to? :get_certificate_authority
2035
+ @get_certificate_authority = ::Gapic::Config::Method.new get_certificate_authority_config
2036
+ list_certificate_authorities_config = parent_rpcs&.list_certificate_authorities if parent_rpcs&.respond_to? :list_certificate_authorities
2037
+ @list_certificate_authorities = ::Gapic::Config::Method.new list_certificate_authorities_config
2038
+ restore_certificate_authority_config = parent_rpcs&.restore_certificate_authority if parent_rpcs&.respond_to? :restore_certificate_authority
2039
+ @restore_certificate_authority = ::Gapic::Config::Method.new restore_certificate_authority_config
2040
+ schedule_delete_certificate_authority_config = parent_rpcs&.schedule_delete_certificate_authority if parent_rpcs&.respond_to? :schedule_delete_certificate_authority
2041
+ @schedule_delete_certificate_authority = ::Gapic::Config::Method.new schedule_delete_certificate_authority_config
2042
+ update_certificate_authority_config = parent_rpcs&.update_certificate_authority if parent_rpcs&.respond_to? :update_certificate_authority
2043
+ @update_certificate_authority = ::Gapic::Config::Method.new update_certificate_authority_config
2044
+ get_certificate_revocation_list_config = parent_rpcs&.get_certificate_revocation_list if parent_rpcs&.respond_to? :get_certificate_revocation_list
2045
+ @get_certificate_revocation_list = ::Gapic::Config::Method.new get_certificate_revocation_list_config
2046
+ list_certificate_revocation_lists_config = parent_rpcs&.list_certificate_revocation_lists if parent_rpcs&.respond_to? :list_certificate_revocation_lists
2047
+ @list_certificate_revocation_lists = ::Gapic::Config::Method.new list_certificate_revocation_lists_config
2048
+ update_certificate_revocation_list_config = parent_rpcs&.update_certificate_revocation_list if parent_rpcs&.respond_to? :update_certificate_revocation_list
2049
+ @update_certificate_revocation_list = ::Gapic::Config::Method.new update_certificate_revocation_list_config
2050
+ get_reusable_config_config = parent_rpcs&.get_reusable_config if parent_rpcs&.respond_to? :get_reusable_config
2051
+ @get_reusable_config = ::Gapic::Config::Method.new get_reusable_config_config
2052
+ list_reusable_configs_config = parent_rpcs&.list_reusable_configs if parent_rpcs&.respond_to? :list_reusable_configs
2053
+ @list_reusable_configs = ::Gapic::Config::Method.new list_reusable_configs_config
2054
+
2055
+ yield self if block_given?
2056
+ end
2057
+ end
2058
+ end
2059
+ end
2060
+ end
2061
+ end
2062
+ end
2063
+ end
2064
+ end
2065
+ end