google-apis-metastore_v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e882298104f78fad888c8c7512db68b72feab6946586b780d5d0644f5f7086c2
4
- data.tar.gz: 47d60ea330b5e9c98ea15e1b702dd51c41e371a487aa985d6acd5c59f0c81df1
3
+ metadata.gz: 481d0c641a2e23af44034e3d556353bb542f0e729b745f3d627e9218cef19e97
4
+ data.tar.gz: 8bd79cfd64c22961a95c7048274a20b8da1de7a804ee22a39e3ef6d6ba6a7a86
5
5
  SHA512:
6
- metadata.gz: 8f272a9ad62564edfae84fc9320947b5dd3d9423bd9eee72f55acaa7009149d005463b52bd4068dc1c32d6dda594031bae99c7b0d40688a81b2472defb7165a6
7
- data.tar.gz: 00310bf2f1c104034339363ac1a65f70bbd67d120794d70cffff354967109f5af020aa83d1215ced8dd8a384e4cc46bec1a62b843b92574c57710bf5e8f3fbac
6
+ metadata.gz: 177a2dfe6ae06da3f58b3de2f2fd25e9a2dfa6e877b237ba172934827252931c7c05e4cf5d6753fe2a8ce78c576fdd8adcddc93e69054a02704690464066913f
7
+ data.tar.gz: 5f07a4fce89d231654d565f5f63a665338f19abb04ec2c6ac9d4cc3f822ac9e2b490cff608d1e6f719cc53b2f4663060a0d861d386f02777bd970798e707433d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-metastore_v1
2
2
 
3
+ ### v0.8.0 (2023-05-07)
4
+
5
+ * Regenerated from discovery document revision 20230502
6
+
3
7
  ### v0.7.0 (2023-04-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20230420
@@ -22,6 +22,46 @@ module Google
22
22
  module Apis
23
23
  module MetastoreV1
24
24
 
25
+ # Request message for DataprocMetastore.AlterMetadataResourceLocation.
26
+ class AlterMetadataResourceLocationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Required. The new location URI for the metadata resource.
30
+ # Corresponds to the JSON property `locationUri`
31
+ # @return [String]
32
+ attr_accessor :location_uri
33
+
34
+ # Required. The relative metadata resource name in the following format.
35
+ # databases/`database_id` or databases/`database_id`/tables/`table_id` or
36
+ # databases/`database_id`/tables/`table_id`/partitions/`partition_id`
37
+ # Corresponds to the JSON property `resourceName`
38
+ # @return [String]
39
+ attr_accessor :resource_name
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @location_uri = args[:location_uri] if args.key?(:location_uri)
48
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
49
+ end
50
+ end
51
+
52
+ # Response message for DataprocMetastore.AlterMetadataResourceLocation.
53
+ class AlterMetadataResourceLocationResponse
54
+ include Google::Apis::Core::Hashable
55
+
56
+ def initialize(**args)
57
+ update!(**args)
58
+ end
59
+
60
+ # Update properties of this object
61
+ def update!(**args)
62
+ end
63
+ end
64
+
25
65
  # Specifies the audit configuration for a service. The configuration determines
26
66
  # which permission types are logged, and what identities, if any, are exempted
27
67
  # from logging. An AuditConfig must have one or more AuditLogConfigs.If there
@@ -408,6 +448,26 @@ module Google
408
448
  end
409
449
  end
410
450
 
451
+ # Error details in public error message for DataprocMetastore.QueryMetadata.
452
+ class ErrorDetails
453
+ include Google::Apis::Core::Hashable
454
+
455
+ # Additional structured details about this error.Keys define the failure items.
456
+ # Value describes the exception or details of the item.
457
+ # Corresponds to the JSON property `details`
458
+ # @return [Hash<String,String>]
459
+ attr_accessor :details
460
+
461
+ def initialize(**args)
462
+ update!(**args)
463
+ end
464
+
465
+ # Update properties of this object
466
+ def update!(**args)
467
+ @details = args[:details] if args.key?(:details)
468
+ end
469
+ end
470
+
411
471
  # Request message for DataprocMetastore.ExportMetadata.
412
472
  class ExportMetadataRequest
413
473
  include Google::Apis::Core::Hashable
