google-cloud-bigquery-migration-v2 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.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/bigquery/migration/v2/migration_entities_pb.rb +89 -0
  7. data/lib/google/cloud/bigquery/migration/v2/migration_error_details_pb.rb +39 -0
  8. data/lib/google/cloud/bigquery/migration/v2/migration_metrics_pb.rb +52 -0
  9. data/lib/google/cloud/bigquery/migration/v2/migration_service/client.rb +1016 -0
  10. data/lib/google/cloud/bigquery/migration/v2/migration_service/credentials.rb +49 -0
  11. data/lib/google/cloud/bigquery/migration/v2/migration_service/paths.rb +92 -0
  12. data/lib/google/cloud/bigquery/migration/v2/migration_service.rb +51 -0
  13. data/lib/google/cloud/bigquery/migration/v2/migration_service_pb.rb +76 -0
  14. data/lib/google/cloud/bigquery/migration/v2/migration_service_services_pb.rb +62 -0
  15. data/lib/google/cloud/bigquery/migration/v2/translation_config_pb.rb +127 -0
  16. data/lib/google/cloud/bigquery/migration/v2/version.rb +30 -0
  17. data/lib/google/cloud/bigquery/migration/v2.rb +42 -0
  18. data/lib/google-cloud-bigquery-migration-v2.rb +21 -0
  19. data/proto_docs/README.md +4 -0
  20. data/proto_docs/google/api/distribution.rb +225 -0
  21. data/proto_docs/google/api/field_behavior.rb +71 -0
  22. data/proto_docs/google/api/label.rb +49 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/api/metric.rb +276 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb +220 -0
  27. data/proto_docs/google/cloud/bigquery/migration/v2/migration_error_details.rb +72 -0
  28. data/proto_docs/google/cloud/bigquery/migration/v2/migration_metrics.rb +119 -0
  29. data/proto_docs/google/cloud/bigquery/migration/v2/migration_service.rb +166 -0
  30. data/proto_docs/google/cloud/bigquery/migration/v2/translation_config.rb +275 -0
  31. data/proto_docs/google/protobuf/any.rb +141 -0
  32. data/proto_docs/google/protobuf/duration.rb +98 -0
  33. data/proto_docs/google/protobuf/empty.rb +36 -0
  34. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  35. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  36. data/proto_docs/google/rpc/error_details.rb +297 -0
  37. metadata +227 -0
