google-cloud-certificate_manager-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/client.rb +2500 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/credentials.rb +47 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/operations.rb +767 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb +166 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager.rb +75 -0
- data/lib/google/cloud/certificate_manager/v1/version.rb +28 -0
- data/lib/google/cloud/certificate_manager/v1.rb +40 -0
- data/lib/google/cloud/certificatemanager/v1/certificate_manager_pb.rb +303 -0
- data/lib/google/cloud/certificatemanager/v1/certificate_manager_services_pb.rb +110 -0
- data/lib/google-cloud-certificate_manager-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/certificatemanager/v1/certificate_manager.rb +832 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +217 -0
@@ -0,0 +1,2500 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/certificatemanager/v1/certificate_manager_pb"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module CertificateManager
|
25
|
+
module V1
|
26
|
+
module CertificateManager
|
27
|
+
##
|
28
|
+
# Client for the CertificateManager service.
|
29
|
+
#
|
30
|
+
# API Overview
|
31
|
+
#
|
32
|
+
# Certificates Manager API allows customers to see and manage all their TLS
|
33
|
+
# certificates.
|
34
|
+
#
|
35
|
+
# Certificates Manager API service provides methods to manage certificates,
|
36
|
+
# group them into collections, and create serving configuration that can be
|
37
|
+
# easily applied to other Cloud resources e.g. Target Proxies.
|
38
|
+
#
|
39
|
+
# Data Model
|
40
|
+
#
|
41
|
+
# The Certificates Manager service exposes the following resources:
|
42
|
+
#
|
43
|
+
# * `Certificate` which describes a single TLS certificate.
|
44
|
+
# * `CertificateMap` which describes a collection of certificates that can be
|
45
|
+
# attached to a target resource.
|
46
|
+
# * `CertificateMapEntry` which describes a single configuration entry that
|
47
|
+
# consists of a SNI and a group of certificates. It's a subresource of
|
48
|
+
# CertificateMap.
|
49
|
+
#
|
50
|
+
# Certificate, CertificateMap and CertificateMapEntry IDs
|
51
|
+
# have to match "^[a-z0-9-]\\{1,63}$" regexp, which means that
|
52
|
+
# - only lower case letters, digits, and hyphen are allowed
|
53
|
+
# - length of the resource ID has to be in [1,63] range.
|
54
|
+
#
|
55
|
+
# Provides methods to manage Cloud Certificate Manager entities.
|
56
|
+
#
|
57
|
+
class Client
|
58
|
+
include Paths
|
59
|
+
|
60
|
+
# @private
|
61
|
+
attr_reader :certificate_manager_stub
|
62
|
+
|
63
|
+
##
|
64
|
+
# Configure the CertificateManager Client class.
|
65
|
+
#
|
66
|
+
# See {::Google::Cloud::CertificateManager::V1::CertificateManager::Client::Configuration}
|
67
|
+
# for a description of the configuration fields.
|
68
|
+
#
|
69
|
+
# @example
|
70
|
+
#
|
71
|
+
# # Modify the configuration for all CertificateManager clients
|
72
|
+
# ::Google::Cloud::CertificateManager::V1::CertificateManager::Client.configure do |config|
|
73
|
+
# config.timeout = 10.0
|
74
|
+
# end
|
75
|
+
#
|
76
|
+
# @yield [config] Configure the Client client.
|
77
|
+
# @yieldparam config [Client::Configuration]
|
78
|
+
#
|
79
|
+
# @return [Client::Configuration]
|
80
|
+
#
|
81
|
+
def self.configure
|
82
|
+
@configure ||= begin
|
83
|
+
namespace = ["Google", "Cloud", "CertificateManager", "V1"]
|
84
|
+
parent_config = while namespace.any?
|
85
|
+
parent_name = namespace.join "::"
|
86
|
+
parent_const = const_get parent_name
|
87
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
88
|
+
namespace.pop
|
89
|
+
end
|
90
|
+
default_config = Client::Configuration.new parent_config
|
91
|
+
|
92
|
+
default_config.rpcs.list_certificates.timeout = 60.0
|
93
|
+
default_config.rpcs.list_certificates.retry_policy = {
|
94
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
95
|
+
}
|
96
|
+
|
97
|
+
default_config.rpcs.get_certificate.timeout = 60.0
|
98
|
+
default_config.rpcs.get_certificate.retry_policy = {
|
99
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
100
|
+
}
|
101
|
+
|
102
|
+
default_config.rpcs.create_certificate.timeout = 60.0
|
103
|
+
default_config.rpcs.create_certificate.retry_policy = {
|
104
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
105
|
+
}
|
106
|
+
|
107
|
+
default_config.rpcs.update_certificate.timeout = 60.0
|
108
|
+
default_config.rpcs.update_certificate.retry_policy = {
|
109
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
110
|
+
}
|
111
|
+
|
112
|
+
default_config.rpcs.delete_certificate.timeout = 60.0
|
113
|
+
default_config.rpcs.delete_certificate.retry_policy = {
|
114
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
115
|
+
}
|
116
|
+
|
117
|
+
default_config.rpcs.list_certificate_maps.timeout = 60.0
|
118
|
+
default_config.rpcs.list_certificate_maps.retry_policy = {
|
119
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
120
|
+
}
|
121
|
+
|
122
|
+
default_config.rpcs.get_certificate_map.timeout = 60.0
|
123
|
+
default_config.rpcs.get_certificate_map.retry_policy = {
|
124
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
125
|
+
}
|
126
|
+
|
127
|
+
default_config.rpcs.create_certificate_map.timeout = 60.0
|
128
|
+
default_config.rpcs.create_certificate_map.retry_policy = {
|
129
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
130
|
+
}
|
131
|
+
|
132
|
+
default_config.rpcs.update_certificate_map.timeout = 60.0
|
133
|
+
default_config.rpcs.update_certificate_map.retry_policy = {
|
134
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
135
|
+
}
|
136
|
+
|
137
|
+
default_config.rpcs.delete_certificate_map.timeout = 60.0
|
138
|
+
default_config.rpcs.delete_certificate_map.retry_policy = {
|
139
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
140
|
+
}
|
141
|
+
|
142
|
+
default_config.rpcs.list_certificate_map_entries.timeout = 60.0
|
143
|
+
default_config.rpcs.list_certificate_map_entries.retry_policy = {
|
144
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
145
|
+
}
|
146
|
+
|
147
|
+
default_config.rpcs.get_certificate_map_entry.timeout = 60.0
|
148
|
+
default_config.rpcs.get_certificate_map_entry.retry_policy = {
|
149
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
150
|
+
}
|
151
|
+
|
152
|
+
default_config.rpcs.create_certificate_map_entry.timeout = 60.0
|
153
|
+
default_config.rpcs.create_certificate_map_entry.retry_policy = {
|
154
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
155
|
+
}
|
156
|
+
|
157
|
+
default_config.rpcs.update_certificate_map_entry.timeout = 60.0
|
158
|
+
default_config.rpcs.update_certificate_map_entry.retry_policy = {
|
159
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
160
|
+
}
|
161
|
+
|
162
|
+
default_config.rpcs.delete_certificate_map_entry.timeout = 60.0
|
163
|
+
default_config.rpcs.delete_certificate_map_entry.retry_policy = {
|
164
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
165
|
+
}
|
166
|
+
|
167
|
+
default_config.rpcs.list_dns_authorizations.timeout = 60.0
|
168
|
+
default_config.rpcs.list_dns_authorizations.retry_policy = {
|
169
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
170
|
+
}
|
171
|
+
|
172
|
+
default_config.rpcs.get_dns_authorization.timeout = 60.0
|
173
|
+
default_config.rpcs.get_dns_authorization.retry_policy = {
|
174
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
175
|
+
}
|
176
|
+
|
177
|
+
default_config.rpcs.create_dns_authorization.timeout = 60.0
|
178
|
+
default_config.rpcs.create_dns_authorization.retry_policy = {
|
179
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
180
|
+
}
|
181
|
+
|
182
|
+
default_config.rpcs.update_dns_authorization.timeout = 60.0
|
183
|
+
default_config.rpcs.update_dns_authorization.retry_policy = {
|
184
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
185
|
+
}
|
186
|
+
|
187
|
+
default_config.rpcs.delete_dns_authorization.timeout = 60.0
|
188
|
+
default_config.rpcs.delete_dns_authorization.retry_policy = {
|
189
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
190
|
+
}
|
191
|
+
|
192
|
+
default_config
|
193
|
+
end
|
194
|
+
yield @configure if block_given?
|
195
|
+
@configure
|
196
|
+
end
|
197
|
+
|
198
|
+
##
|
199
|
+
# Configure the CertificateManager Client instance.
|
200
|
+
#
|
201
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
202
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
203
|
+
# should be made on {Client.configure}.
|
204
|
+
#
|
205
|
+
# See {::Google::Cloud::CertificateManager::V1::CertificateManager::Client::Configuration}
|
206
|
+
# for a description of the configuration fields.
|
207
|
+
#
|
208
|
+
# @yield [config] Configure the Client client.
|
209
|
+
# @yieldparam config [Client::Configuration]
|
210
|
+
#
|
211
|
+
# @return [Client::Configuration]
|
212
|
+
#
|
213
|
+
def configure
|
214
|
+
yield @config if block_given?
|
215
|
+
@config
|
216
|
+
end
|
217
|
+
|
218
|
+
##
|
219
|
+
# Create a new CertificateManager client object.
|
220
|
+
#
|
221
|
+
# @example
|
222
|
+
#
|
223
|
+
# # Create a client using the default configuration
|
224
|
+
# client = ::Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
225
|
+
#
|
226
|
+
# # Create a client using a custom configuration
|
227
|
+
# client = ::Google::Cloud::CertificateManager::V1::CertificateManager::Client.new do |config|
|
228
|
+
# config.timeout = 10.0
|
229
|
+
# end
|
230
|
+
#
|
231
|
+
# @yield [config] Configure the CertificateManager client.
|
232
|
+
# @yieldparam config [Client::Configuration]
|
233
|
+
#
|
234
|
+
def initialize
|
235
|
+
# These require statements are intentionally placed here to initialize
|
236
|
+
# the gRPC module only when it's required.
|
237
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
238
|
+
require "gapic/grpc"
|
239
|
+
require "google/cloud/certificatemanager/v1/certificate_manager_services_pb"
|
240
|
+
|
241
|
+
# Create the configuration object
|
242
|
+
@config = Configuration.new Client.configure
|
243
|
+
|
244
|
+
# Yield the configuration if needed
|
245
|
+
yield @config if block_given?
|
246
|
+
|
247
|
+
# Create credentials
|
248
|
+
credentials = @config.credentials
|
249
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
250
|
+
# but only if the default endpoint does not have a region prefix.
|
251
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
252
|
+
!@config.endpoint.split(".").first.include?("-")
|
253
|
+
credentials ||= Credentials.default scope: @config.scope,
|
254
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
255
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
256
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
257
|
+
end
|
258
|
+
@quota_project_id = @config.quota_project
|
259
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
260
|
+
|
261
|
+
@operations_client = Operations.new do |config|
|
262
|
+
config.credentials = credentials
|
263
|
+
config.quota_project = @quota_project_id
|
264
|
+
config.endpoint = @config.endpoint
|
265
|
+
end
|
266
|
+
|
267
|
+
@certificate_manager_stub = ::Gapic::ServiceStub.new(
|
268
|
+
::Google::Cloud::CertificateManager::V1::CertificateManager::Stub,
|
269
|
+
credentials: credentials,
|
270
|
+
endpoint: @config.endpoint,
|
271
|
+
channel_args: @config.channel_args,
|
272
|
+
interceptors: @config.interceptors
|
273
|
+
)
|
274
|
+
end
|
275
|
+
|
276
|
+
##
|
277
|
+
# Get the associated client for long-running operations.
|
278
|
+
#
|
279
|
+
# @return [::Google::Cloud::CertificateManager::V1::CertificateManager::Operations]
|
280
|
+
#
|
281
|
+
attr_reader :operations_client
|
282
|
+
|
283
|
+
# Service calls
|
284
|
+
|
285
|
+
##
|
286
|
+
# Lists Certificates in a given project and location.
|
287
|
+
#
|
288
|
+
# @overload list_certificates(request, options = nil)
|
289
|
+
# Pass arguments to `list_certificates` via a request object, either of type
|
290
|
+
# {::Google::Cloud::CertificateManager::V1::ListCertificatesRequest} or an equivalent Hash.
|
291
|
+
#
|
292
|
+
# @param request [::Google::Cloud::CertificateManager::V1::ListCertificatesRequest, ::Hash]
|
293
|
+
# A request object representing the call parameters. Required. To specify no
|
294
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
295
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
296
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
297
|
+
#
|
298
|
+
# @overload list_certificates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
299
|
+
# Pass arguments to `list_certificates` via keyword arguments. Note that at
|
300
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
301
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
302
|
+
#
|
303
|
+
# @param parent [::String]
|
304
|
+
# Required. The project and location from which the certificate should be listed,
|
305
|
+
# specified in the format `projects/*/locations/*`.
|
306
|
+
# @param page_size [::Integer]
|
307
|
+
# Maximum number of certificates to return per call.
|
308
|
+
# @param page_token [::String]
|
309
|
+
# The value returned by the last `ListCertificatesResponse`. Indicates that
|
310
|
+
# this is a continuation of a prior `ListCertificates` call, and that the
|
311
|
+
# system should return the next page of data.
|
312
|
+
# @param filter [::String]
|
313
|
+
# Filter expression to restrict the Certificates returned.
|
314
|
+
# @param order_by [::String]
|
315
|
+
# A list of Certificate field names used to specify the order of the returned
|
316
|
+
# results. The default sorting order is ascending. To specify descending
|
317
|
+
# order for a field, add a suffix " desc".
|
318
|
+
#
|
319
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
320
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::Certificate>]
|
321
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
322
|
+
#
|
323
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::Certificate>]
|
324
|
+
#
|
325
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
326
|
+
#
|
327
|
+
# @example Basic example
|
328
|
+
# require "google/cloud/certificate_manager/v1"
|
329
|
+
#
|
330
|
+
# # Create a client object. The client can be reused for multiple calls.
|
331
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
332
|
+
#
|
333
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
334
|
+
# request = Google::Cloud::CertificateManager::V1::ListCertificatesRequest.new
|
335
|
+
#
|
336
|
+
# # Call the list_certificates method.
|
337
|
+
# result = client.list_certificates request
|
338
|
+
#
|
339
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
340
|
+
# # iterate over all elements by calling #each, and the enumerable
|
341
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
342
|
+
# # methods are also available for managing paging directly.
|
343
|
+
# result.each do |response|
|
344
|
+
# # Each element is of type ::Google::Cloud::CertificateManager::V1::Certificate.
|
345
|
+
# p response
|
346
|
+
# end
|
347
|
+
#
|
348
|
+
def list_certificates request, options = nil
|
349
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
350
|
+
|
351
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::ListCertificatesRequest
|
352
|
+
|
353
|
+
# Converts hash and nil to an options object
|
354
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
355
|
+
|
356
|
+
# Customize the options with defaults
|
357
|
+
metadata = @config.rpcs.list_certificates.metadata.to_h
|
358
|
+
|
359
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
360
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
363
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
|
+
|
365
|
+
header_params = {}
|
366
|
+
if request.parent
|
367
|
+
header_params["parent"] = request.parent
|
368
|
+
end
|
369
|
+
|
370
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
371
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
372
|
+
|
373
|
+
options.apply_defaults timeout: @config.rpcs.list_certificates.timeout,
|
374
|
+
metadata: metadata,
|
375
|
+
retry_policy: @config.rpcs.list_certificates.retry_policy
|
376
|
+
|
377
|
+
options.apply_defaults timeout: @config.timeout,
|
378
|
+
metadata: @config.metadata,
|
379
|
+
retry_policy: @config.retry_policy
|
380
|
+
|
381
|
+
@certificate_manager_stub.call_rpc :list_certificates, request, options: options do |response, operation|
|
382
|
+
response = ::Gapic::PagedEnumerable.new @certificate_manager_stub, :list_certificates, request, response, operation, options
|
383
|
+
yield response, operation if block_given?
|
384
|
+
return response
|
385
|
+
end
|
386
|
+
rescue ::GRPC::BadStatus => e
|
387
|
+
raise ::Google::Cloud::Error.from_error(e)
|
388
|
+
end
|
389
|
+
|
390
|
+
##
|
391
|
+
# Gets details of a single Certificate.
|
392
|
+
#
|
393
|
+
# @overload get_certificate(request, options = nil)
|
394
|
+
# Pass arguments to `get_certificate` via a request object, either of type
|
395
|
+
# {::Google::Cloud::CertificateManager::V1::GetCertificateRequest} or an equivalent Hash.
|
396
|
+
#
|
397
|
+
# @param request [::Google::Cloud::CertificateManager::V1::GetCertificateRequest, ::Hash]
|
398
|
+
# A request object representing the call parameters. Required. To specify no
|
399
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
400
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
401
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
402
|
+
#
|
403
|
+
# @overload get_certificate(name: nil)
|
404
|
+
# Pass arguments to `get_certificate` via keyword arguments. Note that at
|
405
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
406
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
407
|
+
#
|
408
|
+
# @param name [::String]
|
409
|
+
# Required. A name of the certificate to describe. Must be in the format
|
410
|
+
# `projects/*/locations/*/certificates/*`.
|
411
|
+
#
|
412
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
413
|
+
# @yieldparam response [::Google::Cloud::CertificateManager::V1::Certificate]
|
414
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
415
|
+
#
|
416
|
+
# @return [::Google::Cloud::CertificateManager::V1::Certificate]
|
417
|
+
#
|
418
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
419
|
+
#
|
420
|
+
# @example Basic example
|
421
|
+
# require "google/cloud/certificate_manager/v1"
|
422
|
+
#
|
423
|
+
# # Create a client object. The client can be reused for multiple calls.
|
424
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
425
|
+
#
|
426
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
427
|
+
# request = Google::Cloud::CertificateManager::V1::GetCertificateRequest.new
|
428
|
+
#
|
429
|
+
# # Call the get_certificate method.
|
430
|
+
# result = client.get_certificate request
|
431
|
+
#
|
432
|
+
# # The returned object is of type Google::Cloud::CertificateManager::V1::Certificate.
|
433
|
+
# p result
|
434
|
+
#
|
435
|
+
def get_certificate request, options = nil
|
436
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
437
|
+
|
438
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::GetCertificateRequest
|
439
|
+
|
440
|
+
# Converts hash and nil to an options object
|
441
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
442
|
+
|
443
|
+
# Customize the options with defaults
|
444
|
+
metadata = @config.rpcs.get_certificate.metadata.to_h
|
445
|
+
|
446
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
447
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
448
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
449
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
450
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
451
|
+
|
452
|
+
header_params = {}
|
453
|
+
if request.name
|
454
|
+
header_params["name"] = request.name
|
455
|
+
end
|
456
|
+
|
457
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
458
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
459
|
+
|
460
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate.timeout,
|
461
|
+
metadata: metadata,
|
462
|
+
retry_policy: @config.rpcs.get_certificate.retry_policy
|
463
|
+
|
464
|
+
options.apply_defaults timeout: @config.timeout,
|
465
|
+
metadata: @config.metadata,
|
466
|
+
retry_policy: @config.retry_policy
|
467
|
+
|
468
|
+
@certificate_manager_stub.call_rpc :get_certificate, request, options: options do |response, operation|
|
469
|
+
yield response, operation if block_given?
|
470
|
+
return response
|
471
|
+
end
|
472
|
+
rescue ::GRPC::BadStatus => e
|
473
|
+
raise ::Google::Cloud::Error.from_error(e)
|
474
|
+
end
|
475
|
+
|
476
|
+
##
|
477
|
+
# Creates a new Certificate in a given project and location.
|
478
|
+
#
|
479
|
+
# @overload create_certificate(request, options = nil)
|
480
|
+
# Pass arguments to `create_certificate` via a request object, either of type
|
481
|
+
# {::Google::Cloud::CertificateManager::V1::CreateCertificateRequest} or an equivalent Hash.
|
482
|
+
#
|
483
|
+
# @param request [::Google::Cloud::CertificateManager::V1::CreateCertificateRequest, ::Hash]
|
484
|
+
# A request object representing the call parameters. Required. To specify no
|
485
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
486
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
487
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
488
|
+
#
|
489
|
+
# @overload create_certificate(parent: nil, certificate_id: nil, certificate: nil)
|
490
|
+
# Pass arguments to `create_certificate` via keyword arguments. Note that at
|
491
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
492
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
493
|
+
#
|
494
|
+
# @param parent [::String]
|
495
|
+
# Required. The parent resource of the certificate. Must be in the format
|
496
|
+
# `projects/*/locations/*`.
|
497
|
+
# @param certificate_id [::String]
|
498
|
+
# Required. A user-provided name of the certificate.
|
499
|
+
# @param certificate [::Google::Cloud::CertificateManager::V1::Certificate, ::Hash]
|
500
|
+
# Required. A definition of the certificate to create.
|
501
|
+
#
|
502
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
503
|
+
# @yieldparam response [::Gapic::Operation]
|
504
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
505
|
+
#
|
506
|
+
# @return [::Gapic::Operation]
|
507
|
+
#
|
508
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
509
|
+
#
|
510
|
+
# @example Basic example
|
511
|
+
# require "google/cloud/certificate_manager/v1"
|
512
|
+
#
|
513
|
+
# # Create a client object. The client can be reused for multiple calls.
|
514
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
515
|
+
#
|
516
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
517
|
+
# request = Google::Cloud::CertificateManager::V1::CreateCertificateRequest.new
|
518
|
+
#
|
519
|
+
# # Call the create_certificate method.
|
520
|
+
# result = client.create_certificate request
|
521
|
+
#
|
522
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
523
|
+
# # object to check the status of an operation, cancel it, or wait
|
524
|
+
# # for results. Here is how to block until completion:
|
525
|
+
# result.wait_until_done! timeout: 60
|
526
|
+
# if result.response?
|
527
|
+
# p result.response
|
528
|
+
# else
|
529
|
+
# puts "Error!"
|
530
|
+
# end
|
531
|
+
#
|
532
|
+
def create_certificate request, options = nil
|
533
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
534
|
+
|
535
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::CreateCertificateRequest
|
536
|
+
|
537
|
+
# Converts hash and nil to an options object
|
538
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
539
|
+
|
540
|
+
# Customize the options with defaults
|
541
|
+
metadata = @config.rpcs.create_certificate.metadata.to_h
|
542
|
+
|
543
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
544
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
545
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
546
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
547
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
548
|
+
|
549
|
+
header_params = {}
|
550
|
+
if request.parent
|
551
|
+
header_params["parent"] = request.parent
|
552
|
+
end
|
553
|
+
|
554
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
555
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
556
|
+
|
557
|
+
options.apply_defaults timeout: @config.rpcs.create_certificate.timeout,
|
558
|
+
metadata: metadata,
|
559
|
+
retry_policy: @config.rpcs.create_certificate.retry_policy
|
560
|
+
|
561
|
+
options.apply_defaults timeout: @config.timeout,
|
562
|
+
metadata: @config.metadata,
|
563
|
+
retry_policy: @config.retry_policy
|
564
|
+
|
565
|
+
@certificate_manager_stub.call_rpc :create_certificate, request, options: options do |response, operation|
|
566
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
567
|
+
yield response, operation if block_given?
|
568
|
+
return response
|
569
|
+
end
|
570
|
+
rescue ::GRPC::BadStatus => e
|
571
|
+
raise ::Google::Cloud::Error.from_error(e)
|
572
|
+
end
|
573
|
+
|
574
|
+
##
|
575
|
+
# Updates a Certificate.
|
576
|
+
#
|
577
|
+
# @overload update_certificate(request, options = nil)
|
578
|
+
# Pass arguments to `update_certificate` via a request object, either of type
|
579
|
+
# {::Google::Cloud::CertificateManager::V1::UpdateCertificateRequest} or an equivalent Hash.
|
580
|
+
#
|
581
|
+
# @param request [::Google::Cloud::CertificateManager::V1::UpdateCertificateRequest, ::Hash]
|
582
|
+
# A request object representing the call parameters. Required. To specify no
|
583
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
584
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
585
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
586
|
+
#
|
587
|
+
# @overload update_certificate(certificate: nil, update_mask: nil)
|
588
|
+
# Pass arguments to `update_certificate` via keyword arguments. Note that at
|
589
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
590
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
591
|
+
#
|
592
|
+
# @param certificate [::Google::Cloud::CertificateManager::V1::Certificate, ::Hash]
|
593
|
+
# Required. A definition of the certificate to update.
|
594
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
595
|
+
# Required. The update mask applies to the resource. For the `FieldMask` definition,
|
596
|
+
# see
|
597
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
|
598
|
+
#
|
599
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
600
|
+
# @yieldparam response [::Gapic::Operation]
|
601
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
602
|
+
#
|
603
|
+
# @return [::Gapic::Operation]
|
604
|
+
#
|
605
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
606
|
+
#
|
607
|
+
# @example Basic example
|
608
|
+
# require "google/cloud/certificate_manager/v1"
|
609
|
+
#
|
610
|
+
# # Create a client object. The client can be reused for multiple calls.
|
611
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
612
|
+
#
|
613
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
614
|
+
# request = Google::Cloud::CertificateManager::V1::UpdateCertificateRequest.new
|
615
|
+
#
|
616
|
+
# # Call the update_certificate method.
|
617
|
+
# result = client.update_certificate request
|
618
|
+
#
|
619
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
620
|
+
# # object to check the status of an operation, cancel it, or wait
|
621
|
+
# # for results. Here is how to block until completion:
|
622
|
+
# result.wait_until_done! timeout: 60
|
623
|
+
# if result.response?
|
624
|
+
# p result.response
|
625
|
+
# else
|
626
|
+
# puts "Error!"
|
627
|
+
# end
|
628
|
+
#
|
629
|
+
def update_certificate request, options = nil
|
630
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
631
|
+
|
632
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::UpdateCertificateRequest
|
633
|
+
|
634
|
+
# Converts hash and nil to an options object
|
635
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
636
|
+
|
637
|
+
# Customize the options with defaults
|
638
|
+
metadata = @config.rpcs.update_certificate.metadata.to_h
|
639
|
+
|
640
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
641
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
642
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
643
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
644
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
645
|
+
|
646
|
+
header_params = {}
|
647
|
+
if request.certificate&.name
|
648
|
+
header_params["certificate.name"] = request.certificate.name
|
649
|
+
end
|
650
|
+
|
651
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
652
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
653
|
+
|
654
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate.timeout,
|
655
|
+
metadata: metadata,
|
656
|
+
retry_policy: @config.rpcs.update_certificate.retry_policy
|
657
|
+
|
658
|
+
options.apply_defaults timeout: @config.timeout,
|
659
|
+
metadata: @config.metadata,
|
660
|
+
retry_policy: @config.retry_policy
|
661
|
+
|
662
|
+
@certificate_manager_stub.call_rpc :update_certificate, 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
|
+
# Deletes a single Certificate.
|
673
|
+
#
|
674
|
+
# @overload delete_certificate(request, options = nil)
|
675
|
+
# Pass arguments to `delete_certificate` via a request object, either of type
|
676
|
+
# {::Google::Cloud::CertificateManager::V1::DeleteCertificateRequest} or an equivalent Hash.
|
677
|
+
#
|
678
|
+
# @param request [::Google::Cloud::CertificateManager::V1::DeleteCertificateRequest, ::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 delete_certificate(name: nil)
|
685
|
+
# Pass arguments to `delete_certificate` 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 name [::String]
|
690
|
+
# Required. A name of the certificate to delete. Must be in the format
|
691
|
+
# `projects/*/locations/*/certificates/*`.
|
692
|
+
#
|
693
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
694
|
+
# @yieldparam response [::Gapic::Operation]
|
695
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
696
|
+
#
|
697
|
+
# @return [::Gapic::Operation]
|
698
|
+
#
|
699
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
700
|
+
#
|
701
|
+
# @example Basic example
|
702
|
+
# require "google/cloud/certificate_manager/v1"
|
703
|
+
#
|
704
|
+
# # Create a client object. The client can be reused for multiple calls.
|
705
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
706
|
+
#
|
707
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
708
|
+
# request = Google::Cloud::CertificateManager::V1::DeleteCertificateRequest.new
|
709
|
+
#
|
710
|
+
# # Call the delete_certificate method.
|
711
|
+
# result = client.delete_certificate request
|
712
|
+
#
|
713
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
714
|
+
# # object to check the status of an operation, cancel it, or wait
|
715
|
+
# # for results. Here is how to block until completion:
|
716
|
+
# result.wait_until_done! timeout: 60
|
717
|
+
# if result.response?
|
718
|
+
# p result.response
|
719
|
+
# else
|
720
|
+
# puts "Error!"
|
721
|
+
# end
|
722
|
+
#
|
723
|
+
def delete_certificate request, options = nil
|
724
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
725
|
+
|
726
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::DeleteCertificateRequest
|
727
|
+
|
728
|
+
# Converts hash and nil to an options object
|
729
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
730
|
+
|
731
|
+
# Customize the options with defaults
|
732
|
+
metadata = @config.rpcs.delete_certificate.metadata.to_h
|
733
|
+
|
734
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
735
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
736
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
737
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
738
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
739
|
+
|
740
|
+
header_params = {}
|
741
|
+
if request.name
|
742
|
+
header_params["name"] = request.name
|
743
|
+
end
|
744
|
+
|
745
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
746
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
747
|
+
|
748
|
+
options.apply_defaults timeout: @config.rpcs.delete_certificate.timeout,
|
749
|
+
metadata: metadata,
|
750
|
+
retry_policy: @config.rpcs.delete_certificate.retry_policy
|
751
|
+
|
752
|
+
options.apply_defaults timeout: @config.timeout,
|
753
|
+
metadata: @config.metadata,
|
754
|
+
retry_policy: @config.retry_policy
|
755
|
+
|
756
|
+
@certificate_manager_stub.call_rpc :delete_certificate, request, options: options do |response, operation|
|
757
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
758
|
+
yield response, operation if block_given?
|
759
|
+
return response
|
760
|
+
end
|
761
|
+
rescue ::GRPC::BadStatus => e
|
762
|
+
raise ::Google::Cloud::Error.from_error(e)
|
763
|
+
end
|
764
|
+
|
765
|
+
##
|
766
|
+
# Lists CertificateMaps in a given project and location.
|
767
|
+
#
|
768
|
+
# @overload list_certificate_maps(request, options = nil)
|
769
|
+
# Pass arguments to `list_certificate_maps` via a request object, either of type
|
770
|
+
# {::Google::Cloud::CertificateManager::V1::ListCertificateMapsRequest} or an equivalent Hash.
|
771
|
+
#
|
772
|
+
# @param request [::Google::Cloud::CertificateManager::V1::ListCertificateMapsRequest, ::Hash]
|
773
|
+
# A request object representing the call parameters. Required. To specify no
|
774
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
775
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
776
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
777
|
+
#
|
778
|
+
# @overload list_certificate_maps(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
779
|
+
# Pass arguments to `list_certificate_maps` via keyword arguments. Note that at
|
780
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
781
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
782
|
+
#
|
783
|
+
# @param parent [::String]
|
784
|
+
# Required. The project and location from which the certificate maps should be listed,
|
785
|
+
# specified in the format `projects/*/locations/*`.
|
786
|
+
# @param page_size [::Integer]
|
787
|
+
# Maximum number of certificate maps to return per call.
|
788
|
+
# @param page_token [::String]
|
789
|
+
# The value returned by the last `ListCertificateMapsResponse`. Indicates
|
790
|
+
# that this is a continuation of a prior `ListCertificateMaps` call, and that
|
791
|
+
# the system should return the next page of data.
|
792
|
+
# @param filter [::String]
|
793
|
+
# Filter expression to restrict the Certificates Maps returned.
|
794
|
+
# @param order_by [::String]
|
795
|
+
# A list of Certificate Map field names used to specify the order of the
|
796
|
+
# returned results. The default sorting order is ascending. To specify
|
797
|
+
# descending order for a field, add a suffix " desc".
|
798
|
+
#
|
799
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
800
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateMap>]
|
801
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
802
|
+
#
|
803
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateMap>]
|
804
|
+
#
|
805
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
806
|
+
#
|
807
|
+
# @example Basic example
|
808
|
+
# require "google/cloud/certificate_manager/v1"
|
809
|
+
#
|
810
|
+
# # Create a client object. The client can be reused for multiple calls.
|
811
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
812
|
+
#
|
813
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
814
|
+
# request = Google::Cloud::CertificateManager::V1::ListCertificateMapsRequest.new
|
815
|
+
#
|
816
|
+
# # Call the list_certificate_maps method.
|
817
|
+
# result = client.list_certificate_maps request
|
818
|
+
#
|
819
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
820
|
+
# # iterate over all elements by calling #each, and the enumerable
|
821
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
822
|
+
# # methods are also available for managing paging directly.
|
823
|
+
# result.each do |response|
|
824
|
+
# # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateMap.
|
825
|
+
# p response
|
826
|
+
# end
|
827
|
+
#
|
828
|
+
def list_certificate_maps request, options = nil
|
829
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
830
|
+
|
831
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::ListCertificateMapsRequest
|
832
|
+
|
833
|
+
# Converts hash and nil to an options object
|
834
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
835
|
+
|
836
|
+
# Customize the options with defaults
|
837
|
+
metadata = @config.rpcs.list_certificate_maps.metadata.to_h
|
838
|
+
|
839
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
840
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
841
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
842
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
843
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
844
|
+
|
845
|
+
header_params = {}
|
846
|
+
if request.parent
|
847
|
+
header_params["parent"] = request.parent
|
848
|
+
end
|
849
|
+
|
850
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
851
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
852
|
+
|
853
|
+
options.apply_defaults timeout: @config.rpcs.list_certificate_maps.timeout,
|
854
|
+
metadata: metadata,
|
855
|
+
retry_policy: @config.rpcs.list_certificate_maps.retry_policy
|
856
|
+
|
857
|
+
options.apply_defaults timeout: @config.timeout,
|
858
|
+
metadata: @config.metadata,
|
859
|
+
retry_policy: @config.retry_policy
|
860
|
+
|
861
|
+
@certificate_manager_stub.call_rpc :list_certificate_maps, request, options: options do |response, operation|
|
862
|
+
response = ::Gapic::PagedEnumerable.new @certificate_manager_stub, :list_certificate_maps, request, response, operation, options
|
863
|
+
yield response, operation if block_given?
|
864
|
+
return response
|
865
|
+
end
|
866
|
+
rescue ::GRPC::BadStatus => e
|
867
|
+
raise ::Google::Cloud::Error.from_error(e)
|
868
|
+
end
|
869
|
+
|
870
|
+
##
|
871
|
+
# Gets details of a single CertificateMap.
|
872
|
+
#
|
873
|
+
# @overload get_certificate_map(request, options = nil)
|
874
|
+
# Pass arguments to `get_certificate_map` via a request object, either of type
|
875
|
+
# {::Google::Cloud::CertificateManager::V1::GetCertificateMapRequest} or an equivalent Hash.
|
876
|
+
#
|
877
|
+
# @param request [::Google::Cloud::CertificateManager::V1::GetCertificateMapRequest, ::Hash]
|
878
|
+
# A request object representing the call parameters. Required. To specify no
|
879
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
880
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
881
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
882
|
+
#
|
883
|
+
# @overload get_certificate_map(name: nil)
|
884
|
+
# Pass arguments to `get_certificate_map` via keyword arguments. Note that at
|
885
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
886
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
887
|
+
#
|
888
|
+
# @param name [::String]
|
889
|
+
# Required. A name of the certificate map to describe. Must be in the format
|
890
|
+
# `projects/*/locations/*/certificateMaps/*`.
|
891
|
+
#
|
892
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
893
|
+
# @yieldparam response [::Google::Cloud::CertificateManager::V1::CertificateMap]
|
894
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
895
|
+
#
|
896
|
+
# @return [::Google::Cloud::CertificateManager::V1::CertificateMap]
|
897
|
+
#
|
898
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
899
|
+
#
|
900
|
+
# @example Basic example
|
901
|
+
# require "google/cloud/certificate_manager/v1"
|
902
|
+
#
|
903
|
+
# # Create a client object. The client can be reused for multiple calls.
|
904
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
905
|
+
#
|
906
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
907
|
+
# request = Google::Cloud::CertificateManager::V1::GetCertificateMapRequest.new
|
908
|
+
#
|
909
|
+
# # Call the get_certificate_map method.
|
910
|
+
# result = client.get_certificate_map request
|
911
|
+
#
|
912
|
+
# # The returned object is of type Google::Cloud::CertificateManager::V1::CertificateMap.
|
913
|
+
# p result
|
914
|
+
#
|
915
|
+
def get_certificate_map request, options = nil
|
916
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
917
|
+
|
918
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::GetCertificateMapRequest
|
919
|
+
|
920
|
+
# Converts hash and nil to an options object
|
921
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
922
|
+
|
923
|
+
# Customize the options with defaults
|
924
|
+
metadata = @config.rpcs.get_certificate_map.metadata.to_h
|
925
|
+
|
926
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
927
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
928
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
929
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
930
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
931
|
+
|
932
|
+
header_params = {}
|
933
|
+
if request.name
|
934
|
+
header_params["name"] = request.name
|
935
|
+
end
|
936
|
+
|
937
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
938
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
939
|
+
|
940
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate_map.timeout,
|
941
|
+
metadata: metadata,
|
942
|
+
retry_policy: @config.rpcs.get_certificate_map.retry_policy
|
943
|
+
|
944
|
+
options.apply_defaults timeout: @config.timeout,
|
945
|
+
metadata: @config.metadata,
|
946
|
+
retry_policy: @config.retry_policy
|
947
|
+
|
948
|
+
@certificate_manager_stub.call_rpc :get_certificate_map, request, options: options do |response, operation|
|
949
|
+
yield response, operation if block_given?
|
950
|
+
return response
|
951
|
+
end
|
952
|
+
rescue ::GRPC::BadStatus => e
|
953
|
+
raise ::Google::Cloud::Error.from_error(e)
|
954
|
+
end
|
955
|
+
|
956
|
+
##
|
957
|
+
# Creates a new CertificateMap in a given project and location.
|
958
|
+
#
|
959
|
+
# @overload create_certificate_map(request, options = nil)
|
960
|
+
# Pass arguments to `create_certificate_map` via a request object, either of type
|
961
|
+
# {::Google::Cloud::CertificateManager::V1::CreateCertificateMapRequest} or an equivalent Hash.
|
962
|
+
#
|
963
|
+
# @param request [::Google::Cloud::CertificateManager::V1::CreateCertificateMapRequest, ::Hash]
|
964
|
+
# A request object representing the call parameters. Required. To specify no
|
965
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
966
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
967
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
968
|
+
#
|
969
|
+
# @overload create_certificate_map(parent: nil, certificate_map_id: nil, certificate_map: nil)
|
970
|
+
# Pass arguments to `create_certificate_map` via keyword arguments. Note that at
|
971
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
972
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
973
|
+
#
|
974
|
+
# @param parent [::String]
|
975
|
+
# Required. The parent resource of the certificate map. Must be in the format
|
976
|
+
# `projects/*/locations/*`.
|
977
|
+
# @param certificate_map_id [::String]
|
978
|
+
# Required. A user-provided name of the certificate map.
|
979
|
+
# @param certificate_map [::Google::Cloud::CertificateManager::V1::CertificateMap, ::Hash]
|
980
|
+
# Required. A definition of the certificate map to create.
|
981
|
+
#
|
982
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
983
|
+
# @yieldparam response [::Gapic::Operation]
|
984
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
985
|
+
#
|
986
|
+
# @return [::Gapic::Operation]
|
987
|
+
#
|
988
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
989
|
+
#
|
990
|
+
# @example Basic example
|
991
|
+
# require "google/cloud/certificate_manager/v1"
|
992
|
+
#
|
993
|
+
# # Create a client object. The client can be reused for multiple calls.
|
994
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
995
|
+
#
|
996
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
997
|
+
# request = Google::Cloud::CertificateManager::V1::CreateCertificateMapRequest.new
|
998
|
+
#
|
999
|
+
# # Call the create_certificate_map method.
|
1000
|
+
# result = client.create_certificate_map request
|
1001
|
+
#
|
1002
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1003
|
+
# # object to check the status of an operation, cancel it, or wait
|
1004
|
+
# # for results. Here is how to block until completion:
|
1005
|
+
# result.wait_until_done! timeout: 60
|
1006
|
+
# if result.response?
|
1007
|
+
# p result.response
|
1008
|
+
# else
|
1009
|
+
# puts "Error!"
|
1010
|
+
# end
|
1011
|
+
#
|
1012
|
+
def create_certificate_map request, options = nil
|
1013
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1014
|
+
|
1015
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::CreateCertificateMapRequest
|
1016
|
+
|
1017
|
+
# Converts hash and nil to an options object
|
1018
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1019
|
+
|
1020
|
+
# Customize the options with defaults
|
1021
|
+
metadata = @config.rpcs.create_certificate_map.metadata.to_h
|
1022
|
+
|
1023
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1024
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1025
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1026
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1027
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1028
|
+
|
1029
|
+
header_params = {}
|
1030
|
+
if request.parent
|
1031
|
+
header_params["parent"] = request.parent
|
1032
|
+
end
|
1033
|
+
|
1034
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1035
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1036
|
+
|
1037
|
+
options.apply_defaults timeout: @config.rpcs.create_certificate_map.timeout,
|
1038
|
+
metadata: metadata,
|
1039
|
+
retry_policy: @config.rpcs.create_certificate_map.retry_policy
|
1040
|
+
|
1041
|
+
options.apply_defaults timeout: @config.timeout,
|
1042
|
+
metadata: @config.metadata,
|
1043
|
+
retry_policy: @config.retry_policy
|
1044
|
+
|
1045
|
+
@certificate_manager_stub.call_rpc :create_certificate_map, request, options: options do |response, operation|
|
1046
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1047
|
+
yield response, operation if block_given?
|
1048
|
+
return response
|
1049
|
+
end
|
1050
|
+
rescue ::GRPC::BadStatus => e
|
1051
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
##
|
1055
|
+
# Updates a CertificateMap.
|
1056
|
+
#
|
1057
|
+
# @overload update_certificate_map(request, options = nil)
|
1058
|
+
# Pass arguments to `update_certificate_map` via a request object, either of type
|
1059
|
+
# {::Google::Cloud::CertificateManager::V1::UpdateCertificateMapRequest} or an equivalent Hash.
|
1060
|
+
#
|
1061
|
+
# @param request [::Google::Cloud::CertificateManager::V1::UpdateCertificateMapRequest, ::Hash]
|
1062
|
+
# A request object representing the call parameters. Required. To specify no
|
1063
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1064
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1065
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1066
|
+
#
|
1067
|
+
# @overload update_certificate_map(certificate_map: nil, update_mask: nil)
|
1068
|
+
# Pass arguments to `update_certificate_map` via keyword arguments. Note that at
|
1069
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1070
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1071
|
+
#
|
1072
|
+
# @param certificate_map [::Google::Cloud::CertificateManager::V1::CertificateMap, ::Hash]
|
1073
|
+
# Required. A definition of the certificate map to update.
|
1074
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1075
|
+
# Required. The update mask applies to the resource. For the `FieldMask` definition,
|
1076
|
+
# see
|
1077
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
|
1078
|
+
#
|
1079
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1080
|
+
# @yieldparam response [::Gapic::Operation]
|
1081
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1082
|
+
#
|
1083
|
+
# @return [::Gapic::Operation]
|
1084
|
+
#
|
1085
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1086
|
+
#
|
1087
|
+
# @example Basic example
|
1088
|
+
# require "google/cloud/certificate_manager/v1"
|
1089
|
+
#
|
1090
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1091
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1092
|
+
#
|
1093
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1094
|
+
# request = Google::Cloud::CertificateManager::V1::UpdateCertificateMapRequest.new
|
1095
|
+
#
|
1096
|
+
# # Call the update_certificate_map method.
|
1097
|
+
# result = client.update_certificate_map request
|
1098
|
+
#
|
1099
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1100
|
+
# # object to check the status of an operation, cancel it, or wait
|
1101
|
+
# # for results. Here is how to block until completion:
|
1102
|
+
# result.wait_until_done! timeout: 60
|
1103
|
+
# if result.response?
|
1104
|
+
# p result.response
|
1105
|
+
# else
|
1106
|
+
# puts "Error!"
|
1107
|
+
# end
|
1108
|
+
#
|
1109
|
+
def update_certificate_map request, options = nil
|
1110
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1111
|
+
|
1112
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::UpdateCertificateMapRequest
|
1113
|
+
|
1114
|
+
# Converts hash and nil to an options object
|
1115
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1116
|
+
|
1117
|
+
# Customize the options with defaults
|
1118
|
+
metadata = @config.rpcs.update_certificate_map.metadata.to_h
|
1119
|
+
|
1120
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1121
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1122
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1123
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1124
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1125
|
+
|
1126
|
+
header_params = {}
|
1127
|
+
if request.certificate_map&.name
|
1128
|
+
header_params["certificate_map.name"] = request.certificate_map.name
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1132
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1133
|
+
|
1134
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate_map.timeout,
|
1135
|
+
metadata: metadata,
|
1136
|
+
retry_policy: @config.rpcs.update_certificate_map.retry_policy
|
1137
|
+
|
1138
|
+
options.apply_defaults timeout: @config.timeout,
|
1139
|
+
metadata: @config.metadata,
|
1140
|
+
retry_policy: @config.retry_policy
|
1141
|
+
|
1142
|
+
@certificate_manager_stub.call_rpc :update_certificate_map, request, options: options do |response, operation|
|
1143
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1144
|
+
yield response, operation if block_given?
|
1145
|
+
return response
|
1146
|
+
end
|
1147
|
+
rescue ::GRPC::BadStatus => e
|
1148
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
##
|
1152
|
+
# Deletes a single CertificateMap. A Certificate Map can't be deleted
|
1153
|
+
# if it contains Certificate Map Entries. Remove all the entries from
|
1154
|
+
# the map before calling this method.
|
1155
|
+
#
|
1156
|
+
# @overload delete_certificate_map(request, options = nil)
|
1157
|
+
# Pass arguments to `delete_certificate_map` via a request object, either of type
|
1158
|
+
# {::Google::Cloud::CertificateManager::V1::DeleteCertificateMapRequest} or an equivalent Hash.
|
1159
|
+
#
|
1160
|
+
# @param request [::Google::Cloud::CertificateManager::V1::DeleteCertificateMapRequest, ::Hash]
|
1161
|
+
# A request object representing the call parameters. Required. To specify no
|
1162
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1163
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1164
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1165
|
+
#
|
1166
|
+
# @overload delete_certificate_map(name: nil)
|
1167
|
+
# Pass arguments to `delete_certificate_map` via keyword arguments. Note that at
|
1168
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1169
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1170
|
+
#
|
1171
|
+
# @param name [::String]
|
1172
|
+
# Required. A name of the certificate map to delete. Must be in the format
|
1173
|
+
# `projects/*/locations/*/certificateMaps/*`.
|
1174
|
+
#
|
1175
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1176
|
+
# @yieldparam response [::Gapic::Operation]
|
1177
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1178
|
+
#
|
1179
|
+
# @return [::Gapic::Operation]
|
1180
|
+
#
|
1181
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1182
|
+
#
|
1183
|
+
# @example Basic example
|
1184
|
+
# require "google/cloud/certificate_manager/v1"
|
1185
|
+
#
|
1186
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1187
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1188
|
+
#
|
1189
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1190
|
+
# request = Google::Cloud::CertificateManager::V1::DeleteCertificateMapRequest.new
|
1191
|
+
#
|
1192
|
+
# # Call the delete_certificate_map method.
|
1193
|
+
# result = client.delete_certificate_map request
|
1194
|
+
#
|
1195
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1196
|
+
# # object to check the status of an operation, cancel it, or wait
|
1197
|
+
# # for results. Here is how to block until completion:
|
1198
|
+
# result.wait_until_done! timeout: 60
|
1199
|
+
# if result.response?
|
1200
|
+
# p result.response
|
1201
|
+
# else
|
1202
|
+
# puts "Error!"
|
1203
|
+
# end
|
1204
|
+
#
|
1205
|
+
def delete_certificate_map request, options = nil
|
1206
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1207
|
+
|
1208
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::DeleteCertificateMapRequest
|
1209
|
+
|
1210
|
+
# Converts hash and nil to an options object
|
1211
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1212
|
+
|
1213
|
+
# Customize the options with defaults
|
1214
|
+
metadata = @config.rpcs.delete_certificate_map.metadata.to_h
|
1215
|
+
|
1216
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1217
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1218
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1219
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1220
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1221
|
+
|
1222
|
+
header_params = {}
|
1223
|
+
if request.name
|
1224
|
+
header_params["name"] = request.name
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1228
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1229
|
+
|
1230
|
+
options.apply_defaults timeout: @config.rpcs.delete_certificate_map.timeout,
|
1231
|
+
metadata: metadata,
|
1232
|
+
retry_policy: @config.rpcs.delete_certificate_map.retry_policy
|
1233
|
+
|
1234
|
+
options.apply_defaults timeout: @config.timeout,
|
1235
|
+
metadata: @config.metadata,
|
1236
|
+
retry_policy: @config.retry_policy
|
1237
|
+
|
1238
|
+
@certificate_manager_stub.call_rpc :delete_certificate_map, request, options: options do |response, operation|
|
1239
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1240
|
+
yield response, operation if block_given?
|
1241
|
+
return response
|
1242
|
+
end
|
1243
|
+
rescue ::GRPC::BadStatus => e
|
1244
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
##
|
1248
|
+
# Lists CertificateMapEntries in a given project and location.
|
1249
|
+
#
|
1250
|
+
# @overload list_certificate_map_entries(request, options = nil)
|
1251
|
+
# Pass arguments to `list_certificate_map_entries` via a request object, either of type
|
1252
|
+
# {::Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesRequest} or an equivalent Hash.
|
1253
|
+
#
|
1254
|
+
# @param request [::Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesRequest, ::Hash]
|
1255
|
+
# A request object representing the call parameters. Required. To specify no
|
1256
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1257
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1258
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1259
|
+
#
|
1260
|
+
# @overload list_certificate_map_entries(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1261
|
+
# Pass arguments to `list_certificate_map_entries` via keyword arguments. Note that at
|
1262
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1263
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1264
|
+
#
|
1265
|
+
# @param parent [::String]
|
1266
|
+
# Required. The project, location and certificate map from which the certificate map
|
1267
|
+
# entries should be listed, specified in the format
|
1268
|
+
# `projects/*/locations/*/certificateMaps/*`.
|
1269
|
+
# @param page_size [::Integer]
|
1270
|
+
# Maximum number of certificate map entries to return. The service may return
|
1271
|
+
# fewer than this value.
|
1272
|
+
# If unspecified, at most 50 certificate map entries will be returned.
|
1273
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
1274
|
+
# @param page_token [::String]
|
1275
|
+
# The value returned by the last `ListCertificateMapEntriesResponse`.
|
1276
|
+
# Indicates that this is a continuation of a prior
|
1277
|
+
# `ListCertificateMapEntries` call, and that the system should return the
|
1278
|
+
# next page of data.
|
1279
|
+
# @param filter [::String]
|
1280
|
+
# Filter expression to restrict the returned Certificate Map Entries.
|
1281
|
+
# @param order_by [::String]
|
1282
|
+
# A list of Certificate Map Entry field names used to specify
|
1283
|
+
# the order of the returned results. The default sorting order is ascending.
|
1284
|
+
# To specify descending order for a field, add a suffix " desc".
|
1285
|
+
#
|
1286
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1287
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateMapEntry>]
|
1288
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1289
|
+
#
|
1290
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateMapEntry>]
|
1291
|
+
#
|
1292
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1293
|
+
#
|
1294
|
+
# @example Basic example
|
1295
|
+
# require "google/cloud/certificate_manager/v1"
|
1296
|
+
#
|
1297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1298
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1299
|
+
#
|
1300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1301
|
+
# request = Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesRequest.new
|
1302
|
+
#
|
1303
|
+
# # Call the list_certificate_map_entries method.
|
1304
|
+
# result = client.list_certificate_map_entries request
|
1305
|
+
#
|
1306
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1307
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1308
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1309
|
+
# # methods are also available for managing paging directly.
|
1310
|
+
# result.each do |response|
|
1311
|
+
# # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateMapEntry.
|
1312
|
+
# p response
|
1313
|
+
# end
|
1314
|
+
#
|
1315
|
+
def list_certificate_map_entries request, options = nil
|
1316
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1317
|
+
|
1318
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesRequest
|
1319
|
+
|
1320
|
+
# Converts hash and nil to an options object
|
1321
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1322
|
+
|
1323
|
+
# Customize the options with defaults
|
1324
|
+
metadata = @config.rpcs.list_certificate_map_entries.metadata.to_h
|
1325
|
+
|
1326
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1327
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1328
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1329
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1330
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1331
|
+
|
1332
|
+
header_params = {}
|
1333
|
+
if request.parent
|
1334
|
+
header_params["parent"] = request.parent
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1338
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1339
|
+
|
1340
|
+
options.apply_defaults timeout: @config.rpcs.list_certificate_map_entries.timeout,
|
1341
|
+
metadata: metadata,
|
1342
|
+
retry_policy: @config.rpcs.list_certificate_map_entries.retry_policy
|
1343
|
+
|
1344
|
+
options.apply_defaults timeout: @config.timeout,
|
1345
|
+
metadata: @config.metadata,
|
1346
|
+
retry_policy: @config.retry_policy
|
1347
|
+
|
1348
|
+
@certificate_manager_stub.call_rpc :list_certificate_map_entries, request, options: options do |response, operation|
|
1349
|
+
response = ::Gapic::PagedEnumerable.new @certificate_manager_stub, :list_certificate_map_entries, request, response, operation, options
|
1350
|
+
yield response, operation if block_given?
|
1351
|
+
return response
|
1352
|
+
end
|
1353
|
+
rescue ::GRPC::BadStatus => e
|
1354
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
##
|
1358
|
+
# Gets details of a single CertificateMapEntry.
|
1359
|
+
#
|
1360
|
+
# @overload get_certificate_map_entry(request, options = nil)
|
1361
|
+
# Pass arguments to `get_certificate_map_entry` via a request object, either of type
|
1362
|
+
# {::Google::Cloud::CertificateManager::V1::GetCertificateMapEntryRequest} or an equivalent Hash.
|
1363
|
+
#
|
1364
|
+
# @param request [::Google::Cloud::CertificateManager::V1::GetCertificateMapEntryRequest, ::Hash]
|
1365
|
+
# A request object representing the call parameters. Required. To specify no
|
1366
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1367
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1368
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1369
|
+
#
|
1370
|
+
# @overload get_certificate_map_entry(name: nil)
|
1371
|
+
# Pass arguments to `get_certificate_map_entry` via keyword arguments. Note that at
|
1372
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1373
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1374
|
+
#
|
1375
|
+
# @param name [::String]
|
1376
|
+
# Required. A name of the certificate map entry to describe. Must be in the
|
1377
|
+
# format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
|
1378
|
+
#
|
1379
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1380
|
+
# @yieldparam response [::Google::Cloud::CertificateManager::V1::CertificateMapEntry]
|
1381
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1382
|
+
#
|
1383
|
+
# @return [::Google::Cloud::CertificateManager::V1::CertificateMapEntry]
|
1384
|
+
#
|
1385
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1386
|
+
#
|
1387
|
+
# @example Basic example
|
1388
|
+
# require "google/cloud/certificate_manager/v1"
|
1389
|
+
#
|
1390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1391
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1392
|
+
#
|
1393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1394
|
+
# request = Google::Cloud::CertificateManager::V1::GetCertificateMapEntryRequest.new
|
1395
|
+
#
|
1396
|
+
# # Call the get_certificate_map_entry method.
|
1397
|
+
# result = client.get_certificate_map_entry request
|
1398
|
+
#
|
1399
|
+
# # The returned object is of type Google::Cloud::CertificateManager::V1::CertificateMapEntry.
|
1400
|
+
# p result
|
1401
|
+
#
|
1402
|
+
def get_certificate_map_entry request, options = nil
|
1403
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1404
|
+
|
1405
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::GetCertificateMapEntryRequest
|
1406
|
+
|
1407
|
+
# Converts hash and nil to an options object
|
1408
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1409
|
+
|
1410
|
+
# Customize the options with defaults
|
1411
|
+
metadata = @config.rpcs.get_certificate_map_entry.metadata.to_h
|
1412
|
+
|
1413
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1414
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1415
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1416
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1417
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1418
|
+
|
1419
|
+
header_params = {}
|
1420
|
+
if request.name
|
1421
|
+
header_params["name"] = request.name
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1425
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1426
|
+
|
1427
|
+
options.apply_defaults timeout: @config.rpcs.get_certificate_map_entry.timeout,
|
1428
|
+
metadata: metadata,
|
1429
|
+
retry_policy: @config.rpcs.get_certificate_map_entry.retry_policy
|
1430
|
+
|
1431
|
+
options.apply_defaults timeout: @config.timeout,
|
1432
|
+
metadata: @config.metadata,
|
1433
|
+
retry_policy: @config.retry_policy
|
1434
|
+
|
1435
|
+
@certificate_manager_stub.call_rpc :get_certificate_map_entry, request, options: options do |response, operation|
|
1436
|
+
yield response, operation if block_given?
|
1437
|
+
return response
|
1438
|
+
end
|
1439
|
+
rescue ::GRPC::BadStatus => e
|
1440
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
##
|
1444
|
+
# Creates a new CertificateMapEntry in a given project and location.
|
1445
|
+
#
|
1446
|
+
# @overload create_certificate_map_entry(request, options = nil)
|
1447
|
+
# Pass arguments to `create_certificate_map_entry` via a request object, either of type
|
1448
|
+
# {::Google::Cloud::CertificateManager::V1::CreateCertificateMapEntryRequest} or an equivalent Hash.
|
1449
|
+
#
|
1450
|
+
# @param request [::Google::Cloud::CertificateManager::V1::CreateCertificateMapEntryRequest, ::Hash]
|
1451
|
+
# A request object representing the call parameters. Required. To specify no
|
1452
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1453
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1454
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1455
|
+
#
|
1456
|
+
# @overload create_certificate_map_entry(parent: nil, certificate_map_entry_id: nil, certificate_map_entry: nil)
|
1457
|
+
# Pass arguments to `create_certificate_map_entry` via keyword arguments. Note that at
|
1458
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1459
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1460
|
+
#
|
1461
|
+
# @param parent [::String]
|
1462
|
+
# Required. The parent resource of the certificate map entry. Must be in the
|
1463
|
+
# format `projects/*/locations/*/certificateMaps/*`.
|
1464
|
+
# @param certificate_map_entry_id [::String]
|
1465
|
+
# Required. A user-provided name of the certificate map entry.
|
1466
|
+
# @param certificate_map_entry [::Google::Cloud::CertificateManager::V1::CertificateMapEntry, ::Hash]
|
1467
|
+
# Required. A definition of the certificate map entry to create.
|
1468
|
+
#
|
1469
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1470
|
+
# @yieldparam response [::Gapic::Operation]
|
1471
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1472
|
+
#
|
1473
|
+
# @return [::Gapic::Operation]
|
1474
|
+
#
|
1475
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1476
|
+
#
|
1477
|
+
# @example Basic example
|
1478
|
+
# require "google/cloud/certificate_manager/v1"
|
1479
|
+
#
|
1480
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1481
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1482
|
+
#
|
1483
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1484
|
+
# request = Google::Cloud::CertificateManager::V1::CreateCertificateMapEntryRequest.new
|
1485
|
+
#
|
1486
|
+
# # Call the create_certificate_map_entry method.
|
1487
|
+
# result = client.create_certificate_map_entry request
|
1488
|
+
#
|
1489
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1490
|
+
# # object to check the status of an operation, cancel it, or wait
|
1491
|
+
# # for results. Here is how to block until completion:
|
1492
|
+
# result.wait_until_done! timeout: 60
|
1493
|
+
# if result.response?
|
1494
|
+
# p result.response
|
1495
|
+
# else
|
1496
|
+
# puts "Error!"
|
1497
|
+
# end
|
1498
|
+
#
|
1499
|
+
def create_certificate_map_entry request, options = nil
|
1500
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1501
|
+
|
1502
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::CreateCertificateMapEntryRequest
|
1503
|
+
|
1504
|
+
# Converts hash and nil to an options object
|
1505
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1506
|
+
|
1507
|
+
# Customize the options with defaults
|
1508
|
+
metadata = @config.rpcs.create_certificate_map_entry.metadata.to_h
|
1509
|
+
|
1510
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1511
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1512
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1513
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1514
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1515
|
+
|
1516
|
+
header_params = {}
|
1517
|
+
if request.parent
|
1518
|
+
header_params["parent"] = request.parent
|
1519
|
+
end
|
1520
|
+
|
1521
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1522
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1523
|
+
|
1524
|
+
options.apply_defaults timeout: @config.rpcs.create_certificate_map_entry.timeout,
|
1525
|
+
metadata: metadata,
|
1526
|
+
retry_policy: @config.rpcs.create_certificate_map_entry.retry_policy
|
1527
|
+
|
1528
|
+
options.apply_defaults timeout: @config.timeout,
|
1529
|
+
metadata: @config.metadata,
|
1530
|
+
retry_policy: @config.retry_policy
|
1531
|
+
|
1532
|
+
@certificate_manager_stub.call_rpc :create_certificate_map_entry, request, options: options do |response, operation|
|
1533
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1534
|
+
yield response, operation if block_given?
|
1535
|
+
return response
|
1536
|
+
end
|
1537
|
+
rescue ::GRPC::BadStatus => e
|
1538
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
##
|
1542
|
+
# Updates a CertificateMapEntry.
|
1543
|
+
#
|
1544
|
+
# @overload update_certificate_map_entry(request, options = nil)
|
1545
|
+
# Pass arguments to `update_certificate_map_entry` via a request object, either of type
|
1546
|
+
# {::Google::Cloud::CertificateManager::V1::UpdateCertificateMapEntryRequest} or an equivalent Hash.
|
1547
|
+
#
|
1548
|
+
# @param request [::Google::Cloud::CertificateManager::V1::UpdateCertificateMapEntryRequest, ::Hash]
|
1549
|
+
# A request object representing the call parameters. Required. To specify no
|
1550
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1551
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1552
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1553
|
+
#
|
1554
|
+
# @overload update_certificate_map_entry(certificate_map_entry: nil, update_mask: nil)
|
1555
|
+
# Pass arguments to `update_certificate_map_entry` via keyword arguments. Note that at
|
1556
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1557
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1558
|
+
#
|
1559
|
+
# @param certificate_map_entry [::Google::Cloud::CertificateManager::V1::CertificateMapEntry, ::Hash]
|
1560
|
+
# Required. A definition of the certificate map entry to create map entry.
|
1561
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1562
|
+
# Required. The update mask applies to the resource. For the `FieldMask` definition,
|
1563
|
+
# see
|
1564
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
|
1565
|
+
#
|
1566
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1567
|
+
# @yieldparam response [::Gapic::Operation]
|
1568
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1569
|
+
#
|
1570
|
+
# @return [::Gapic::Operation]
|
1571
|
+
#
|
1572
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1573
|
+
#
|
1574
|
+
# @example Basic example
|
1575
|
+
# require "google/cloud/certificate_manager/v1"
|
1576
|
+
#
|
1577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1578
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1579
|
+
#
|
1580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1581
|
+
# request = Google::Cloud::CertificateManager::V1::UpdateCertificateMapEntryRequest.new
|
1582
|
+
#
|
1583
|
+
# # Call the update_certificate_map_entry method.
|
1584
|
+
# result = client.update_certificate_map_entry request
|
1585
|
+
#
|
1586
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1587
|
+
# # object to check the status of an operation, cancel it, or wait
|
1588
|
+
# # for results. Here is how to block until completion:
|
1589
|
+
# result.wait_until_done! timeout: 60
|
1590
|
+
# if result.response?
|
1591
|
+
# p result.response
|
1592
|
+
# else
|
1593
|
+
# puts "Error!"
|
1594
|
+
# end
|
1595
|
+
#
|
1596
|
+
def update_certificate_map_entry request, options = nil
|
1597
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1598
|
+
|
1599
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::UpdateCertificateMapEntryRequest
|
1600
|
+
|
1601
|
+
# Converts hash and nil to an options object
|
1602
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1603
|
+
|
1604
|
+
# Customize the options with defaults
|
1605
|
+
metadata = @config.rpcs.update_certificate_map_entry.metadata.to_h
|
1606
|
+
|
1607
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1608
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1609
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1610
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1611
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1612
|
+
|
1613
|
+
header_params = {}
|
1614
|
+
if request.certificate_map_entry&.name
|
1615
|
+
header_params["certificate_map_entry.name"] = request.certificate_map_entry.name
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1619
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1620
|
+
|
1621
|
+
options.apply_defaults timeout: @config.rpcs.update_certificate_map_entry.timeout,
|
1622
|
+
metadata: metadata,
|
1623
|
+
retry_policy: @config.rpcs.update_certificate_map_entry.retry_policy
|
1624
|
+
|
1625
|
+
options.apply_defaults timeout: @config.timeout,
|
1626
|
+
metadata: @config.metadata,
|
1627
|
+
retry_policy: @config.retry_policy
|
1628
|
+
|
1629
|
+
@certificate_manager_stub.call_rpc :update_certificate_map_entry, request, options: options do |response, operation|
|
1630
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1631
|
+
yield response, operation if block_given?
|
1632
|
+
return response
|
1633
|
+
end
|
1634
|
+
rescue ::GRPC::BadStatus => e
|
1635
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
##
|
1639
|
+
# Deletes a single CertificateMapEntry.
|
1640
|
+
#
|
1641
|
+
# @overload delete_certificate_map_entry(request, options = nil)
|
1642
|
+
# Pass arguments to `delete_certificate_map_entry` via a request object, either of type
|
1643
|
+
# {::Google::Cloud::CertificateManager::V1::DeleteCertificateMapEntryRequest} or an equivalent Hash.
|
1644
|
+
#
|
1645
|
+
# @param request [::Google::Cloud::CertificateManager::V1::DeleteCertificateMapEntryRequest, ::Hash]
|
1646
|
+
# A request object representing the call parameters. Required. To specify no
|
1647
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1648
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1649
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1650
|
+
#
|
1651
|
+
# @overload delete_certificate_map_entry(name: nil)
|
1652
|
+
# Pass arguments to `delete_certificate_map_entry` via keyword arguments. Note that at
|
1653
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1654
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1655
|
+
#
|
1656
|
+
# @param name [::String]
|
1657
|
+
# Required. A name of the certificate map entry to delete. Must be in the format
|
1658
|
+
# `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
|
1659
|
+
#
|
1660
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1661
|
+
# @yieldparam response [::Gapic::Operation]
|
1662
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1663
|
+
#
|
1664
|
+
# @return [::Gapic::Operation]
|
1665
|
+
#
|
1666
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1667
|
+
#
|
1668
|
+
# @example Basic example
|
1669
|
+
# require "google/cloud/certificate_manager/v1"
|
1670
|
+
#
|
1671
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1672
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1673
|
+
#
|
1674
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1675
|
+
# request = Google::Cloud::CertificateManager::V1::DeleteCertificateMapEntryRequest.new
|
1676
|
+
#
|
1677
|
+
# # Call the delete_certificate_map_entry method.
|
1678
|
+
# result = client.delete_certificate_map_entry request
|
1679
|
+
#
|
1680
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1681
|
+
# # object to check the status of an operation, cancel it, or wait
|
1682
|
+
# # for results. Here is how to block until completion:
|
1683
|
+
# result.wait_until_done! timeout: 60
|
1684
|
+
# if result.response?
|
1685
|
+
# p result.response
|
1686
|
+
# else
|
1687
|
+
# puts "Error!"
|
1688
|
+
# end
|
1689
|
+
#
|
1690
|
+
def delete_certificate_map_entry request, options = nil
|
1691
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1692
|
+
|
1693
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::DeleteCertificateMapEntryRequest
|
1694
|
+
|
1695
|
+
# Converts hash and nil to an options object
|
1696
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1697
|
+
|
1698
|
+
# Customize the options with defaults
|
1699
|
+
metadata = @config.rpcs.delete_certificate_map_entry.metadata.to_h
|
1700
|
+
|
1701
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1702
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1703
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1704
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1705
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1706
|
+
|
1707
|
+
header_params = {}
|
1708
|
+
if request.name
|
1709
|
+
header_params["name"] = request.name
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1713
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1714
|
+
|
1715
|
+
options.apply_defaults timeout: @config.rpcs.delete_certificate_map_entry.timeout,
|
1716
|
+
metadata: metadata,
|
1717
|
+
retry_policy: @config.rpcs.delete_certificate_map_entry.retry_policy
|
1718
|
+
|
1719
|
+
options.apply_defaults timeout: @config.timeout,
|
1720
|
+
metadata: @config.metadata,
|
1721
|
+
retry_policy: @config.retry_policy
|
1722
|
+
|
1723
|
+
@certificate_manager_stub.call_rpc :delete_certificate_map_entry, request, options: options do |response, operation|
|
1724
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1725
|
+
yield response, operation if block_given?
|
1726
|
+
return response
|
1727
|
+
end
|
1728
|
+
rescue ::GRPC::BadStatus => e
|
1729
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
##
|
1733
|
+
# Lists DnsAuthorizations in a given project and location.
|
1734
|
+
#
|
1735
|
+
# @overload list_dns_authorizations(request, options = nil)
|
1736
|
+
# Pass arguments to `list_dns_authorizations` via a request object, either of type
|
1737
|
+
# {::Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsRequest} or an equivalent Hash.
|
1738
|
+
#
|
1739
|
+
# @param request [::Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsRequest, ::Hash]
|
1740
|
+
# A request object representing the call parameters. Required. To specify no
|
1741
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1742
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1743
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1744
|
+
#
|
1745
|
+
# @overload list_dns_authorizations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
1746
|
+
# Pass arguments to `list_dns_authorizations` via keyword arguments. Note that at
|
1747
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1748
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1749
|
+
#
|
1750
|
+
# @param parent [::String]
|
1751
|
+
# Required. The project and location from which the dns authorizations should be
|
1752
|
+
# listed, specified in the format `projects/*/locations/*`.
|
1753
|
+
# @param page_size [::Integer]
|
1754
|
+
# Maximum number of dns authorizations to return per call.
|
1755
|
+
# @param page_token [::String]
|
1756
|
+
# The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
|
1757
|
+
# that this is a continuation of a prior `ListDnsAuthorizations` call, and
|
1758
|
+
# that the system should return the next page of data.
|
1759
|
+
# @param filter [::String]
|
1760
|
+
# Filter expression to restrict the Dns Authorizations returned.
|
1761
|
+
# @param order_by [::String]
|
1762
|
+
# A list of Dns Authorization field names used to specify the order of the
|
1763
|
+
# returned results. The default sorting order is ascending. To specify
|
1764
|
+
# descending order for a field, add a suffix " desc".
|
1765
|
+
#
|
1766
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1767
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::DnsAuthorization>]
|
1768
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1769
|
+
#
|
1770
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::DnsAuthorization>]
|
1771
|
+
#
|
1772
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1773
|
+
#
|
1774
|
+
# @example Basic example
|
1775
|
+
# require "google/cloud/certificate_manager/v1"
|
1776
|
+
#
|
1777
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1778
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1779
|
+
#
|
1780
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1781
|
+
# request = Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsRequest.new
|
1782
|
+
#
|
1783
|
+
# # Call the list_dns_authorizations method.
|
1784
|
+
# result = client.list_dns_authorizations request
|
1785
|
+
#
|
1786
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1787
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1788
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1789
|
+
# # methods are also available for managing paging directly.
|
1790
|
+
# result.each do |response|
|
1791
|
+
# # Each element is of type ::Google::Cloud::CertificateManager::V1::DnsAuthorization.
|
1792
|
+
# p response
|
1793
|
+
# end
|
1794
|
+
#
|
1795
|
+
def list_dns_authorizations request, options = nil
|
1796
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1797
|
+
|
1798
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsRequest
|
1799
|
+
|
1800
|
+
# Converts hash and nil to an options object
|
1801
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1802
|
+
|
1803
|
+
# Customize the options with defaults
|
1804
|
+
metadata = @config.rpcs.list_dns_authorizations.metadata.to_h
|
1805
|
+
|
1806
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1807
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1808
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1809
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1810
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1811
|
+
|
1812
|
+
header_params = {}
|
1813
|
+
if request.parent
|
1814
|
+
header_params["parent"] = request.parent
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1818
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1819
|
+
|
1820
|
+
options.apply_defaults timeout: @config.rpcs.list_dns_authorizations.timeout,
|
1821
|
+
metadata: metadata,
|
1822
|
+
retry_policy: @config.rpcs.list_dns_authorizations.retry_policy
|
1823
|
+
|
1824
|
+
options.apply_defaults timeout: @config.timeout,
|
1825
|
+
metadata: @config.metadata,
|
1826
|
+
retry_policy: @config.retry_policy
|
1827
|
+
|
1828
|
+
@certificate_manager_stub.call_rpc :list_dns_authorizations, request, options: options do |response, operation|
|
1829
|
+
response = ::Gapic::PagedEnumerable.new @certificate_manager_stub, :list_dns_authorizations, request, response, operation, options
|
1830
|
+
yield response, operation if block_given?
|
1831
|
+
return response
|
1832
|
+
end
|
1833
|
+
rescue ::GRPC::BadStatus => e
|
1834
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1835
|
+
end
|
1836
|
+
|
1837
|
+
##
|
1838
|
+
# Gets details of a single DnsAuthorization.
|
1839
|
+
#
|
1840
|
+
# @overload get_dns_authorization(request, options = nil)
|
1841
|
+
# Pass arguments to `get_dns_authorization` via a request object, either of type
|
1842
|
+
# {::Google::Cloud::CertificateManager::V1::GetDnsAuthorizationRequest} or an equivalent Hash.
|
1843
|
+
#
|
1844
|
+
# @param request [::Google::Cloud::CertificateManager::V1::GetDnsAuthorizationRequest, ::Hash]
|
1845
|
+
# A request object representing the call parameters. Required. To specify no
|
1846
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1847
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1848
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1849
|
+
#
|
1850
|
+
# @overload get_dns_authorization(name: nil)
|
1851
|
+
# Pass arguments to `get_dns_authorization` via keyword arguments. Note that at
|
1852
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1853
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1854
|
+
#
|
1855
|
+
# @param name [::String]
|
1856
|
+
# Required. A name of the dns authorization to describe. Must be in the format
|
1857
|
+
# `projects/*/locations/*/dnsAuthorizations/*`.
|
1858
|
+
#
|
1859
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1860
|
+
# @yieldparam response [::Google::Cloud::CertificateManager::V1::DnsAuthorization]
|
1861
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1862
|
+
#
|
1863
|
+
# @return [::Google::Cloud::CertificateManager::V1::DnsAuthorization]
|
1864
|
+
#
|
1865
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1866
|
+
#
|
1867
|
+
# @example Basic example
|
1868
|
+
# require "google/cloud/certificate_manager/v1"
|
1869
|
+
#
|
1870
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1871
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1872
|
+
#
|
1873
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1874
|
+
# request = Google::Cloud::CertificateManager::V1::GetDnsAuthorizationRequest.new
|
1875
|
+
#
|
1876
|
+
# # Call the get_dns_authorization method.
|
1877
|
+
# result = client.get_dns_authorization request
|
1878
|
+
#
|
1879
|
+
# # The returned object is of type Google::Cloud::CertificateManager::V1::DnsAuthorization.
|
1880
|
+
# p result
|
1881
|
+
#
|
1882
|
+
def get_dns_authorization request, options = nil
|
1883
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1884
|
+
|
1885
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::GetDnsAuthorizationRequest
|
1886
|
+
|
1887
|
+
# Converts hash and nil to an options object
|
1888
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1889
|
+
|
1890
|
+
# Customize the options with defaults
|
1891
|
+
metadata = @config.rpcs.get_dns_authorization.metadata.to_h
|
1892
|
+
|
1893
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1894
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1895
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1896
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1897
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1898
|
+
|
1899
|
+
header_params = {}
|
1900
|
+
if request.name
|
1901
|
+
header_params["name"] = request.name
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1905
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1906
|
+
|
1907
|
+
options.apply_defaults timeout: @config.rpcs.get_dns_authorization.timeout,
|
1908
|
+
metadata: metadata,
|
1909
|
+
retry_policy: @config.rpcs.get_dns_authorization.retry_policy
|
1910
|
+
|
1911
|
+
options.apply_defaults timeout: @config.timeout,
|
1912
|
+
metadata: @config.metadata,
|
1913
|
+
retry_policy: @config.retry_policy
|
1914
|
+
|
1915
|
+
@certificate_manager_stub.call_rpc :get_dns_authorization, request, options: options do |response, operation|
|
1916
|
+
yield response, operation if block_given?
|
1917
|
+
return response
|
1918
|
+
end
|
1919
|
+
rescue ::GRPC::BadStatus => e
|
1920
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1921
|
+
end
|
1922
|
+
|
1923
|
+
##
|
1924
|
+
# Creates a new DnsAuthorization in a given project and location.
|
1925
|
+
#
|
1926
|
+
# @overload create_dns_authorization(request, options = nil)
|
1927
|
+
# Pass arguments to `create_dns_authorization` via a request object, either of type
|
1928
|
+
# {::Google::Cloud::CertificateManager::V1::CreateDnsAuthorizationRequest} or an equivalent Hash.
|
1929
|
+
#
|
1930
|
+
# @param request [::Google::Cloud::CertificateManager::V1::CreateDnsAuthorizationRequest, ::Hash]
|
1931
|
+
# A request object representing the call parameters. Required. To specify no
|
1932
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1933
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1934
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1935
|
+
#
|
1936
|
+
# @overload create_dns_authorization(parent: nil, dns_authorization_id: nil, dns_authorization: nil)
|
1937
|
+
# Pass arguments to `create_dns_authorization` via keyword arguments. Note that at
|
1938
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1939
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1940
|
+
#
|
1941
|
+
# @param parent [::String]
|
1942
|
+
# Required. The parent resource of the dns authorization. Must be in the format
|
1943
|
+
# `projects/*/locations/*`.
|
1944
|
+
# @param dns_authorization_id [::String]
|
1945
|
+
# Required. A user-provided name of the dns authorization.
|
1946
|
+
# @param dns_authorization [::Google::Cloud::CertificateManager::V1::DnsAuthorization, ::Hash]
|
1947
|
+
# Required. A definition of the dns authorization to create.
|
1948
|
+
#
|
1949
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1950
|
+
# @yieldparam response [::Gapic::Operation]
|
1951
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1952
|
+
#
|
1953
|
+
# @return [::Gapic::Operation]
|
1954
|
+
#
|
1955
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1956
|
+
#
|
1957
|
+
# @example Basic example
|
1958
|
+
# require "google/cloud/certificate_manager/v1"
|
1959
|
+
#
|
1960
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1961
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
1962
|
+
#
|
1963
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1964
|
+
# request = Google::Cloud::CertificateManager::V1::CreateDnsAuthorizationRequest.new
|
1965
|
+
#
|
1966
|
+
# # Call the create_dns_authorization method.
|
1967
|
+
# result = client.create_dns_authorization request
|
1968
|
+
#
|
1969
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1970
|
+
# # object to check the status of an operation, cancel it, or wait
|
1971
|
+
# # for results. Here is how to block until completion:
|
1972
|
+
# result.wait_until_done! timeout: 60
|
1973
|
+
# if result.response?
|
1974
|
+
# p result.response
|
1975
|
+
# else
|
1976
|
+
# puts "Error!"
|
1977
|
+
# end
|
1978
|
+
#
|
1979
|
+
def create_dns_authorization request, options = nil
|
1980
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1981
|
+
|
1982
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::CreateDnsAuthorizationRequest
|
1983
|
+
|
1984
|
+
# Converts hash and nil to an options object
|
1985
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1986
|
+
|
1987
|
+
# Customize the options with defaults
|
1988
|
+
metadata = @config.rpcs.create_dns_authorization.metadata.to_h
|
1989
|
+
|
1990
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1991
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1992
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1993
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1994
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1995
|
+
|
1996
|
+
header_params = {}
|
1997
|
+
if request.parent
|
1998
|
+
header_params["parent"] = request.parent
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2002
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2003
|
+
|
2004
|
+
options.apply_defaults timeout: @config.rpcs.create_dns_authorization.timeout,
|
2005
|
+
metadata: metadata,
|
2006
|
+
retry_policy: @config.rpcs.create_dns_authorization.retry_policy
|
2007
|
+
|
2008
|
+
options.apply_defaults timeout: @config.timeout,
|
2009
|
+
metadata: @config.metadata,
|
2010
|
+
retry_policy: @config.retry_policy
|
2011
|
+
|
2012
|
+
@certificate_manager_stub.call_rpc :create_dns_authorization, request, options: options do |response, operation|
|
2013
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2014
|
+
yield response, operation if block_given?
|
2015
|
+
return response
|
2016
|
+
end
|
2017
|
+
rescue ::GRPC::BadStatus => e
|
2018
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2019
|
+
end
|
2020
|
+
|
2021
|
+
##
|
2022
|
+
# Updates a DnsAuthorization.
|
2023
|
+
#
|
2024
|
+
# @overload update_dns_authorization(request, options = nil)
|
2025
|
+
# Pass arguments to `update_dns_authorization` via a request object, either of type
|
2026
|
+
# {::Google::Cloud::CertificateManager::V1::UpdateDnsAuthorizationRequest} or an equivalent Hash.
|
2027
|
+
#
|
2028
|
+
# @param request [::Google::Cloud::CertificateManager::V1::UpdateDnsAuthorizationRequest, ::Hash]
|
2029
|
+
# A request object representing the call parameters. Required. To specify no
|
2030
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2031
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2032
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2033
|
+
#
|
2034
|
+
# @overload update_dns_authorization(dns_authorization: nil, update_mask: nil)
|
2035
|
+
# Pass arguments to `update_dns_authorization` via keyword arguments. Note that at
|
2036
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2037
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2038
|
+
#
|
2039
|
+
# @param dns_authorization [::Google::Cloud::CertificateManager::V1::DnsAuthorization, ::Hash]
|
2040
|
+
# Required. A definition of the dns authorization to update.
|
2041
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2042
|
+
# Required. The update mask applies to the resource. For the `FieldMask` definition,
|
2043
|
+
# see
|
2044
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
|
2045
|
+
#
|
2046
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2047
|
+
# @yieldparam response [::Gapic::Operation]
|
2048
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2049
|
+
#
|
2050
|
+
# @return [::Gapic::Operation]
|
2051
|
+
#
|
2052
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2053
|
+
#
|
2054
|
+
# @example Basic example
|
2055
|
+
# require "google/cloud/certificate_manager/v1"
|
2056
|
+
#
|
2057
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2058
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
2059
|
+
#
|
2060
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2061
|
+
# request = Google::Cloud::CertificateManager::V1::UpdateDnsAuthorizationRequest.new
|
2062
|
+
#
|
2063
|
+
# # Call the update_dns_authorization method.
|
2064
|
+
# result = client.update_dns_authorization request
|
2065
|
+
#
|
2066
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2067
|
+
# # object to check the status of an operation, cancel it, or wait
|
2068
|
+
# # for results. Here is how to block until completion:
|
2069
|
+
# result.wait_until_done! timeout: 60
|
2070
|
+
# if result.response?
|
2071
|
+
# p result.response
|
2072
|
+
# else
|
2073
|
+
# puts "Error!"
|
2074
|
+
# end
|
2075
|
+
#
|
2076
|
+
def update_dns_authorization request, options = nil
|
2077
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2078
|
+
|
2079
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::UpdateDnsAuthorizationRequest
|
2080
|
+
|
2081
|
+
# Converts hash and nil to an options object
|
2082
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2083
|
+
|
2084
|
+
# Customize the options with defaults
|
2085
|
+
metadata = @config.rpcs.update_dns_authorization.metadata.to_h
|
2086
|
+
|
2087
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2088
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2089
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2090
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2091
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2092
|
+
|
2093
|
+
header_params = {}
|
2094
|
+
if request.dns_authorization&.name
|
2095
|
+
header_params["dns_authorization.name"] = request.dns_authorization.name
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2099
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2100
|
+
|
2101
|
+
options.apply_defaults timeout: @config.rpcs.update_dns_authorization.timeout,
|
2102
|
+
metadata: metadata,
|
2103
|
+
retry_policy: @config.rpcs.update_dns_authorization.retry_policy
|
2104
|
+
|
2105
|
+
options.apply_defaults timeout: @config.timeout,
|
2106
|
+
metadata: @config.metadata,
|
2107
|
+
retry_policy: @config.retry_policy
|
2108
|
+
|
2109
|
+
@certificate_manager_stub.call_rpc :update_dns_authorization, request, options: options do |response, operation|
|
2110
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2111
|
+
yield response, operation if block_given?
|
2112
|
+
return response
|
2113
|
+
end
|
2114
|
+
rescue ::GRPC::BadStatus => e
|
2115
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2116
|
+
end
|
2117
|
+
|
2118
|
+
##
|
2119
|
+
# Deletes a single DnsAuthorization.
|
2120
|
+
#
|
2121
|
+
# @overload delete_dns_authorization(request, options = nil)
|
2122
|
+
# Pass arguments to `delete_dns_authorization` via a request object, either of type
|
2123
|
+
# {::Google::Cloud::CertificateManager::V1::DeleteDnsAuthorizationRequest} or an equivalent Hash.
|
2124
|
+
#
|
2125
|
+
# @param request [::Google::Cloud::CertificateManager::V1::DeleteDnsAuthorizationRequest, ::Hash]
|
2126
|
+
# A request object representing the call parameters. Required. To specify no
|
2127
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2128
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2129
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2130
|
+
#
|
2131
|
+
# @overload delete_dns_authorization(name: nil)
|
2132
|
+
# Pass arguments to `delete_dns_authorization` via keyword arguments. Note that at
|
2133
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2134
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2135
|
+
#
|
2136
|
+
# @param name [::String]
|
2137
|
+
# Required. A name of the dns authorization to delete. Must be in the format
|
2138
|
+
# `projects/*/locations/*/dnsAuthorizations/*`.
|
2139
|
+
#
|
2140
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2141
|
+
# @yieldparam response [::Gapic::Operation]
|
2142
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2143
|
+
#
|
2144
|
+
# @return [::Gapic::Operation]
|
2145
|
+
#
|
2146
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2147
|
+
#
|
2148
|
+
# @example Basic example
|
2149
|
+
# require "google/cloud/certificate_manager/v1"
|
2150
|
+
#
|
2151
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2152
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
2153
|
+
#
|
2154
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2155
|
+
# request = Google::Cloud::CertificateManager::V1::DeleteDnsAuthorizationRequest.new
|
2156
|
+
#
|
2157
|
+
# # Call the delete_dns_authorization method.
|
2158
|
+
# result = client.delete_dns_authorization request
|
2159
|
+
#
|
2160
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2161
|
+
# # object to check the status of an operation, cancel it, or wait
|
2162
|
+
# # for results. Here is how to block until completion:
|
2163
|
+
# result.wait_until_done! timeout: 60
|
2164
|
+
# if result.response?
|
2165
|
+
# p result.response
|
2166
|
+
# else
|
2167
|
+
# puts "Error!"
|
2168
|
+
# end
|
2169
|
+
#
|
2170
|
+
def delete_dns_authorization request, options = nil
|
2171
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2172
|
+
|
2173
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::DeleteDnsAuthorizationRequest
|
2174
|
+
|
2175
|
+
# Converts hash and nil to an options object
|
2176
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2177
|
+
|
2178
|
+
# Customize the options with defaults
|
2179
|
+
metadata = @config.rpcs.delete_dns_authorization.metadata.to_h
|
2180
|
+
|
2181
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2182
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2183
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2184
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2185
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2186
|
+
|
2187
|
+
header_params = {}
|
2188
|
+
if request.name
|
2189
|
+
header_params["name"] = request.name
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2193
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2194
|
+
|
2195
|
+
options.apply_defaults timeout: @config.rpcs.delete_dns_authorization.timeout,
|
2196
|
+
metadata: metadata,
|
2197
|
+
retry_policy: @config.rpcs.delete_dns_authorization.retry_policy
|
2198
|
+
|
2199
|
+
options.apply_defaults timeout: @config.timeout,
|
2200
|
+
metadata: @config.metadata,
|
2201
|
+
retry_policy: @config.retry_policy
|
2202
|
+
|
2203
|
+
@certificate_manager_stub.call_rpc :delete_dns_authorization, request, options: options do |response, operation|
|
2204
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2205
|
+
yield response, operation if block_given?
|
2206
|
+
return response
|
2207
|
+
end
|
2208
|
+
rescue ::GRPC::BadStatus => e
|
2209
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
##
|
2213
|
+
# Configuration class for the CertificateManager API.
|
2214
|
+
#
|
2215
|
+
# This class represents the configuration for CertificateManager,
|
2216
|
+
# providing control over timeouts, retry behavior, logging, transport
|
2217
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
2218
|
+
# applied individually to specific RPCs. See
|
2219
|
+
# {::Google::Cloud::CertificateManager::V1::CertificateManager::Client::Configuration::Rpcs}
|
2220
|
+
# for a list of RPCs that can be configured independently.
|
2221
|
+
#
|
2222
|
+
# Configuration can be applied globally to all clients, or to a single client
|
2223
|
+
# on construction.
|
2224
|
+
#
|
2225
|
+
# @example
|
2226
|
+
#
|
2227
|
+
# # Modify the global config, setting the timeout for
|
2228
|
+
# # list_certificates to 20 seconds,
|
2229
|
+
# # and all remaining timeouts to 10 seconds.
|
2230
|
+
# ::Google::Cloud::CertificateManager::V1::CertificateManager::Client.configure do |config|
|
2231
|
+
# config.timeout = 10.0
|
2232
|
+
# config.rpcs.list_certificates.timeout = 20.0
|
2233
|
+
# end
|
2234
|
+
#
|
2235
|
+
# # Apply the above configuration only to a new client.
|
2236
|
+
# client = ::Google::Cloud::CertificateManager::V1::CertificateManager::Client.new do |config|
|
2237
|
+
# config.timeout = 10.0
|
2238
|
+
# config.rpcs.list_certificates.timeout = 20.0
|
2239
|
+
# end
|
2240
|
+
#
|
2241
|
+
# @!attribute [rw] endpoint
|
2242
|
+
# The hostname or hostname:port of the service endpoint.
|
2243
|
+
# Defaults to `"certificatemanager.googleapis.com"`.
|
2244
|
+
# @return [::String]
|
2245
|
+
# @!attribute [rw] credentials
|
2246
|
+
# Credentials to send with calls. You may provide any of the following types:
|
2247
|
+
# * (`String`) The path to a service account key file in JSON format
|
2248
|
+
# * (`Hash`) A service account key as a Hash
|
2249
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2250
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
2251
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2252
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
2253
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2254
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2255
|
+
# * (`nil`) indicating no credentials
|
2256
|
+
# @return [::Object]
|
2257
|
+
# @!attribute [rw] scope
|
2258
|
+
# The OAuth scopes
|
2259
|
+
# @return [::Array<::String>]
|
2260
|
+
# @!attribute [rw] lib_name
|
2261
|
+
# The library name as recorded in instrumentation and logging
|
2262
|
+
# @return [::String]
|
2263
|
+
# @!attribute [rw] lib_version
|
2264
|
+
# The library version as recorded in instrumentation and logging
|
2265
|
+
# @return [::String]
|
2266
|
+
# @!attribute [rw] channel_args
|
2267
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
2268
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
2269
|
+
# @return [::Hash]
|
2270
|
+
# @!attribute [rw] interceptors
|
2271
|
+
# An array of interceptors that are run before calls are executed.
|
2272
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
2273
|
+
# @!attribute [rw] timeout
|
2274
|
+
# The call timeout in seconds.
|
2275
|
+
# @return [::Numeric]
|
2276
|
+
# @!attribute [rw] metadata
|
2277
|
+
# Additional gRPC headers to be sent with the call.
|
2278
|
+
# @return [::Hash{::Symbol=>::String}]
|
2279
|
+
# @!attribute [rw] retry_policy
|
2280
|
+
# The retry policy. The value is a hash with the following keys:
|
2281
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2282
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2283
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2284
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2285
|
+
# trigger a retry.
|
2286
|
+
# @return [::Hash]
|
2287
|
+
# @!attribute [rw] quota_project
|
2288
|
+
# A separate project against which to charge quota.
|
2289
|
+
# @return [::String]
|
2290
|
+
#
|
2291
|
+
class Configuration
|
2292
|
+
extend ::Gapic::Config
|
2293
|
+
|
2294
|
+
config_attr :endpoint, "certificatemanager.googleapis.com", ::String
|
2295
|
+
config_attr :credentials, nil do |value|
|
2296
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2297
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2298
|
+
allowed.any? { |klass| klass === value }
|
2299
|
+
end
|
2300
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2301
|
+
config_attr :lib_name, nil, ::String, nil
|
2302
|
+
config_attr :lib_version, nil, ::String, nil
|
2303
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
2304
|
+
config_attr :interceptors, nil, ::Array, nil
|
2305
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2306
|
+
config_attr :metadata, nil, ::Hash, nil
|
2307
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2308
|
+
config_attr :quota_project, nil, ::String, nil
|
2309
|
+
|
2310
|
+
# @private
|
2311
|
+
def initialize parent_config = nil
|
2312
|
+
@parent_config = parent_config unless parent_config.nil?
|
2313
|
+
|
2314
|
+
yield self if block_given?
|
2315
|
+
end
|
2316
|
+
|
2317
|
+
##
|
2318
|
+
# Configurations for individual RPCs
|
2319
|
+
# @return [Rpcs]
|
2320
|
+
#
|
2321
|
+
def rpcs
|
2322
|
+
@rpcs ||= begin
|
2323
|
+
parent_rpcs = nil
|
2324
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2325
|
+
Rpcs.new parent_rpcs
|
2326
|
+
end
|
2327
|
+
end
|
2328
|
+
|
2329
|
+
##
|
2330
|
+
# Configuration RPC class for the CertificateManager API.
|
2331
|
+
#
|
2332
|
+
# Includes fields providing the configuration for each RPC in this service.
|
2333
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
2334
|
+
# the following configuration fields:
|
2335
|
+
#
|
2336
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
2337
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
2338
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
2339
|
+
# include the following keys:
|
2340
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
2341
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
2342
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2343
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2344
|
+
# trigger a retry.
|
2345
|
+
#
|
2346
|
+
class Rpcs
|
2347
|
+
##
|
2348
|
+
# RPC-specific configuration for `list_certificates`
|
2349
|
+
# @return [::Gapic::Config::Method]
|
2350
|
+
#
|
2351
|
+
attr_reader :list_certificates
|
2352
|
+
##
|
2353
|
+
# RPC-specific configuration for `get_certificate`
|
2354
|
+
# @return [::Gapic::Config::Method]
|
2355
|
+
#
|
2356
|
+
attr_reader :get_certificate
|
2357
|
+
##
|
2358
|
+
# RPC-specific configuration for `create_certificate`
|
2359
|
+
# @return [::Gapic::Config::Method]
|
2360
|
+
#
|
2361
|
+
attr_reader :create_certificate
|
2362
|
+
##
|
2363
|
+
# RPC-specific configuration for `update_certificate`
|
2364
|
+
# @return [::Gapic::Config::Method]
|
2365
|
+
#
|
2366
|
+
attr_reader :update_certificate
|
2367
|
+
##
|
2368
|
+
# RPC-specific configuration for `delete_certificate`
|
2369
|
+
# @return [::Gapic::Config::Method]
|
2370
|
+
#
|
2371
|
+
attr_reader :delete_certificate
|
2372
|
+
##
|
2373
|
+
# RPC-specific configuration for `list_certificate_maps`
|
2374
|
+
# @return [::Gapic::Config::Method]
|
2375
|
+
#
|
2376
|
+
attr_reader :list_certificate_maps
|
2377
|
+
##
|
2378
|
+
# RPC-specific configuration for `get_certificate_map`
|
2379
|
+
# @return [::Gapic::Config::Method]
|
2380
|
+
#
|
2381
|
+
attr_reader :get_certificate_map
|
2382
|
+
##
|
2383
|
+
# RPC-specific configuration for `create_certificate_map`
|
2384
|
+
# @return [::Gapic::Config::Method]
|
2385
|
+
#
|
2386
|
+
attr_reader :create_certificate_map
|
2387
|
+
##
|
2388
|
+
# RPC-specific configuration for `update_certificate_map`
|
2389
|
+
# @return [::Gapic::Config::Method]
|
2390
|
+
#
|
2391
|
+
attr_reader :update_certificate_map
|
2392
|
+
##
|
2393
|
+
# RPC-specific configuration for `delete_certificate_map`
|
2394
|
+
# @return [::Gapic::Config::Method]
|
2395
|
+
#
|
2396
|
+
attr_reader :delete_certificate_map
|
2397
|
+
##
|
2398
|
+
# RPC-specific configuration for `list_certificate_map_entries`
|
2399
|
+
# @return [::Gapic::Config::Method]
|
2400
|
+
#
|
2401
|
+
attr_reader :list_certificate_map_entries
|
2402
|
+
##
|
2403
|
+
# RPC-specific configuration for `get_certificate_map_entry`
|
2404
|
+
# @return [::Gapic::Config::Method]
|
2405
|
+
#
|
2406
|
+
attr_reader :get_certificate_map_entry
|
2407
|
+
##
|
2408
|
+
# RPC-specific configuration for `create_certificate_map_entry`
|
2409
|
+
# @return [::Gapic::Config::Method]
|
2410
|
+
#
|
2411
|
+
attr_reader :create_certificate_map_entry
|
2412
|
+
##
|
2413
|
+
# RPC-specific configuration for `update_certificate_map_entry`
|
2414
|
+
# @return [::Gapic::Config::Method]
|
2415
|
+
#
|
2416
|
+
attr_reader :update_certificate_map_entry
|
2417
|
+
##
|
2418
|
+
# RPC-specific configuration for `delete_certificate_map_entry`
|
2419
|
+
# @return [::Gapic::Config::Method]
|
2420
|
+
#
|
2421
|
+
attr_reader :delete_certificate_map_entry
|
2422
|
+
##
|
2423
|
+
# RPC-specific configuration for `list_dns_authorizations`
|
2424
|
+
# @return [::Gapic::Config::Method]
|
2425
|
+
#
|
2426
|
+
attr_reader :list_dns_authorizations
|
2427
|
+
##
|
2428
|
+
# RPC-specific configuration for `get_dns_authorization`
|
2429
|
+
# @return [::Gapic::Config::Method]
|
2430
|
+
#
|
2431
|
+
attr_reader :get_dns_authorization
|
2432
|
+
##
|
2433
|
+
# RPC-specific configuration for `create_dns_authorization`
|
2434
|
+
# @return [::Gapic::Config::Method]
|
2435
|
+
#
|
2436
|
+
attr_reader :create_dns_authorization
|
2437
|
+
##
|
2438
|
+
# RPC-specific configuration for `update_dns_authorization`
|
2439
|
+
# @return [::Gapic::Config::Method]
|
2440
|
+
#
|
2441
|
+
attr_reader :update_dns_authorization
|
2442
|
+
##
|
2443
|
+
# RPC-specific configuration for `delete_dns_authorization`
|
2444
|
+
# @return [::Gapic::Config::Method]
|
2445
|
+
#
|
2446
|
+
attr_reader :delete_dns_authorization
|
2447
|
+
|
2448
|
+
# @private
|
2449
|
+
def initialize parent_rpcs = nil
|
2450
|
+
list_certificates_config = parent_rpcs.list_certificates if parent_rpcs.respond_to? :list_certificates
|
2451
|
+
@list_certificates = ::Gapic::Config::Method.new list_certificates_config
|
2452
|
+
get_certificate_config = parent_rpcs.get_certificate if parent_rpcs.respond_to? :get_certificate
|
2453
|
+
@get_certificate = ::Gapic::Config::Method.new get_certificate_config
|
2454
|
+
create_certificate_config = parent_rpcs.create_certificate if parent_rpcs.respond_to? :create_certificate
|
2455
|
+
@create_certificate = ::Gapic::Config::Method.new create_certificate_config
|
2456
|
+
update_certificate_config = parent_rpcs.update_certificate if parent_rpcs.respond_to? :update_certificate
|
2457
|
+
@update_certificate = ::Gapic::Config::Method.new update_certificate_config
|
2458
|
+
delete_certificate_config = parent_rpcs.delete_certificate if parent_rpcs.respond_to? :delete_certificate
|
2459
|
+
@delete_certificate = ::Gapic::Config::Method.new delete_certificate_config
|
2460
|
+
list_certificate_maps_config = parent_rpcs.list_certificate_maps if parent_rpcs.respond_to? :list_certificate_maps
|
2461
|
+
@list_certificate_maps = ::Gapic::Config::Method.new list_certificate_maps_config
|
2462
|
+
get_certificate_map_config = parent_rpcs.get_certificate_map if parent_rpcs.respond_to? :get_certificate_map
|
2463
|
+
@get_certificate_map = ::Gapic::Config::Method.new get_certificate_map_config
|
2464
|
+
create_certificate_map_config = parent_rpcs.create_certificate_map if parent_rpcs.respond_to? :create_certificate_map
|
2465
|
+
@create_certificate_map = ::Gapic::Config::Method.new create_certificate_map_config
|
2466
|
+
update_certificate_map_config = parent_rpcs.update_certificate_map if parent_rpcs.respond_to? :update_certificate_map
|
2467
|
+
@update_certificate_map = ::Gapic::Config::Method.new update_certificate_map_config
|
2468
|
+
delete_certificate_map_config = parent_rpcs.delete_certificate_map if parent_rpcs.respond_to? :delete_certificate_map
|
2469
|
+
@delete_certificate_map = ::Gapic::Config::Method.new delete_certificate_map_config
|
2470
|
+
list_certificate_map_entries_config = parent_rpcs.list_certificate_map_entries if parent_rpcs.respond_to? :list_certificate_map_entries
|
2471
|
+
@list_certificate_map_entries = ::Gapic::Config::Method.new list_certificate_map_entries_config
|
2472
|
+
get_certificate_map_entry_config = parent_rpcs.get_certificate_map_entry if parent_rpcs.respond_to? :get_certificate_map_entry
|
2473
|
+
@get_certificate_map_entry = ::Gapic::Config::Method.new get_certificate_map_entry_config
|
2474
|
+
create_certificate_map_entry_config = parent_rpcs.create_certificate_map_entry if parent_rpcs.respond_to? :create_certificate_map_entry
|
2475
|
+
@create_certificate_map_entry = ::Gapic::Config::Method.new create_certificate_map_entry_config
|
2476
|
+
update_certificate_map_entry_config = parent_rpcs.update_certificate_map_entry if parent_rpcs.respond_to? :update_certificate_map_entry
|
2477
|
+
@update_certificate_map_entry = ::Gapic::Config::Method.new update_certificate_map_entry_config
|
2478
|
+
delete_certificate_map_entry_config = parent_rpcs.delete_certificate_map_entry if parent_rpcs.respond_to? :delete_certificate_map_entry
|
2479
|
+
@delete_certificate_map_entry = ::Gapic::Config::Method.new delete_certificate_map_entry_config
|
2480
|
+
list_dns_authorizations_config = parent_rpcs.list_dns_authorizations if parent_rpcs.respond_to? :list_dns_authorizations
|
2481
|
+
@list_dns_authorizations = ::Gapic::Config::Method.new list_dns_authorizations_config
|
2482
|
+
get_dns_authorization_config = parent_rpcs.get_dns_authorization if parent_rpcs.respond_to? :get_dns_authorization
|
2483
|
+
@get_dns_authorization = ::Gapic::Config::Method.new get_dns_authorization_config
|
2484
|
+
create_dns_authorization_config = parent_rpcs.create_dns_authorization if parent_rpcs.respond_to? :create_dns_authorization
|
2485
|
+
@create_dns_authorization = ::Gapic::Config::Method.new create_dns_authorization_config
|
2486
|
+
update_dns_authorization_config = parent_rpcs.update_dns_authorization if parent_rpcs.respond_to? :update_dns_authorization
|
2487
|
+
@update_dns_authorization = ::Gapic::Config::Method.new update_dns_authorization_config
|
2488
|
+
delete_dns_authorization_config = parent_rpcs.delete_dns_authorization if parent_rpcs.respond_to? :delete_dns_authorization
|
2489
|
+
@delete_dns_authorization = ::Gapic::Config::Method.new delete_dns_authorization_config
|
2490
|
+
|
2491
|
+
yield self if block_given?
|
2492
|
+
end
|
2493
|
+
end
|
2494
|
+
end
|
2495
|
+
end
|
2496
|
+
end
|
2497
|
+
end
|
2498
|
+
end
|
2499
|
+
end
|
2500
|
+
end
|