Skip to content

Commit

Permalink
feat: Automated regeneration of metastore v1beta client (#19401)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-19 11:57:44 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 21, 2024
1 parent dfed4c4 commit 7b30b07
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 8 deletions.
9 changes: 9 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238540,6 +238540,12 @@
"/metastore:v1beta/Consumer/endpointLocation": endpoint_location
"/metastore:v1beta/Consumer/endpointUri": endpoint_uri
"/metastore:v1beta/Consumer/subnetwork": subnetwork
"/metastore:v1beta/CustomRegionMetadata": custom_region_metadata
"/metastore:v1beta/CustomRegionMetadata/optionalReadOnlyRegions": optional_read_only_regions
"/metastore:v1beta/CustomRegionMetadata/optionalReadOnlyRegions/optional_read_only_region": optional_read_only_region
"/metastore:v1beta/CustomRegionMetadata/requiredReadWriteRegions": required_read_write_regions
"/metastore:v1beta/CustomRegionMetadata/requiredReadWriteRegions/required_read_write_region": required_read_write_region
"/metastore:v1beta/CustomRegionMetadata/witnessRegion": witness_region
"/metastore:v1beta/DataCatalogConfig": data_catalog_config
"/metastore:v1beta/DataCatalogConfig/enabled": enabled
"/metastore:v1beta/DatabaseDump": database_dump
Expand Down Expand Up @@ -238650,6 +238656,8 @@
"/metastore:v1beta/Location/metadata/metadatum": metadatum
"/metastore:v1beta/Location/name": name
"/metastore:v1beta/LocationMetadata": location_metadata
"/metastore:v1beta/LocationMetadata/customRegionMetadata": custom_region_metadata
"/metastore:v1beta/LocationMetadata/customRegionMetadata/custom_region_metadatum": custom_region_metadatum
"/metastore:v1beta/LocationMetadata/multiRegionMetadata": multi_region_metadata
"/metastore:v1beta/LocationMetadata/supportedHiveMetastoreVersions": supported_hive_metastore_versions
"/metastore:v1beta/LocationMetadata/supportedHiveMetastoreVersions/supported_hive_metastore_version": supported_hive_metastore_version
Expand Down Expand Up @@ -238759,6 +238767,7 @@
"/metastore:v1beta/Service/artifactGcsUri": artifact_gcs_uri
"/metastore:v1beta/Service/createTime": create_time
"/metastore:v1beta/Service/databaseType": database_type
"/metastore:v1beta/Service/deletionProtection": deletion_protection
"/metastore:v1beta/Service/encryptionConfig": encryption_config
"/metastore:v1beta/Service/endpointUri": endpoint_uri
"/metastore:v1beta/Service/hiveMetastoreConfig": hive_metastore_config
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-metastore_v1beta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-metastore_v1beta

### v0.63.0 (2024-05-19)

* Regenerated from discovery document revision 20240510
* Regenerated using generator version 0.15.0

### v0.62.0 (2024-04-21)

* Regenerated from discovery document revision 20240411
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]

gem.required_ruby_version = '>= 2.7'
gem.add_runtime_dependency "google-apis-core", ">= 0.14.0", "< 2.a"
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
end
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,38 @@ def update!(**args)
end
end

# Metadata about a custom region. This is only populated if the region is a
# custom region. For single/multi regions, it will be empty.
class CustomRegionMetadata
include Google::Apis::Core::Hashable

# The read-only regions for this custom region.
# Corresponds to the JSON property `optionalReadOnlyRegions`
# @return [Array<String>]
attr_accessor :optional_read_only_regions

# The read-write regions for this custom region.
# Corresponds to the JSON property `requiredReadWriteRegions`
# @return [Array<String>]
attr_accessor :required_read_write_regions

# The Spanner witness region for this custom region.
# Corresponds to the JSON property `witnessRegion`
# @return [String]
attr_accessor :witness_region

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@optional_read_only_regions = args[:optional_read_only_regions] if args.key?(:optional_read_only_regions)
@required_read_write_regions = args[:required_read_write_regions] if args.key?(:required_read_write_regions)
@witness_region = args[:witness_region] if args.key?(:witness_region)
end
end

