google-apis-metastore_v1alpha 0.36.0 → 0.38.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: 599504ceaa8a0ffba66d4a69f91691dcdb5ed93c1ac603be50912c2469546bf9
4
- data.tar.gz: 49156450fa8b3736df13a809e93cb2ecc056bedd8332ef014fe03cb15544785e
3
+ metadata.gz: fb1262780d9f30525a6abdfa059ca8a1876e2d08122bbe4cce610256568a770e
4
+ data.tar.gz: 130608bff204e6653167e365adec1909bf8e5427abfbf0ed7088f8628cbcacf4
5
5
  SHA512:
6
- metadata.gz: d247a7b0b2b1b4b0ba4e8f663664c2eb3cbcfe85743699fcb572f10c107093ed05b530767d89e33594551bb3bf7efddb085899e667a2053604ac3291925ac0de
7
- data.tar.gz: 2a9653e902e7a0a33806f10e5094bd4ec27d20b3673b0adf7924c3418b31866d9951be5f8aee47ec1cc20cc20007a42700c747730af76ae8ade77a2f7377c9af
6
+ metadata.gz: 7f85419766e7a4471f4f9808259ebd6efecdd9bc216e350c82058bc0c23ad0b680a8d2420649e9ff60fee3182f9e7187d485335fd33952fb4ecd0137d88bfc54
7
+ data.tar.gz: bf98d6d5265c35430c1ab8cabc43ee2dbf02b7bf3550635d6c8cbdf97a56dac182e5daed0535565ebe1b62711050f86021b4e155aa6a75d92a10fc3121d39cf0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-metastore_v1alpha
2
2
 
3
+ ### v0.38.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230106
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.37.0 (2022-12-11)
9
+
10
+ * Regenerated from discovery document revision 20221207
11
+
3
12
  ### v0.36.0 (2022-10-27)
4
13
 
5
14
  * Regenerated from discovery document revision 20221012
@@ -22,6 +22,46 @@ module Google
22
22
  module Apis
23
23
  module MetastoreV1alpha
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
@@ -140,8 +180,8 @@ module Google
140
180
 
141
181
  # The relative resource name of the metastore that is being federated. The
142
182
  # formats of the relative resource names for the currently supported metastores
143
- # are listed below: Dataplex: projects/`project_id`/locations/`location`/lakes/`
144
- # lake_id` BigQuery: projects/`project_id` Dataproc Metastore: projects/`
183
+ # are listed below: Dataplex projects/`project_id`/locations/`location`/lakes/`
184
+ # lake_id` BigQuery projects/`project_id` Dataproc Metastore projects/`
145
185
  # project_id`/locations/`location`/services/`service_id`
146
186
  # Corresponds to the JSON property `name`
147
187
  # @return [String]
@@ -303,7 +343,7 @@ module Google
303
343
  # reserved and used as the Dataproc Metastore service's endpoint. It is
304
344
  # accessible to hosts in the subnet and to all hosts in a subnet in the same
305
345
  # region and same network. There must be at least one IP address available in
306
- # the subnet's primary range. The subnet is specified in the following form:`
346
+ # the subnet's primary range. The subnet is specified in the following form:
307
347
  # projects/`project_number`/regions/`region_id`/subnetworks/`subnetwork_id`
308
348
  # Corresponds to the JSON property `subnetwork`
309
349
  # @return [String]
@@ -1178,6 +1218,50 @@ module Google
1178
1218
  end
1179
1219
  end
1180
1220
 
