google-cloud-metastore-v1beta 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # 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|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # 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.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # 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.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -50,7 +50,7 @@ module Google
50
50
  #
51
51
  # `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
52
52
  #
53
- # To load this service and instantiate a client:
53
+ # @example Load this service and instantiate a gRPC client
54
54
  #
55
55
  # require "google/cloud/metastore/v1beta/dataproc_metastore"
56
56
  # client = ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/metastore/v1beta/metastore_federation_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -151,6 +153,18 @@ module Google
151
153
  config.endpoint = @config.endpoint
152
154
  end
153
155
 
156
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
157
+ config.credentials = credentials
158
+ config.quota_project = @quota_project_id
159
+ config.endpoint = @config.endpoint
160
+ end
161
+
162
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
163
+ config.credentials = credentials
164
+ config.quota_project = @quota_project_id
165
+ config.endpoint = @config.endpoint
166
+ end
167
+
154
168
  @dataproc_metastore_federation_stub = ::Gapic::ServiceStub.new(
155
169
  ::Google::Cloud::Metastore::V1beta::DataprocMetastoreFederation::Stub,
156
170
  credentials: credentials,
@@ -167,6 +181,20 @@ module Google
167
181
  #
168
182
  attr_reader :operations_client
169
183
 
184
+ ##
185
+ # Get the associated client for mix-in of the Locations.
186
+ #
187
+ # @return [Google::Cloud::Location::Locations::Client]
188
+ #
189
+ attr_reader :location_client
190
+
191
+ ##
192
+ # Get the associated client for mix-in of the IAMPolicy.
193
+ #
194
+ # @return [Google::Iam::V1::IAMPolicy::Client]
195
+ #
196
+ attr_reader :iam_policy_client
197
+
170
198
  # Service calls
171
199
 
172
200
  ##
@@ -188,13 +216,14 @@ module Google
188
216
  # the default parameter values, pass an empty Hash as a request object (see above).
189
217
  #
190
218
  # @param parent [::String]
191
- # Required. The relative resource name of the location of metastore federations
192
- # to list, in the following form:
219
+ # Required. The relative resource name of the location of metastore
220
+ # federations to list, in the following form:
193
221
  # `projects/{project_number}/locations/{location_id}`.
194
222
  # @param page_size [::Integer]
195
- # Optional. The maximum number of federations to return. The response may contain less
196
- # than the maximum number. If unspecified, no more than 500 services are
197
- # returned. The maximum value is 1000; values above 1000 are changed to 1000.
223
+ # Optional. The maximum number of federations to return. The response may
224
+ # contain less than the maximum number. If unspecified, no more than 500
225
+ # services are returned. The maximum value is 1000; values above 1000 are
226
+ # changed to 1000.
198
227
  # @param page_token [::String]
199
228
  # Optional. A page token, received from a previous ListFederationServices
200
229
  # call. Provide this token to retrieve the subsequent page.
@@ -231,13 +260,11 @@ module Google
231
260
  # # Call the list_federations method.
232
261
  # result = client.list_federations request
233
262
  #
234
- # # The returned object is of type Gapic::PagedEnumerable. You can
235
- # # iterate over all elements by calling #each, and the enumerable
236
- # # will lazily make API calls to fetch subsequent pages. Other
237
- # # methods are also available for managing paging directly.
238
- # result.each do |response|
263
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
264
+ # # over elements, and API calls will be issued to fetch pages as needed.
265
+ # result.each do |item|
239
266
  # # Each element is of type ::Google::Cloud::Metastore::V1beta::Federation.
240
- # p response
267
+ # p item
241
268
  # end
242
269
  #
243
270
  def list_federations request, options = nil
@@ -301,8 +328,8 @@ module Google
301
328
  # the default parameter values, pass an empty Hash as a request object (see above).
302
329
  #
303
330
  # @param name [::String]
304
- # Required. The relative resource name of the metastore federation to retrieve,
305
- # in the following form:
331
+ # Required. The relative resource name of the metastore federation to
332
+ # retrieve, in the following form:
306
333
  #
307
334
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
308
335
  #
@@ -389,8 +416,8 @@ module Google
389
416
  # the default parameter values, pass an empty Hash as a request object (see above).
390
417
  #
391
418
  # @param parent [::String]
392
- # Required. The relative resource name of the location in which to create a federation
393
- # service, in the following form:
419
+ # Required. The relative resource name of the location in which to create a
420
+ # federation service, in the following form:
394
421
  #
395
422
  # `projects/{project_number}/locations/{location_id}`.
396
423
  # @param federation_id [::String]
@@ -405,10 +432,10 @@ module Google
405
432
  # ignored. The ID of the created metastore federation must be
406
433
  # provided in the request's `federation_id` field.
407
434
  # @param request_id [::String]
408
- # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
409
- # request if it has completed. The server will ignore subsequent requests
410
- # that provide a duplicate request ID for at least 60 minutes after the first
411
- # request.
435
+ # Optional. A request ID. Specify a unique request ID to allow the server to
436
+ # ignore the request if it has completed. The server will ignore subsequent
437
+ # requests that provide a duplicate request ID for at least 60 minutes after
438
+ # the first request.
412
439
  #
413
440
  # For example, if an initial request times out, followed by another request
414
441
  # with the same request ID, the server ignores the second request to prevent
@@ -438,14 +465,14 @@ module Google
438
465
  # # Call the create_federation method.
439
466
  # result = client.create_federation request
440
467
  #
441
- # # The returned object is of type Gapic::Operation. You can use this
442
- # # object to check the status of an operation, cancel it, or wait
443
- # # for results. Here is how to block until completion:
468
+ # # The returned object is of type Gapic::Operation. You can use it to
469
+ # # check the status of an operation, cancel it, or wait for results.
470
+ # # Here is how to wait for a response.
444
471
  # result.wait_until_done! timeout: 60
445
472
  # if result.response?
446
473
  # p result.response
447
474
  # else
448
- # puts "Error!"
475
+ # puts "No response received."
449
476
  # end
450
477
  #
451
478
  def create_federation request, options = nil
@@ -520,10 +547,10 @@ module Google
520
547
  # The metastore federation's `name` field is used to identify the
521
548
  # metastore service to be updated.
522
549
  # @param request_id [::String]
523
- # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
524
- # request if it has completed. The server will ignore subsequent requests
525
- # that provide a duplicate request ID for at least 60 minutes after the first
526
- # request.
550
+ # Optional. A request ID. Specify a unique request ID to allow the server to
551
+ # ignore the request if it has completed. The server will ignore subsequent
552
+ # requests that provide a duplicate request ID for at least 60 minutes after
553
+ # the first request.
527
554
  #
528
555
  # For example, if an initial request times out, followed by another request
529
556
  # with the same request ID, the server ignores the second request to prevent
@@ -553,14 +580,14 @@ module Google
553
580
  # # Call the update_federation method.
554
581
  # result = client.update_federation request
555
582
  #
556
- # # The returned object is of type Gapic::Operation. You can use this
557
- # # object to check the status of an operation, cancel it, or wait
558
- # # for results. Here is how to block until completion:
583
+ # # The returned object is of type Gapic::Operation. You can use it to
584
+ # # check the status of an operation, cancel it, or wait for results.
585
+ # # Here is how to wait for a response.
559
586
  # result.wait_until_done! timeout: 60
560
587
  # if result.response?
561
588
  # p result.response
562
589
  # else
563
- # puts "Error!"
590
+ # puts "No response received."
564
591
  # end
565
592
  #
566
593
  def update_federation request, options = nil
@@ -629,10 +656,10 @@ module Google
629
656
  #
630
657
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
631
658
  # @param request_id [::String]
632
- # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
633
- # request if it has completed. The server will ignore subsequent requests
634
- # that provide a duplicate request ID for at least 60 minutes after the first
635
- # request.
659
+ # Optional. A request ID. Specify a unique request ID to allow the server to
660
+ # ignore the request if it has completed. The server will ignore subsequent
661
+ # requests that provide a duplicate request ID for at least 60 minutes after
662
+ # the first request.
636
663
  #
637
664
  # For example, if an initial request times out, followed by another request
638
665
  # with the same request ID, the server ignores the second request to prevent
@@ -662,14 +689,14 @@ module Google
662
689
  # # Call the delete_federation method.
663
690
  # result = client.delete_federation request
664
691
  #
665
- # # The returned object is of type Gapic::Operation. You can use this
666
- # # object to check the status of an operation, cancel it, or wait
667
- # # for results. Here is how to block until completion:
692
+ # # The returned object is of type Gapic::Operation. You can use it to
693
+ # # check the status of an operation, cancel it, or wait for results.
694
+ # # Here is how to wait for a response.
668
695
  # result.wait_until_done! timeout: 60
669
696
  # if result.response?
670
697
  # p result.response
671
698
  # else
672
- # puts "Error!"
699
+ # puts "No response received."
673
700
  # end
674
701
  #
675
702
  def delete_federation request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # 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|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # 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.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # 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.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -46,7 +46,7 @@ module Google
46
46
  # form:
47
47
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
48
48
  #
49
- # To load this service and instantiate a client:
49
+ # @example Load this service and instantiate a gRPC client
50
50
  #
51
51
  # require "google/cloud/metastore/v1beta/dataproc_metastore_federation"
52
52
  # client = ::Google::Cloud::Metastore::V1beta::DataprocMetastoreFederation::Client.new
@@ -332,6 +332,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
332
332
  value :MYSQL, 1
333
333
  value :AVRO, 2
334
334
  end
335
+ add_message "google.cloud.metastore.v1beta.RemoveIamPolicyRequest" do
336
+ optional :resource, :string, 1
337
+ optional :asynchronous, :bool, 2
338
+ end
339
+ add_message "google.cloud.metastore.v1beta.RemoveIamPolicyResponse" do
340
+ optional :success, :bool, 1
341
+ end
342
+ add_message "google.cloud.metastore.v1beta.QueryMetadataRequest" do
343
+ optional :service, :string, 1
344
+ optional :query, :string, 2
345
+ end
346
+ add_message "google.cloud.metastore.v1beta.QueryMetadataResponse" do
347
+ optional :result_manifest_uri, :string, 1
348
+ end
349
+ add_message "google.cloud.metastore.v1beta.MoveTableToDatabaseRequest" do
350
+ optional :service, :string, 1
351
+ optional :table_name, :string, 2
352
+ optional :db_name, :string, 3
353
+ optional :destination_db_name, :string, 4
354
+ end
355
+ add_message "google.cloud.metastore.v1beta.MoveTableToDatabaseResponse" do
356
+ end
357
+ add_message "google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest" do
358
+ optional :service, :string, 1
359
+ optional :resource_name, :string, 2
360
+ optional :location_uri, :string, 3
361
+ end
362
+ add_message "google.cloud.metastore.v1beta.AlterMetadataResourceLocationResponse" do
363
+ end
335
364
  end
336
365
  end
337
366
 
@@ -394,6 +423,14 @@ module Google
394
423
  LocationMetadata::HiveMetastoreVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion").msgclass
395
424
  DatabaseDumpSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.DatabaseDumpSpec").msgclass
396
425
  DatabaseDumpSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.DatabaseDumpSpec.Type").enummodule
426
+ RemoveIamPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.RemoveIamPolicyRequest").msgclass
427
+ RemoveIamPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.RemoveIamPolicyResponse").msgclass
428
+ QueryMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.QueryMetadataRequest").msgclass
429
+ QueryMetadataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.QueryMetadataResponse").msgclass
430
+ MoveTableToDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.MoveTableToDatabaseRequest").msgclass
431
+ MoveTableToDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.MoveTableToDatabaseResponse").msgclass
432
+ AlterMetadataResourceLocationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest").msgclass
433
+ AlterMetadataResourceLocationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.AlterMetadataResourceLocationResponse").msgclass
397
434
  end
398
435
  end
399
436
  end
@@ -80,6 +80,17 @@ module Google
80
80
  rpc :CreateBackup, ::Google::Cloud::Metastore::V1beta::CreateBackupRequest, ::Google::Longrunning::Operation
81
81
  # Deletes a single backup.
82
82
  rpc :DeleteBackup, ::Google::Cloud::Metastore::V1beta::DeleteBackupRequest, ::Google::Longrunning::Operation
83
+ # Removes the attached IAM policies for a resource
84
+ rpc :RemoveIamPolicy, ::Google::Cloud::Metastore::V1beta::RemoveIamPolicyRequest, ::Google::Cloud::Metastore::V1beta::RemoveIamPolicyResponse
85
+ # Query DPMS metadata.
86
+ rpc :QueryMetadata, ::Google::Cloud::Metastore::V1beta::QueryMetadataRequest, ::Google::Longrunning::Operation
87
+ # Move a table to another database.
88
+ rpc :MoveTableToDatabase, ::Google::Cloud::Metastore::V1beta::MoveTableToDatabaseRequest, ::Google::Longrunning::Operation
89
+ # Alter metadata resource location. The metadata resource can be a database,
90
+ # table, or partition. This functionality only updates the parent directory
91
+ # for the respective metadata resource and does not transfer any existing
92
+ # data to the new location.
93
+ rpc :AlterMetadataResourceLocation, ::Google::Cloud::Metastore::V1beta::AlterMetadataResourceLocationRequest, ::Google::Longrunning::Operation
83
94
  end
84
95
 
85
96
  Stub = Service.rpc_stub_class
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Metastore
23
23
  module V1beta
24
- VERSION = "0.3.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -24,9 +24,9 @@ module Google
24
24
  module Cloud
25
25
  module Metastore
26
26
  ##
27
- # To load this package, including all its services, and instantiate a client:
27
+ # API client module.
28
28
  #
29
- # @example
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
30
  #
31
31
  # require "google/cloud/metastore/v1beta"
32
32
  # client = ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
@@ -1276,6 +1276,126 @@ module Google
1276
1276
  AVRO = 2
1277
1277
  end
1278
1278
  end
1279
+
1280
+ # Request message for
1281
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#remove_iam_policy DataprocMetastore.RemoveIamPolicy}.
1282
+ # @!attribute [rw] resource
1283
+ # @return [::String]
1284
+ # Required. The relative resource name of the dataplane resource to remove
1285
+ # IAM policy, in the following form:
1286
+ #
1287
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}`
1288
+ # or
1289
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`.
1290
+ # @!attribute [rw] asynchronous
1291
+ # @return [::Boolean]
1292
+ # Optional. Removes IAM policy attached to database or table asynchronously
1293
+ # when it is set. The default is false.
1294
+ class RemoveIamPolicyRequest
1295
+ include ::Google::Protobuf::MessageExts
1296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1297
+ end
1298
+
1299
+ # Response message for
1300
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#remove_iam_policy DataprocMetastore.RemoveIamPolicy}.
1301
+ # @!attribute [rw] success
1302
+ # @return [::Boolean]
1303
+ # True if the policy is successfully removed.
1304
+ class RemoveIamPolicyResponse
1305
+ include ::Google::Protobuf::MessageExts
1306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1307
+ end
1308
+
1309
+ # Request message for
1310
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
1311
+ # @!attribute [rw] service
1312
+ # @return [::String]
1313
+ # Required. The relative resource name of the metastore service to query
1314
+ # metadata, in the following format:
1315
+ #
1316
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}`.
1317
+ # @!attribute [rw] query
1318
+ # @return [::String]
1319
+ # Required. A read-only SQL query to execute against the metadata database.
1320
+ # The query cannot change or mutate the data.
1321
+ class QueryMetadataRequest
1322
+ include ::Google::Protobuf::MessageExts
1323
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1324
+ end
1325
+
1326
+ # Response message for
1327
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
1328
+ # @!attribute [rw] result_manifest_uri
1329
+ # @return [::String]
1330
+ # The manifest URI is link to a JSON instance in Cloud Storage.
1331
+ # This instance manifests immediately along with QueryMetadataResponse. The
1332
+ # content of the URI is not retriable until the long-running operation query
1333
+ # against the metadata finishes.
1334
+ class QueryMetadataResponse
1335
+ include ::Google::Protobuf::MessageExts
1336
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1337
+ end
1338
+
1339
+ # Request message for
1340
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#move_table_to_database DataprocMetastore.MoveTableToDatabase}.
1341
+ # @!attribute [rw] service
1342
+ # @return [::String]
1343
+ # Required. The relative resource name of the metastore service to mutate
1344
+ # metadata, in the following format:
1345
+ #
1346
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}`.
1347
+ # @!attribute [rw] table_name
1348
+ # @return [::String]
1349
+ # Required. The name of the table to be moved.
1350
+ # @!attribute [rw] db_name
1351
+ # @return [::String]
1352
+ # Required. The name of the database where the table resides.
1353
+ # @!attribute [rw] destination_db_name
1354
+ # @return [::String]
1355
+ # Required. The name of the database where the table should be moved.
1356
+ class MoveTableToDatabaseRequest
1357
+ include ::Google::Protobuf::MessageExts
1358
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1359
+ end
1360
+
1361
+ # Response message for
1362
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#move_table_to_database DataprocMetastore.MoveTableToDatabase}.
1363
+ class MoveTableToDatabaseResponse
1364
+ include ::Google::Protobuf::MessageExts
1365
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1366
+ end
1367
+
1368
+ # Request message for
1369
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#alter_metadata_resource_location DataprocMetastore.AlterMetadataResourceLocation}.
1370
+ # @!attribute [rw] service
1371
+ # @return [::String]
1372
+ # Required. The relative resource name of the metastore service to mutate
1373
+ # metadata, in the following format:
1374
+ #
1375
+ # `projects/{project_id}/locations/{location_id}/services/{service_id}`.
1376
+ # @!attribute [rw] resource_name
1377
+ # @return [::String]
1378
+ # Required. The relative metadata resource name in the following format.
1379
+ #
1380
+ # `databases/{database_id}`
1381
+ # or
1382
+ # `databases/{database_id}/tables/{table_id}`
1383
+ # or
1384
+ # `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
1385
+ # @!attribute [rw] location_uri
1386
+ # @return [::String]
1387
+ # Required. The new location URI for the metadata resource.
1388
+ class AlterMetadataResourceLocationRequest
1389
+ include ::Google::Protobuf::MessageExts
1390
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1391
+ end
1392
+
1393
+ # Response message for
1394
+ # {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#alter_metadata_resource_location DataprocMetastore.AlterMetadataResourceLocation}.
1395
+ class AlterMetadataResourceLocationResponse
1396
+ include ::Google::Protobuf::MessageExts
1397
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1398
+ end
1279
1399
  end
1280
1400
  end
1281
1401
  end