google-cloud-cloud_dms-v1 0.1.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -155,13 +158,11 @@ module Google
155
158
  # # Call the list_operations method.
156
159
  # result = client.list_operations request
157
160
  #
158
- # # The returned object is of type Gapic::PagedEnumerable. You can
159
- # # iterate over all elements by calling #each, and the enumerable
160
- # # will lazily make API calls to fetch subsequent pages. Other
161
- # # methods are also available for managing paging directly.
162
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
163
164
  # # Each element is of type ::Google::Longrunning::Operation.
164
- # p response
165
+ # p item
165
166
  # end
166
167
  #
167
168
  def list_operations request, options = nil
@@ -250,14 +251,14 @@ module Google
250
251
  # # Call the get_operation method.
251
252
  # result = client.get_operation request
252
253
  #
253
- # # The returned object is of type Gapic::Operation. You can use this
254
- # # object to check the status of an operation, cancel it, or wait
255
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
256
257
  # result.wait_until_done! timeout: 60
257
258
  # if result.response?
258
259
  # p result.response
259
260
  # else
260
- # puts "Error!"
261
+ # puts "No response received."
261
262
  # end
262
263
  #
263
264
  def get_operation request, options = nil
@@ -537,14 +538,14 @@ module Google
537
538
  # # Call the wait_operation method.
538
539
  # result = client.wait_operation request
539
540
  #
540
- # # The returned object is of type Gapic::Operation. You can use this
541
- # # object to check the status of an operation, cancel it, or wait
542
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
543
544
  # result.wait_until_done! timeout: 60
544
545
  # if result.response?
545
546
  # p result.response
546
547
  # else
547
- # puts "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil
@@ -619,9 +620,9 @@ module Google
619
620
  # * (`String`) The path to a service account key file in JSON format
620
621
  # * (`Hash`) A service account key as a Hash
621
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
622
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
623
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
624
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
625
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
626
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
627
628
  # * (`nil`) indicating no credentials
@@ -43,6 +43,25 @@ module Google
43
43
  "projects/#{project}/locations/#{location}/connectionProfiles/#{connection_profile}"
44
44
  end
45
45
 
46
+ ##
47
+ # Create a fully-qualified ConversionWorkspace resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param conversion_workspace [String]
56
+ #
57
+ # @return [::String]
58
+ def conversion_workspace_path project:, location:, conversion_workspace:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/conversionWorkspaces/#{conversion_workspace}"
63
+ end
64
+
46
65
  ##
47
66
  # Create a fully-qualified Location resource string.
48
67
  #
@@ -79,6 +98,42 @@ module Google
79
98
  "projects/#{project}/locations/#{location}/migrationJobs/#{migration_job}"
80
99
  end
81
100
 
101
+ ##
102
+ # Create a fully-qualified Networks resource string.
103
+ #
104
+ # The resource will be in the following format:
105
+ #
106
+ # `projects/{project}/global/networks/{network}`
107
+ #
108
+ # @param project [String]
109
+ # @param network [String]
110
+ #
111
+ # @return [::String]
112
+ def networks_path project:, network:
113
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
114
+
115
+ "projects/#{project}/global/networks/#{network}"
116
+ end
117
+
118
+ ##
119
+ # Create a fully-qualified PrivateConnection resource string.
120
+ #
121
+ # The resource will be in the following format:
122
+ #
123
+ # `projects/{project}/locations/{location}/privateConnections/{private_connection}`
124
+ #
125
+ # @param project [String]
126
+ # @param location [String]
127
+ # @param private_connection [String]
128
+ #
129
+ # @return [::String]
130
+ def private_connection_path project:, location:, private_connection:
131
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
132
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
133
+
134
+ "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}"
135
+ end
136
+
82
137
  extend self
83
138
  end
84
139
  end
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Database Migration service
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/cloud_dms/v1/data_migration_service"
40
40
  # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudDMS
23
23
  module V1
24
- VERSION = "0.1.5"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,7 +23,9 @@ module Google
23
23
  module Cloud
24
24
  module CloudDMS
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
+ #
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
27
29
  #
28
30
  # require "google/cloud/cloud_dms/v1"
29
31
  # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
@@ -1,15 +1,17 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/clouddms/v1/clouddms.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/cloud/clouddms/v1/clouddms_resources_pb'
11
+ require 'google/cloud/clouddms/v1/conversionworkspace_resources_pb'
9
12
  require 'google/longrunning/operations_pb'
10
13
  require 'google/protobuf/field_mask_pb'
11
14
  require 'google/protobuf/timestamp_pb'
12
- require 'google/protobuf'
13
15
 
14
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
17
  add_file("google/cloud/clouddms/v1/clouddms.proto", :syntax => :proto3) do
@@ -102,17 +104,47 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
102
104
  optional :connection_profile_id, :string, 2
103
105
  optional :connection_profile, :message, 3, "google.cloud.clouddms.v1.ConnectionProfile"
104
106
  optional :request_id, :string, 4
107
+ optional :validate_only, :bool, 5
108
+ optional :skip_validation, :bool, 6
105
109
  end
