Skip to content

Commit 096704e

Browse files
feat: Automated regeneration of Redis client (googleapis#12659)
Auto-created at 2024-12-07 13:15:08 +0000 using the toys pull request generator.
1 parent b2c2650 commit 096704e

18 files changed

+166
-14
lines changed

clients/redis/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_redis, "~> 0.49"}]
14+
[{:google_api_redis, "~> 0.50"}]
1515
end
1616
```
1717

clients/redis/lib/google_api/redis/v1/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ defmodule GoogleApi.Redis.V1.Api.Projects do
586586
end
587587

588588
@doc """
589-
Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation.
589+
Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.
590590
591591
## Parameters
592592

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

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

23-
@discovery_revision "20241114"
23+
@discovery_revision "20241203"
2424

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

clients/redis/lib/google_api/redis/v1/model/automated_backup_config.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.Redis.V1.Model.AutomatedBackupConfig do
2323
2424
* `automatedBackupMode` (*type:* `String.t`, *default:* `nil`) - Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
2525
* `fixedFrequencySchedule` (*type:* `GoogleApi.Redis.V1.Model.FixedFrequencySchedule.t`, *default:* `nil`) - Optional. Trigger automated backups at a fixed frequency.
26-
* `retention` (*type:* `String.t`, *default:* `nil`) - Optional. How long to keep automated backups before the backups are deleted. If not specified, the default value is 100 years which is also the maximum value supported. The minimum value is 1 day.
26+
* `retention` (*type:* `String.t`, *default:* `nil`) - Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days.
2727
"""
2828

2929
use GoogleApi.Gax.ModelBase

clients/redis/lib/google_api/redis/v1/model/backup.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
3434
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of shards for the cluster.
3535
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the backup.
3636
* `totalSizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Total size of the backup in bytes.
37+
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup.
3738
"""
3839

3940
use GoogleApi.Gax.ModelBase
@@ -51,7 +52,8 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
5152
:replicaCount => integer() | nil,
5253
:shardCount => integer() | nil,
5354
:state => String.t() | nil,
54-
:totalSizeBytes => String.t() | nil
55+
:totalSizeBytes => String.t() | nil,
56+
:uid => String.t() | nil
5557
}
5658

5759
field(:backupFiles, as: GoogleApi.Redis.V1.Model.BackupFile, type: :list)
@@ -67,6 +69,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
6769
field(:shardCount)
6870
field(:state)
6971
field(:totalSizeBytes)
72+
field(:uid)
7073
end
7174

7275
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.Backup do

clients/redis/lib/google_api/redis/v1/model/backup_collection.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ defmodule GoogleApi.Redis.V1.Model.BackupCollection do
2424
* `cluster` (*type:* `String.t`, *default:* `nil`) - Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
2525
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. The cluster uid of the backup collection.
2626
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup collection.
27+
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup collection.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:cluster => String.t() | nil,
3334
:clusterUid => String.t() | nil,
34-
:name => String.t() | nil
35+
:name => String.t() | nil,
36+
:uid => String.t() | nil
3537
}
3638

3739
field(:cluster)
3840
field(:clusterUid)
3941
field(:name)
42+
field(:uid)
4043
end
4144

4245
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupCollection do

clients/redis/lib/google_api/redis/v1/model/connection_detail.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ defmodule GoogleApi.Redis.V1.Model.ConnectionDetail do
2121
2222
## Attributes
2323
24+
* `pscAutoConnection` (*type:* `GoogleApi.Redis.V1.Model.PscAutoConnection.t`, *default:* `nil`) - Detailed information of a PSC connection that is created through service connectivity automation.
2425
* `pscConnection` (*type:* `GoogleApi.Redis.V1.Model.PscConnection.t`, *default:* `nil`) - Detailed information of a PSC connection that is created by the customer who owns the cluster.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
31+
:pscAutoConnection => GoogleApi.Redis.V1.Model.PscAutoConnection.t() | nil,
3032
:pscConnection => GoogleApi.Redis.V1.Model.PscConnection.t() | nil
3133
}
3234

35+
field(:pscAutoConnection, as: GoogleApi.Redis.V1.Model.PscAutoConnection)
3336
field(:pscConnection, as: GoogleApi.Redis.V1.Model.PscConnection)
3437
end
3538

clients/redis/lib/google_api/redis/v1/model/fixed_frequency_schedule.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Redis.V1.Model.FixedFrequencySchedule do
2121
2222
## Attributes
2323
24-
* `startTime` (*type:* `GoogleApi.Redis.V1.Model.TimeOfDay.t`, *default:* `nil`) - Optional. The start time of every automated backup in UTC. It must be set to the start of an hour. If not specified, the default value is the start of the hour when the automated backup config is enabled. For example, if the automated backup config is enabled at 10:13 AM UTC without specifying start_time, the default start time is 10:00 AM UTC.
24+
* `startTime` (*type:* `GoogleApi.Redis.V1.Model.TimeOfDay.t`, *default:* `nil`) - Required. The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Redis.V1.Model.PscAutoConnection do
19+
@moduledoc """
20+
Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.
21+
22+
## Attributes
23+
24+
* `address` (*type:* `String.t`, *default:* `nil`) - Output only. The IP allocated on the consumer network for the PSC forwarding rule.
25+
* `connectionType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the PSC connection.
26+
* `forwardingRule` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
27+
* `network` (*type:* `String.t`, *default:* `nil`) - Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
28+
* `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The consumer project_id where the forwarding rule is created from.
29+
* `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
30+
* `pscConnectionStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the PSC connection. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
31+
* `serviceAttachment` (*type:* `String.t`, *default:* `nil`) - Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:address => String.t() | nil,
38+
:connectionType => String.t() | nil,
39+
:forwardingRule => String.t() | nil,
40+
:network => String.t() | nil,
41+
:projectId => String.t() | nil,
42+
:pscConnectionId => String.t() | nil,
43+
:pscConnectionStatus => String.t() | nil,
44+
:serviceAttachment => String.t() | nil
45+
}
46+
47+
field(:address)
48+
field(:connectionType)
49+
field(:forwardingRule)
50+
field(:network)
51+
field(:projectId)
52+
field(:pscConnectionId)
53+
field(:pscConnectionStatus)
54+
field(:serviceAttachment)
55+
end
56+
57+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.PscAutoConnection do
58+
def decode(value, options) do
59+
GoogleApi.Redis.V1.Model.PscAutoConnection.decode(value, options)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.PscAutoConnection do
64+
def encode(value, options) do
65+
GoogleApi.Gax.ModelBase.encode(value, options)
66+
end
67+
end

clients/redis/lib/google_api/redis/v1beta1/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ defmodule GoogleApi.Redis.V1beta1.Api.Projects do
586586
end
587587

588588
@doc """
589-
Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation.
589+
Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.
590590
591591
## Parameters
592592

0 commit comments

Comments
 (0)