Skip to content

Commit 1ab4db0

Browse files
feat: Automated regeneration of alloydb v1 client (#19957)
Auto-created at 2024-07-25 20:23:40 +0000 using the toys pull request generator.
1 parent bccdb51 commit 1ab4db0

5 files changed

Lines changed: 73 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20205,6 +20205,8 @@
2020520205
"/alloydb:v1/Cluster/secondaryConfig": secondary_config
2020620206
"/alloydb:v1/Cluster/sslConfig": ssl_config
2020720207
"/alloydb:v1/Cluster/state": state
20208+
"/alloydb:v1/Cluster/subscriptionType": subscription_type
20209+
"/alloydb:v1/Cluster/trialMetadata": trial_metadata
2020820210
"/alloydb:v1/Cluster/uid": uid
2020920211
"/alloydb:v1/Cluster/updateTime": update_time
2021020212
"/alloydb:v1/ConnectionInfo": connection_info
@@ -20560,6 +20562,10 @@
2056020562
"/alloydb:v1/SwitchoverClusterRequest/validateOnly": validate_only
2056120563
"/alloydb:v1/TimeBasedRetention": time_based_retention
2056220564
"/alloydb:v1/TimeBasedRetention/retentionPeriod": retention_period
20565+
"/alloydb:v1/TrialMetadata": trial_metadata
20566+
"/alloydb:v1/TrialMetadata/endTime": end_time
20567+
"/alloydb:v1/TrialMetadata/startTime": start_time
20568+
"/alloydb:v1/TrialMetadata/upgradeTime": upgrade_time
2056320569
"/alloydb:v1/User": user
2056420570
"/alloydb:v1/User/databaseRoles": database_roles
2056520571
"/alloydb:v1/User/databaseRoles/database_role": database_role

generated/google-apis-alloydb_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-alloydb_v1
22

3+
### v0.18.0 (2024-07-25)
4+
5+
* Regenerated from discovery document revision 20240627
6+
37
### v0.17.0 (2024-06-23)
48

59
* Regenerated from discovery document revision 20240612

generated/google-apis-alloydb_v1/lib/google/apis/alloydb_v1/classes.rb

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,16 @@ class Cluster
562562
# @return [String]
563563
attr_accessor :state
564564

565+
# Optional. Subscription type of the cluster.
566+
# Corresponds to the JSON property `subscriptionType`
567+
# @return [String]
568+
attr_accessor :subscription_type
569+
570+
# Contains information and all metadata related to TRIAL clusters.
571+
# Corresponds to the JSON property `trialMetadata`
572+
# @return [Google::Apis::AlloydbV1::TrialMetadata]
573+
attr_accessor :trial_metadata
574+
565575
# Output only. The system-generated UID of the resource. The UID is assigned
566576
# when the resource is created, and it is retained until it is deleted.
567577
# Corresponds to the JSON property `uid`
@@ -607,6 +617,8 @@ def update!(**args)
607617
@secondary_config = args[:secondary_config] if args.key?(:secondary_config)
608618
@ssl_config = args[:ssl_config] if args.key?(:ssl_config)
609619
@state = args[:state] if args.key?(:state)
620+
@subscription_type = args[:subscription_type] if args.key?(:subscription_type)
621+
@trial_metadata = args[:trial_metadata] if args.key?(:trial_metadata)
610622
@uid = args[:uid] if args.key?(:uid)
611623
@update_time = args[:update_time] if args.key?(:update_time)
612624
end
@@ -3206,6 +3218,37 @@ def update!(**args)
32063218
end
32073219
end
32083220

3221+
# Contains information and all metadata related to TRIAL clusters.
3222+
class TrialMetadata
3223+
include Google::Apis::Core::Hashable
3224+
3225+
# End time of the trial cluster.
3226+
# Corresponds to the JSON property `endTime`
3227+
# @return [String]
3228+
attr_accessor :end_time
3229+
3230+
# start time of the trial cluster.
3231+
# Corresponds to the JSON property `startTime`
3232+
# @return [String]
3233+
attr_accessor :start_time
3234+
3235+
# Upgrade time of trial cluster to Standard cluster.
3236+
# Corresponds to the JSON property `upgradeTime`
3237+
# @return [String]
3238+
attr_accessor :upgrade_time
3239+
3240+
def initialize(**args)
3241+
update!(**args)
3242+
end
3243+
3244+
# Update properties of this object
3245+
def update!(**args)
3246+
@end_time = args[:end_time] if args.key?(:end_time)
3247+
@start_time = args[:start_time] if args.key?(:start_time)
3248+
@upgrade_time = args[:upgrade_time] if args.key?(:upgrade_time)
3249+
end
3250+
end
3251+
32093252
# Message describing User object.
32103253
class User
32113254
include Google::Apis::Core::Hashable

generated/google-apis-alloydb_v1/lib/google/apis/alloydb_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AlloydbV1
1818
# Version of the google-apis-alloydb_v1 gem
19-
GEM_VERSION = "0.17.0"
19+
GEM_VERSION = "0.18.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240612"
25+
REVISION = "20240627"
2626
end
2727
end
2828
end

generated/google-apis-alloydb_v1/lib/google/apis/alloydb_v1/representations.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
466466
include Google::Apis::Core::JsonObjectSupport
467467
end
468468

469+
class TrialMetadata
470+
class Representation < Google::Apis::Core::JsonRepresentation; end
471+
472+
include Google::Apis::Core::JsonObjectSupport
473+
end
474+
469475
class User
470476
class Representation < Google::Apis::Core::JsonRepresentation; end
471477

@@ -617,6 +623,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
617623
property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1::SslConfig, decorator: Google::Apis::AlloydbV1::SslConfig::Representation
618624

619625
property :state, as: 'state'
626+
property :subscription_type, as: 'subscriptionType'
627+
property :trial_metadata, as: 'trialMetadata', class: Google::Apis::AlloydbV1::TrialMetadata, decorator: Google::Apis::AlloydbV1::TrialMetadata::Representation
628+
620629
property :uid, as: 'uid'
621630
property :update_time, as: 'updateTime'
622631
end
@@ -1306,6 +1315,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
13061315
end
13071316
end
13081317

1318+
class TrialMetadata
1319+
# @private
1320+
class Representation < Google::Apis::Core::JsonRepresentation
1321+
property :end_time, as: 'endTime'
1322+
property :start_time, as: 'startTime'
1323+
property :upgrade_time, as: 'upgradeTime'
1324+
end
1325+
end
1326+
13091327
class User
13101328
# @private
13111329
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)