# Specifies how metastore metadata should be integrated with the Data Catalog
# service.
class DataCatalogConfig
Expand Down Expand Up @@ -1494,9 +1526,14 @@ def update!(**args)
class LocationMetadata
include Google::Apis::Core::Hashable

# Possible configurations supported if the current region is a custom region.
# Corresponds to the JSON property `customRegionMetadata`
# @return [Array<Google::Apis::MetastoreV1beta::CustomRegionMetadata>]
attr_accessor :custom_region_metadata

# The metadata for the multi-region that includes the constituent regions. The
# metadata is only populated if the region is multi-region. For single region,
# it will be empty.
# metadata is only populated if the region is multi-region. For single region or
# custom dual region, it will be empty.
# Corresponds to the JSON property `multiRegionMetadata`
# @return [Google::Apis::MetastoreV1beta::MultiRegionMetadata]
attr_accessor :multi_region_metadata
Expand All @@ -1514,6 +1551,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@custom_region_metadata = args[:custom_region_metadata] if args.key?(:custom_region_metadata)
@multi_region_metadata = args[:multi_region_metadata] if args.key?(:multi_region_metadata)
@supported_hive_metastore_versions = args[:supported_hive_metastore_versions] if args.key?(:supported_hive_metastore_versions)
end
Expand Down Expand Up @@ -1803,8 +1841,8 @@ def update!(**args)
end

# The metadata for the multi-region that includes the constituent regions. The
# metadata is only populated if the region is multi-region. For single region,
# it will be empty.
# metadata is only populated if the region is multi-region. For single region or
# custom dual region, it will be empty.
class MultiRegionMetadata
include Google::Apis::Core::Hashable

Expand Down Expand Up @@ -2388,6 +2426,13 @@ class Service
# @return [String]
attr_accessor :database_type

# Optional. Indicates if the dataproc metastore should be protected against
# accidental deletions.
# Corresponds to the JSON property `deletionProtection`
# @return [Boolean]
attr_accessor :deletion_protection
alias_method :deletion_protection?, :deletion_protection

# Encryption settings for the service.
# Corresponds to the JSON property `encryptionConfig`
# @return [Google::Apis::MetastoreV1beta::EncryptionConfig]
Expand Down Expand Up @@ -2505,6 +2550,7 @@ def update!(**args)
@artifact_gcs_uri = args[:artifact_gcs_uri] if args.key?(:artifact_gcs_uri)
@create_time = args[:create_time] if args.key?(:create_time)
@database_type = args[:database_type] if args.key?(:database_type)
@deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
@endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri)
@hive_metastore_config = args[:hive_metastore_config] if args.key?(:hive_metastore_config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module MetastoreV1beta
# Version of the google-apis-metastore_v1beta gem
GEM_VERSION = "0.62.0"
GEM_VERSION = "0.63.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240411"
REVISION = "20240510"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class CustomRegionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class DataCatalogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -624,6 +630,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CustomRegionMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :optional_read_only_regions, as: 'optionalReadOnlyRegions'
collection :required_read_write_regions, as: 'requiredReadWriteRegions'
property :witness_region, as: 'witnessRegion'
end
end

class DataCatalogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -843,6 +858,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :custom_region_metadata, as: 'customRegionMetadata', class: Google::Apis::MetastoreV1beta::CustomRegionMetadata, decorator: Google::Apis::MetastoreV1beta::CustomRegionMetadata::Representation

property :multi_region_metadata, as: 'multiRegionMetadata', class: Google::Apis::MetastoreV1beta::MultiRegionMetadata, decorator: Google::Apis::MetastoreV1beta::MultiRegionMetadata::Representation

collection :supported_hive_metastore_versions, as: 'supportedHiveMetastoreVersions', class: Google::Apis::MetastoreV1beta::HiveMetastoreVersion, decorator: Google::Apis::MetastoreV1beta::HiveMetastoreVersion::Representation
Expand Down Expand Up @@ -1072,6 +1089,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :artifact_gcs_uri, as: 'artifactGcsUri'
property :create_time, as: 'createTime'
property :database_type, as: 'databaseType'
property :deletion_protection, as: 'deletionProtection'
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::MetastoreV1beta::EncryptionConfig, decorator: Google::Apis::MetastoreV1beta::EncryptionConfig::Representation

property :endpoint_uri, as: 'endpointUri'
Expand Down

0 comments on commit 7b30b07

Please sign in to comment.