google-apis-metastore_v1alpha 0.36.0 → 0.37.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: 2a7156201b41996acba71f6d7506385b289af81d79ea999d3c467195df786365
4
+ data.tar.gz: da3807db651134c05e69ef0de8fde28a2831b7be9d6626a1b547fa2c954689e7
5
5
  SHA512:
6
- metadata.gz: d247a7b0b2b1b4b0ba4e8f663664c2eb3cbcfe85743699fcb572f10c107093ed05b530767d89e33594551bb3bf7efddb085899e667a2053604ac3291925ac0de
7
- data.tar.gz: 2a9653e902e7a0a33806f10e5094bd4ec27d20b3673b0adf7924c3418b31866d9951be5f8aee47ec1cc20cc20007a42700c747730af76ae8ade77a2f7377c9af
6
+ metadata.gz: 588488fc2f9d78cc88a1f3389996eb0c184595d9e9fdd6d0ac1b098f202818fea205927be1ad6c9e3ec27a2dfb6d5d6d2850011a228fb068cfa364b42c2a7546
7
+ data.tar.gz: 07b8610958aa1f38c6a216099f97420d9859bd4300573e536b14bd8d52dd72009c07458cf3f2449b5bcea11db67f938b18deeffc202d0e48b57c27226fa50a30
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-metastore_v1alpha
2
2
 
3
+ ### v0.37.0 (2022-12-11)
4
+
5
+ * Regenerated from discovery document revision 20221207
6
+
3
7
  ### v0.36.0 (2022-10-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20221012
@@ -22,6 +22,33 @@ 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
+
25
52
  # Specifies the audit configuration for a service. The configuration determines
26
53
  # which permission types are logged, and what identities, if any, are exempted
27
54
  # from logging. An AuditConfig must have one or more AuditLogConfigs.If there
@@ -140,8 +167,8 @@ module Google
140
167
 
141
168
  # The relative resource name of the metastore that is being federated. The
142
169
  # 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/`
170
+ # are listed below: Dataplex projects/`project_id`/locations/`location`/lakes/`
171
+ # lake_id` BigQuery projects/`project_id` Dataproc Metastore projects/`
145
172
  # project_id`/locations/`location`/services/`service_id`
146
173
  # Corresponds to the JSON property `name`
147
174
  # @return [String]
@@ -303,7 +330,7 @@ module Google
303
330
  # reserved and used as the Dataproc Metastore service's endpoint. It is
304
331
  # accessible to hosts in the subnet and to all hosts in a subnet in the same
305
332
  # 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:`
333
+ # the subnet's primary range. The subnet is specified in the following form:
307
334
  # projects/`project_number`/regions/`region_id`/subnetworks/`subnetwork_id`
308
335
  # Corresponds to the JSON property `subnetwork`
309
336
  # @return [String]
@@ -1178,6 +1205,37 @@ module Google
1178
1205
  end
1179
1206
  end
1180
1207
 
1208
+ # Request message for DataprocMetastore.MoveTableToDatabase.
1209
+ class MoveTableToDatabaseRequest
1210
+ include Google::Apis::Core::Hashable
1211
+
1212
+ # Required. The name of the database where the table resides.
1213
+ # Corresponds to the JSON property `dbName`
1214
+ # @return [String]
1215
+ attr_accessor :db_name
1216
+
1217
+ # Required. The name of the database where the table should be moved.
1218
+ # Corresponds to the JSON property `destinationDbName`
1219
+ # @return [String]
1220
+ attr_accessor :destination_db_name
1221
+
1222
+ # Required. The name of the table to be moved.
1223
+ # Corresponds to the JSON property `tableName`
1224
+ # @return [String]
1225
+ attr_accessor :table_name
1226
+
1227
+ def initialize(**args)
1228
+ update!(**args)
1229
+ end
1230
+
1231
+ # Update properties of this object
1232
+ def update!(**args)
1233
+ @db_name = args[:db_name] if args.key?(:db_name)
1234
+ @destination_db_name = args[:destination_db_name] if args.key?(:destination_db_name)
1235
+ @table_name = args[:table_name] if args.key?(:table_name)
1236
+ end
1237
+ end
1238
+
1181
1239
  # Network configuration for the Dataproc Metastore service.
1182
1240
  class NetworkConfig
1183
1241
  include Google::Apis::Core::Hashable
@@ -1412,16 +1470,66 @@ module Google
1412
1470
  end
1413
1471
  end
1414
1472
 