1221
+ # Request message for DataprocMetastore.MoveTableToDatabase.
1222
+ class MoveTableToDatabaseRequest
1223
+ include Google::Apis::Core::Hashable
1224
+
1225
+ # Required. The name of the database where the table resides.
1226
+ # Corresponds to the JSON property `dbName`
1227
+ # @return [String]
1228
+ attr_accessor :db_name
1229
+
1230
+ # Required. The name of the database where the table should be moved.
1231
+ # Corresponds to the JSON property `destinationDbName`
1232
+ # @return [String]
1233
+ attr_accessor :destination_db_name
1234
+
1235
+ # Required. The name of the table to be moved.
1236
+ # Corresponds to the JSON property `tableName`
1237
+ # @return [String]
1238
+ attr_accessor :table_name
1239
+
1240
+ def initialize(**args)
1241
+ update!(**args)
1242
+ end
1243
+
1244
+ # Update properties of this object
1245
+ def update!(**args)
1246
+ @db_name = args[:db_name] if args.key?(:db_name)
1247
+ @destination_db_name = args[:destination_db_name] if args.key?(:destination_db_name)
1248
+ @table_name = args[:table_name] if args.key?(:table_name)
1249
+ end
1250
+ end
1251
+
1252
+ # Response message for DataprocMetastore.MoveTableToDatabase.
1253
+ class MoveTableToDatabaseResponse
1254
+ include Google::Apis::Core::Hashable
1255
+
1256
+ def initialize(**args)
1257
+ update!(**args)
1258
+ end
1259
+
1260
+ # Update properties of this object
1261
+ def update!(**args)
1262
+ end
1263
+ end
1264
+
1181
1265
  # Network configuration for the Dataproc Metastore service.
1182
1266
  class NetworkConfig
1183
1267
  include Google::Apis::Core::Hashable
@@ -1412,16 +1496,66 @@ module Google
1412
1496
  end
1413
1497
  end
1414
1498
 
1499
+ # Request message for DataprocMetastore.QueryMetadata.
1500
+ class QueryMetadataRequest
1501
+ include Google::Apis::Core::Hashable
1502
+
1503
+ # Required. A read-only SQL query to execute against the metadata database. The
1504
+ # query cannot change or mutate the data.
1505
+ # Corresponds to the JSON property `query`
1506
+ # @return [String]
1507
+ attr_accessor :query
1508
+
1509
+ def initialize(**args)
1510
+ update!(**args)
1511
+ end
1512
+
1513
+ # Update properties of this object
1514
+ def update!(**args)
1515
+ @query = args[:query] if args.key?(:query)
1516
+ end
1517
+ end
1518
+
1519
+ # Response message for DataprocMetastore.QueryMetadata.
1520
+ class QueryMetadataResponse
1521
+ include Google::Apis::Core::Hashable
1522
+
1523
+ # The manifest URI is link to a JSON instance in Cloud Storage. This instance
1524
+ # manifests immediately along with QueryMetadataResponse. The content of the URI
1525
+ # is not retriable until the long-running operation query against the metadata
1526
+ # finishes.
1527
+ # Corresponds to the JSON property `resultManifestUri`
1528
+ # @return [String]
1529
+ attr_accessor :result_manifest_uri
1530
+
1531
+ def initialize(**args)
1532
+ update!(**args)
1533
+ end
1534
+
1535
+ # Update properties of this object
1536
+ def update!(**args)
1537
+ @result_manifest_uri = args[:result_manifest_uri] if args.key?(:result_manifest_uri)
1538
+ end
1539
+ end
1540
+
1415
1541
  # Request message for DataprocMetastore.RemoveIamPolicy.
1416
1542
  class RemoveIamPolicyRequest
1417
1543
  include Google::Apis::Core::Hashable
1418
1544
 
1545
+ # Optional. Removes IAM policy attached to database or table asynchronously when
1546
+ # it is set. The default is false.
1547
+ # Corresponds to the JSON property `asynchronous`
1548
+ # @return [Boolean]
1549
+ attr_accessor :asynchronous
1550
+ alias_method :asynchronous?, :asynchronous
1551
+
1419
1552
  def initialize(**args)
1420
1553
  update!(**args)
1421
1554
  end
1422
1555
 
1423
1556
  # Update properties of this object
1424
1557
  def update!(**args)
1558
+ @asynchronous = args[:asynchronous] if args.key?(:asynchronous)
1425
1559
  end
1426
1560
  end
1427
1561
 
@@ -1429,7 +1563,7 @@ module Google
1429
1563
  class RemoveIamPolicyResponse
1430
1564
  include Google::Apis::Core::Hashable
1431
1565
 
1432
- # whether related policies are removed
1566
+ # True if the policy is successfully removed.
1433
1567
  # Corresponds to the JSON property `success`
1434
1568
  # @return [Boolean]
1435
1569
  attr_accessor :success
@@ -1802,7 +1936,7 @@ module Google
1802
1936
  class TelemetryConfig
1803
1937
  include Google::Apis::Core::Hashable
1804
1938
 
