Skip to content

Commit 99b3ab1

Browse files
feat: Automated regeneration of SQLAdmin client (googleapis#12239)
Auto-created at 2024-09-28 13:17:11 +0000 using the toys pull request generator.
1 parent addcc6a commit 99b3ab1

File tree

8 files changed

+29
-7
lines changed

8 files changed

+29
-7
lines changed

clients/sql_admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_sql_admin, "~> 0.65"}]
14+
[{:google_api_sql_admin, "~> 0.66"}]
1515
end
1616
```
1717

clients/sql_admin/lib/google_api/sql_admin/v1/api/instances.ex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do
487487
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
488488
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
489489
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
490+
* `:enableFinalBackup` (*type:* `boolean()`) - Flag to opt-in for final backup. By default, it is turned off.
491+
* `:finalBackupDescription` (*type:* `String.t`) - Optional. The description of the final backup.
492+
* `:finalBackupExpiryTime` (*type:* `DateTime.t`) - Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.
493+
* `:finalBackupTtlDays` (*type:* `String.t`) - Optional. Retention period of the final backup.
490494
* `opts` (*type:* `keyword()`) - Call options
491495
492496
## Returns
@@ -511,7 +515,11 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Instances do
511515
:prettyPrint => :query,
512516
:quotaUser => :query,
513517
:uploadType => :query,
514-
:upload_protocol => :query
518+
:upload_protocol => :query,
519+
:enableFinalBackup => :query,
520+
:finalBackupDescription => :query,
521+
:finalBackupExpiryTime => :query,
522+
:finalBackupTtlDays => :query
515523
}
516524

517525
request =

clients/sql_admin/lib/google_api/sql_admin/v1/api/operations.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Operations do
168168
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
169169
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
170170
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
171+
* `:filter` (*type:* `String.t`) - 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.
171172
* `:instance` (*type:* `String.t`) - Cloud SQL instance ID. This does not include the project ID.
172173
* `:maxResults` (*type:* `integer()`) - Maximum number of operations per response.
173174
* `:pageToken` (*type:* `String.t`) - A previously-returned page token representing part of the larger set of results to view.
@@ -196,6 +197,7 @@ defmodule GoogleApi.SQLAdmin.V1.Api.Operations do
196197
:quotaUser => :query,
197198
:uploadType => :query,
198199
:upload_protocol => :query,
200+
:filter => :query,
199201
:instance => :query,
200202
:maxResults => :query,
201203
:pageToken => :query

clients/sql_admin/lib/google_api/sql_admin/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.SQLAdmin.V1 do
2020
API client metadata for GoogleApi.SQLAdmin.V1.
2121
"""
2222

23-
@discovery_revision "20240912"
23+
@discovery_revision "20240925"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/sql_admin/lib/google_api/sql_admin/v1/model/backup_context.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.SQLAdmin.V1.Model.BackupContext do
2323
2424
* `backupId` (*type:* `String.t`, *default:* `nil`) - The identifier of the backup.
2525
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#backupContext`.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the backup. Format: projects/{project}/backups/{backup}
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:backupId => String.t() | nil,
32-
:kind => String.t() | nil
33+
:kind => String.t() | nil,
34+
:name => String.t() | nil
3335
}
3436

3537
field(:backupId)
3638
field(:kind)
39+
field(:name)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.BackupContext do

clients/sql_admin/lib/google_api/sql_admin/v1/model/instances_restore_backup_request.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,22 @@ defmodule GoogleApi.SQLAdmin.V1.Model.InstancesRestoreBackupRequest do
2121
2222
## Attributes
2323
24+
* `backup` (*type:* `String.t`, *default:* `nil`) - 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.
2425
* `restoreBackupContext` (*type:* `GoogleApi.SQLAdmin.V1.Model.RestoreBackupContext.t`, *default:* `nil`) - Parameters required to perform the restore backup operation.
26+
* `restoreInstanceSettings` (*type:* `GoogleApi.SQLAdmin.V1.Model.DatabaseInstance.t`, *default:* `nil`) - Optional. Restore instance settings overrides the instance settings stored as part of the backup. Instance's major database version cannot be changed and the disk size can only be increased. This feature is only available for restores to new instances using the backup name.
2527
"""
2628

2729
use GoogleApi.Gax.ModelBase
2830

2931
@type t :: %__MODULE__{
30-
:restoreBackupContext => GoogleApi.SQLAdmin.V1.Model.RestoreBackupContext.t() | nil
32+
:backup => String.t() | nil,
33+
:restoreBackupContext => GoogleApi.SQLAdmin.V1.Model.RestoreBackupContext.t() | nil,
34+
:restoreInstanceSettings => GoogleApi.SQLAdmin.V1.Model.DatabaseInstance.t() | nil
3135
}
3236

37+
field(:backup)
3338
field(:restoreBackupContext, as: GoogleApi.SQLAdmin.V1.Model.RestoreBackupContext)
39+
field(:restoreInstanceSettings, as: GoogleApi.SQLAdmin.V1.Model.DatabaseInstance)
3440
end
3541

3642
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.InstancesRestoreBackupRequest do

clients/sql_admin/lib/google_api/sql_admin/v1/model/operations_list_response.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ defmodule GoogleApi.SQLAdmin.V1.Model.OperationsListResponse do
2424
* `items` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.Operation.t)`, *default:* `nil`) - List of operation resources.
2525
* `kind` (*type:* `String.t`, *default:* `nil`) - This is always `sql#operationsList`.
2626
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
27+
* `warnings` (*type:* `list(GoogleApi.SQLAdmin.V1.Model.ApiWarning.t)`, *default:* `nil`) - List of warnings that occurred while handling the request.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:items => list(GoogleApi.SQLAdmin.V1.Model.Operation.t()) | nil,
3334
:kind => String.t() | nil,
34-
:nextPageToken => String.t() | nil
35+
:nextPageToken => String.t() | nil,
36+
:warnings => list(GoogleApi.SQLAdmin.V1.Model.ApiWarning.t()) | nil
3537
}
3638

3739
field(:items, as: GoogleApi.SQLAdmin.V1.Model.Operation, type: :list)
3840
field(:kind)
3941
field(:nextPageToken)
42+
field(:warnings, as: GoogleApi.SQLAdmin.V1.Model.ApiWarning, type: :list)
4043
end
4144

4245
defimpl Poison.Decoder, for: GoogleApi.SQLAdmin.V1.Model.OperationsListResponse do

clients/sql_admin/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.SQLAdmin.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.65.0"
21+
@version "0.66.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)