Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of sqladmin v1 client #20288

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308147,6 +308147,7 @@
"/sqladmin:v1/BackupContext": backup_context
"/sqladmin:v1/BackupContext/backupId": backup_id
"/sqladmin:v1/BackupContext/kind": kind
"/sqladmin:v1/BackupContext/name": name
"/sqladmin:v1/BackupReencryptionConfig": backup_reencryption_config
"/sqladmin:v1/BackupReencryptionConfig/backupLimit": backup_limit
"/sqladmin:v1/BackupReencryptionConfig/backupType": backup_type
Expand Down Expand Up @@ -308457,7 +308458,9 @@
"/sqladmin:v1/InstancesReencryptRequest": instances_reencrypt_request
"/sqladmin:v1/InstancesReencryptRequest/backupReencryptionConfig": backup_reencryption_config
"/sqladmin:v1/InstancesRestoreBackupRequest": instances_restore_backup_request
"/sqladmin:v1/InstancesRestoreBackupRequest/backup": backup
"/sqladmin:v1/InstancesRestoreBackupRequest/restoreBackupContext": restore_backup_context
"/sqladmin:v1/InstancesRestoreBackupRequest/restoreInstanceSettings": restore_instance_settings
"/sqladmin:v1/InstancesRotateServerCaRequest": instances_rotate_server_ca_request
"/sqladmin:v1/InstancesRotateServerCaRequest/rotateServerCaContext": rotate_server_ca_context
"/sqladmin:v1/InstancesRotateServerCertificateRequest": instances_rotate_server_certificate_request
Expand Down Expand Up @@ -308554,6 +308557,8 @@
"/sqladmin:v1/OperationsListResponse/items/item": item
"/sqladmin:v1/OperationsListResponse/kind": kind
"/sqladmin:v1/OperationsListResponse/nextPageToken": next_page_token
"/sqladmin:v1/OperationsListResponse/warnings": warnings
"/sqladmin:v1/OperationsListResponse/warnings/warning": warning
"/sqladmin:v1/PasswordStatus": password_status
"/sqladmin:v1/PasswordStatus/locked": locked
"/sqladmin:v1/PasswordStatus/passwordExpirationTime": password_expiration_time
Expand Down Expand Up @@ -308829,6 +308834,10 @@
"/sqladmin:v1/sql.instances.clone/instance": instance
"/sqladmin:v1/sql.instances.clone/project": project
"/sqladmin:v1/sql.instances.delete": delete_instance
"/sqladmin:v1/sql.instances.delete/enableFinalBackup": enable_final_backup
"/sqladmin:v1/sql.instances.delete/finalBackupDescription": final_backup_description
"/sqladmin:v1/sql.instances.delete/finalBackupExpiryTime": final_backup_expiry_time
"/sqladmin:v1/sql.instances.delete/finalBackupTtlDays": final_backup_ttl_days
"/sqladmin:v1/sql.instances.delete/instance": instance
"/sqladmin:v1/sql.instances.delete/project": project
"/sqladmin:v1/sql.instances.demote": demote_instance
Expand Down Expand Up @@ -308907,6 +308916,7 @@
"/sqladmin:v1/sql.operations.get/operation": operation
"/sqladmin:v1/sql.operations.get/project": project
"/sqladmin:v1/sql.operations.list": list_operations
"/sqladmin:v1/sql.operations.list/filter": filter
"/sqladmin:v1/sql.operations.list/instance": instance
"/sqladmin:v1/sql.operations.list/maxResults": max_results
"/sqladmin:v1/sql.operations.list/pageToken": page_token
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-sqladmin_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-sqladmin_v1

### v0.67.0 (2024-09-29)

* Regenerated from discovery document revision 20240925

### v0.66.0 (2024-09-15)

* Regenerated from discovery document revision 20240831
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ class BackupContext
# @return [String]
attr_accessor :kind

# The name of the backup. Format: projects/`project`/backups/`backup`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