@@ -1092,6 +1152,50 @@ module Google
1092
1152
  end
1093
1153
  end
1094
1154
 
1155
+ # Request message for DataprocMetastore.MoveTableToDatabase.
1156
+ class MoveTableToDatabaseRequest
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # Required. The name of the database where the table resides.
1160
+ # Corresponds to the JSON property `dbName`
1161
+ # @return [String]
1162
+ attr_accessor :db_name
1163
+
1164
+ # Required. The name of the database where the table should be moved.
1165
+ # Corresponds to the JSON property `destinationDbName`
1166
+ # @return [String]
1167
+ attr_accessor :destination_db_name
1168
+
1169
+ # Required. The name of the table to be moved.
1170
+ # Corresponds to the JSON property `tableName`
1171
+ # @return [String]
1172
+ attr_accessor :table_name
1173
+
1174
+ def initialize(**args)
1175
+ update!(**args)
1176
+ end
1177
+
1178
+ # Update properties of this object
1179
+ def update!(**args)
1180
+ @db_name = args[:db_name] if args.key?(:db_name)
1181
+ @destination_db_name = args[:destination_db_name] if args.key?(:destination_db_name)
1182
+ @table_name = args[:table_name] if args.key?(:table_name)
1183
+ end
1184
+ end
1185
+
1186
+ # Response message for DataprocMetastore.MoveTableToDatabase.
1187
+ class MoveTableToDatabaseResponse
1188
+ include Google::Apis::Core::Hashable
1189
+
1190
+ def initialize(**args)
1191
+ update!(**args)
1192
+ end
1193
+
1194
+ # Update properties of this object
1195
+ def update!(**args)
1196
+ end
1197
+ end
1198
+
1095
1199
  # Network configuration for the Dataproc Metastore service.
1096
1200
  class NetworkConfig
1097
1201
  include Google::Apis::Core::Hashable
@@ -1326,6 +1430,48 @@ module Google
1326
1430
  end
1327
1431
  end
1328
1432
 
1433
+ # Request message for DataprocMetastore.QueryMetadata.
1434
+ class QueryMetadataRequest
1435
+ include Google::Apis::Core::Hashable
1436
+
1437
+ # Required. A read-only SQL query to execute against the metadata database. The
1438
+ # query cannot change or mutate the data.
1439
+ # Corresponds to the JSON property `query`
1440
+ # @return [String]
1441
+ attr_accessor :query
1442
+
1443
+ def initialize(**args)
1444
+ update!(**args)
1445
+ end
1446
+
1447
+ # Update properties of this object
1448
+ def update!(**args)
1449
+ @query = args[:query] if args.key?(:query)
1450
+ end
1451
+ end
1452
+
1453
+ # Response message for DataprocMetastore.QueryMetadata.
1454
+ class QueryMetadataResponse
1455
+ include Google::Apis::Core::Hashable
1456
+
1457
+ # The manifest URI is link to a JSON instance in Cloud Storage. This instance
1458
+ # manifests immediately along with QueryMetadataResponse. The content of the URI
1459
+ # is not retriable until the long-running operation query against the metadata
1460
+ # finishes.
1461
+ # Corresponds to the JSON property `resultManifestUri`
1462
+ # @return [String]
1463
+ attr_accessor :result_manifest_uri
1464
+
1465
+ def initialize(**args)
1466
+ update!(**args)
1467
+ end
1468
+
1469
+ # Update properties of this object
1470
+ def update!(**args)
1471
+ @result_manifest_uri = args[:result_manifest_uri] if args.key?(:result_manifest_uri)
1472
+ end
1473
+ end
1474
+
1329
1475
  # The details of a metadata restore operation.
1330
1476
  class Restore
1331
1477
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1
18
18
  # Version of the google-apis-metastore_v1 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230420"
25
+ REVISION = "20230502"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module MetastoreV1
24
24
 
25
+ class AlterMetadataResourceLocationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AlterMetadataResourceLocationResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class AuditConfig
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -88,6 +100,12 @@ module Google
88
100
  include Google::Apis::Core::JsonObjectSupport
89
101
  end
90
102
 
103
+ class ErrorDetails
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
91
109
  class ExportMetadataRequest
92
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
111
 
