google-cloud-spanner-admin-database-v1 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +134 -90
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +13 -5
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/client.rb +134 -90
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/operations.rb +11 -4
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest.rb +1 -1
- data/lib/google/cloud/spanner/admin/database/v1/database_admin.rb +1 -1
- data/lib/google/cloud/spanner/admin/database/v1/version.rb +1 -1
- data/lib/google/spanner/admin/database/v1/backup_pb.rb +1 -1
- data/lib/google/spanner/admin/database/v1/common_pb.rb +1 -1
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb +1 -1
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +21 -16
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/spanner/admin/database/v1/backup.rb +139 -69
- data/proto_docs/google/spanner/admin/database/v1/common.rb +23 -6
- data/proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb +91 -54
- metadata +2 -2
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
module DatabaseAdmin
|
29
29
|
# Service that implements Longrunning Operations API.
|
30
30
|
class Operations
|
31
|
+
# @private
|
32
|
+
API_VERSION = ""
|
33
|
+
|
31
34
|
# @private
|
32
35
|
DEFAULT_ENDPOINT_TEMPLATE = "spanner.$UNIVERSE_DOMAIN$"
|
33
36
|
|
@@ -193,10 +196,11 @@ module Google
|
|
193
196
|
# Customize the options with defaults
|
194
197
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
195
198
|
|
196
|
-
# Set x-goog-api-client
|
199
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
197
200
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
198
201
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
199
202
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
203
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
200
204
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
201
205
|
|
202
206
|
header_params = {}
|
@@ -289,10 +293,11 @@ module Google
|
|
289
293
|
# Customize the options with defaults
|
290
294
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
291
295
|
|
292
|
-
# Set x-goog-api-client
|
296
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
293
297
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
294
298
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
295
299
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
300
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
296
301
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
297
302
|
|
298
303
|
header_params = {}
|
@@ -378,10 +383,11 @@ module Google
|
|
378
383
|
# Customize the options with defaults
|
379
384
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
380
385
|
|
381
|
-
# Set x-goog-api-client
|
386
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
382
387
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
383
388
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
384
389
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
390
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
385
391
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
386
392
|
|
387
393
|
header_params = {}
|
@@ -472,10 +478,11 @@ module Google
|
|
472
478
|
# Customize the options with defaults
|
473
479
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
474
480
|
|
475
|
-
# Set x-goog-api-client
|
481
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
476
482
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
477
483
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
478
484
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
485
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
479
486
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
480
487
|
|
481
488
|
header_params = {}
|
@@ -576,10 +583,11 @@ module Google
|
|
576
583
|
# Customize the options with defaults
|
577
584
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
578
585
|
|
579
|
-
# Set x-goog-api-client
|
586
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
580
587
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
581
588
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
582
589
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
590
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
583
591
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
584
592
|
|
585
593
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|