google-apis-metastore_v1 0.25.0 → 0.26.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: 65fff2c5320d4fd12cbf0e9fccb70fef01369c4a556052cbe8bde585cfd689e1
4
- data.tar.gz: 8c006a71fafd382c4eeeb8476c0ff7f1076f0519a0728ebeac679fa5563324d6
3
+ metadata.gz: 27c59778299b6fbfa33dbe9d9555263329c73af377e813ad371000104fb129fb
4
+ data.tar.gz: e6b4dbd3a968be43fec1e8259846af888eded1f9d186833592a4e2e8c7c7e0ee
5
5
  SHA512:
6
- metadata.gz: 0d24f173000393d015db136efd31420ca5da8d9ee2ae7cb907b9fb594e2b48db996c02c9735b382c7f0e38bb93eb402bca77790ebd67108bad253a217ba98993
7
- data.tar.gz: 78af19367e02760efb5ac3e744e9c206b2c297507ee6c90dac414402e1ee7b0aa0c918fbaeb8f1770e401b9dbe406112a8becf43ede0e6e0609defffa8743627
6
+ metadata.gz: 522cf55a78d5fe81f01190e5a52b596ce8ef8ce72aa206e629ec0836d6b970a3bc44c4c40f7ce06051a55128b3feba6e03a253bc0e1fe6ecac354d7922e18bba
7
+ data.tar.gz: ed8497b0816e93d67162a7f47736972d21e56d02998263bfe700deffd06c64bc907070c352361398d26ef79a9ba8302fd7bc2172515b44df44f4c7001125d0f6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-metastore_v1
2
2
 
3
+ ### v0.26.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240510
6
+ * Regenerated using generator version 0.15.0
7
+
3
8
  ### v0.25.0 (2024-04-21)
4
9
 
5
10
  * Regenerated from discovery document revision 20240411
@@ -444,6 +444,38 @@ module Google
444
444
  end
445
445
  end
446
446
 
447
+ # Metadata about a custom region. This is only populated if the region is a
448
+ # custom region. For single/multi regions, it will be empty.
449
+ class CustomRegionMetadata
450
+ include Google::Apis::Core::Hashable
451
+
452
+ # The read-only regions for this custom region.
453
+ # Corresponds to the JSON property `optionalReadOnlyRegions`
454
+ # @return [Array<String>]
455
+ attr_accessor :optional_read_only_regions
456
+
457
+ # The read-write regions for this custom region.
458
+ # Corresponds to the JSON property `requiredReadWriteRegions`
459
+ # @return [Array<String>]
460
+ attr_accessor :required_read_write_regions
461
+
462
+ # The Spanner witness region for this custom region.
463
+ # Corresponds to the JSON property `witnessRegion`
464
+ # @return [String]
465
+ attr_accessor :witness_region
466
+
467
+ def initialize(**args)
468
+ update!(**args)
469
+ end
470
+
471
+ # Update properties of this object
472
+ def update!(**args)
473
+ @optional_read_only_regions = args[:optional_read_only_regions] if args.key?(:optional_read_only_regions)
474
+ @required_read_write_regions = args[:required_read_write_regions] if args.key?(:required_read_write_regions)
475
+ @witness_region = args[:witness_region] if args.key?(:witness_region)
476
+ end
477
+ end
478
+
447
479
  # Specifies how metastore metadata should be integrated with the Data Catalog
448
480
  # service.
449
481
  class DataCatalogConfig
@@ -1122,9 +1154,14 @@ module Google
1122
1154
  class LocationMetadata
1123
1155
  include Google::Apis::Core::Hashable
1124
1156
 
1157
+ # Possible configurations supported if the current region is a custom region.
1158
+ # Corresponds to the JSON property `customRegionMetadata`
1159
+ # @return [Array<Google::Apis::MetastoreV1::CustomRegionMetadata>]
1160
+ attr_accessor :custom_region_metadata
1161
+
1125
1162
  # The metadata for the multi-region that includes the constituent regions. The
1126
- # metadata is only populated if the region is multi-region. For single region,
1127
- # it will be empty.
1163
+ # metadata is only populated if the region is multi-region. For single region or
1164
+ # custom dual region, it will be empty.
1128
1165
  # Corresponds to the JSON property `multiRegionMetadata`