@@ -196,6 +214,18 @@ module Google
196
214
  include Google::Apis::Core::JsonObjectSupport
197
215
  end
198
216
 
217
+ class MoveTableToDatabaseRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class MoveTableToDatabaseResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
199
229
  class NetworkConfig
200
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
231
 
@@ -220,6 +250,18 @@ module Google
220
250
  include Google::Apis::Core::JsonObjectSupport
221
251
  end
222
252
 
253
+ class QueryMetadataRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class QueryMetadataResponse
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
223
265
  class Restore
224
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
267
 
@@ -280,6 +322,20 @@ module Google
280
322
  include Google::Apis::Core::JsonObjectSupport
281
323
  end
282
324
 
325
+ class AlterMetadataResourceLocationRequest
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :location_uri, as: 'locationUri'
329
+ property :resource_name, as: 'resourceName'
330
+ end
331
+ end
332
+
333
+ class AlterMetadataResourceLocationResponse
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ end
337
+ end
338
+
283
339
  class AuditConfig
284
340
  # @private
285
341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -376,6 +432,13 @@ module Google
376
432
  end
377
433
  end
378
434
 
435
+ class ErrorDetails
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ hash :details, as: 'details'
439
+ end
440
+ end
441
+
379
442
  class ExportMetadataRequest
380
443
  # @private
381
444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -562,6 +625,21 @@ module Google
562
625
  end
563
626
  end
564
627
 
628
+ class MoveTableToDatabaseRequest
629
+ # @private
630
+ class Representation < Google::Apis::Core::JsonRepresentation
631
+ property :db_name, as: 'dbName'
632
+ property :destination_db_name, as: 'destinationDbName'
633
+ property :table_name, as: 'tableName'
634
+ end
635
+ end
636
+
637
+ class MoveTableToDatabaseResponse
638
+ # @private
639
+ class Representation < Google::Apis::Core::JsonRepresentation
640
+ end
641
+ end
642
+
565
643
  class NetworkConfig
566
644
  # @private
567
645
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -607,6 +685,20 @@ module Google
607
685
  end
608
686
  end
609
687
 
688
+ class QueryMetadataRequest
689
+ # @private
690
+ class Representation < Google::Apis::Core::JsonRepresentation
691
+ property :query, as: 'query'
692
+ end
693
+ end
694
+
695
+ class QueryMetadataResponse
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ property :result_manifest_uri, as: 'resultManifestUri'
699
+ end
700
+ end
701
+
610
702
  class Restore
611
703
  # @private
612
704
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -615,6 +615,44 @@ module Google
615
615
  execute_or_queue_command(command, &block)
616
616
  end
617
617
 
