google-cloud-bigquery-migration-v2 0.10.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +7 -1
  3. data/lib/google/cloud/bigquery/migration/v2/migration_service/client.rb +17 -7
  4. data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/client.rb +981 -0
  5. data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/service_stub.rb +486 -0
  6. data/lib/google/cloud/bigquery/migration/v2/migration_service/rest.rb +54 -0
  7. data/lib/google/cloud/bigquery/migration/v2/migration_service.rb +6 -0
  8. data/lib/google/cloud/bigquery/migration/v2/rest.rb +39 -0
  9. data/lib/google/cloud/bigquery/migration/v2/translation_config_pb.rb +6 -1
  10. data/lib/google/cloud/bigquery/migration/v2/translation_details_pb.rb +51 -0
  11. data/lib/google/cloud/bigquery/migration/v2/translation_suggestion_pb.rb +48 -0
  12. data/lib/google/cloud/bigquery/migration/v2/translation_usability_pb.rb +47 -0
  13. data/lib/google/cloud/bigquery/migration/v2/version.rb +1 -1
  14. data/lib/google/cloud/bigquery/migration/v2.rb +5 -0
  15. data/proto_docs/google/api/client.rb +35 -10
  16. data/proto_docs/google/api/resource.rb +7 -2
  17. data/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +51 -4
  18. data/proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb +41 -0
  19. data/proto_docs/google/cloud/bigquery/migration/v2/translation_details.rb +130 -0
  20. data/proto_docs/google/cloud/bigquery/migration/v2/translation_suggestion.rb +67 -0
  21. data/proto_docs/google/cloud/bigquery/migration/v2/translation_usability.rb +69 -0
  22. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 740f74e7d850f560e0c4b243837dd235747f0b9e8c2356c2f676cd204fd56a79
4
- data.tar.gz: 6b9a3e5d90fb1c2359a9d6f9fce8f9a22bc4070a9cf36f41cb69cdcac6023cbe
3
+ metadata.gz: e75ec524ac19fb33874aada6810ca8007111f0b40b3127c57b5d07c1870b21e3
4
+ data.tar.gz: 8662bf021589b1f16ea5b2b86c85444e1a968ac67947bcda5273335af421b53a
5
5
  SHA512:
6
- metadata.gz: d8c79af531559a570c90ffebac859c4ad3d7005fcd48afbab11a4cb07e1745a7aa8540c6955013b89850e04cc61a5e4f2e2acc0c5aae3cb81cde57ea9dda7563
7
- data.tar.gz: 140b389e918a9bffa24f62e92052bc394e3d9e59ba333f6e752980ee3df0178d90a1b0e81912a8b61006dde90b62ad3647cd4c5b1d1dcb5606cc342e76668ed9
6
+ metadata.gz: 1a315b46f736a20ab7ccfe22bb08b19fe9f0a362acf020ba8667bacd570114761e4e0ee2596adf1beb83f733463a4b5e10f06a69b17654dfbb7066f656f5a8d0
7
+ data.tar.gz: 30c5b8ec14c21e4e1a1b0313a018406131f11ed083e3d19faf9af87ab2250cd8919a5c759fabcc9edbcef15a9a368cd3a4f9b3669772dab1cad65527d746f50f
@@ -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\"\xf3\x04\n\x11MigrationWorkflow\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\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}\"\x83\x04\n\rMigrationTask\x12\x62\n\x1atranslation_config_details\x18\x0e \x01(\x0b\x32<.google.cloud.bigquery.migration.v2.TranslationConfigDetailsH\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\"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}B\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"
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
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 = {}