diff --git a/api_names_out.yaml b/api_names_out.yaml index 8649edff29a..82c8221d435 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -26384,6 +26384,10 @@ "/alloydb:v1alpha/quotaUser": quota_user "/alloydb:v1beta/AuthorizedNetwork": authorized_network "/alloydb:v1beta/AuthorizedNetwork/cidrRange": cidr_range +"/alloydb:v1beta/AutoScalingConfig": auto_scaling_config +"/alloydb:v1beta/AutoScalingConfig/policy": policy +"/alloydb:v1beta/AutoScalingConfig/schedules": schedules +"/alloydb:v1beta/AutoScalingConfig/schedules/schedule": schedule "/alloydb:v1beta/AutomatedBackupPolicy": automated_backup_policy "/alloydb:v1beta/AutomatedBackupPolicy/backupWindow": backup_window "/alloydb:v1beta/AutomatedBackupPolicy/enabled": enabled @@ -26422,6 +26426,25 @@ "/alloydb:v1beta/Backup/type": type "/alloydb:v1beta/Backup/uid": uid "/alloydb:v1beta/Backup/updateTime": update_time +"/alloydb:v1beta/BackupDrBackupSource": backup_dr_backup_source +"/alloydb:v1beta/BackupDrBackupSource/backup": backup +"/alloydb:v1beta/BackupDrEnabledWindow": backup_dr_enabled_window +"/alloydb:v1beta/BackupDrEnabledWindow/automatedBackupPreviouslyEnabled": automated_backup_previously_enabled +"/alloydb:v1beta/BackupDrEnabledWindow/backupPlanAssociation": backup_plan_association +"/alloydb:v1beta/BackupDrEnabledWindow/continuousBackupPreviousRecoveryWindowDays": continuous_backup_previous_recovery_window_days +"/alloydb:v1beta/BackupDrEnabledWindow/continuousBackupPreviouslyEnabled": continuous_backup_previously_enabled +"/alloydb:v1beta/BackupDrEnabledWindow/continuousBackupPreviouslyEnabledTime": continuous_backup_previously_enabled_time +"/alloydb:v1beta/BackupDrEnabledWindow/dataSource": data_source +"/alloydb:v1beta/BackupDrEnabledWindow/disabledTime": disabled_time +"/alloydb:v1beta/BackupDrEnabledWindow/enabledTime": enabled_time +"/alloydb:v1beta/BackupDrEnabledWindow/logRetentionPeriod": log_retention_period +"/alloydb:v1beta/BackupDrInfo": backup_dr_info +"/alloydb:v1beta/BackupDrInfo/currentWindow": current_window +"/alloydb:v1beta/BackupDrInfo/previousWindows": previous_windows +"/alloydb:v1beta/BackupDrInfo/previousWindows/previous_window": previous_window +"/alloydb:v1beta/BackupDrPitrSource": backup_dr_pitr_source +"/alloydb:v1beta/BackupDrPitrSource/dataSource": data_source +"/alloydb:v1beta/BackupDrPitrSource/pointInTime": point_in_time "/alloydb:v1beta/BackupSource": backup_source "/alloydb:v1beta/BackupSource/backupName": backup_name "/alloydb:v1beta/BackupSource/backupUid": backup_uid @@ -26440,6 +26463,8 @@ "/alloydb:v1beta/Cluster/annotations/annotation": annotation "/alloydb:v1beta/Cluster/automatedBackupPolicy": automated_backup_policy "/alloydb:v1beta/Cluster/backupSource": backup_source +"/alloydb:v1beta/Cluster/backupdrBackupSource": backupdr_backup_source +"/alloydb:v1beta/Cluster/backupdrInfo": backupdr_info "/alloydb:v1beta/Cluster/cloudsqlBackupRunSource": cloudsql_backup_run_source "/alloydb:v1beta/Cluster/clusterType": cluster_type "/alloydb:v1beta/Cluster/continuousBackupConfig": continuous_backup_config @@ -26522,6 +26547,8 @@ "/alloydb:v1beta/ContinuousBackupSource": continuous_backup_source "/alloydb:v1beta/ContinuousBackupSource/cluster": cluster "/alloydb:v1beta/ContinuousBackupSource/pointInTime": point_in_time +"/alloydb:v1beta/CpuUtilization": cpu_utilization +"/alloydb:v1beta/CpuUtilization/utilizationTarget": utilization_target "/alloydb:v1beta/CsvExportOptions": csv_export_options "/alloydb:v1beta/CsvExportOptions/escapeCharacter": escape_character "/alloydb:v1beta/CsvExportOptions/fieldDelimiter": field_delimiter @@ -26678,6 +26705,8 @@ "/alloydb:v1beta/ListOperationsResponse/nextPageToken": next_page_token "/alloydb:v1beta/ListOperationsResponse/operations": operations "/alloydb:v1beta/ListOperationsResponse/operations/operation": operation +"/alloydb:v1beta/ListOperationsResponse/unreachable": unreachable +"/alloydb:v1beta/ListOperationsResponse/unreachable/unreachable": unreachable "/alloydb:v1beta/ListSupportedDatabaseFlagsResponse": list_supported_database_flags_response "/alloydb:v1beta/ListSupportedDatabaseFlagsResponse/nextPageToken": next_page_token "/alloydb:v1beta/ListSupportedDatabaseFlagsResponse/supportedDatabaseFlags": supported_database_flags @@ -26741,6 +26770,11 @@ "/alloydb:v1beta/OperationMetadata/target": target "/alloydb:v1beta/OperationMetadata/upgradeClusterStatus": upgrade_cluster_status "/alloydb:v1beta/OperationMetadata/verb": verb +"/alloydb:v1beta/Policy": policy +"/alloydb:v1beta/Policy/coolDownPeriodSec": cool_down_period_sec +"/alloydb:v1beta/Policy/cpuUtilization": cpu_utilization +"/alloydb:v1beta/Policy/enabled": enabled +"/alloydb:v1beta/Policy/maxNodeCount": max_node_count "/alloydb:v1beta/PrimaryConfig": primary_config "/alloydb:v1beta/PrimaryConfig/secondaryClusterNames": secondary_cluster_names "/alloydb:v1beta/PrimaryConfig/secondaryClusterNames/secondary_cluster_name": secondary_cluster_name @@ -26787,6 +26821,7 @@ "/alloydb:v1beta/QueryInsightsInstanceConfig/recordApplicationTags": record_application_tags "/alloydb:v1beta/QueryInsightsInstanceConfig/recordClientAddress": record_client_address "/alloydb:v1beta/ReadPoolConfig": read_pool_config +"/alloydb:v1beta/ReadPoolConfig/autoScalingConfig": auto_scaling_config "/alloydb:v1beta/ReadPoolConfig/nodeCount": node_count "/alloydb:v1beta/ReadPoolInstancesUpgradeStageStatus": read_pool_instances_upgrade_stage_status "/alloydb:v1beta/ReadPoolInstancesUpgradeStageStatus/upgradeStats": upgrade_stats @@ -26797,6 +26832,8 @@ "/alloydb:v1beta/RestartInstanceRequest/validateOnly": validate_only "/alloydb:v1beta/RestoreClusterRequest": restore_cluster_request "/alloydb:v1beta/RestoreClusterRequest/backupSource": backup_source +"/alloydb:v1beta/RestoreClusterRequest/backupdrBackupSource": backupdr_backup_source +"/alloydb:v1beta/RestoreClusterRequest/backupdrPitrSource": backupdr_pitr_source "/alloydb:v1beta/RestoreClusterRequest/cluster": cluster "/alloydb:v1beta/RestoreClusterRequest/clusterId": cluster_id "/alloydb:v1beta/RestoreClusterRequest/continuousBackupSource": continuous_backup_source @@ -26806,6 +26843,14 @@ "/alloydb:v1beta/RestoreFromCloudSQLRequest/cloudsqlBackupRunSource": cloudsql_backup_run_source "/alloydb:v1beta/RestoreFromCloudSQLRequest/cluster": cluster "/alloydb:v1beta/RestoreFromCloudSQLRequest/clusterId": cluster_id +"/alloydb:v1beta/Schedule": schedule +"/alloydb:v1beta/Schedule/cronExpression": cron_expression +"/alloydb:v1beta/Schedule/description": description +"/alloydb:v1beta/Schedule/disabled": disabled +"/alloydb:v1beta/Schedule/durationSec": duration_sec +"/alloydb:v1beta/Schedule/minNodeCount": min_node_count +"/alloydb:v1beta/Schedule/name": name +"/alloydb:v1beta/Schedule/timeZone": time_zone "/alloydb:v1beta/SecondaryConfig": secondary_config "/alloydb:v1beta/SecondaryConfig/primaryClusterName": primary_cluster_name "/alloydb:v1beta/SqlExportOptions": sql_export_options @@ -26940,6 +26985,7 @@ "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/instanceType": instance_type "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/location": location "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/machineConfiguration": machine_configuration +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/maintenanceInfo": maintenance_info "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/primaryResourceId": primary_resource_id "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/primaryResourceLocation": primary_resource_location "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata/product": product @@ -26998,6 +27044,19 @@ "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainOperationError/code": code "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainOperationError/errorType": error_type "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainOperationError/message": message +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule": storage_databasecenter_partnerapi_v1main_resource_maintenance_deny_schedule +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule/endDate": end_date +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule/startDate": start_date +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule/time": time +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo": storage_databasecenter_partnerapi_v1main_resource_maintenance_info +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo/denyMaintenanceSchedules": deny_maintenance_schedules +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo/denyMaintenanceSchedules/deny_maintenance_schedule": deny_maintenance_schedule +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo/maintenanceSchedule": maintenance_schedule +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo/maintenanceVersion": maintenance_version +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule": storage_databasecenter_partnerapi_v1main_resource_maintenance_schedule +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule/day": day +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule/phase": phase +"/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule/time": time "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainRetentionSettings": storage_databasecenter_partnerapi_v1main_retention_settings "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainRetentionSettings/durationBasedRetention": duration_based_retention "/alloydb:v1beta/StorageDatabasecenterPartnerapiV1mainRetentionSettings/quantityBasedRetention": quantity_based_retention @@ -27232,6 +27291,7 @@ "/alloydb:v1beta/alloydb.projects.locations.operations.list/name": name "/alloydb:v1beta/alloydb.projects.locations.operations.list/pageSize": page_size "/alloydb:v1beta/alloydb.projects.locations.operations.list/pageToken": page_token +"/alloydb:v1beta/alloydb.projects.locations.operations.list/returnPartialSuccess": return_partial_success "/alloydb:v1beta/alloydb.projects.locations.supportedDatabaseFlags.list": list_project_location_supported_database_flags "/alloydb:v1beta/alloydb.projects.locations.supportedDatabaseFlags.list/pageSize": page_size "/alloydb:v1beta/alloydb.projects.locations.supportedDatabaseFlags.list/pageToken": page_token diff --git a/generated/google-apis-alloydb_v1beta/CHANGELOG.md b/generated/google-apis-alloydb_v1beta/CHANGELOG.md index 3b11354c680..def65f5f6ff 100644 --- a/generated/google-apis-alloydb_v1beta/CHANGELOG.md +++ b/generated/google-apis-alloydb_v1beta/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-alloydb_v1beta +### v0.38.0 (2025-10-05) + +* Regenerated from discovery document revision 20250925 + ### v0.37.0 (2025-09-28) * Regenerated from discovery document revision 20250910 diff --git a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/classes.rb b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/classes.rb index f58e3d41e6b..0ece54261db 100644 --- a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/classes.rb +++ b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/classes.rb @@ -41,6 +41,32 @@ def update!(**args) end end + # Configuration for autoscaling. + class AutoScalingConfig + include Google::Apis::Core::Hashable + + # Policy for the autoscaler. + # Corresponds to the JSON property `policy` + # @return [Google::Apis::AlloydbV1beta::Policy] + attr_accessor :policy + + # Optional list of schedules for the MIG autoscaler. If not set, no schedules + # are created. + # Corresponds to the JSON property `schedules` + # @return [Array] + attr_accessor :schedules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + @schedules = args[:schedules] if args.key?(:schedules) + end + end + # Message describing the user-specified automated backup policy. All fields in # the automated backup policy are optional. Defaults for each field are provided # if they are not set. @@ -304,6 +330,157 @@ def update!(**args) end end + # Message describing a BackupDrBackupSource. + class BackupDrBackupSource + include Google::Apis::Core::Hashable + + # Required. The name of the backup resource with the format: * projects/`project` + # /locations/`location`/backupVaults/`backupvault_id`/dataSources/`datasource_id` + # /backups/`backup_id` + # Corresponds to the JSON property `backup` + # @return [String] + attr_accessor :backup + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backup = args[:backup] if args.key?(:backup) + end + end + + # Information about a single window when BackupDR was enabled for this cluster. + class BackupDrEnabledWindow + include Google::Apis::Core::Hashable + + # Whether automated backup was previously enabled prior to enabling BackupDR + # protection for this cluster. + # Corresponds to the JSON property `automatedBackupPreviouslyEnabled` + # @return [Boolean] + attr_accessor :automated_backup_previously_enabled + alias_method :automated_backup_previously_enabled?, :automated_backup_previously_enabled + + # The BackupPlanAssociation resource that was used to enable BackupDR protection + # for this cluster. + # Corresponds to the JSON property `backupPlanAssociation` + # @return [String] + attr_accessor :backup_plan_association + + # The retention set for the continuous backup that was previously enabled prior + # to enabling BackupDR protection for this cluster. + # Corresponds to the JSON property `continuousBackupPreviousRecoveryWindowDays` + # @return [Fixnum] + attr_accessor :continuous_backup_previous_recovery_window_days + + # Whether continuous backup was previously enabled prior to enabling BackupDR + # protection for this cluster. + # Corresponds to the JSON property `continuousBackupPreviouslyEnabled` + # @return [Boolean] + attr_accessor :continuous_backup_previously_enabled + alias_method :continuous_backup_previously_enabled?, :continuous_backup_previously_enabled + + # The time when continuous backup was previously enabled prior to enabling + # BackupDR protection for this cluster. + # Corresponds to the JSON property `continuousBackupPreviouslyEnabledTime` + # @return [String] + attr_accessor :continuous_backup_previously_enabled_time + + # The DataSource resource that represents the cluster in BackupDR. + # Corresponds to the JSON property `dataSource` + # @return [String] + attr_accessor :data_source + + # Time when the BackupDR protection for this cluster was disabled. This field + # will be empty if this BackupDR window is the `current_window`. + # Corresponds to the JSON property `disabledTime` + # @return [String] + attr_accessor :disabled_time + + # Time when the BackupDR protection for this cluster was enabled. + # Corresponds to the JSON property `enabledTime` + # @return [String] + attr_accessor :enabled_time + + # The retention period for logs generated by BackupDR for this cluster. + # Corresponds to the JSON property `logRetentionPeriod` + # @return [String] + attr_accessor :log_retention_period + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @automated_backup_previously_enabled = args[:automated_backup_previously_enabled] if args.key?(:automated_backup_previously_enabled) + @backup_plan_association = args[:backup_plan_association] if args.key?(:backup_plan_association) + @continuous_backup_previous_recovery_window_days = args[:continuous_backup_previous_recovery_window_days] if args.key?(:continuous_backup_previous_recovery_window_days) + @continuous_backup_previously_enabled = args[:continuous_backup_previously_enabled] if args.key?(:continuous_backup_previously_enabled) + @continuous_backup_previously_enabled_time = args[:continuous_backup_previously_enabled_time] if args.key?(:continuous_backup_previously_enabled_time) + @data_source = args[:data_source] if args.key?(:data_source) + @disabled_time = args[:disabled_time] if args.key?(:disabled_time) + @enabled_time = args[:enabled_time] if args.key?(:enabled_time) + @log_retention_period = args[:log_retention_period] if args.key?(:log_retention_period) + end + end + + # Information about BackupDR protection for this cluster. + class BackupDrInfo + include Google::Apis::Core::Hashable + + # Information about a single window when BackupDR was enabled for this cluster. + # Corresponds to the JSON property `currentWindow` + # @return [Google::Apis::AlloydbV1beta::BackupDrEnabledWindow] + attr_accessor :current_window + + # Windows during which BackupDR was enabled for this cluster, along with + # associated configuration for that window. These are used to determine points- + # in-time for which restores can be performed. The windows are ordered with the + # most recent window last. Windows are mutally exclusive. Windows which closed + # more than 1 year ago will be removed from this list. + # Corresponds to the JSON property `previousWindows` + # @return [Array] + attr_accessor :previous_windows + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_window = args[:current_window] if args.key?(:current_window) + @previous_windows = args[:previous_windows] if args.key?(:previous_windows) + end + end + + # Message describing a BackupDrPitrSource. + class BackupDrPitrSource + include Google::Apis::Core::Hashable + + # Required. The name of the backup resource with the format: * projects/`project` + # /locations/`location`/backupVaults/`backupvault_id`/dataSources/`datasource_id` + # Corresponds to the JSON property `dataSource` + # @return [String] + attr_accessor :data_source + + # Required. The point in time to restore to. + # Corresponds to the JSON property `pointInTime` + # @return [String] + attr_accessor :point_in_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_source = args[:data_source] if args.key?(:data_source) + @point_in_time = args[:point_in_time] if args.key?(:point_in_time) + end + end + # Message describing a BackupSource. class BackupSource include Google::Apis::Core::Hashable @@ -441,6 +618,16 @@ class Cluster # @return [Google::Apis::AlloydbV1beta::BackupSource] attr_accessor :backup_source + # Message describing a BackupDrBackupSource. + # Corresponds to the JSON property `backupdrBackupSource` + # @return [Google::Apis::AlloydbV1beta::BackupDrBackupSource] + attr_accessor :backupdr_backup_source + + # Information about BackupDR protection for this cluster. + # Corresponds to the JSON property `backupdrInfo` + # @return [Google::Apis::AlloydbV1beta::BackupDrInfo] + attr_accessor :backupdr_info + # The source CloudSQL backup resource. # Corresponds to the JSON property `cloudsqlBackupRunSource` # @return [Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource] @@ -651,6 +838,8 @@ def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @automated_backup_policy = args[:automated_backup_policy] if args.key?(:automated_backup_policy) @backup_source = args[:backup_source] if args.key?(:backup_source) + @backupdr_backup_source = args[:backupdr_backup_source] if args.key?(:backupdr_backup_source) + @backupdr_info = args[:backupdr_info] if args.key?(:backupdr_info) @cloudsql_backup_run_source = args[:cloudsql_backup_run_source] if args.key?(:cloudsql_backup_run_source) @cluster_type = args[:cluster_type] if args.key?(:cluster_type) @continuous_backup_config = args[:continuous_backup_config] if args.key?(:continuous_backup_config) @@ -1021,6 +1210,25 @@ def update!(**args) end end + # CPU utilization policy for the autoscaler. + class CpuUtilization + include Google::Apis::Core::Hashable + + # Target CPU utilization as a float between 0 and 1. + # Corresponds to the JSON property `utilizationTarget` + # @return [Float] + attr_accessor :utilization_target + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) + end + end + # Options for exporting data in CSV format. class CsvExportOptions include Google::Apis::Core::Hashable @@ -2109,6 +2317,13 @@ class ListOperationsResponse # @return [Array] attr_accessor :operations + # Unordered list. Unreachable resources. Populated when the request sets ` + # ListOperationsRequest.return_partial_success` and reads across collections e.g. + # when attempting to list all resources across all supported locations. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + def initialize(**args) update!(**args) end @@ -2117,6 +2332,7 @@ def initialize(**args) def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @operations = args[:operations] if args.key?(:operations) + @unreachable = args[:unreachable] if args.key?(:unreachable) end end @@ -2604,6 +2820,47 @@ def update!(**args) end end + # Policy for the autoscaler. + class Policy + include Google::Apis::Core::Hashable + + # The period of time in seconds after a new node is created before the + # autoscaler will incorporate its resource usage (e.g. CPU utilization) into the + # autoscaling recommendation algorithm. + # Corresponds to the JSON property `coolDownPeriodSec` + # @return [Fixnum] + attr_accessor :cool_down_period_sec + + # CPU utilization policy for the autoscaler. + # Corresponds to the JSON property `cpuUtilization` + # @return [Google::Apis::AlloydbV1beta::CpuUtilization] + attr_accessor :cpu_utilization + + # If true, autoscaling is enabled for the instance. If not set, the default + # value is false. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + # Maximum number of nodes for the autoscaler. + # Corresponds to the JSON property `maxNodeCount` + # @return [Fixnum] + attr_accessor :max_node_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) + @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) + @enabled = args[:enabled] if args.key?(:enabled) + @max_node_count = args[:max_node_count] if args.key?(:max_node_count) + end + end + # Configuration for the primary cluster. It has the list of clusters that are # replicating from this cluster. This should be set if and only if the cluster # is of type PRIMARY. @@ -2934,6 +3191,11 @@ def update!(**args) class ReadPoolConfig include Google::Apis::Core::Hashable + # Configuration for autoscaling. + # Corresponds to the JSON property `autoScalingConfig` + # @return [Google::Apis::AlloydbV1beta::AutoScalingConfig] + attr_accessor :auto_scaling_config + # Read capacity, i.e. number of nodes in a read pool instance. # Corresponds to the JSON property `nodeCount` # @return [Fixnum] @@ -2945,6 +3207,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @auto_scaling_config = args[:auto_scaling_config] if args.key?(:auto_scaling_config) @node_count = args[:node_count] if args.key?(:node_count) end end @@ -3022,6 +3285,16 @@ class RestoreClusterRequest # @return [Google::Apis::AlloydbV1beta::BackupSource] attr_accessor :backup_source + # Message describing a BackupDrBackupSource. + # Corresponds to the JSON property `backupdrBackupSource` + # @return [Google::Apis::AlloydbV1beta::BackupDrBackupSource] + attr_accessor :backupdr_backup_source + + # Message describing a BackupDrPitrSource. + # Corresponds to the JSON property `backupdrPitrSource` + # @return [Google::Apis::AlloydbV1beta::BackupDrPitrSource] + attr_accessor :backupdr_pitr_source + # A cluster is a collection of regional AlloyDB resources. It can include a # primary instance and one or more read pool instances. All cluster resources # share a storage layer, which scales as needed. @@ -3068,6 +3341,8 @@ def initialize(**args) # Update properties of this object def update!(**args) @backup_source = args[:backup_source] if args.key?(:backup_source) + @backupdr_backup_source = args[:backupdr_backup_source] if args.key?(:backupdr_backup_source) + @backupdr_pitr_source = args[:backupdr_pitr_source] if args.key?(:backupdr_pitr_source) @cluster = args[:cluster] if args.key?(:cluster) @cluster_id = args[:cluster_id] if args.key?(:cluster_id) @continuous_backup_source = args[:continuous_backup_source] if args.key?(:continuous_backup_source) @@ -3109,6 +3384,64 @@ def update!(**args) end end + # A schedule for the autoscaler. + class Schedule + include Google::Apis::Core::Hashable + + # Cron expression for the triggering the schedule. See https://cloud.google.com/ + # compute/docs/autoscaler/scaling-schedules#cron_expressions for the syntax. + # Corresponds to the JSON property `cronExpression` + # @return [String] + attr_accessor :cron_expression + + # Description of the schedule. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # If true, the schedule is disabled. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # Duration of the schedule. + # Corresponds to the JSON property `durationSec` + # @return [Fixnum] + attr_accessor :duration_sec + + # Minimum number of nodes in while the schedule is active. + # Corresponds to the JSON property `minNodeCount` + # @return [Fixnum] + attr_accessor :min_node_count + + # Name of the schedule. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The location-based IANA time zone for interpreting the schedule's start time. + # If no time zone is provided, UTC is used by default. + # Corresponds to the JSON property `timeZone` + # @return [String] + attr_accessor :time_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cron_expression = args[:cron_expression] if args.key?(:cron_expression) + @description = args[:description] if args.key?(:description) + @disabled = args[:disabled] if args.key?(:disabled) + @duration_sec = args[:duration_sec] if args.key?(:duration_sec) + @min_node_count = args[:min_node_count] if args.key?(:min_node_count) + @name = args[:name] if args.key?(:name) + @time_zone = args[:time_zone] if args.key?(:time_zone) + end + end + # Configuration information for the secondary cluster. This should be set if and # only if the cluster is of type SECONDARY. class SecondaryConfig @@ -3244,43 +3577,6 @@ def update!(**args) end end - # Timing information for the stage execution. - class StageSchedule - include Google::Apis::Core::Hashable - - # Actual end time of the stage. Set only if the stage has completed. - # Corresponds to the JSON property `actualEndTime` - # @return [String] - attr_accessor :actual_end_time - - # Actual start time of the stage. Set only if the stage has started. - # Corresponds to the JSON property `actualStartTime` - # @return [String] - attr_accessor :actual_start_time - - # When the stage is expected to end. Set only if the stage has not completed yet. - # Corresponds to the JSON property `estimatedEndTime` - # @return [String] - attr_accessor :estimated_end_time - - # When the stage is expected to start. Set only if the stage has not started yet. - # Corresponds to the JSON property `estimatedStartTime` - # @return [String] - attr_accessor :estimated_start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @actual_end_time = args[:actual_end_time] if args.key?(:actual_end_time) - @actual_start_time = args[:actual_start_time] if args.key?(:actual_start_time) - @estimated_end_time = args[:estimated_end_time] if args.key?(:estimated_end_time) - @estimated_start_time = args[:estimated_start_time] if args.key?(:estimated_start_time) - end - end - # Status of an upgrade stage. class StageStatus include Google::Apis::Core::Hashable @@ -3290,11 +3586,6 @@ class StageStatus # @return [Google::Apis::AlloydbV1beta::ReadPoolInstancesUpgradeStageStatus] attr_accessor :read_pool_instances_upgrade - # Timing information for the stage execution. - # Corresponds to the JSON property `schedule` - # @return [Google::Apis::AlloydbV1beta::StageSchedule] - attr_accessor :schedule - # Upgrade stage. # Corresponds to the JSON property `stage` # @return [String] @@ -3312,7 +3603,6 @@ def initialize(**args) # Update properties of this object def update!(**args) @read_pool_instances_upgrade = args[:read_pool_instances_upgrade] if args.key?(:read_pool_instances_upgrade) - @schedule = args[:schedule] if args.key?(:schedule) @stage = args[:stage] if args.key?(:stage) @state = args[:state] if args.key?(:state) end @@ -3740,7 +4030,7 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed # @return [Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId] attr_accessor :resource_id - # Common model for database resource instance metadata. Next ID: 27 + # Common model for database resource instance metadata. Next ID: 29 # Corresponds to the JSON property `resourceMetadata` # @return [Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata] attr_accessor :resource_metadata @@ -3938,7 +4228,7 @@ def update!(**args) end end - # Common model for database resource instance metadata. Next ID: 27 + # Common model for database resource instance metadata. Next ID: 29 class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata include Google::Apis::Core::Hashable @@ -4026,6 +4316,11 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata # @return [Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainMachineConfiguration] attr_accessor :machine_configuration + # MaintenanceInfo to capture the maintenance details of database resource. + # Corresponds to the JSON property `maintenanceInfo` + # @return [Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo] + attr_accessor :maintenance_info + # DatabaseResourceId will serve as primary key for any resource ingestion event. # Corresponds to the JSON property `primaryResourceId` # @return [Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId] @@ -4109,6 +4404,7 @@ def update!(**args) @instance_type = args[:instance_type] if args.key?(:instance_type) @location = args[:location] if args.key?(:location) @machine_configuration = args[:machine_configuration] if args.key?(:machine_configuration) + @maintenance_info = args[:maintenance_info] if args.key?(:maintenance_info) @primary_resource_id = args[:primary_resource_id] if args.key?(:primary_resource_id) @primary_resource_location = args[:primary_resource_location] if args.key?(:primary_resource_location) @product = args[:product] if args.key?(:product) @@ -4463,6 +4759,127 @@ def update!(**args) end end + # Deny maintenance period for the database resource. It specifies the time range + # during which the maintenance cannot start. This is configured by the customer. + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `endDate` + # @return [Google::Apis::AlloydbV1beta::GoogleTypeDate] + attr_accessor :end_date + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `startDate` + # @return [Google::Apis::AlloydbV1beta::GoogleTypeDate] + attr_accessor :start_date + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `time` + # @return [Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) + @time = args[:time] if args.key?(:time) + end + end + + # MaintenanceInfo to capture the maintenance details of database resource. + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo + include Google::Apis::Core::Hashable + + # Optional. List of Deny maintenance period for the database resource. + # Corresponds to the JSON property `denyMaintenanceSchedules` + # @return [Array] + attr_accessor :deny_maintenance_schedules + + # Maintenance window for the database resource. It specifies preferred time and + # day of the week and phase in some cases, when the maintenance can start. This + # is configured by the customer. + # Corresponds to the JSON property `maintenanceSchedule` + # @return [Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule] + attr_accessor :maintenance_schedule + + # Optional. Current Maintenance version of the database resource. Example: " + # MYSQL_8_0_41.R20250531.01_15" + # Corresponds to the JSON property `maintenanceVersion` + # @return [String] + attr_accessor :maintenance_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deny_maintenance_schedules = args[:deny_maintenance_schedules] if args.key?(:deny_maintenance_schedules) + @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule) + @maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version) + end + end + + # Maintenance window for the database resource. It specifies preferred time and + # day of the week and phase in some cases, when the maintenance can start. This + # is configured by the customer. + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule + include Google::Apis::Core::Hashable + + # Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. + # Corresponds to the JSON property `day` + # @return [String] + attr_accessor :day + + # Optional. Phase of the maintenance window. This is to capture order of + # maintenance. For example, for Cloud SQL resources, this can be used to capture + # if the maintenance window is in Week1, Week2, Week5, etc. Non production + # resources are usually part of early phase. For more details, refer to Cloud + # SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance + # Corresponds to the JSON property `phase` + # @return [String] + attr_accessor :phase + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `time` + # @return [Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @phase = args[:phase] if args.key?(:phase) + @time = args[:time] if args.key?(:time) + end + end + # class StorageDatabasecenterPartnerapiV1mainRetentionSettings include Google::Apis::Core::Hashable diff --git a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/gem_version.rb b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/gem_version.rb index 9feac21ffff..cd653edeefb 100644 --- a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/gem_version.rb +++ b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module AlloydbV1beta # Version of the google-apis-alloydb_v1beta gem - GEM_VERSION = "0.37.0" + GEM_VERSION = "0.38.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250910" + REVISION = "20250925" end end end diff --git a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/representations.rb b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/representations.rb index beb7c2b27b4..8a6dc343691 100644 --- a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/representations.rb +++ b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/representations.rb @@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AutoScalingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AutomatedBackupPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -40,6 +46,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class BackupDrBackupSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupDrEnabledWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupDrInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupDrPitrSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackupSource class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,6 +136,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CpuUtilization + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CsvExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -334,6 +370,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PrimaryConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -418,37 +460,37 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SecondaryConfig + class Schedule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SqlExportOptions + class SecondaryConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SqlImportOptions + class SqlExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SslConfig + class SqlImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class StageInfo + class SslConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class StageSchedule + class StageInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -592,6 +634,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StorageDatabasecenterPartnerapiV1mainRetentionSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -701,6 +761,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class AutoScalingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::AlloydbV1beta::Policy, decorator: Google::Apis::AlloydbV1beta::Policy::Representation + + collection :schedules, as: 'schedules', class: Google::Apis::AlloydbV1beta::Schedule, decorator: Google::Apis::AlloydbV1beta::Schedule::Representation + + end + end + class AutomatedBackupPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -752,6 +822,46 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class BackupDrBackupSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backup, as: 'backup' + end + end + + class BackupDrEnabledWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :automated_backup_previously_enabled, as: 'automatedBackupPreviouslyEnabled' + property :backup_plan_association, as: 'backupPlanAssociation' + property :continuous_backup_previous_recovery_window_days, as: 'continuousBackupPreviousRecoveryWindowDays' + property :continuous_backup_previously_enabled, as: 'continuousBackupPreviouslyEnabled' + property :continuous_backup_previously_enabled_time, as: 'continuousBackupPreviouslyEnabledTime' + property :data_source, as: 'dataSource' + property :disabled_time, as: 'disabledTime' + property :enabled_time, as: 'enabledTime' + property :log_retention_period, as: 'logRetentionPeriod' + end + end + + class BackupDrInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_window, as: 'currentWindow', class: Google::Apis::AlloydbV1beta::BackupDrEnabledWindow, decorator: Google::Apis::AlloydbV1beta::BackupDrEnabledWindow::Representation + + collection :previous_windows, as: 'previousWindows', class: Google::Apis::AlloydbV1beta::BackupDrEnabledWindow, decorator: Google::Apis::AlloydbV1beta::BackupDrEnabledWindow::Representation + + end + end + + class BackupDrPitrSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_source, as: 'dataSource' + property :point_in_time, as: 'pointInTime' + end + end + class BackupSource # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -794,6 +904,10 @@ class Representation < Google::Apis::Core::JsonRepresentation property :backup_source, as: 'backupSource', class: Google::Apis::AlloydbV1beta::BackupSource, decorator: Google::Apis::AlloydbV1beta::BackupSource::Representation + property :backupdr_backup_source, as: 'backupdrBackupSource', class: Google::Apis::AlloydbV1beta::BackupDrBackupSource, decorator: Google::Apis::AlloydbV1beta::BackupDrBackupSource::Representation + + property :backupdr_info, as: 'backupdrInfo', class: Google::Apis::AlloydbV1beta::BackupDrInfo, decorator: Google::Apis::AlloydbV1beta::BackupDrInfo::Representation + property :cloudsql_backup_run_source, as: 'cloudsqlBackupRunSource', class: Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource, decorator: Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource::Representation property :cluster_type, as: 'clusterType' @@ -920,6 +1034,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class CpuUtilization + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :utilization_target, as: 'utilizationTarget' + end + end + class CsvExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1201,6 +1322,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :next_page_token, as: 'nextPageToken' collection :operations, as: 'operations', class: Google::Apis::AlloydbV1beta::Operation, decorator: Google::Apis::AlloydbV1beta::Operation::Representation + collection :unreachable, as: 'unreachable' end end @@ -1327,6 +1449,17 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cool_down_period_sec, :numeric_string => true, as: 'coolDownPeriodSec' + property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AlloydbV1beta::CpuUtilization, decorator: Google::Apis::AlloydbV1beta::CpuUtilization::Representation + + property :enabled, as: 'enabled' + property :max_node_count, :numeric_string => true, as: 'maxNodeCount' + end + end + class PrimaryConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1410,6 +1543,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class ReadPoolConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :auto_scaling_config, as: 'autoScalingConfig', class: Google::Apis::AlloydbV1beta::AutoScalingConfig, decorator: Google::Apis::AlloydbV1beta::AutoScalingConfig::Representation + property :node_count, as: 'nodeCount' end end @@ -1436,6 +1571,10 @@ class RestoreClusterRequest class Representation < Google::Apis::Core::JsonRepresentation property :backup_source, as: 'backupSource', class: Google::Apis::AlloydbV1beta::BackupSource, decorator: Google::Apis::AlloydbV1beta::BackupSource::Representation + property :backupdr_backup_source, as: 'backupdrBackupSource', class: Google::Apis::AlloydbV1beta::BackupDrBackupSource, decorator: Google::Apis::AlloydbV1beta::BackupDrBackupSource::Representation + + property :backupdr_pitr_source, as: 'backupdrPitrSource', class: Google::Apis::AlloydbV1beta::BackupDrPitrSource, decorator: Google::Apis::AlloydbV1beta::BackupDrPitrSource::Representation + property :cluster, as: 'cluster', class: Google::Apis::AlloydbV1beta::Cluster, decorator: Google::Apis::AlloydbV1beta::Cluster::Representation property :cluster_id, as: 'clusterId' @@ -1457,6 +1596,19 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Schedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cron_expression, as: 'cronExpression' + property :description, as: 'description' + property :disabled, as: 'disabled' + property :duration_sec, :numeric_string => true, as: 'durationSec' + property :min_node_count, :numeric_string => true, as: 'minNodeCount' + property :name, as: 'name' + property :time_zone, as: 'timeZone' + end + end + class SecondaryConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1497,23 +1649,11 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class StageSchedule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :actual_end_time, as: 'actualEndTime' - property :actual_start_time, as: 'actualStartTime' - property :estimated_end_time, as: 'estimatedEndTime' - property :estimated_start_time, as: 'estimatedStartTime' - end - end - class StageStatus # @private class Representation < Google::Apis::Core::JsonRepresentation property :read_pool_instances_upgrade, as: 'readPoolInstancesUpgrade', class: Google::Apis::AlloydbV1beta::ReadPoolInstancesUpgradeStageStatus, decorator: Google::Apis::AlloydbV1beta::ReadPoolInstancesUpgradeStageStatus::Representation - property :schedule, as: 'schedule', class: Google::Apis::AlloydbV1beta::StageSchedule, decorator: Google::Apis::AlloydbV1beta::StageSchedule::Representation - property :stage, as: 'stage' property :state, as: 'state' end @@ -1705,6 +1845,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :location, as: 'location' property :machine_configuration, as: 'machineConfiguration', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainMachineConfiguration, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainMachineConfiguration::Representation + property :maintenance_info, as: 'maintenanceInfo', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo::Representation + property :primary_resource_id, as: 'primaryResourceId', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation property :primary_resource_location, as: 'primaryResourceLocation' @@ -1811,6 +1953,39 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate', class: Google::Apis::AlloydbV1beta::GoogleTypeDate, decorator: Google::Apis::AlloydbV1beta::GoogleTypeDate::Representation + + property :start_date, as: 'startDate', class: Google::Apis::AlloydbV1beta::GoogleTypeDate, decorator: Google::Apis::AlloydbV1beta::GoogleTypeDate::Representation + + property :time, as: 'time', class: Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay, decorator: Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay::Representation + + end + end + + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deny_maintenance_schedules, as: 'denyMaintenanceSchedules', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceDenySchedule::Representation + + property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule::Representation + + property :maintenance_version, as: 'maintenanceVersion' + end + end + + class StorageDatabasecenterPartnerapiV1mainResourceMaintenanceSchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :phase, as: 'phase' + property :time, as: 'time', class: Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay, decorator: Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay::Representation + + end + end + class StorageDatabasecenterPartnerapiV1mainRetentionSettings # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/service.rb b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/service.rb index 3cbf2f33c4b..2151bc27b29 100644 --- a/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/service.rb +++ b/generated/google-apis-alloydb_v1beta/lib/google/apis/alloydb_v1beta/service.rb @@ -1733,6 +1733,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options: # The standard list page size. # @param [String] page_token # The standard list page token. + # @param [Boolean] return_partial_success + # When set to `true`, operations that are reachable are returned as normal, and + # those that are unreachable are returned in the [ListOperationsResponse. + # unreachable] field. This can only be `true` when reading across collections e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported and will result in an `UNIMPLEMENTED` error if set unless + # explicitly documented otherwise in service or product specific documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1750,7 +1757,7 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options: # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}/operations', options) command.response_representation = Google::Apis::AlloydbV1beta::ListOperationsResponse::Representation command.response_class = Google::Apis::AlloydbV1beta::ListOperationsResponse @@ -1758,6 +1765,7 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block)