Skip to content

Commit

Permalink
feat: Automated regeneration of alloydb v1 client (googleapis#20269)
Browse files Browse the repository at this point in the history
Auto-created at 2024-09-22 09:56:37 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Sep 22, 2024
1 parent 66bdace commit 6fd6998
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20850,6 +20850,7 @@
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/product": product
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/resourceContainer": resource_container
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/resourceName": resource_name
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/tagsSet": tags_set
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/updationTime": updation_time
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/userLabelSet": user_label_set
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/userLabels": user_labels
Expand Down Expand Up @@ -20877,6 +20878,7 @@
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainMachineConfiguration": storage_databasecenter_partnerapi_v1main_machine_configuration
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainMachineConfiguration/cpuCount": cpu_count
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainMachineConfiguration/memorySizeInBytes": memory_size_in_bytes
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainMachineConfiguration/shardCount": shard_count
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData": storage_databasecenter_partnerapi_v1main_observability_metric_data
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData/aggregationType": aggregation_type
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainObservabilityMetricData/metricTimestamp": metric_timestamp
Expand All @@ -20892,6 +20894,9 @@
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainRetentionSettings/quantityBasedRetention": quantity_based_retention
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainRetentionSettings/retentionUnit": retention_unit
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainRetentionSettings/timeBasedRetention": time_based_retention
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainTags": storage_databasecenter_partnerapi_v1main_tags
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainTags/tags": tags
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainTags/tags/tag": tag
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainUserLabels": storage_databasecenter_partnerapi_v1main_user_labels
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainUserLabels/labels": labels
"/alloydb:v1/StorageDatabasecenterPartnerapiV1mainUserLabels/labels/label": label
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-alloydb_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-alloydb_v1

### v0.22.0 (2024-09-22)

* Regenerated from discovery document revision 20240909

### v0.21.0 (2024-09-08)

* Regenerated from discovery document revision 20240828
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed
# @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId]
attr_accessor :resource_id

# Common model for database resource instance metadata.
# Common model for database resource instance metadata. Next ID: 21
# Corresponds to the JSON property `resourceMetadata`
# @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata]
attr_accessor :resource_metadata
Expand Down Expand Up @@ -2717,7 +2717,7 @@ def update!(**args)
end
end

# Common model for database resource instance metadata.
# Common model for database resource instance metadata. Next ID: 21
class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
include Google::Apis::Core::Hashable

Expand Down Expand Up @@ -2813,6 +2813,13 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
# @return [String]
attr_accessor :resource_name

# Message type for storing tags. Tags provide a way to create annotations for
# resources, and in some cases conditionally allow or deny policies based on
# whether a resource has a specific tag.
# Corresponds to the JSON property `tagsSet`
# @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainTags]
attr_accessor :tags_set

# The time at which the resource was updated and recorded at partner service.
# Corresponds to the JSON property `updationTime`
# @return [String]
Expand Down Expand Up @@ -2847,6 +2854,7 @@ def update!(**args)
@product = args[:product] if args.key?(:product)
@resource_container = args[:resource_container] if args.key?(:resource_container)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@tags_set = args[:tags_set] if args.key?(:tags_set)
@updation_time = args[:updation_time] if args.key?(:updation_time)
@user_label_set = args[:user_label_set] if args.key?(:user_label_set)
end
Expand Down Expand Up @@ -3014,6 +3022,11 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
# @return [Fixnum]
attr_accessor :memory_size_in_bytes

# Optional. Number of shards (if applicable).
# Corresponds to the JSON property `shardCount`
# @return [Fixnum]
attr_accessor :shard_count

def initialize(**args)
update!(**args)
end
Expand All @@ -3022,6 +3035,7 @@ def initialize(**args)
def update!(**args)
@cpu_count = args[:cpu_count] if args.key?(:cpu_count)
@memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
@shard_count = args[:shard_count] if args.key?(:shard_count)
end
end

Expand Down Expand Up @@ -3132,6 +3146,27 @@ def update!(**args)
end
end

# Message type for storing tags. Tags provide a way to create annotations for
# resources, and in some cases conditionally allow or deny policies based on
# whether a resource has a specific tag.
class StorageDatabasecenterPartnerapiV1mainTags
include Google::Apis::Core::Hashable

# The Tag key/value mappings.
# Corresponds to the JSON property `tags`
# @return [Hash<String,String>]
attr_accessor :tags

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

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

# Message type for storing user labels. User labels are used to tag App Engine
# resources, allowing users to search for resources matching a set of labels and
# to aggregate usage data by labels.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AlloydbV1
# Version of the google-apis-alloydb_v1 gem
GEM_VERSION = "0.21.0"
GEM_VERSION = "0.22.0"

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

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

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

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

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

Expand Down Expand Up @@ -1237,6 +1243,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :resource_container, as: 'resourceContainer'
property :resource_name, as: 'resourceName'
property :tags_set, as: 'tagsSet', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainTags, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainTags::Representation

property :updation_time, as: 'updationTime'
property :user_label_set, as: 'userLabelSet', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels::Representation

Expand Down Expand Up @@ -1285,6 +1293,7 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu_count, as: 'cpuCount'
property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
property :shard_count, as: 'shardCount'
end
end

Expand Down Expand Up @@ -1318,6 +1327,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class StorageDatabasecenterPartnerapiV1mainTags
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :tags, as: 'tags'
end
end

class StorageDatabasecenterPartnerapiV1mainUserLabels
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 6fd6998

Please sign in to comment.