106
110
  add_message "google.cloud.clouddms.v1.UpdateConnectionProfileRequest" do
107
111
  optional :update_mask, :message, 1, "google.protobuf.FieldMask"
108
112
  optional :connection_profile, :message, 2, "google.cloud.clouddms.v1.ConnectionProfile"
109
113
  optional :request_id, :string, 3
114
+ optional :validate_only, :bool, 4
115
+ optional :skip_validation, :bool, 5
110
116
  end
111
117
  add_message "google.cloud.clouddms.v1.DeleteConnectionProfileRequest" do
112
118
  optional :name, :string, 1
113
119
  optional :request_id, :string, 2
114
120
  optional :force, :bool, 3
115
121
  end
122
+ add_message "google.cloud.clouddms.v1.CreatePrivateConnectionRequest" do
123
+ optional :parent, :string, 1
124
+ optional :private_connection_id, :string, 2
125
+ optional :private_connection, :message, 3, "google.cloud.clouddms.v1.PrivateConnection"
126
+ optional :request_id, :string, 4
127
+ optional :skip_validation, :bool, 5
128
+ end
129
+ add_message "google.cloud.clouddms.v1.ListPrivateConnectionsRequest" do
130
+ optional :parent, :string, 1
131
+ optional :page_size, :int32, 2
132
+ optional :page_token, :string, 3
133
+ optional :filter, :string, 4
134
+ optional :order_by, :string, 5
135
+ end
136
+ add_message "google.cloud.clouddms.v1.ListPrivateConnectionsResponse" do
137
+ repeated :private_connections, :message, 1, "google.cloud.clouddms.v1.PrivateConnection"
138
+ optional :next_page_token, :string, 2
139
+ repeated :unreachable, :string, 3
140
+ end
141
+ add_message "google.cloud.clouddms.v1.DeletePrivateConnectionRequest" do
142
+ optional :name, :string, 1
143
+ optional :request_id, :string, 2
144
+ end
145
+ add_message "google.cloud.clouddms.v1.GetPrivateConnectionRequest" do
146
+ optional :name, :string, 1
147
+ end
116
148
  add_message "google.cloud.clouddms.v1.OperationMetadata" do
117
149
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
118
150
  optional :end_time, :message, 2, "google.protobuf.Timestamp"
@@ -122,6 +154,116 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
122
154
  optional :requested_cancellation, :bool, 6
123
155
  optional :api_version, :string, 7
124
156
  end
157
+ add_message "google.cloud.clouddms.v1.ListConversionWorkspacesRequest" do
158
+ optional :parent, :string, 1
159
+ optional :page_size, :int32, 2
160
+ optional :page_token, :string, 3
161
+ optional :filter, :string, 4
162
+ end
163
+ add_message "google.cloud.clouddms.v1.ListConversionWorkspacesResponse" do
164
+ repeated :conversion_workspaces, :message, 1, "google.cloud.clouddms.v1.ConversionWorkspace"
165
+ optional :next_page_token, :string, 2
166
+ repeated :unreachable, :string, 3
167
+ end
168
+ add_message "google.cloud.clouddms.v1.GetConversionWorkspaceRequest" do
169
+ optional :name, :string, 1
170
+ end
171
+ add_message "google.cloud.clouddms.v1.CreateConversionWorkspaceRequest" do
172
+ optional :parent, :string, 1
173
+ optional :conversion_workspace_id, :string, 2
174
+ optional :conversion_workspace, :message, 3, "google.cloud.clouddms.v1.ConversionWorkspace"
175
+ optional :request_id, :string, 4
176
+ end
177
+ add_message "google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest" do
178
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
179
+ optional :conversion_workspace, :message, 2, "google.cloud.clouddms.v1.ConversionWorkspace"
180
+ optional :request_id, :string, 3
181
+ end
182
+ add_message "google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest" do
183
+ optional :name, :string, 1
184
+ optional :request_id, :string, 2
185
+ end
186
+ add_message "google.cloud.clouddms.v1.CommitConversionWorkspaceRequest" do
187
+ optional :name, :string, 1
188
+ optional :commit_name, :string, 2
189
+ end
190
+ add_message "google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest" do
191
+ optional :name, :string, 1
192
+ end
193
+ add_message "google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest" do
194
+ optional :name, :string, 1
195
+ optional :filter, :string, 2
196
+ oneof :destination do
197
+ optional :connection_profile, :string, 100
198
+ end
199
+ end
200
+ add_message "google.cloud.clouddms.v1.SeedConversionWorkspaceRequest" do
201
+ optional :name, :string, 1
202
+ optional :auto_commit, :bool, 2
203
+ oneof :seed_from do
204
+ optional :source_connection_profile, :string, 100
205
+ optional :destination_connection_profile, :string, 101
206
+ end
207
+ end
208
+ add_message "google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest" do
209
+ optional :name, :string, 1
210
+ optional :auto_commit, :bool, 4
211
+ optional :filter, :string, 5
212
+ end
213
+ add_message "google.cloud.clouddms.v1.ImportMappingRulesRequest" do
214
+ optional :parent, :string, 1
215
+ optional :rules_format, :enum, 2, "google.cloud.clouddms.v1.ImportRulesFileFormat"
216
+ repeated :rules_files, :message, 3, "google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile"
217
+ optional :auto_commit, :bool, 6
218
+ end
219
+ add_message "google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile" do
220
+ optional :rules_source_filename, :string, 1
221
+ optional :rules_content, :string, 2
222
+ end
223
+ add_message "google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest" do
224
+ optional :conversion_workspace, :string, 1
225
+ optional :page_size, :int32, 3
226
+ optional :page_token, :string, 4
227
+ optional :tree, :enum, 6, "google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType"
228
+ optional :uncommitted, :bool, 11
229
+ optional :commit_id, :string, 12
230
+ optional :filter, :string, 13
231
+ end
232
+ add_enum "google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType" do
233
+ value :DB_TREE_TYPE_UNSPECIFIED, 0
234
+ value :SOURCE_TREE, 1
235
+ value :DRAFT_TREE, 2
236
+ value :DESTINATION_TREE, 3
237
+ end
238
+ add_message "google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse" do
239
+ repeated :database_entities, :message, 1, "google.cloud.clouddms.v1.DatabaseEntity"
240
+ optional :next_page_token, :string, 2
241
+ end
242
+ add_message "google.cloud.clouddms.v1.SearchBackgroundJobsRequest" do
243
+ optional :conversion_workspace, :string, 1
244
+ optional :return_most_recent_per_job_type, :bool, 2
245
+ optional :max_size, :int32, 3
246
+ optional :completed_until_time, :message, 4, "google.protobuf.Timestamp"
247
+ end
248
+ add_message "google.cloud.clouddms.v1.SearchBackgroundJobsResponse" do
249
+ repeated :jobs, :message, 1, "google.cloud.clouddms.v1.BackgroundJobLogEntry"
250
+ end
251
+ add_message "google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest" do
252
+ optional :conversion_workspace, :string, 1
253
+ optional :commit_id, :string, 2
254
+ end
255
+ add_message "google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse" do
256
+ repeated :revisions, :message, 1, "google.cloud.clouddms.v1.ConversionWorkspace"
257
+ end
258
+ add_message "google.cloud.clouddms.v1.FetchStaticIpsRequest" do
259
+ optional :name, :string, 1
260
+ optional :page_size, :int32, 2
261
+ optional :page_token, :string, 3
262
+ end
263
+ add_message "google.cloud.clouddms.v1.FetchStaticIpsResponse" do
264
+ repeated :static_ips, :string, 1
265
+ optional :next_page_token, :string, 2
266
+ end
125
267
  end