618
+ # Alter metadata resource location. The metadata resource can be a database,
619
+ # table, or partition. This functionality only updates the parent directory for
620
+ # the respective metadata resource and does not transfer any existing data to
621
+ # the new location.
622
+ # @param [String] service
623
+ # Required. The relative resource name of the metastore service to mutate
624
+ # metadata, in the following format:projects/`project_id`/locations/`location_id`
625
+ # /services/`service_id`.
626
+ # @param [Google::Apis::MetastoreV1::AlterMetadataResourceLocationRequest] alter_metadata_resource_location_request_object
627
+ # @param [String] fields
628
+ # Selector specifying which fields to include in a partial response.
629
+ # @param [String] quota_user
630
+ # Available to use for quota purposes for server-side applications. Can be any
631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
632
+ # @param [Google::Apis::RequestOptions] options
633
+ # Request-specific options
634
+ #
635
+ # @yield [result, err] Result & error if block supplied
636
+ # @yieldparam result [Google::Apis::MetastoreV1::Operation] parsed result object
637
+ # @yieldparam err [StandardError] error object if request failed
638
+ #
639
+ # @return [Google::Apis::MetastoreV1::Operation]
640
+ #
641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
644
+ def alter_project_location_service_location(service, alter_metadata_resource_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
645
+ command = make_simple_command(:post, 'v1/{+service}:alterLocation', options)
646
+ command.request_representation = Google::Apis::MetastoreV1::AlterMetadataResourceLocationRequest::Representation
647
+ command.request_object = alter_metadata_resource_location_request_object
648
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
649
+ command.response_class = Google::Apis::MetastoreV1::Operation
650
+ command.params['service'] = service unless service.nil?
651
+ command.query['fields'] = fields unless fields.nil?
652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
653
+ execute_or_queue_command(command, &block)
654
+ end
655
+
618
656
  # Creates a metastore service in a project and location.
619
657
  # @param [String] parent
620
658
  # Required. The relative resource name of the location in which to create a
@@ -871,6 +909,41 @@ module Google
871
909
  execute_or_queue_command(command, &block)
872
910
  end
873
911
 
912
+ # Move a table to another database.
913
+ # @param [String] service
914
+ # Required. The relative resource name of the metastore service to mutate
915
+ # metadata, in the following format:projects/`project_id`/locations/`location_id`
916
+ # /services/`service_id`.
917
+ # @param [Google::Apis::MetastoreV1::MoveTableToDatabaseRequest] move_table_to_database_request_object
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # @param [Google::Apis::RequestOptions] options
924
+ # Request-specific options
925
+ #
926
+ # @yield [result, err] Result & error if block supplied
927
+ # @yieldparam result [Google::Apis::MetastoreV1::Operation] parsed result object
928
+ # @yieldparam err [StandardError] error object if request failed
929
+ #
930
+ # @return [Google::Apis::MetastoreV1::Operation]
931
+ #
932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
935
+ def move_service_table_to_database(service, move_table_to_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
936
+ command = make_simple_command(:post, 'v1/{+service}:moveTableToDatabase', options)
937
+ command.request_representation = Google::Apis::MetastoreV1::MoveTableToDatabaseRequest::Representation
938
+ command.request_object = move_table_to_database_request_object
939
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
940
+ command.response_class = Google::Apis::MetastoreV1::Operation
941
+ command.params['service'] = service unless service.nil?
942
+ command.query['fields'] = fields unless fields.nil?
943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
944
+ execute_or_queue_command(command, &block)
945
+ end
946
+
874
947
  # Updates the parameters of a single service.
875
948
  # @param [String] name
876
949
  # Immutable. The relative resource name of the metastore service, in the
@@ -922,6 +995,41 @@ module Google
922
995
  execute_or_queue_command(command, &block)
923
996
  end
924
997
 
998
+ # Query DPMS metadata.
999
+ # @param [String] service
1000
+ # Required. The relative resource name of the metastore service to query
1001
+ # metadata, in the following format:projects/`project_id`/locations/`location_id`
1002
+ # /services/`service_id`.
1003
+ # @param [Google::Apis::MetastoreV1::QueryMetadataRequest] query_metadata_request_object
1004
+ # @param [String] fields
1005
+ # Selector specifying which fields to include in a partial response.
1006
+ # @param [String] quota_user
1007
+ # Available to use for quota purposes for server-side applications. Can be any
1008
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1009
+ # @param [Google::Apis::RequestOptions] options
1010
+ # Request-specific options
1011
+ #
1012
+ # @yield [result, err] Result & error if block supplied
1013
+ # @yieldparam result [Google::Apis::MetastoreV1::Operation] parsed result object
1014
+ # @yieldparam err [StandardError] error object if request failed
1015
+ #
1016
+ # @return [Google::Apis::MetastoreV1::Operation]
1017
+ #
1018
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1019
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1020
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1021
+ def query_service_metadata(service, query_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1022
+ command = make_simple_command(:post, 'v1/{+service}:queryMetadata', options)
1023
+ command.request_representation = Google::Apis::MetastoreV1::QueryMetadataRequest::Representation
1024
+ command.request_object = query_metadata_request_object
1025
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
1026
+ command.response_class = Google::Apis::MetastoreV1::Operation
1027
+ command.params['service'] = service unless service.nil?
1028
+ command.query['fields'] = fields unless fields.nil?
1029
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1030
+ execute_or_queue_command(command, &block)
1031
+ end
1032
+
925
1033
  # Restores a service from a backup.
926
1034
  # @param [String] service
927
1035
  # Required. The relative resource name of the metastore service to run restore,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-30 00:00:00.000000000 Z
11
+ date: 2023-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.8.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1
63
63
  post_install_message:
64
64
  rdoc_options: []