def initialize(**args)
update!(**args)
end
Expand All @@ -285,6 +290,7 @@ def initialize(**args)
def update!(**args)
@backup_id = args[:backup_id] if args.key?(:backup_id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end

Expand Down Expand Up @@ -2618,19 +2624,33 @@ def update!(**args)
class InstancesRestoreBackupRequest
include Google::Apis::Core::Hashable

# The name of the backup to restore from in following format: projects/`project-
# id`/backups/`backup-uid` Only one of restore_backup_context or backup can be
# passed to the input.
# Corresponds to the JSON property `backup`
# @return [String]
attr_accessor :backup

# Database instance restore from backup context. Backup context contains source
# instance id and project id.
# Corresponds to the JSON property `restoreBackupContext`
# @return [Google::Apis::SqladminV1::RestoreBackupContext]
attr_accessor :restore_backup_context

# A Cloud SQL instance resource.
# Corresponds to the JSON property `restoreInstanceSettings`
# @return [Google::Apis::SqladminV1::DatabaseInstance]
attr_accessor :restore_instance_settings

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

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

Expand Down Expand Up @@ -3348,6 +3368,11 @@ class OperationsListResponse
# @return [String]
attr_accessor :next_page_token

# List of warnings that occurred while handling the request.
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::SqladminV1::ApiWarning>]
attr_accessor :warnings

def initialize(**args)
update!(**args)
end
Expand All @@ -3357,6 +3382,7 @@ def update!(**args)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@warnings = args[:warnings] if args.key?(:warnings)
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SqladminV1
# Version of the google-apis-sqladmin_v1 gem
GEM_VERSION = "0.66.0"
GEM_VERSION = "0.67.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 = "20240831"
REVISION = "20240925"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ class BackupContext
class Representation < Google::Apis::Core::JsonRepresentation
property :backup_id, :numeric_string => true, as: 'backupId'
property :kind, as: 'kind'
property :name, as: 'name'
end
end

Expand Down Expand Up @@ -1386,8 +1387,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
class InstancesRestoreBackupRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backup, as: 'backup'
property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1::RestoreBackupContext, decorator: Google::Apis::SqladminV1::RestoreBackupContext::Representation

property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1::DatabaseInstance, decorator: Google::Apis::SqladminV1::DatabaseInstance::Representation

end
end

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

property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1::ApiWarning, decorator: Google::Apis::SqladminV1::ApiWarning::Representation

end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,15 @@ def clone_instance(project, instance, instances_clone_request_object = nil, fiel
# Project ID of the project that contains the instance to be deleted.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Boolean] enable_final_backup
# Flag to opt-in for final backup. By default, it is turned off.
# @param [String] final_backup_description
# Optional. The description of the final backup.
# @param [String] final_backup_expiry_time
# Optional. Final Backup expiration time. Timestamp in UTC of when this resource
# is considered expired.
# @param [Fixnum] final_backup_ttl_days
# Optional. Retention period of the final backup.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -781,12 +790,16 @@ def clone_instance(project, instance, instances_clone_request_object = nil, fiel
# @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 delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
def delete_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}', options)
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
command.response_class = Google::Apis::SqladminV1::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.query['enableFinalBackup'] = enable_final_backup unless enable_final_backup.nil?
command.query['finalBackupDescription'] = final_backup_description unless final_backup_description.nil?
command.query['finalBackupExpiryTime'] = final_backup_expiry_time unless final_backup_expiry_time.nil?
command.query['finalBackupTtlDays'] = final_backup_ttl_days unless final_backup_ttl_days.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand Down Expand Up @@ -1673,6 +1686,10 @@ def get_operation(project, operation, fields: nil, quota_user: nil, options: nil
# instance in the reverse chronological order of the start time.
# @param [String] project
# Project ID of the project that contains the instance.
# @param [String] filter
# Optional. A filter string that follows the rules of EBNF grammar (https://
# google.aip.dev/assets/misc/ebnf-filtering.txt). Cloud SQL provides filters for
# status, operationType, and startTime.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Fixnum] max_results
Expand All @@ -1697,11 +1714,12 @@ def get_operation(project, operation, fields: nil, quota_user: nil, options: nil
# @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_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_operations(project, filter: nil, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{project}/operations', options)
command.response_representation = Google::Apis::SqladminV1::OperationsListResponse::Representation
command.response_class = Google::Apis::SqladminV1::OperationsListResponse
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['instance'] = instance unless instance.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
Expand Down
Loading