1473
+ # Request message for DataprocMetastore.QueryMetadata.
1474
+ class QueryMetadataRequest
1475
+ include Google::Apis::Core::Hashable
1476
+
1477
+ # Required. A read-only SQL query to execute against the metadata database. The
1478
+ # query cannot change or mutate the data.
1479
+ # Corresponds to the JSON property `query`
1480
+ # @return [String]
1481
+ attr_accessor :query
1482
+
1483
+ def initialize(**args)
1484
+ update!(**args)
1485
+ end
1486
+
1487
+ # Update properties of this object
1488
+ def update!(**args)
1489
+ @query = args[:query] if args.key?(:query)
1490
+ end
1491
+ end
1492
+
1493
+ # Response message for DataprocMetastore.QueryMetadata.
1494
+ class QueryMetadataResponse
1495
+ include Google::Apis::Core::Hashable
1496
+
1497
+ # The manifest URI is link to a JSON instance in Cloud Storage. This instance
1498
+ # manifests immediately along with QueryMetadataResponse. The content of the URI
1499
+ # is not retriable until the long-running operation query against the metadata
1500
+ # finishes.
1501
+ # Corresponds to the JSON property `resultManifestUri`
1502
+ # @return [String]
1503
+ attr_accessor :result_manifest_uri
1504
+
1505
+ def initialize(**args)
1506
+ update!(**args)
1507
+ end
1508
+
1509
+ # Update properties of this object
1510
+ def update!(**args)
1511
+ @result_manifest_uri = args[:result_manifest_uri] if args.key?(:result_manifest_uri)
1512
+ end
1513
+ end
1514
+
1415
1515
  # Request message for DataprocMetastore.RemoveIamPolicy.
1416
1516
  class RemoveIamPolicyRequest
1417
1517
  include Google::Apis::Core::Hashable
1418
1518
 
1519
+ # Optional. Removes IAM policy attached to database or table asynchronously when
1520
+ # it is set. The default is false.
1521
+ # Corresponds to the JSON property `asynchronous`
1522
+ # @return [Boolean]
1523
+ attr_accessor :asynchronous
1524
+ alias_method :asynchronous?, :asynchronous
1525
+
1419
1526
  def initialize(**args)
1420
1527
  update!(**args)
1421
1528
  end
1422
1529
 
1423
1530
  # Update properties of this object
1424
1531
  def update!(**args)
1532
+ @asynchronous = args[:asynchronous] if args.key?(:asynchronous)
1425
1533
  end
1426
1534
  end
1427
1535
 
@@ -1429,7 +1537,7 @@ module Google
1429
1537
  class RemoveIamPolicyResponse
1430
1538
  include Google::Apis::Core::Hashable
1431
1539
 
1432
- # whether related policies are removed
1540
+ # True if the policy is successfully removed.
1433
1541
  # Corresponds to the JSON property `success`
1434
1542
  # @return [Boolean]
1435
1543
  attr_accessor :success
@@ -1802,7 +1910,7 @@ module Google
1802
1910
  class TelemetryConfig
1803
1911
  include Google::Apis::Core::Hashable
1804
1912
 
1805
- #
1913
+ # The output format of the Dataproc Metastore service's logs.
1806
1914
  # Corresponds to the JSON property `logFormat`
1807
1915
  # @return [String]
1808
1916
  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.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221012"
25
+ REVISION = "20221207"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ 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
+
25
31
  class AuditConfig
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -214,6 +220,12 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class MoveTableToDatabaseRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
217
229
  class NetworkConfig
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -238,6 +250,18 @@ module Google
238
250
  include Google::Apis::Core::JsonObjectSupport
239
251
  end
240
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
+
241
265
  class RemoveIamPolicyRequest
242
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
267
 
@@ -304,6 +328,14 @@ module Google
304
328
  include Google::Apis::Core::JsonObjectSupport
305
329
  end
306
330
 
331
+ class AlterMetadataResourceLocationRequest
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :location_uri, as: 'locationUri'
335
+ property :resource_name, as: 'resourceName'
336
+ end
337
+ end
338
+
307
339
  class AuditConfig
308
340
  # @private
309
341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -613,6 +645,15 @@ module Google
613
645
  end
614
646
  end
615
647
 
648
+ class MoveTableToDatabaseRequest
649
+ # @private
650
+ class Representation < Google::Apis::Core::JsonRepresentation
651
+ property :db_name, as: 'dbName'
652
+ property :destination_db_name, as: 'destinationDbName'
653
+ property :table_name, as: 'tableName'
654
+ end
655
+ end
656
+
616
657
  class NetworkConfig
617
658
  # @private
618
659
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -658,9 +699,24 @@ module Google
658
699
  end
659
700
  end
660
701
 
702
+ class QueryMetadataRequest
703
+ # @private
704
+ class Representation < Google::Apis::Core::JsonRepresentation
705
+ property :query, as: 'query'
706
+ end
707
+ end
708
+
709
+ class QueryMetadataResponse
710
+ # @private
711
+ class Representation < Google::Apis::Core::JsonRepresentation
712
+ property :result_manifest_uri, as: 'resultManifestUri'
713
+ end
714
+ end
715
+
661
716
  class RemoveIamPolicyRequest
662
717
  # @private
663
718
  class Representation < Google::Apis::Core::JsonRepresentation
719
+ property :asynchronous, as: 'asynchronous'
664
720
  end
665
721
  end
666
722
 
@@ -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.37.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: 2022-12-12 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.37.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: []