Skip to content

Commit e0a24be

Browse files
feat: Automated regeneration of Redis client (#12799)
Auto-created at 2025-01-10 13:15:47 +0000 using the toys pull request generator.
1 parent 1dc0e95 commit e0a24be

File tree

14 files changed

+140
-6
lines changed

14 files changed

+140
-6
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.50"}]
14+
[{:google_api_redis, "~> 0.51"}]
1515
end
1616
```
1717

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 "20241203"
23+
@discovery_revision "20250104"
2424

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
2626
* `cluster` (*type:* `String.t`, *default:* `nil`) - Output only. Cluster resource path of this backup.
2727
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. Cluster uid of this backup.
2828
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup was created.
29+
* `encryptionInfo` (*type:* `GoogleApi.Redis.V1.Model.EncryptionInfo.t`, *default:* `nil`) - Output only. Encryption information of the backup.
2930
* `engineVersion` (*type:* `String.t`, *default:* `nil`) - Output only. redis-7.2, valkey-7.5
3031
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup will expire.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
@@ -45,6 +46,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
4546
:cluster => String.t() | nil,
4647
:clusterUid => String.t() | nil,
4748
:createTime => DateTime.t() | nil,
49+
:encryptionInfo => GoogleApi.Redis.V1.Model.EncryptionInfo.t() | nil,
4850
:engineVersion => String.t() | nil,
4951
:expireTime => DateTime.t() | nil,
5052
:name => String.t() | nil,
@@ -61,6 +63,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
6163
field(:cluster)
6264
field(:clusterUid)
6365
field(:createTime, as: DateTime)
66+
field(:encryptionInfo, as: GoogleApi.Redis.V1.Model.EncryptionInfo)
6467
field(:engineVersion)
6568
field(:expireTime, as: DateTime)
6669
field(:name)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Redis.V1.Model.BackupCollection do
2323
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.
26+
* `kmsKey` (*type:* `String.t`, *default:* `nil`) - Output only. The KMS key used to encrypt the backups under this backup collection.
2627
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup collection.
2728
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup collection.
2829
"""
@@ -32,12 +33,14 @@ defmodule GoogleApi.Redis.V1.Model.BackupCollection do
3233
@type t :: %__MODULE__{
3334
:cluster => String.t() | nil,
3435
:clusterUid => String.t() | nil,
36+
:kmsKey => String.t() | nil,
3537
:name => String.t() | nil,
3638
:uid => String.t() | nil
3739
}
3840

3941
field(:cluster)
4042
field(:clusterUid)
43+
field(:kmsKey)
4144
field(:name)
4245
field(:uid)
4346
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
2929
* `crossClusterReplicationConfig` (*type:* `GoogleApi.Redis.V1.Model.CrossClusterReplicationConfig.t`, *default:* `nil`) - Optional. Cross cluster replication config.
3030
* `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. The delete operation will fail when the value is set to true.
3131
* `discoveryEndpoints` (*type:* `list(GoogleApi.Redis.V1.Model.DiscoveryEndpoint.t)`, *default:* `nil`) - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.
32+
* `encryptionInfo` (*type:* `GoogleApi.Redis.V1.Model.EncryptionInfo.t`, *default:* `nil`) - Output only. Encryption information of the data at rest of the cluster.
3233
* `gcsSource` (*type:* `GoogleApi.Redis.V1.Model.GcsBackupSource.t`, *default:* `nil`) - Optional. Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the clusters. Read permission is required to import from the provided Cloud Storage objects.
34+
* `kmsKey` (*type:* `String.t`, *default:* `nil`) - Optional. The KMS key used to encrypt the at-rest data of the cluster.
3335
* `maintenancePolicy` (*type:* `GoogleApi.Redis.V1.Model.ClusterMaintenancePolicy.t`, *default:* `nil`) - Optional. ClusterMaintenancePolicy determines when to allow or deny updates.
3436
* `maintenanceSchedule` (*type:* `GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule.t`, *default:* `nil`) - Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.
3537
* `managedBackupSource` (*type:* `GoogleApi.Redis.V1.Model.ManagedBackupSource.t`, *default:* `nil`) - Optional. Backups generated and managed by memorystore service.
@@ -63,7 +65,9 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
6365
GoogleApi.Redis.V1.Model.CrossClusterReplicationConfig.t() | nil,
6466
:deletionProtectionEnabled => boolean() | nil,
6567
:discoveryEndpoints => list(GoogleApi.Redis.V1.Model.DiscoveryEndpoint.t()) | nil,
68+
:encryptionInfo => GoogleApi.Redis.V1.Model.EncryptionInfo.t() | nil,
6669
:gcsSource => GoogleApi.Redis.V1.Model.GcsBackupSource.t() | nil,
70+
:kmsKey => String.t() | nil,
6771
:maintenancePolicy => GoogleApi.Redis.V1.Model.ClusterMaintenancePolicy.t() | nil,
6872
:maintenanceSchedule => GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule.t() | nil,
6973
:managedBackupSource => GoogleApi.Redis.V1.Model.ManagedBackupSource.t() | nil,
@@ -95,7 +99,9 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
9599

96100
field(:deletionProtectionEnabled)
97101
field(:discoveryEndpoints, as: GoogleApi.Redis.V1.Model.DiscoveryEndpoint, type: :list)
102+
field(:encryptionInfo, as: GoogleApi.Redis.V1.Model.EncryptionInfo)
98103
field(:gcsSource, as: GoogleApi.Redis.V1.Model.GcsBackupSource)
104+
field(:kmsKey)
99105
field(:maintenancePolicy, as: GoogleApi.Redis.V1.Model.ClusterMaintenancePolicy)
100106
field(:maintenanceSchedule, as: GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule)
101107
field(:managedBackupSource, as: GoogleApi.Redis.V1.Model.ManagedBackupSource)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.EncryptionInfo do
19+
@moduledoc """
20+
EncryptionInfo describes the encryption information of a cluster or a backup.
21+
22+
## Attributes
23+
24+
* `encryptionType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of encryption.
25+
* `kmsKeyPrimaryState` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
26+
* `kmsKeyVersions` (*type:* `list(String.t)`, *default:* `nil`) - Output only. KMS key versions that are being used to protect the data at-rest.
27+
* `lastUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The most recent time when the encryption info was updated.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:encryptionType => String.t() | nil,
34+
:kmsKeyPrimaryState => String.t() | nil,
35+
:kmsKeyVersions => list(String.t()) | nil,
36+
:lastUpdateTime => DateTime.t() | nil
37+
}
38+
39+
field(:encryptionType)
40+
field(:kmsKeyPrimaryState)
41+
field(:kmsKeyVersions, type: :list)
42+
field(:lastUpdateTime, as: DateTime)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.EncryptionInfo do
46+
def decode(value, options) do
47+
GoogleApi.Redis.V1.Model.EncryptionInfo.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.EncryptionInfo do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Redis.V1.Model.MachineConfiguration do
2121
2222
## Attributes
2323
24-
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
24+
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
2525
* `memorySizeInBytes` (*type:* `String.t`, *default:* `nil`) - Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.
2626
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of shards (if applicable).
2727
* `vcpuCount` (*type:* `float()`, *default:* `nil`) - Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix.

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

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

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

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.Backup do
2626
* `cluster` (*type:* `String.t`, *default:* `nil`) - Output only. Cluster resource path of this backup.
2727
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. Cluster uid of this backup.
2828
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup was created.
29+
* `encryptionInfo` (*type:* `GoogleApi.Redis.V1beta1.Model.EncryptionInfo.t`, *default:* `nil`) - Output only. Encryption information of the backup.
2930
* `engineVersion` (*type:* `String.t`, *default:* `nil`) - Output only. redis-7.2, valkey-7.5
3031
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup will expire.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
@@ -45,6 +46,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.Backup do
4546
:cluster => String.t() | nil,
4647
:clusterUid => String.t() | nil,
4748
:createTime => DateTime.t() | nil,
49+
:encryptionInfo => GoogleApi.Redis.V1beta1.Model.EncryptionInfo.t() | nil,
4850
:engineVersion => String.t() | nil,
4951
:expireTime => DateTime.t() | nil,
5052
:name => String.t() | nil,
@@ -61,6 +63,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.Backup do
6163
field(:cluster)
6264
field(:clusterUid)
6365
field(:createTime, as: DateTime)
66+
field(:encryptionInfo, as: GoogleApi.Redis.V1beta1.Model.EncryptionInfo)
6467
field(:engineVersion)
6568
field(:expireTime, as: DateTime)
6669
field(:name)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.BackupCollection do
2323
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.
26+
* `kmsKey` (*type:* `String.t`, *default:* `nil`) - Output only. The KMS key used to encrypt the backups under this backup collection.
2627
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup collection.
2728
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup collection.
2829
"""
@@ -32,12 +33,14 @@ defmodule GoogleApi.Redis.V1beta1.Model.BackupCollection do
3233
@type t :: %__MODULE__{
3334
:cluster => String.t() | nil,
3435
:clusterUid => String.t() | nil,
36+
:kmsKey => String.t() | nil,
3537
:name => String.t() | nil,
3638
:uid => String.t() | nil
3739
}
3840

3941
field(:cluster)
4042
field(:clusterUid)
43+
field(:kmsKey)
4144
field(:name)
4245
field(:uid)
4346
end

0 commit comments

Comments
 (0)