1129
1166
  # @return [Google::Apis::MetastoreV1::MultiRegionMetadata]
1130
1167
  attr_accessor :multi_region_metadata
@@ -1142,6 +1179,7 @@ module Google
1142
1179
 
1143
1180
  # Update properties of this object
1144
1181
  def update!(**args)
1182
+ @custom_region_metadata = args[:custom_region_metadata] if args.key?(:custom_region_metadata)
1145
1183
  @multi_region_metadata = args[:multi_region_metadata] if args.key?(:multi_region_metadata)
1146
1184
  @supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
1147
1185
  end
@@ -1365,8 +1403,8 @@ module Google
1365
1403
  end
1366
1404
 
1367
1405
  # The metadata for the multi-region that includes the constituent regions. The
1368
- # metadata is only populated if the region is multi-region. For single region,
1369
- # it will be empty.
1406
+ # metadata is only populated if the region is multi-region. For single region or
1407
+ # custom dual region, it will be empty.
1370
1408
  class MultiRegionMetadata
1371
1409
  include Google::Apis::Core::Hashable
1372
1410
 
@@ -1895,6 +1933,13 @@ module Google
1895
1933
  # @return [String]
1896
1934
  attr_accessor :database_type
1897
1935
 
1936
+ # Optional. Indicates if the dataproc metastore should be protected against
1937
+ # accidental deletions.
1938
+ # Corresponds to the JSON property `deletionProtection`
1939
+ # @return [Boolean]
1940
+ attr_accessor :deletion_protection
1941
+ alias_method :deletion_protection?, :deletion_protection
1942
+
1898
1943
  # Encryption settings for the service.
1899
1944
  # Corresponds to the JSON property `encryptionConfig`
1900
1945
  # @return [Google::Apis::MetastoreV1::EncryptionConfig]
@@ -2012,6 +2057,7 @@ module Google
2012
2057
  @artifact_gcs_uri = args[:artifact_gcs_uri] if args.key?(:artifact_gcs_uri)
2013
2058
  @create_time = args[:create_time] if args.key?(:create_time)
2014
2059
  @database_type = args[:database_type] if args.key?(:database_type)
2060
+ @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
2015
2061
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
2016
2062
  @endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
2017
2063
  @hive_metastore_config = args[:hive_metastore_config] if args.key?(:hive_metastore_config)
@@ -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.25.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240411"
25
+ REVISION = "20240510"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class CustomRegionMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class DataCatalogConfig
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -455,6 +461,15 @@ module Google
455
461
  end
456
462
  end
457
463
 
464
+ class CustomRegionMetadata
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ collection :optional_read_only_regions, as: 'optionalReadOnlyRegions'
468
+ collection :required_read_write_regions, as: 'requiredReadWriteRegions'
469
+ property :witness_region, as: 'witnessRegion'
470
+ end
471
+ end
472
+
458
473
  class DataCatalogConfig
459
474
  # @private
460
475
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -641,6 +656,8 @@ module Google
641
656
  class LocationMetadata
642
657
  # @private
643
658
  class Representation < Google::Apis::Core::JsonRepresentation
659
+ collection :custom_region_metadata, as: 'customRegionMetadata', class: Google::Apis::MetastoreV1::CustomRegionMetadata, decorator: Google::Apis::MetastoreV1::CustomRegionMetadata::Representation
660
+
644
661
  property :multi_region_metadata, as: 'multiRegionMetadata', class: Google::Apis::MetastoreV1::MultiRegionMetadata, decorator: Google::Apis::MetastoreV1::MultiRegionMetadata::Representation
645
662
 
646
663
  collection :supported_hive_metastore_versions, as: 'supportedHiveMetastoreVersions', class: Google::Apis::MetastoreV1::HiveMetastoreVersion, decorator: Google::Apis::MetastoreV1::HiveMetastoreVersion::Representation
@@ -837,6 +854,7 @@ module Google
837
854
  property :artifact_gcs_uri, as: 'artifactGcsUri'
838
855
  property :create_time, as: 'createTime'
839
856
  property :database_type, as: 'databaseType'
