google-cloud-cloud_dms-v1 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 (30) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-cloud_dms-v1.rb +21 -0
  7. data/lib/google/cloud/cloud_dms/v1.rb +38 -0
  8. data/lib/google/cloud/cloud_dms/v1/data_migration_service.rb +50 -0
  9. data/lib/google/cloud/cloud_dms/v1/data_migration_service/client.rb +1745 -0
  10. data/lib/google/cloud/cloud_dms/v1/data_migration_service/credentials.rb +51 -0
  11. data/lib/google/cloud/cloud_dms/v1/data_migration_service/operations.rb +655 -0
  12. data/lib/google/cloud/cloud_dms/v1/data_migration_service/paths.rb +88 -0
  13. data/lib/google/cloud/cloud_dms/v1/version.rb +28 -0
  14. data/lib/google/cloud/clouddms/v1/clouddms_pb.rb +158 -0
  15. data/lib/google/cloud/clouddms/v1/clouddms_resources_pb.rb +268 -0
  16. data/lib/google/cloud/clouddms/v1/clouddms_services_pb.rb +85 -0
  17. data/proto_docs/README.md +4 -0
  18. data/proto_docs/google/api/field_behavior.rb +65 -0
  19. data/proto_docs/google/api/resource.rb +283 -0
  20. data/proto_docs/google/cloud/clouddms/v1/clouddms.rb +427 -0
  21. data/proto_docs/google/cloud/clouddms/v1/clouddms_resources.rb +757 -0
  22. data/proto_docs/google/longrunning/operations.rb +164 -0
  23. data/proto_docs/google/protobuf/any.rb +141 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. data/proto_docs/google/protobuf/empty.rb +36 -0
  26. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  27. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  28. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  29. data/proto_docs/google/rpc/status.rb +46 -0
  30. metadata +222 -0
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 CloudDMS
23
+ module V1
24
+ module DataMigrationService
25
+ # Path helper methods for the DataMigrationService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified ConnectionProfile resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/connectionProfiles/{connection_profile}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param connection_profile [String]
37
+ #
38
+ # @return [::String]
39
+ def connection_profile_path project:, location:, connection_profile:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/connectionProfiles/#{connection_profile}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Location resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ #
56
+ # @return [::String]
57
+ def location_path project:, location:
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
+
60
+ "projects/#{project}/locations/#{location}"
61
+ end
62
+
63
+ ##
64
+ # Create a fully-qualified MigrationJob resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `projects/{project}/locations/{location}/migrationJobs/{migration_job}`
69
+ #
70
+ # @param project [String]
71
+ # @param location [String]
72
+ # @param migration_job [String]
73
+ #
74
+ # @return [::String]
75
+ def migration_job_path project:, location:, migration_job:
76
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
77
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
78
+
79
+ "projects/#{project}/locations/#{location}/migrationJobs/#{migration_job}"
80
+ end
81
+
82
+ extend self
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 CloudDMS
23
+ module V1
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,158 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/clouddms/v1/clouddms.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/clouddms/v1/clouddms_resources_pb'
11
+ require 'google/longrunning/operations_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf/timestamp_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/clouddms/v1/clouddms.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.clouddms.v1.ListMigrationJobsRequest" do
17
+ optional :parent, :string, 1
18
+ optional :page_size, :int32, 2
19
+ optional :page_token, :string, 3
20
+ optional :filter, :string, 4
21
+ optional :order_by, :string, 5
22
+ end
23
+ add_message "google.cloud.clouddms.v1.ListMigrationJobsResponse" do
24
+ repeated :migration_jobs, :message, 1, "google.cloud.clouddms.v1.MigrationJob"
25
+ optional :next_page_token, :string, 2
26
+ repeated :unreachable, :string, 3
27
+ end
28
+ add_message "google.cloud.clouddms.v1.GetMigrationJobRequest" do
29
+ optional :name, :string, 1
30
+ end
31
+ add_message "google.cloud.clouddms.v1.CreateMigrationJobRequest" do
32
+ optional :parent, :string, 1
33
+ optional :migration_job_id, :string, 2
34
+ optional :migration_job, :message, 3, "google.cloud.clouddms.v1.MigrationJob"
35
+ optional :request_id, :string, 4
36
+ end
37
+ add_message "google.cloud.clouddms.v1.UpdateMigrationJobRequest" do
38
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
39
+ optional :migration_job, :message, 2, "google.cloud.clouddms.v1.MigrationJob"
40
+ optional :request_id, :string, 3
41
+ end
42
+ add_message "google.cloud.clouddms.v1.DeleteMigrationJobRequest" do
43
+ optional :name, :string, 1
44
+ optional :request_id, :string, 2
45
+ optional :force, :bool, 3
46
+ end
47
+ add_message "google.cloud.clouddms.v1.StartMigrationJobRequest" do
48
+ optional :name, :string, 1
49
+ end
50
+ add_message "google.cloud.clouddms.v1.StopMigrationJobRequest" do
51
+ optional :name, :string, 1
52
+ end
53
+ add_message "google.cloud.clouddms.v1.ResumeMigrationJobRequest" do
54
+ optional :name, :string, 1
55
+ end
56
+ add_message "google.cloud.clouddms.v1.PromoteMigrationJobRequest" do
57
+ optional :name, :string, 1
58
+ end
59
+ add_message "google.cloud.clouddms.v1.VerifyMigrationJobRequest" do
60
+ optional :name, :string, 1
61
+ end
62
+ add_message "google.cloud.clouddms.v1.RestartMigrationJobRequest" do
63
+ optional :name, :string, 1
64
+ end
65
+ add_message "google.cloud.clouddms.v1.GenerateSshScriptRequest" do
66
+ optional :migration_job, :string, 1
67
+ optional :vm, :string, 2
68
+ optional :vm_port, :int32, 3
69
+ oneof :vm_config do
70
+ optional :vm_creation_config, :message, 100, "google.cloud.clouddms.v1.VmCreationConfig"
71
+ optional :vm_selection_config, :message, 101, "google.cloud.clouddms.v1.VmSelectionConfig"
72
+ end
73
+ end
74
+ add_message "google.cloud.clouddms.v1.VmCreationConfig" do
75
+ optional :vm_machine_type, :string, 1
76
+ optional :vm_zone, :string, 2
77
+ optional :subnet, :string, 3
78
+ end
79
+ add_message "google.cloud.clouddms.v1.VmSelectionConfig" do
80
+ optional :vm_zone, :string, 1
81
+ end
82
+ add_message "google.cloud.clouddms.v1.SshScript" do
83
+ optional :script, :string, 1
84
+ end
85
+ add_message "google.cloud.clouddms.v1.ListConnectionProfilesRequest" do
86
+ optional :parent, :string, 1
87
+ optional :page_size, :int32, 2
88
+ optional :page_token, :string, 3
89
+ optional :filter, :string, 4
90
+ optional :order_by, :string, 5
91
+ end
92
+ add_message "google.cloud.clouddms.v1.ListConnectionProfilesResponse" do
93
+ repeated :connection_profiles, :message, 1, "google.cloud.clouddms.v1.ConnectionProfile"
94
+ optional :next_page_token, :string, 2
95
+ repeated :unreachable, :string, 3
96
+ end
97
+ add_message "google.cloud.clouddms.v1.GetConnectionProfileRequest" do
98
+ optional :name, :string, 1
99
+ end
100
+ add_message "google.cloud.clouddms.v1.CreateConnectionProfileRequest" do
101
+ optional :parent, :string, 1
102
+ optional :connection_profile_id, :string, 2
103
+ optional :connection_profile, :message, 3, "google.cloud.clouddms.v1.ConnectionProfile"
104
+ optional :request_id, :string, 4
105
+ end
106
+ add_message "google.cloud.clouddms.v1.UpdateConnectionProfileRequest" do
107
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
108
+ optional :connection_profile, :message, 2, "google.cloud.clouddms.v1.ConnectionProfile"
109
+ optional :request_id, :string, 3
110
+ end
111
+ add_message "google.cloud.clouddms.v1.DeleteConnectionProfileRequest" do
112
+ optional :name, :string, 1
113
+ optional :request_id, :string, 2
114
+ optional :force, :bool, 3
115
+ end
116
+ add_message "google.cloud.clouddms.v1.OperationMetadata" do
117
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
118
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
119
+ optional :target, :string, 3
120
+ optional :verb, :string, 4
121
+ optional :status_message, :string, 5
122
+ optional :requested_cancellation, :bool, 6
123
+ optional :api_version, :string, 7
124
+ end
125
+ end
126
+ end
127
+
128
+ module Google
129
+ module Cloud
130
+ module CloudDMS
131
+ module V1
132
+ ListMigrationJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListMigrationJobsRequest").msgclass
133
+ ListMigrationJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListMigrationJobsResponse").msgclass
134
+ GetMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.GetMigrationJobRequest").msgclass
135
+ CreateMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CreateMigrationJobRequest").msgclass
136
+ UpdateMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.UpdateMigrationJobRequest").msgclass
137
+ DeleteMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DeleteMigrationJobRequest").msgclass
138
+ StartMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.StartMigrationJobRequest").msgclass
139
+ StopMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.StopMigrationJobRequest").msgclass
140
+ ResumeMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ResumeMigrationJobRequest").msgclass
141
+ PromoteMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.PromoteMigrationJobRequest").msgclass
142
+ VerifyMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.VerifyMigrationJobRequest").msgclass
143
+ RestartMigrationJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.RestartMigrationJobRequest").msgclass
144
+ GenerateSshScriptRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.GenerateSshScriptRequest").msgclass
145
+ VmCreationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.VmCreationConfig").msgclass
146
+ VmSelectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.VmSelectionConfig").msgclass
147
+ SshScript = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SshScript").msgclass
148
+ ListConnectionProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListConnectionProfilesRequest").msgclass
149
+ ListConnectionProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListConnectionProfilesResponse").msgclass
150
+ GetConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.GetConnectionProfileRequest").msgclass
151
+ CreateConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CreateConnectionProfileRequest").msgclass
152
+ UpdateConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.UpdateConnectionProfileRequest").msgclass
153
+ DeleteConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DeleteConnectionProfileRequest").msgclass
154
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.OperationMetadata").msgclass
155
+ end
156
+ end
157
+ end
158
+ end
@@ -0,0 +1,268 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/clouddms/v1/clouddms_resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/protobuf/wrappers_pb'
11
+ require 'google/rpc/status_pb'
12
+ require 'google/api/annotations_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/clouddms/v1/clouddms_resources.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.clouddms.v1.SslConfig" do
16
+ optional :type, :enum, 1, "google.cloud.clouddms.v1.SslConfig.SslType"
17
+ optional :client_key, :string, 2
18
+ optional :client_certificate, :string, 3
19
+ optional :ca_certificate, :string, 4
20
+ end
21
+ add_enum "google.cloud.clouddms.v1.SslConfig.SslType" do
22
+ value :SSL_TYPE_UNSPECIFIED, 0
23
+ value :SERVER_ONLY, 1
24
+ value :SERVER_CLIENT, 2
25
+ end
26
+ add_message "google.cloud.clouddms.v1.MySqlConnectionProfile" do
27
+ optional :host, :string, 1
28
+ optional :port, :int32, 2
29
+ optional :username, :string, 3
30
+ optional :password, :string, 4
31
+ optional :password_set, :bool, 5
32
+ optional :ssl, :message, 6, "google.cloud.clouddms.v1.SslConfig"
33
+ optional :cloud_sql_id, :string, 7
34
+ end
35
+ add_message "google.cloud.clouddms.v1.PostgreSqlConnectionProfile" do
36
+ optional :host, :string, 1
37
+ optional :port, :int32, 2
38
+ optional :username, :string, 3
39
+ optional :password, :string, 4
40
+ optional :password_set, :bool, 5
41
+ optional :ssl, :message, 6, "google.cloud.clouddms.v1.SslConfig"
42
+ optional :cloud_sql_id, :string, 7
43
+ end
44
+ add_message "google.cloud.clouddms.v1.CloudSqlConnectionProfile" do
45
+ optional :cloud_sql_id, :string, 1
46
+ optional :settings, :message, 2, "google.cloud.clouddms.v1.CloudSqlSettings"
47
+ optional :private_ip, :string, 3
48
+ optional :public_ip, :string, 4
49
+ end
50
+ add_message "google.cloud.clouddms.v1.SqlAclEntry" do
51
+ optional :value, :string, 1
52
+ optional :label, :string, 3
53
+ oneof :expiration do
54
+ optional :expire_time, :message, 10, "google.protobuf.Timestamp"
55
+ optional :ttl, :message, 11, "google.protobuf.Duration"
56
+ end
57
+ end
58
+ add_message "google.cloud.clouddms.v1.SqlIpConfig" do
59
+ optional :enable_ipv4, :message, 1, "google.protobuf.BoolValue"
60
+ optional :private_network, :string, 2
61
+ optional :require_ssl, :message, 3, "google.protobuf.BoolValue"
62
+ repeated :authorized_networks, :message, 4, "google.cloud.clouddms.v1.SqlAclEntry"
63
+ end
64
+ add_message "google.cloud.clouddms.v1.CloudSqlSettings" do
65
+ optional :database_version, :enum, 1, "google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion"
66
+ map :user_labels, :string, :string, 2
67
+ optional :tier, :string, 3
68
+ optional :storage_auto_resize_limit, :message, 4, "google.protobuf.Int64Value"
69
+ optional :activation_policy, :enum, 5, "google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy"
70
+ optional :ip_config, :message, 6, "google.cloud.clouddms.v1.SqlIpConfig"
71
+ optional :auto_storage_increase, :message, 7, "google.protobuf.BoolValue"
72
+ map :database_flags, :string, :string, 8
73
+ optional :data_disk_type, :enum, 9, "google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType"
74
+ optional :data_disk_size_gb, :message, 10, "google.protobuf.Int64Value"
75
+ optional :zone, :string, 11
76
+ optional :source_id, :string, 12
77
+ optional :root_password, :string, 13
78
+ optional :root_password_set, :bool, 14
79
+ optional :collation, :string, 15
80
+ end
81
+ add_enum "google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy" do
82
+ value :SQL_ACTIVATION_POLICY_UNSPECIFIED, 0
83
+ value :ALWAYS, 1
84
+ value :NEVER, 2
85
+ end
86
+ add_enum "google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType" do
87
+ value :SQL_DATA_DISK_TYPE_UNSPECIFIED, 0
88
+ value :PD_SSD, 1
89
+ value :PD_HDD, 2
90
+ end
91
+ add_enum "google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion" do
92
+ value :SQL_DATABASE_VERSION_UNSPECIFIED, 0
93
+ value :MYSQL_5_6, 1
94
+ value :MYSQL_5_7, 2
95
+ value :POSTGRES_9_6, 3
96
+ value :POSTGRES_11, 4
97
+ value :POSTGRES_10, 5
98
+ value :MYSQL_8_0, 6
99
+ value :POSTGRES_12, 7
100
+ value :POSTGRES_13, 8
101
+ end
102
+ add_message "google.cloud.clouddms.v1.StaticIpConnectivity" do
103
+ end
104
+ add_message "google.cloud.clouddms.v1.ReverseSshConnectivity" do
105
+ optional :vm_ip, :string, 1
106
+ optional :vm_port, :int32, 2
107
+ optional :vm, :string, 3
108
+ optional :vpc, :string, 4
109
+ end
110
+ add_message "google.cloud.clouddms.v1.VpcPeeringConnectivity" do
111
+ optional :vpc, :string, 1
112
+ end
113
+ add_message "google.cloud.clouddms.v1.DatabaseType" do
114
+ optional :provider, :enum, 1, "google.cloud.clouddms.v1.DatabaseProvider"
115
+ optional :engine, :enum, 2, "google.cloud.clouddms.v1.DatabaseEngine"
116
+ end
117
+ add_message "google.cloud.clouddms.v1.MigrationJob" do
118
+ optional :name, :string, 1
119
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
120
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
121
+ map :labels, :string, :string, 4
122
+ optional :display_name, :string, 5
123
+ optional :state, :enum, 6, "google.cloud.clouddms.v1.MigrationJob.State"
124
+ optional :phase, :enum, 7, "google.cloud.clouddms.v1.MigrationJob.Phase"
125
+ optional :type, :enum, 8, "google.cloud.clouddms.v1.MigrationJob.Type"
126
+ optional :dump_path, :string, 9
127
+ optional :source, :string, 10
128
+ optional :destination, :string, 11
129
+ optional :duration, :message, 12, "google.protobuf.Duration"
130
+ optional :error, :message, 13, "google.rpc.Status"
131
+ optional :source_database, :message, 14, "google.cloud.clouddms.v1.DatabaseType"
132
+ optional :destination_database, :message, 15, "google.cloud.clouddms.v1.DatabaseType"
133
+ optional :end_time, :message, 16, "google.protobuf.Timestamp"
134
+ oneof :connectivity do
135
+ optional :reverse_ssh_connectivity, :message, 101, "google.cloud.clouddms.v1.ReverseSshConnectivity"
136
+ optional :vpc_peering_connectivity, :message, 102, "google.cloud.clouddms.v1.VpcPeeringConnectivity"
137
+ optional :static_ip_connectivity, :message, 103, "google.cloud.clouddms.v1.StaticIpConnectivity"
138
+ end
139
+ end
140
+ add_enum "google.cloud.clouddms.v1.MigrationJob.State" do
141
+ value :STATE_UNSPECIFIED, 0
142
+ value :MAINTENANCE, 1
143
+ value :DRAFT, 2
144
+ value :CREATING, 3
145
+ value :NOT_STARTED, 4
146
+ value :RUNNING, 5
147
+ value :FAILED, 6
148
+ value :COMPLETED, 7
149
+ value :DELETING, 8
150
+ value :STOPPING, 9
151
+ value :STOPPED, 10
152
+ value :DELETED, 11
153
+ value :UPDATING, 12
154
+ value :STARTING, 13
155
+ value :RESTARTING, 14
156
+ value :RESUMING, 15
157
+ end
158
+ add_enum "google.cloud.clouddms.v1.MigrationJob.Phase" do
159
+ value :PHASE_UNSPECIFIED, 0
160
+ value :FULL_DUMP, 1
161
+ value :CDC, 2
162
+ value :PROMOTE_IN_PROGRESS, 3
163
+ value :WAITING_FOR_SOURCE_WRITES_TO_STOP, 4
164
+ value :PREPARING_THE_DUMP, 5
165
+ end
166
+ add_enum "google.cloud.clouddms.v1.MigrationJob.Type" do
167
+ value :TYPE_UNSPECIFIED, 0
168
+ value :ONE_TIME, 1
169
+ value :CONTINUOUS, 2
170
+ end
171
+ add_message "google.cloud.clouddms.v1.ConnectionProfile" do
172
+ optional :name, :string, 1
173
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
174
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
175
+ map :labels, :string, :string, 4
176
+ optional :state, :enum, 5, "google.cloud.clouddms.v1.ConnectionProfile.State"
177
+ optional :display_name, :string, 6
178
+ optional :error, :message, 7, "google.rpc.Status"
179
+ optional :provider, :enum, 8, "google.cloud.clouddms.v1.DatabaseProvider"
180
+ oneof :connection_profile do
181
+ optional :mysql, :message, 100, "google.cloud.clouddms.v1.MySqlConnectionProfile"
182
+ optional :postgresql, :message, 101, "google.cloud.clouddms.v1.PostgreSqlConnectionProfile"
183
+ optional :cloudsql, :message, 102, "google.cloud.clouddms.v1.CloudSqlConnectionProfile"
184
+ end
185
+ end
186
+ add_enum "google.cloud.clouddms.v1.ConnectionProfile.State" do
187
+ value :STATE_UNSPECIFIED, 0
188
+ value :DRAFT, 1
189
+ value :CREATING, 2
190
+ value :READY, 3
191
+ value :UPDATING, 4
192
+ value :DELETING, 5
193
+ value :DELETED, 6
194
+ value :FAILED, 7
195
+ end
196
+ add_message "google.cloud.clouddms.v1.MigrationJobVerificationError" do
197
+ optional :error_code, :enum, 1, "google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode"
198
+ optional :error_message, :string, 2
199
+ optional :error_detail_message, :string, 3
200
+ end
201
+ add_enum "google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode" do
202
+ value :ERROR_CODE_UNSPECIFIED, 0
203
+ value :CONNECTION_FAILURE, 1
204
+ value :AUTHENTICATION_FAILURE, 2
205
+ value :INVALID_CONNECTION_PROFILE_CONFIG, 3
206
+ value :VERSION_INCOMPATIBILITY, 4
207
+ value :CONNECTION_PROFILE_TYPES_INCOMPATIBILITY, 5
208
+ value :NO_PGLOGICAL_INSTALLED, 7
209
+ value :PGLOGICAL_NODE_ALREADY_EXISTS, 8
210
+ value :INVALID_WAL_LEVEL, 9
211
+ value :INVALID_SHARED_PRELOAD_LIBRARY, 10
212
+ value :INSUFFICIENT_MAX_REPLICATION_SLOTS, 11
213
+ value :INSUFFICIENT_MAX_WAL_SENDERS, 12
214
+ value :INSUFFICIENT_MAX_WORKER_PROCESSES, 13
215
+ value :UNSUPPORTED_EXTENSIONS, 14
216
+ value :UNSUPPORTED_MIGRATION_TYPE, 15
217
+ value :INVALID_RDS_LOGICAL_REPLICATION, 16
218
+ value :UNSUPPORTED_GTID_MODE, 17
219
+ value :UNSUPPORTED_TABLE_DEFINITION, 18
220
+ value :UNSUPPORTED_DEFINER, 19
221
+ value :CANT_RESTART_RUNNING_MIGRATION, 21
222
+ end
223
+ add_enum "google.cloud.clouddms.v1.DatabaseEngine" do
224
+ value :DATABASE_ENGINE_UNSPECIFIED, 0
225
+ value :MYSQL, 1
226
+ value :POSTGRESQL, 2
227
+ end
228
+ add_enum "google.cloud.clouddms.v1.DatabaseProvider" do
229
+ value :DATABASE_PROVIDER_UNSPECIFIED, 0
230
+ value :CLOUDSQL, 1
231
+ value :RDS, 2
232
+ end
233
+ end
234
+ end
235
+
236
+ module Google
237
+ module Cloud
238
+ module CloudDMS
239
+ module V1
240
+ SslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SslConfig").msgclass
241
+ SslConfig::SslType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SslConfig.SslType").enummodule
242
+ MySqlConnectionProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MySqlConnectionProfile").msgclass
243
+ PostgreSqlConnectionProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.PostgreSqlConnectionProfile").msgclass
244
+ CloudSqlConnectionProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CloudSqlConnectionProfile").msgclass
245
+ SqlAclEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SqlAclEntry").msgclass
246
+ SqlIpConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SqlIpConfig").msgclass
247
+ CloudSqlSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CloudSqlSettings").msgclass
248
+ CloudSqlSettings::SqlActivationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy").enummodule
249
+ CloudSqlSettings::SqlDataDiskType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType").enummodule
250
+ CloudSqlSettings::SqlDatabaseVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion").enummodule
251
+ StaticIpConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.StaticIpConnectivity").msgclass
252
+ ReverseSshConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ReverseSshConnectivity").msgclass
253
+ VpcPeeringConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.VpcPeeringConnectivity").msgclass
254
+ DatabaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DatabaseType").msgclass
255
+ MigrationJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MigrationJob").msgclass
256
+ MigrationJob::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MigrationJob.State").enummodule
257
+ MigrationJob::Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MigrationJob.Phase").enummodule
258
+ MigrationJob::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MigrationJob.Type").enummodule
259
+ ConnectionProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ConnectionProfile").msgclass
260
+ ConnectionProfile::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ConnectionProfile.State").enummodule
261
+ MigrationJobVerificationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MigrationJobVerificationError").msgclass
262
+ MigrationJobVerificationError::ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.MigrationJobVerificationError.ErrorCode").enummodule
263
+ DatabaseEngine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DatabaseEngine").enummodule
264
+ DatabaseProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DatabaseProvider").enummodule
265
+ end
266
+ end
267
+ end
268
+ end