google-cloud-certificate_manager-v1 0.9.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/client.rb +579 -29
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/operations.rb +13 -5
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb +19 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/rest/client.rb +543 -29
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/rest/operations.rb +11 -4
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/rest/service_stub.rb +297 -0
- data/lib/google/cloud/certificate_manager/v1/version.rb +1 -1
- data/lib/google/cloud/certificatemanager/v1/certificate_manager_pb.rb +3 -1
- data/lib/google/cloud/certificatemanager/v1/certificate_manager_services_pb.rb +10 -0
- data/lib/google/cloud/certificatemanager/v1/trust_config_pb.rb +58 -0
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/certificatemanager/v1/certificate_issuance_config.rb +1 -1
- data/proto_docs/google/cloud/certificatemanager/v1/certificate_manager.rb +31 -7
- data/proto_docs/google/cloud/certificatemanager/v1/trust_config.rb +210 -0
- metadata +4 -2
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module CertificateManager
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "certificatemanager.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -157,6 +157,25 @@ module Google
|
|
157
157
|
"projects/#{project}/locations/#{location}"
|
158
158
|
end
|
159
159
|
|
160
|
+
##
|
161
|
+
# Create a fully-qualified TrustConfig resource string.
|
162
|
+
#
|
163
|
+
# The resource will be in the following format:
|
164
|
+
#
|
165
|
+
# `projects/{project}/locations/{location}/trustConfigs/{trust_config}`
|
166
|
+
#
|
167
|
+
# @param project [String]
|
168
|
+
# @param location [String]
|
169
|
+
# @param trust_config [String]
|
170
|
+
#
|
171
|
+
# @return [::String]
|
172
|
+
def trust_config_path project:, location:, trust_config:
|
173
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
174
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
175
|
+
|
176
|
+
"projects/#{project}/locations/#{location}/trustConfigs/#{trust_config}"
|
177
|
+
end
|
178
|
+
|
160
179
|
extend self
|
161
180
|
end
|
162
181
|
end
|