857
+ property :deletion_protection, as: 'deletionProtection'
840
858
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::MetastoreV1::EncryptionConfig, decorator: Google::Apis::MetastoreV1::EncryptionConfig::Representation
841
859
 
842
860
  property :endpoint_uri, as: 'endpointUri'
@@ -1436,6 +1436,170 @@ module Google
1436
1436
  execute_or_queue_command(command, &block)
1437
1437
  end
1438
1438
 
1439
+ # Gets the access control policy for a resource. Returns an empty policy if the
1440
+ # resource exists and does not have a policy set.
1441
+ # @param [String] resource
1442
+ # REQUIRED: The resource for which the policy is being requested. See Resource
1443
+ # names (https://cloud.google.com/apis/design/resource_names) for the
1444
+ # appropriate value for this field.
1445
+ # @param [Fixnum] options_requested_policy_version
1446
+ # Optional. The maximum policy version that will be used to format the policy.
1447
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1448
+ # rejected.Requests for policies with any conditional role bindings must specify
1449
+ # version 3. Policies with no conditional role bindings may specify any valid
1450
+ # value or leave the field unset.The policy in the response might use the policy
1451
+ # version that you specified, or it might use a lower policy version. For
1452
+ # example, if you specify version 3, but the policy has no conditional role
1453
+ # bindings, the response uses version 1.To learn which resources support
1454
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
1455
+ # google.com/iam/help/conditions/resource-policies).
1456
+ # @param [String] fields
1457
+ # Selector specifying which fields to include in a partial response.
1458
+ # @param [String] quota_user
1459
+ # Available to use for quota purposes for server-side applications. Can be any
1460
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1461
+ # @param [Google::Apis::RequestOptions] options
1462
+ # Request-specific options
1463
+ #
1464
+ # @yield [result, err] Result & error if block supplied
1465
+ # @yieldparam result [Google::Apis::MetastoreV1::Policy] parsed result object
1466
+ # @yieldparam err [StandardError] error object if request failed
1467
+ #
1468
+ # @return [Google::Apis::MetastoreV1::Policy]
1469
+ #
1470
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1471
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1472
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1473
+ def get_project_location_service_database_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1474
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1475
+ command.response_representation = Google::Apis::MetastoreV1::Policy::Representation
1476
+ command.response_class = Google::Apis::MetastoreV1::Policy
1477
+ command.params['resource'] = resource unless resource.nil?
1478
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1479
+ command.query['fields'] = fields unless fields.nil?
1480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1481
+ execute_or_queue_command(command, &block)
1482
+ end
1483
+
1484
+ # Sets the access control policy on the specified resource. Replaces any
1485
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
1486
+ # errors.
1487
+ # @param [String] resource
1488
+ # REQUIRED: The resource for which the policy is being specified. See Resource
1489
+ # names (https://cloud.google.com/apis/design/resource_names) for the
1490
+ # appropriate value for this field.
1491
+ # @param [Google::Apis::MetastoreV1::SetIamPolicyRequest] set_iam_policy_request_object
1492
+ # @param [String] fields
1493
+ # Selector specifying which fields to include in a partial response.
1494
+ # @param [String] quota_user
1495
+ # Available to use for quota purposes for server-side applications. Can be any
1496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1497
+ # @param [Google::Apis::RequestOptions] options
1498
+ # Request-specific options
1499
+ #
1500
+ # @yield [result, err] Result & error if block supplied
1501
+ # @yieldparam result [Google::Apis::MetastoreV1::Policy] parsed result object
1502
+ # @yieldparam err [StandardError] error object if request failed
1503
+ #
1504
+ # @return [Google::Apis::MetastoreV1::Policy]
1505
+ #
1506
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1507
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1508
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1509
+ def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1510
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1511
+ command.request_representation = Google::Apis::MetastoreV1::SetIamPolicyRequest::Representation
1512
+ command.request_object = set_iam_policy_request_object
1513
+ command.response_representation = Google::Apis::MetastoreV1::Policy::Representation
1514
+ command.response_class = Google::Apis::MetastoreV1::Policy
1515
+ command.params['resource'] = resource unless resource.nil?
1516
+ command.query['fields'] = fields unless fields.nil?
1517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1518
+ execute_or_queue_command(command, &block)
1519
+ end
1520
+
1521
+ # Gets the access control policy for a resource. Returns an empty policy if the
1522
+ # resource exists and does not have a policy set.
1523
+ # @param [String] resource
1524
+ # REQUIRED: The resource for which the policy is being requested. See Resource
1525
+ # names (https://cloud.google.com/apis/design/resource_names) for the
1526
+ # appropriate value for this field.
1527
+ # @param [Fixnum] options_requested_policy_version
1528
+ # Optional. The maximum policy version that will be used to format the policy.
1529
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1530
+ # rejected.Requests for policies with any conditional role bindings must specify
1531
+ # version 3. Policies with no conditional role bindings may specify any valid
1532
+ # value or leave the field unset.The policy in the response might use the policy
1533
+ # version that you specified, or it might use a lower policy version. For
1534
+ # example, if you specify version 3, but the policy has no conditional role
1535
+ # bindings, the response uses version 1.To learn which resources support
1536
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
1537
+ # google.com/iam/help/conditions/resource-policies).
1538
+ # @param [String] fields
1539
+ # Selector specifying which fields to include in a partial response.
1540
+ # @param [String] quota_user
1541
+ # Available to use for quota purposes for server-side applications. Can be any
1542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1543
+ # @param [Google::Apis::RequestOptions] options
1544
+ # Request-specific options
1545
+ #
1546
+ # @yield [result, err] Result & error if block supplied
1547
+ # @yieldparam result [Google::Apis::MetastoreV1::Policy] parsed result object
1548
+ # @yieldparam err [StandardError] error object if request failed
1549
+ #
1550
+ # @return [Google::Apis::MetastoreV1::Policy]
1551
+ #
1552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1555
+ def get_project_location_service_database_table_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1556
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1557
+ command.response_representation = Google::Apis::MetastoreV1::Policy::Representation
1558
+ command.response_class = Google::Apis::MetastoreV1::Policy
1559
+ command.params['resource'] = resource unless resource.nil?
1560
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1561
+ command.query['fields'] = fields unless fields.nil?
1562
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1563
+ execute_or_queue_command(command, &block)
1564
+ end
1565
+
1566
+ # Sets the access control policy on the specified resource. Replaces any
1567
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
1568
+ # errors.
1569
+ # @param [String] resource
1570
+ # REQUIRED: The resource for which the policy is being specified. See Resource
1571
+ # names (https://cloud.google.com/apis/design/resource_names) for the
1572
+ # appropriate value for this field.
1573
+ # @param [Google::Apis::MetastoreV1::SetIamPolicyRequest] set_iam_policy_request_object
1574
+ # @param [String] fields
1575
+ # Selector specifying which fields to include in a partial response.
1576
+ # @param [String] quota_user
1577
+ # Available to use for quota purposes for server-side applications. Can be any
1578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1579
+ # @param [Google::Apis::RequestOptions] options
1580
+ # Request-specific options
1581
+ #
1582
+ # @yield [result, err] Result & error if block supplied
1583
+ # @yieldparam result [Google::Apis::MetastoreV1::Policy] parsed result object
1584
+ # @yieldparam err [StandardError] error object if request failed
1585
+ #
1586
+ # @return [Google::Apis::MetastoreV1::Policy]
1587
+ #
1588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1591
+ def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1592
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1593
+ command.request_representation = Google::Apis::MetastoreV1::SetIamPolicyRequest::Representation
1594
+ command.request_object = set_iam_policy_request_object
1595
+ command.response_representation = Google::Apis::MetastoreV1::Policy::Representation
1596
+ command.response_class = Google::Apis::MetastoreV1::Policy
1597
+ command.params['resource'] = resource unless resource.nil?
1598
+ command.query['fields'] = fields unless fields.nil?
1599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1600
+ execute_or_queue_command(command, &block)
1601
+ end
1602
+
1439
1603
  # Creates a new MetadataImport in a given project and location.
1440
1604
  # @param [String] parent
1441
1605
  # Required. The relative resource name of the service in which to create a
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.25.0
4
+ version: 0.26.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: 2024-04-21 00:00:00.000000000 Z
11
+ date: 2024-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.26.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: []