google-cloud-bigquery-migration-v2 0.9.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +7 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_error_details_pb.rb +1 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_metrics_pb.rb +1 -1
- data/lib/google/cloud/bigquery/migration/v2/migration_service/client.rb +17 -7
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/client.rb +981 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/service_stub.rb +486 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest.rb +54 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service.rb +6 -0
- data/lib/google/cloud/bigquery/migration/v2/migration_service_pb.rb +1 -1
- data/lib/google/cloud/bigquery/migration/v2/rest.rb +39 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_config_pb.rb +6 -1
- data/lib/google/cloud/bigquery/migration/v2/translation_details_pb.rb +51 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_suggestion_pb.rb +48 -0
- data/lib/google/cloud/bigquery/migration/v2/translation_usability_pb.rb +47 -0
- data/lib/google/cloud/bigquery/migration/v2/version.rb +1 -1
- data/lib/google/cloud/bigquery/migration/v2.rb +5 -0
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +51 -4
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb +41 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb +130 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_suggestion.rb +67 -0
- data/proto_docs/google/cloud/bigquery/migration/v2/translation_usability.rb +69 -0
- metadata +14 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34854f1c554777210a2a7bcbe19a03bf215bf80e1575dbde194b433796c46b3d
|
4
|
+
data.tar.gz: 3b993561cd2489dab4a4638afe69d6473a2e0b6155737121ecda7e000858fba0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4926509e56e7a5e13b514ac9cd22f0ae9d7cee434cf82738c9bc510dedc489d843b83e208c9c12bd7c3a38c8eb4dedbc82129db29c8edfc0ac50a4424ef445d2
|
7
|
+
data.tar.gz: e1391b60019e8b82ac8624b136979f20fa4e0ce441e0e2113662d90782c0661cf77b2e736d152a510d8925ab0f3c93fb3708821c63b0e4cc5d126fb42ab6557d
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -9,11 +9,13 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/bigquery/migration/v2/migration_error_details_pb'
|
10
10
|
require 'google/cloud/bigquery/migration/v2/migration_metrics_pb'
|
11
11
|
require 'google/cloud/bigquery/migration/v2/translation_config_pb'
|
12
|
+
require 'google/cloud/bigquery/migration/v2/translation_details_pb'
|
13
|
+
require 'google/cloud/bigquery/migration/v2/translation_usability_pb'
|
12
14
|
require 'google/protobuf/timestamp_pb'
|
13
15
|
require 'google/rpc/error_details_pb'
|
14
16
|
|
15
17
|
|
16
|
-
descriptor_data = "\n;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1a:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1a;google/cloud/bigquery/migration/v2/translation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/rpc/error_details.proto\"\
|
18
|
+
descriptor_data = "\n;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1a:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1a;google/cloud/bigquery/migration/v2/translation_config.proto\x1a<google/cloud/bigquery/migration/v2/translation_details.proto\x1a>google/cloud/bigquery/migration/v2/translation_usability.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/rpc/error_details.proto\"\xf6\x04\n\x11MigrationWorkflow\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x03\xe0\x41\x05\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12O\n\x05tasks\x18\x02 \x03(\x0b\x32@.google.cloud.bigquery.migration.v2.MigrationWorkflow.TasksEntry\x12O\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.bigquery.migration.v2.MigrationWorkflow.StateB\x03\xe0\x41\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a_\n\nTasksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.MigrationTask:\x02\x38\x01\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x44RAFT\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\r\n\tCOMPLETED\x10\x04:u\xea\x41r\n2bigquerymigration.googleapis.com/MigrationWorkflow\x12<projects/{project}/locations/{location}/workflows/{workflow}\"\xb4\x07\n\rMigrationTask\x12\x62\n\x1atranslation_config_details\x18\x0e \x01(\x0b\x32<.google.cloud.bigquery.migration.v2.TranslationConfigDetailsH\x00\x12U\n\x13translation_details\x18\x10 \x01(\x0b\x32\x36.google.cloud.bigquery.migration.v2.TranslationDetailsH\x00\x12\x12\n\x02id\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x0c\n\x04type\x18\x02 \x01(\t\x12K\n\x05state\x18\x04 \x01(\x0e\x32\x37.google.cloud.bigquery.migration.v2.MigrationTask.StateB\x03\xe0\x41\x03\x12\x34\n\x10processing_error\x18\x05 \x01(\x0b\x32\x15.google.rpc.ErrorInfoB\x03\xe0\x41\x03\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x16resource_error_details\x18\x11 \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.ResourceErrorDetailB\x03\xe0\x41\x03\x12\x1c\n\x14resource_error_count\x18\x12 \x01(\x05\x12?\n\x07metrics\x18\x13 \x03(\x0b\x32..google.cloud.bigquery.migration.v2.TimeSeries\x12Q\n\x0btask_result\x18\x14 \x01(\x0b\x32\x37.google.cloud.bigquery.migration.v2.MigrationTaskResultB\x03\xe0\x41\x03\x12$\n\x1ctotal_processing_error_count\x18\x15 \x01(\x05\x12\"\n\x1atotal_resource_error_count\x18\x16 \x01(\x05\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x11\n\rORCHESTRATING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\n\n\x06PAUSED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x0e\n\x0ctask_details\"\xf4\x05\n\x10MigrationSubtask\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x0f\n\x07task_id\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12N\n\x05state\x18\x05 \x01(\x0e\x32:.google.cloud.bigquery.migration.v2.MigrationSubtask.StateB\x03\xe0\x41\x03\x12\x34\n\x10processing_error\x18\x06 \x01(\x0b\x32\x15.google.rpc.ErrorInfoB\x03\xe0\x41\x03\x12\\\n\x16resource_error_details\x18\x0c \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.ResourceErrorDetailB\x03\xe0\x41\x03\x12\x1c\n\x14resource_error_count\x18\r \x01(\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x07metrics\x18\x0b \x03(\x0b\x32..google.cloud.bigquery.migration.v2.TimeSeries\"v\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\n\n\x06PAUSED\x10\x05\x12\x16\n\x12PENDING_DEPENDENCY\x10\x06:\x88\x01\xea\x41\x84\x01\n1bigquerymigration.googleapis.com/MigrationSubtask\x12Oprojects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}\"~\n\x13MigrationTaskResult\x12\\\n\x17translation_task_result\x18\x02 \x01(\x0b\x32\x39.google.cloud.bigquery.migration.v2.TranslationTaskResultH\x00\x42\t\n\x07\x64\x65tails\"\xb7\x01\n\x15TranslationTaskResult\x12H\n\x13translated_literals\x18\x01 \x03(\x0b\x32+.google.cloud.bigquery.migration.v2.Literal\x12T\n\x13report_log_messages\x18\x02 \x03(\x0b\x32\x37.google.cloud.bigquery.migration.v2.GcsReportLogMessageB\xd2\x01\n&com.google.cloud.bigquery.migration.v2B\x16MigrationEntitiesProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
17
19
|
|
18
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
21
|
|
@@ -30,9 +32,11 @@ rescue TypeError
|
|
30
32
|
imports = [
|
31
33
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
34
|
["google.cloud.bigquery.migration.v2.TranslationConfigDetails", "google/cloud/bigquery/migration/v2/translation_config.proto"],
|
35
|
+
["google.cloud.bigquery.migration.v2.TranslationDetails", "google/cloud/bigquery/migration/v2/translation_details.proto"],
|
33
36
|
["google.rpc.ErrorInfo", "google/rpc/error_details.proto"],
|
34
37
|
["google.cloud.bigquery.migration.v2.ResourceErrorDetail", "google/cloud/bigquery/migration/v2/migration_error_details.proto"],
|
35
38
|
["google.cloud.bigquery.migration.v2.TimeSeries", "google/cloud/bigquery/migration/v2/migration_metrics.proto"],
|
39
|
+
["google.cloud.bigquery.migration.v2.GcsReportLogMessage", "google/cloud/bigquery/migration/v2/translation_usability.proto"],
|
36
40
|
]
|
37
41
|
imports.each do |type_name, expected_filename|
|
38
42
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -55,6 +59,8 @@ module Google
|
|
55
59
|
MigrationTask::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.MigrationTask.State").enummodule
|
56
60
|
MigrationSubtask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.MigrationSubtask").msgclass
|
57
61
|
MigrationSubtask::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.MigrationSubtask.State").enummodule
|
62
|
+
MigrationTaskResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.MigrationTaskResult").msgclass
|
63
|
+
TranslationTaskResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationTaskResult").msgclass
|
58
64
|
end
|
59
65
|
end
|
60
66
|
end
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/rpc/error_details_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n@google/cloud/bigquery/migration/v2/migration_error_details.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/rpc/error_details.proto\"\
|
11
|
+
descriptor_data = "\n@google/cloud/bigquery/migration/v2/migration_error_details.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/rpc/error_details.proto\"\xb2\x01\n\x13ResourceErrorDetail\x12\x34\n\rresource_info\x18\x01 \x01(\x0b\x32\x18.google.rpc.ResourceInfoB\x03\xe0\x41\x02\x12K\n\rerror_details\x18\x02 \x03(\x0b\x32/.google.cloud.bigquery.migration.v2.ErrorDetailB\x03\xe0\x41\x02\x12\x18\n\x0b\x65rror_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\"\x87\x01\n\x0b\x45rrorDetail\x12H\n\x08location\x18\x01 \x01(\x0b\x32\x31.google.cloud.bigquery.migration.v2.ErrorLocationB\x03\xe0\x41\x01\x12.\n\nerror_info\x18\x02 \x01(\x0b\x32\x15.google.rpc.ErrorInfoB\x03\xe0\x41\x02\"7\n\rErrorLocation\x12\x11\n\x04line\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x63olumn\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x42\xd6\x01\n&com.google.cloud.bigquery.migration.v2B\x1aMigrationErrorDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -10,7 +10,7 @@ require 'google/api/metric_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n:google/cloud/bigquery/migration/v2/migration_metrics.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1dgoogle/api/distribution.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/api/metric.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n:google/cloud/bigquery/migration/v2/migration_metrics.proto\x12\"google.cloud.bigquery.migration.v2\x1a\x1dgoogle/api/distribution.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/api/metric.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe5\x01\n\nTimeSeries\x12\x13\n\x06metric\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12?\n\nvalue_type\x18\x02 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueTypeB\x03\xe0\x41\x02\x12\x41\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKindB\x03\xe0\x41\x01\x12>\n\x06points\x18\x04 \x03(\x0b\x32).google.cloud.bigquery.migration.v2.PointB\x03\xe0\x41\x02\"\x8a\x01\n\x05Point\x12\x42\n\x08interval\x18\x01 \x01(\x0b\x32\x30.google.cloud.bigquery.migration.v2.TimeInterval\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.cloud.bigquery.migration.v2.TypedValue\"v\n\x0cTimeInterval\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05valueB\xd1\x01\n&com.google.cloud.bigquery.migration.v2B\x15MigrationMetricsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xaa\x02\"Google.Cloud.BigQuery.Migration.V2\xca\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service to handle EDW migrations.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "bigquerymigration.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -238,10 +241,11 @@ module Google
|
|
238
241
|
# Customize the options with defaults
|
239
242
|
metadata = @config.rpcs.create_migration_workflow.metadata.to_h
|
240
243
|
|
241
|
-
# Set x-goog-api-client
|
244
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
245
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
246
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
247
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
248
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
245
249
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
246
250
|
|
247
251
|
header_params = {}
|
@@ -326,10 +330,11 @@ module Google
|
|
326
330
|
# Customize the options with defaults
|
327
331
|
metadata = @config.rpcs.get_migration_workflow.metadata.to_h
|
328
332
|
|
329
|
-
# Set x-goog-api-client
|
333
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
330
334
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
331
335
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
332
336
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
337
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
333
338
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
334
339
|
|
335
340
|
header_params = {}
|
@@ -427,10 +432,11 @@ module Google
|
|
427
432
|
# Customize the options with defaults
|
428
433
|
metadata = @config.rpcs.list_migration_workflows.metadata.to_h
|
429
434
|
|
430
|
-
# Set x-goog-api-client
|
435
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
431
436
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
432
437
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
433
438
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
439
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
434
440
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
435
441
|
|
436
442
|
header_params = {}
|
@@ -514,10 +520,11 @@ module Google
|
|
514
520
|
# Customize the options with defaults
|
515
521
|
metadata = @config.rpcs.delete_migration_workflow.metadata.to_h
|
516
522
|
|
517
|
-
# Set x-goog-api-client
|
523
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
518
524
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
519
525
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
520
526
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
527
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
521
528
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
522
529
|
|
523
530
|
header_params = {}
|
@@ -603,10 +610,11 @@ module Google
|
|
603
610
|
# Customize the options with defaults
|
604
611
|
metadata = @config.rpcs.start_migration_workflow.metadata.to_h
|
605
612
|
|
606
|
-
# Set x-goog-api-client
|
613
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
607
614
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
608
615
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
609
616
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
617
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
610
618
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
611
619
|
|
612
620
|
header_params = {}
|
@@ -691,10 +699,11 @@ module Google
|
|
691
699
|
# Customize the options with defaults
|
692
700
|
metadata = @config.rpcs.get_migration_subtask.metadata.to_h
|
693
701
|
|
694
|
-
# Set x-goog-api-client
|
702
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
695
703
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
696
704
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
697
705
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
706
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
698
707
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
699
708
|
|
700
709
|
header_params = {}
|
@@ -796,10 +805,11 @@ module Google
|
|
796
805
|
# Customize the options with defaults
|
797
806
|
metadata = @config.rpcs.list_migration_subtasks.metadata.to_h
|
798
807
|
|
799
|
-
# Set x-goog-api-client
|
808
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
800
809
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
801
810
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
802
811
|
gapic_version: ::Google::Cloud::Bigquery::Migration::V2::VERSION
|
812
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
803
813
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
804
814
|
|
805
815
|
header_params = {}
|