@@ -0,0 +1,49 @@
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 "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Bigquery
24
+ module Migration
25
+ module V2
26
+ module MigrationService
27
+ # Credentials for the MigrationService API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "GOOGLE_CLOUD_CREDENTIALS",
34
+ "GOOGLE_CLOUD_KEYFILE",
35
+ "GCLOUD_KEYFILE",
36
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
37
+ "GOOGLE_CLOUD_KEYFILE_JSON",
38
+ "GCLOUD_KEYFILE_JSON"
39
+ ]
40
+ self.paths = [
41
+ "~/.config/google_cloud/application_default_credentials.json"
42
+ ]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,92 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Bigquery
23
+ module Migration
24
+ module V2
25
+ module MigrationService
26
+ # Path helper methods for the MigrationService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified Location resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ #
38
+ # @return [::String]
39
+ def location_path project:, location:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+
42
+ "projects/#{project}/locations/#{location}"
43
+ end
44
+
45
+ ##
46
+ # Create a fully-qualified MigrationSubtask resource string.
47
+ #
48
+ # The resource will be in the following format:
49
+ #
50
+ # `projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}`
51
+ #
52
+ # @param project [String]
53
+ # @param location [String]
54
+ # @param workflow [String]
55
+ # @param subtask [String]
56
+ #
57
+ # @return [::String]
58
+ def migration_subtask_path project:, location:, workflow:, subtask:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+ raise ::ArgumentError, "workflow cannot contain /" if workflow.to_s.include? "/"
62
+
63
+ "projects/#{project}/locations/#{location}/workflows/#{workflow}/subtasks/#{subtask}"
64
+ end
65
+
66
+ ##
67
+ # Create a fully-qualified MigrationWorkflow resource string.
68
+ #
69
+ # The resource will be in the following format:
70
+ #
71
+ # `projects/{project}/locations/{location}/workflows/{workflow}`
72
+ #
73
+ # @param project [String]
74
+ # @param location [String]
75
+ # @param workflow [String]
76
+ #
77
+ # @return [::String]
78
+ def migration_workflow_path project:, location:, workflow:
79
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
80
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
81
+
82
+ "projects/#{project}/locations/#{location}/workflows/#{workflow}"
83
+ end
84
+
85
+ extend self
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,51 @@
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 "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/bigquery/migration/v2/version"
24
+
25
+ require "google/cloud/bigquery/migration/v2/migration_service/credentials"
26
+ require "google/cloud/bigquery/migration/v2/migration_service/paths"
27
+ require "google/cloud/bigquery/migration/v2/migration_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Bigquery
32
+ module Migration
33
+ module V2
34
+ ##
35
+ # Service to handle EDW migrations.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/bigquery/migration/v2/migration_service"
40
+ # client = ::Google::Cloud::Bigquery::Migration::V2::MigrationService::Client.new
41
+ #
42
+ module MigrationService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "migration_service", "helpers.rb"
51
+ require "google/cloud/bigquery/migration/v2/migration_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,76 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/bigquery/migration/v2/migration_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/bigquery/migration/v2/migration_entities_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/bigquery/migration/v2/migration_service.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest" do
17
+ optional :parent, :string, 1
18
+ optional :migration_workflow, :message, 2, "google.cloud.bigquery.migration.v2.MigrationWorkflow"
19
+ end
20
+ add_message "google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest" do
21
+ optional :name, :string, 1
22
+ optional :read_mask, :message, 2, "google.protobuf.FieldMask"
23
+ end
24
+ add_message "google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest" do
25
+ optional :parent, :string, 1
26
+ optional :read_mask, :message, 2, "google.protobuf.FieldMask"
27
+ optional :page_size, :int32, 3
28
+ optional :page_token, :string, 4
29
+ end
30
+ add_message "google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse" do
31
+ repeated :migration_workflows, :message, 1, "google.cloud.bigquery.migration.v2.MigrationWorkflow"
32
+ optional :next_page_token, :string, 2
33
+ end
34
+ add_message "google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest" do
35
+ optional :name, :string, 1
36
+ end
37
+ add_message "google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest" do
38
+ optional :name, :string, 1
39
+ end
40
+ add_message "google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest" do
41
+ optional :name, :string, 1
42
+ optional :read_mask, :message, 2, "google.protobuf.FieldMask"
43
+ end
44
+ add_message "google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest" do
45
+ optional :parent, :string, 1
46
+ optional :read_mask, :message, 2, "google.protobuf.FieldMask"
47
+ optional :page_size, :int32, 3
48
+ optional :page_token, :string, 4
49
+ optional :filter, :string, 5
50
+ end
51
+ add_message "google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse" do
52
+ repeated :migration_subtasks, :message, 1, "google.cloud.bigquery.migration.v2.MigrationSubtask"
53
+ optional :next_page_token, :string, 2
54
+ end
55
+ end
56
+ end
57
+
58
+ module Google
59
+ module Cloud
60
+ module Bigquery
61
+ module Migration
62
+ module V2
63
+ CreateMigrationWorkflowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest").msgclass
64
+ GetMigrationWorkflowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest").msgclass
65
+ ListMigrationWorkflowsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest").msgclass
66
+ ListMigrationWorkflowsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse").msgclass
67
+ DeleteMigrationWorkflowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest").msgclass
68
+ StartMigrationWorkflowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest").msgclass
69
+ GetMigrationSubtaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest").msgclass
70
+ ListMigrationSubtasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest").msgclass
71
+ ListMigrationSubtasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse").msgclass
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,62 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/bigquery/migration/v2/migration_service.proto for package 'google.cloud.bigquery.migration.v2'
3
+ # Original file comments:
4
+ # Copyright 2022 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/bigquery/migration/v2/migration_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Bigquery
25
+ module Migration
26
+ module V2
27
+ module MigrationService
28
+ # Service to handle EDW migrations.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.bigquery.migration.v2.MigrationService'
36
+
37
+ # Creates a migration workflow.
38
+ rpc :CreateMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::CreateMigrationWorkflowRequest, ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow
39
+ # Gets a previously created migration workflow.
40
+ rpc :GetMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::GetMigrationWorkflowRequest, ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow
41
+ # Lists previously created migration workflow.
42
+ rpc :ListMigrationWorkflows, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsRequest, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsResponse
43
+ # Deletes a migration workflow by name.
44
+ rpc :DeleteMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::DeleteMigrationWorkflowRequest, ::Google::Protobuf::Empty
45
+ # Starts a previously created migration workflow. I.e., the state transitions
46
+ # from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
47
+ # An error will be signaled if the state is anything other than DRAFT or
48
+ # RUNNING.
49
+ rpc :StartMigrationWorkflow, ::Google::Cloud::Bigquery::Migration::V2::StartMigrationWorkflowRequest, ::Google::Protobuf::Empty
50
+ # Gets a previously created migration subtask.
51
+ rpc :GetMigrationSubtask, ::Google::Cloud::Bigquery::Migration::V2::GetMigrationSubtaskRequest, ::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask
52
+ # Lists previously created migration subtasks.
53
+ rpc :ListMigrationSubtasks, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksRequest, ::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksResponse
54
+ end
55
+
56
+ Stub = Service.rpc_stub_class
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,127 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/bigquery/migration/v2/translation_config.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/cloud/bigquery/migration/v2/translation_config.proto", :syntax => :proto3) do
8
+ add_message "google.cloud.bigquery.migration.v2.TranslationConfigDetails" do
9
+ optional :source_dialect, :message, 3, "google.cloud.bigquery.migration.v2.Dialect"
10
+ optional :target_dialect, :message, 4, "google.cloud.bigquery.migration.v2.Dialect"
11
+ optional :source_env, :message, 6, "google.cloud.bigquery.migration.v2.SourceEnv"
12
+ oneof :source_location do
13
+ optional :gcs_source_path, :string, 1
14
+ end
15
+ oneof :target_location do
16
+ optional :gcs_target_path, :string, 2
17
+ end
18
+ oneof :output_name_mapping do
19
+ optional :name_mapping_list, :message, 5, "google.cloud.bigquery.migration.v2.ObjectNameMappingList"
20
+ end
21
+ end
22
+ add_message "google.cloud.bigquery.migration.v2.Dialect" do
23
+ oneof :dialect_value do
24
+ optional :bigquery_dialect, :message, 1, "google.cloud.bigquery.migration.v2.BigQueryDialect"
25
+ optional :hiveql_dialect, :message, 2, "google.cloud.bigquery.migration.v2.HiveQLDialect"
26
+ optional :redshift_dialect, :message, 3, "google.cloud.bigquery.migration.v2.RedshiftDialect"
27
+ optional :teradata_dialect, :message, 4, "google.cloud.bigquery.migration.v2.TeradataDialect"
28
+ optional :oracle_dialect, :message, 5, "google.cloud.bigquery.migration.v2.OracleDialect"
29
+ optional :sparksql_dialect, :message, 6, "google.cloud.bigquery.migration.v2.SparkSQLDialect"
30
+ optional :snowflake_dialect, :message, 7, "google.cloud.bigquery.migration.v2.SnowflakeDialect"
31
+ optional :netezza_dialect, :message, 8, "google.cloud.bigquery.migration.v2.NetezzaDialect"
32
+ optional :azure_synapse_dialect, :message, 9, "google.cloud.bigquery.migration.v2.AzureSynapseDialect"
33
+ optional :vertica_dialect, :message, 10, "google.cloud.bigquery.migration.v2.VerticaDialect"
34
+ end
35
+ end
36
+ add_message "google.cloud.bigquery.migration.v2.BigQueryDialect" do
37
+ end
38
+ add_message "google.cloud.bigquery.migration.v2.HiveQLDialect" do
39
+ end
40
+ add_message "google.cloud.bigquery.migration.v2.RedshiftDialect" do
41
+ end
42
+ add_message "google.cloud.bigquery.migration.v2.TeradataDialect" do
43
+ optional :mode, :enum, 1, "google.cloud.bigquery.migration.v2.TeradataDialect.Mode"
44
+ end
45
+ add_enum "google.cloud.bigquery.migration.v2.TeradataDialect.Mode" do
46
+ value :MODE_UNSPECIFIED, 0
47
+ value :SQL, 1
48
+ value :BTEQ, 2
49
+ end
50
+ add_message "google.cloud.bigquery.migration.v2.OracleDialect" do
51
+ end
52
+ add_message "google.cloud.bigquery.migration.v2.SparkSQLDialect" do
53
+ end
54
+ add_message "google.cloud.bigquery.migration.v2.SnowflakeDialect" do
55
+ end
56
+ add_message "google.cloud.bigquery.migration.v2.NetezzaDialect" do
57
+ end
58
+ add_message "google.cloud.bigquery.migration.v2.AzureSynapseDialect" do
59
+ end
60
+ add_message "google.cloud.bigquery.migration.v2.VerticaDialect" do
61
+ end
62
+ add_message "google.cloud.bigquery.migration.v2.ObjectNameMappingList" do
63
+ repeated :name_map, :message, 1, "google.cloud.bigquery.migration.v2.ObjectNameMapping"
64
+ end
65
+ add_message "google.cloud.bigquery.migration.v2.ObjectNameMapping" do
66
+ optional :source, :message, 1, "google.cloud.bigquery.migration.v2.NameMappingKey"
67
+ optional :target, :message, 2, "google.cloud.bigquery.migration.v2.NameMappingValue"
68
+ end
69
+ add_message "google.cloud.bigquery.migration.v2.NameMappingKey" do
70
+ optional :type, :enum, 1, "google.cloud.bigquery.migration.v2.NameMappingKey.Type"
71
+ optional :database, :string, 2
72
+ optional :schema, :string, 3
73
+ optional :relation, :string, 4
74
+ optional :attribute, :string, 5
75
+ end
76
+ add_enum "google.cloud.bigquery.migration.v2.NameMappingKey.Type" do
77
+ value :TYPE_UNSPECIFIED, 0
78
+ value :DATABASE, 1
79
+ value :SCHEMA, 2
80
+ value :RELATION, 3
81
+ value :ATTRIBUTE, 4
82
+ value :RELATION_ALIAS, 5
83
+ value :ATTRIBUTE_ALIAS, 6
84
+ value :FUNCTION, 7
85
+ end
86
+ add_message "google.cloud.bigquery.migration.v2.NameMappingValue" do
87
+ optional :database, :string, 1
88
+ optional :schema, :string, 2
89
+ optional :relation, :string, 3
90
+ optional :attribute, :string, 4
91
+ end
92
+ add_message "google.cloud.bigquery.migration.v2.SourceEnv" do
93
+ optional :default_database, :string, 1
94
+ repeated :schema_search_path, :string, 2
95
+ end
96
+ end
97
+ end
98
+
99
+ module Google
100
+ module Cloud
101
+ module Bigquery
102
+ module Migration
103
+ module V2
104
+ TranslationConfigDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TranslationConfigDetails").msgclass
105
+ Dialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.Dialect").msgclass
106
+ BigQueryDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.BigQueryDialect").msgclass
107
+ HiveQLDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.HiveQLDialect").msgclass
108
+ RedshiftDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.RedshiftDialect").msgclass
109
+ TeradataDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TeradataDialect").msgclass
110
+ TeradataDialect::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.TeradataDialect.Mode").enummodule
111
+ OracleDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.OracleDialect").msgclass
112
+ SparkSQLDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SparkSQLDialect").msgclass
113
+ SnowflakeDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SnowflakeDialect").msgclass
114
+ NetezzaDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.NetezzaDialect").msgclass
115
+ AzureSynapseDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.AzureSynapseDialect").msgclass
116
+ VerticaDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.VerticaDialect").msgclass
117
+ ObjectNameMappingList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ObjectNameMappingList").msgclass
118
+ ObjectNameMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.ObjectNameMapping").msgclass
119
+ NameMappingKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.NameMappingKey").msgclass
120
+ NameMappingKey::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.NameMappingKey.Type").enummodule
121
+ NameMappingValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.NameMappingValue").msgclass
122
+ SourceEnv = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.migration.v2.SourceEnv").msgclass
123
+ end
124
+ end
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,30 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Bigquery
23
+ module Migration
24
+ module V2
25
+ VERSION = "0.1.0"
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,42 @@
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/bigquery/migration/v2/migration_service"
20
+ require "google/cloud/bigquery/migration/v2/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Bigquery
25
+ module Migration
26
+ ##
27
+ # To load this package, including all its services, and instantiate a client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/bigquery/migration/v2"
32
+ # client = ::Google::Cloud::Bigquery::Migration::V2::MigrationService::Client.new
33
+ #
34
+ module V2
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ helper_path = ::File.join __dir__, "v2", "_helpers.rb"
42
+ require "google/cloud/bigquery/migration/v2/_helpers" if ::File.file? helper_path
@@ -0,0 +1,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/bigquery/migration/v2"
@@ -0,0 +1,4 @@
1
+ # BigQuery Migration V2 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.