1805
- #
1939
+ # The output format of the Dataproc Metastore service's logs.
1806
1940
  # Corresponds to the JSON property `logFormat`
1807
1941
  # @return [String]
1808
1942
  attr_accessor :log_format
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1alpha
18
18
  # Version of the google-apis-metastore_v1alpha gem
19
- GEM_VERSION = "0.36.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221012"
25
+ REVISION = "20230106"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module MetastoreV1alpha
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
 
@@ -214,6 +226,18 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class MoveTableToDatabaseRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class MoveTableToDatabaseResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
217
241
  class NetworkConfig
218
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
243
 
@@ -238,6 +262,18 @@ module Google
238
262
  include Google::Apis::Core::JsonObjectSupport
239
263
  end
240
264
 
265
+ class QueryMetadataRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class QueryMetadataResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
241
277
  class RemoveIamPolicyRequest
242
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
279
 
@@ -304,6 +340,20 @@ module Google
304
340
  include Google::Apis::Core::JsonObjectSupport
305
341
  end
306
342
 
343
+ class AlterMetadataResourceLocationRequest
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :location_uri, as: 'locationUri'
347
+ property :resource_name, as: 'resourceName'
348
+ end
349
+ end
350
+
351
+ class AlterMetadataResourceLocationResponse
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ end
355
+ end
356
+
307
357
  class AuditConfig
308
358
  # @private
309
359
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -613,6 +663,21 @@ module Google
613
663
  end
614
664
  end
615
665
 
666
+ class MoveTableToDatabaseRequest
667
+ # @private
668
+ class Representation < Google::Apis::Core::JsonRepresentation
669
+ property :db_name, as: 'dbName'
670
+ property :destination_db_name, as: 'destinationDbName'
671
+ property :table_name, as: 'tableName'
672
+ end
673
+ end
674
+
675
+ class MoveTableToDatabaseResponse
676
+ # @private
677
+ class Representation < Google::Apis::Core::JsonRepresentation
678
+ end
679
+ end
680
+
616
681
  class NetworkConfig
617
682
  # @private
618
683
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -658,9 +723,24 @@ module Google
658
723
  end
659
724
  end
660
725
 
726
+ class QueryMetadataRequest
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ property :query, as: 'query'
730
+ end
731
+ end
732
+
733
+ class QueryMetadataResponse
734
+ # @private
735
+ class Representation < Google::Apis::Core::JsonRepresentation
736
+ property :result_manifest_uri, as: 'resultManifestUri'
737
+ end
738
+ end
739
+
661
740
  class RemoveIamPolicyRequest
662
741
  # @private
663
742
  class Representation < Google::Apis::Core::JsonRepresentation
743
+ property :asynchronous, as: 'asynchronous'
664
744
  end
665
745
  end
666
746
 
@@ -581,6 +581,44 @@ module Google
581
581
  execute_or_queue_command(command, &block)
582
582
  end
583
583
 