126
268
  end
127
269
 
@@ -151,7 +293,34 @@ module Google
151
293
  CreateConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CreateConnectionProfileRequest").msgclass
152
294
  UpdateConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.UpdateConnectionProfileRequest").msgclass
153
295
  DeleteConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DeleteConnectionProfileRequest").msgclass
296
+ CreatePrivateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CreatePrivateConnectionRequest").msgclass
297
+ ListPrivateConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListPrivateConnectionsRequest").msgclass
298
+ ListPrivateConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListPrivateConnectionsResponse").msgclass
299
+ DeletePrivateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DeletePrivateConnectionRequest").msgclass
300
+ GetPrivateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.GetPrivateConnectionRequest").msgclass
154
301
  OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.OperationMetadata").msgclass
302
+ ListConversionWorkspacesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListConversionWorkspacesRequest").msgclass
303
+ ListConversionWorkspacesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ListConversionWorkspacesResponse").msgclass
304
+ GetConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.GetConversionWorkspaceRequest").msgclass
305
+ CreateConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CreateConversionWorkspaceRequest").msgclass
306
+ UpdateConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest").msgclass
307
+ DeleteConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest").msgclass
308
+ CommitConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.CommitConversionWorkspaceRequest").msgclass
309
+ RollbackConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.RollbackConversionWorkspaceRequest").msgclass
310
+ ApplyConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ApplyConversionWorkspaceRequest").msgclass
311
+ SeedConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SeedConversionWorkspaceRequest").msgclass
312
+ ConvertConversionWorkspaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest").msgclass
313
+ ImportMappingRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ImportMappingRulesRequest").msgclass
314
+ ImportMappingRulesRequest::RulesFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.ImportMappingRulesRequest.RulesFile").msgclass
315
+ DescribeDatabaseEntitiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest").msgclass
316
+ DescribeDatabaseEntitiesRequest::DBTreeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType").enummodule
317
+ DescribeDatabaseEntitiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse").msgclass
318
+ SearchBackgroundJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SearchBackgroundJobsRequest").msgclass
319
+ SearchBackgroundJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.SearchBackgroundJobsResponse").msgclass
320
+ DescribeConversionWorkspaceRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest").msgclass
321
+ DescribeConversionWorkspaceRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse").msgclass
322
+ FetchStaticIpsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.FetchStaticIpsRequest").msgclass
323
+ FetchStaticIpsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.clouddms.v1.FetchStaticIpsResponse").msgclass
155
324
  end
156
325
  end
157
326
  end