584
+ # Alter metadata resource location. The metadata resource can be a database,
585
+ # table, or partition. This functionality only updates the parent directory for
586
+ # the respective metadata resource and does not transfer any existing data to
587
+ # the new location.
588
+ # @param [String] service
589
+ # Required. The relative resource name of the metastore service to mutate
590
+ # metadata, in the following format:projects/`project_id`/locations/`location_id`
591
+ # /services/`service_id`.
592
+ # @param [Google::Apis::MetastoreV1alpha::AlterMetadataResourceLocationRequest] alter_metadata_resource_location_request_object
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
595
+ # @param [String] quota_user
596
+ # Available to use for quota purposes for server-side applications. Can be any
597
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
598
+ # @param [Google::Apis::RequestOptions] options
599
+ # Request-specific options
600
+ #
601
+ # @yield [result, err] Result & error if block supplied
602
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
603
+ # @yieldparam err [StandardError] error object if request failed
604
+ #
605
+ # @return [Google::Apis::MetastoreV1alpha::Operation]
606
+ #
607
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
610
+ def alter_project_location_service_location(service, alter_metadata_resource_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
611
+ command = make_simple_command(:post, 'v1alpha/{+service}:alterLocation', options)
612
+ command.request_representation = Google::Apis::MetastoreV1alpha::AlterMetadataResourceLocationRequest::Representation
613
+ command.request_object = alter_metadata_resource_location_request_object
614
+ command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
615
+ command.response_class = Google::Apis::MetastoreV1alpha::Operation
616
+ command.params['service'] = service unless service.nil?
617
+ command.query['fields'] = fields unless fields.nil?
618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
619
+ execute_or_queue_command(command, &block)
620
+ end
621
+
584
622
  # Creates a metastore service in a project and location.
585
623
  # @param [String] parent
586
624
  # Required. The relative resource name of the location in which to create a
@@ -837,6 +875,41 @@ module Google
837
875
  execute_or_queue_command(command, &block)
838
876
  end
839
877
 
878
+ # Move a table to another database.
879
+ # @param [String] service
880
+ # Required. The relative resource name of the metastore service to mutate
881
+ # metadata, in the following format:projects/`project_id`/locations/`location_id`
882
+ # /services/`service_id`.
883
+ # @param [Google::Apis::MetastoreV1alpha::MoveTableToDatabaseRequest] move_table_to_database_request_object
884
+ # @param [String] fields
885
+ # Selector specifying which fields to include in a partial response.
886
+ # @param [String] quota_user
887
+ # Available to use for quota purposes for server-side applications. Can be any
888
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
889
+ # @param [Google::Apis::RequestOptions] options
890
+ # Request-specific options
891
+ #
892
+ # @yield [result, err] Result & error if block supplied
893
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
894
+ # @yieldparam err [StandardError] error object if request failed
895
+ #
896
+ # @return [Google::Apis::MetastoreV1alpha::Operation]
897
+ #
898
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
899
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
900
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
901
+ def move_service_table_to_database(service, move_table_to_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
902
+ command = make_simple_command(:post, 'v1alpha/{+service}:moveTableToDatabase', options)
903
+ command.request_representation = Google::Apis::MetastoreV1alpha::MoveTableToDatabaseRequest::Representation
904
+ command.request_object = move_table_to_database_request_object
905
+ command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
906
+ command.response_class = Google::Apis::MetastoreV1alpha::Operation
907
+ command.params['service'] = service unless service.nil?
908
+ command.query['fields'] = fields unless fields.nil?
909
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
910
+ execute_or_queue_command(command, &block)
911
+ end
912
+
840
913
  # Updates the parameters of a single service.
841
914
  # @param [String] name
842
915
  # Immutable. The relative resource name of the metastore service, in the
@@ -888,6 +961,41 @@ module Google
888
961
  execute_or_queue_command(command, &block)
889
962
  end
890
963
 
964
+ # Query DPMS metadata.
965
+ # @param [String] service
966
+ # Required. The relative resource name of the metastore service to query
967
+ # metadata, in the following format:projects/`project_id`/locations/`location_id`
968
+ # /services/`service_id`.
969
+ # @param [Google::Apis::MetastoreV1alpha::QueryMetadataRequest] query_metadata_request_object
970
+ # @param [String] fields
971
+ # Selector specifying which fields to include in a partial response.
972
+ # @param [String] quota_user
973
+ # Available to use for quota purposes for server-side applications. Can be any
974
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
975
+ # @param [Google::Apis::RequestOptions] options
976
+ # Request-specific options
977
+ #
978
+ # @yield [result, err] Result & error if block supplied
979
+ # @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
980
+ # @yieldparam err [StandardError] error object if request failed
981
+ #
982
+ # @return [Google::Apis::MetastoreV1alpha::Operation]
983
+ #
984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
987
+ def query_service_metadata(service, query_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
988
+ command = make_simple_command(:post, 'v1alpha/{+service}:queryMetadata', options)
989
+ command.request_representation = Google::Apis::MetastoreV1alpha::QueryMetadataRequest::Representation
990
+ command.request_object = query_metadata_request_object
991
+ command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
992
+ command.response_class = Google::Apis::MetastoreV1alpha::Operation
993
+ command.params['service'] = service unless service.nil?
994
+ command.query['fields'] = fields unless fields.nil?
995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
996
+ execute_or_queue_command(command, &block)
997
+ end
998
+
891
999
  # Removes the attached IAM policies for a resource
892
1000
  # @param [String] resource
893
1001
  # Required. The relative resource name of the dataplane resource to remove IAM
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.38.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: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-01-15 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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.38.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Dataproc Metastore API V1alpha