Skip to content

Commit 16e05c5

Browse files
feat: Automated regeneration of Redis client (googleapis#12582)
Auto-created at 2024-11-21 13:14:42 +0000 using the toys pull request generator.
1 parent 4fab8d2 commit 16e05c5

33 files changed

+2202
-9
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.48"}]
14+
[{:google_api_redis, "~> 0.49"}]
1515
end
1616
```
1717

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

Lines changed: 507 additions & 1 deletion
Large diffs are not rendered by default.

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 "20241017"
23+
@discovery_revision "20241114"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.AutomatedBackupConfig do
19+
@moduledoc """
20+
The automated backup config for a cluster.
21+
22+
## Attributes
23+
24+
* `automatedBackupMode` (*type:* `String.t`, *default:* `nil`) - Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
25+
* `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.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:automatedBackupMode => String.t() | nil,
33+
:fixedFrequencySchedule => GoogleApi.Redis.V1.Model.FixedFrequencySchedule.t() | nil,
34+
:retention => String.t() | nil
35+
}
36+
37+
field(:automatedBackupMode)
38+
field(:fixedFrequencySchedule, as: GoogleApi.Redis.V1.Model.FixedFrequencySchedule)
39+
field(:retention)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.AutomatedBackupConfig do
43+
def decode(value, options) do
44+
GoogleApi.Redis.V1.Model.AutomatedBackupConfig.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.AutomatedBackupConfig do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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.Backup do
19+
@moduledoc """
20+
Backup of a cluster.
21+
22+
## Attributes
23+
24+
* `backupFiles` (*type:* `list(GoogleApi.Redis.V1.Model.BackupFile.t)`, *default:* `nil`) - Output only. List of backup files of the backup.
25+
* `backupType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the backup.
26+
* `cluster` (*type:* `String.t`, *default:* `nil`) - Output only. Cluster resource path of this backup.
27+
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. Cluster uid of this backup.
28+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup was created.
29+
* `engineVersion` (*type:* `String.t`, *default:* `nil`) - Output only. redis-7.2, valkey-7.5
30+
* `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup will expire.
31+
* `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
32+
* `nodeType` (*type:* `String.t`, *default:* `nil`) - Output only. Node type of the cluster.
33+
* `replicaCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of replicas for the cluster.
34+
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of shards for the cluster.
35+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the backup.
36+
* `totalSizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Total size of the backup in bytes.
37+
"""
38+
39+
use GoogleApi.Gax.ModelBase
40+
41+
@type t :: %__MODULE__{
42+
:backupFiles => list(GoogleApi.Redis.V1.Model.BackupFile.t()) | nil,
43+
:backupType => String.t() | nil,
44+
:cluster => String.t() | nil,
45+
:clusterUid => String.t() | nil,
46+
:createTime => DateTime.t() | nil,
47+
:engineVersion => String.t() | nil,
48+
:expireTime => DateTime.t() | nil,
49+
:name => String.t() | nil,
50+
:nodeType => String.t() | nil,
51+
:replicaCount => integer() | nil,
52+
:shardCount => integer() | nil,
53+
:state => String.t() | nil,
54+
:totalSizeBytes => String.t() | nil
55+
}
56+
57+
field(:backupFiles, as: GoogleApi.Redis.V1.Model.BackupFile, type: :list)
58+
field(:backupType)
59+
field(:cluster)
60+
field(:clusterUid)
61+
field(:createTime, as: DateTime)
62+
field(:engineVersion)
63+
field(:expireTime, as: DateTime)
64+
field(:name)
65+
field(:nodeType)
66+
field(:replicaCount)
67+
field(:shardCount)
68+
field(:state)
69+
field(:totalSizeBytes)
70+
end
71+
72+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.Backup do
73+
def decode(value, options) do
74+
GoogleApi.Redis.V1.Model.Backup.decode(value, options)
75+
end
76+
end
77+
78+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.Backup do
79+
def encode(value, options) do
80+
GoogleApi.Gax.ModelBase.encode(value, options)
81+
end
82+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.BackupClusterRequest do
19+
@moduledoc """
20+
Request for [BackupCluster].
21+
22+
## Attributes
23+
24+
* `backupId` (*type:* `String.t`, *default:* `nil`) - Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
25+
* `ttl` (*type:* `String.t`, *default:* `nil`) - Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:backupId => String.t() | nil,
32+
:ttl => String.t() | nil
33+
}
34+
35+
field(:backupId)
36+
field(:ttl)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupClusterRequest do
40+
def decode(value, options) do
41+
GoogleApi.Redis.V1.Model.BackupClusterRequest.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.BackupClusterRequest do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.BackupCollection do
19+
@moduledoc """
20+
BackupCollection of a cluster.
21+
22+
## Attributes
23+
24+
* `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}
25+
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. The cluster uid of the backup collection.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup collection.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:cluster => String.t() | nil,
33+
:clusterUid => String.t() | nil,
34+
:name => String.t() | nil
35+
}
36+
37+
field(:cluster)
38+
field(:clusterUid)
39+
field(:name)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupCollection do
43+
def decode(value, options) do
44+
GoogleApi.Redis.V1.Model.BackupCollection.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.BackupCollection do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.BackupFile do
19+
@moduledoc """
20+
Backup is consisted of multiple backup files.
21+
22+
## Attributes
23+
24+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup file was created.
25+
* `fileName` (*type:* `String.t`, *default:* `nil`) - Output only. e.g: .rdb
26+
* `sizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Size of the backup file in bytes.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:createTime => DateTime.t() | nil,
33+
:fileName => String.t() | nil,
34+
:sizeBytes => String.t() | nil
35+
}
36+
37+
field(:createTime, as: DateTime)
38+
field(:fileName)
39+
field(:sizeBytes)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupFile do
43+
def decode(value, options) do
44+
GoogleApi.Redis.V1.Model.BackupFile.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.BackupFile do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
2222
## Attributes
2323
2424
* `authorizationMode` (*type:* `String.t`, *default:* `nil`) - Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.
25+
* `automatedBackupConfig` (*type:* `GoogleApi.Redis.V1.Model.AutomatedBackupConfig.t`, *default:* `nil`) - Optional. The automated backup config for the cluster.
26+
* `backupCollection` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
2527
* `clusterEndpoints` (*type:* `list(GoogleApi.Redis.V1.Model.ClusterEndpoint.t)`, *default:* `nil`) - Optional. A list of cluster enpoints.
2628
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp associated with the cluster creation request.
2729
* `crossClusterReplicationConfig` (*type:* `GoogleApi.Redis.V1.Model.CrossClusterReplicationConfig.t`, *default:* `nil`) - Optional. Cross cluster replication config.
2830
* `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. The delete operation will fail when the value is set to true.
2931
* `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+
* `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.
3033
* `maintenancePolicy` (*type:* `GoogleApi.Redis.V1.Model.ClusterMaintenancePolicy.t`, *default:* `nil`) - Optional. ClusterMaintenancePolicy determines when to allow or deny updates.
3134
* `maintenanceSchedule` (*type:* `GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule.t`, *default:* `nil`) - Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule.
35+
* `managedBackupSource` (*type:* `GoogleApi.Redis.V1.Model.ManagedBackupSource.t`, *default:* `nil`) - Optional. Backups generated and managed by memorystore service.
3236
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Identifier. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
3337
* `nodeType` (*type:* `String.t`, *default:* `nil`) - Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node.
3438
* `persistenceConfig` (*type:* `GoogleApi.Redis.V1.Model.ClusterPersistenceConfig.t`, *default:* `nil`) - Optional. Persistence config (RDB, AOF) for the cluster.
@@ -51,14 +55,18 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
5155

5256
@type t :: %__MODULE__{
5357
:authorizationMode => String.t() | nil,
58+
:automatedBackupConfig => GoogleApi.Redis.V1.Model.AutomatedBackupConfig.t() | nil,
59+
:backupCollection => String.t() | nil,
5460
:clusterEndpoints => list(GoogleApi.Redis.V1.Model.ClusterEndpoint.t()) | nil,
5561
:createTime => DateTime.t() | nil,
5662
:crossClusterReplicationConfig =>
5763
GoogleApi.Redis.V1.Model.CrossClusterReplicationConfig.t() | nil,
5864
:deletionProtectionEnabled => boolean() | nil,
5965
:discoveryEndpoints => list(GoogleApi.Redis.V1.Model.DiscoveryEndpoint.t()) | nil,
66+
:gcsSource => GoogleApi.Redis.V1.Model.GcsBackupSource.t() | nil,
6067
:maintenancePolicy => GoogleApi.Redis.V1.Model.ClusterMaintenancePolicy.t() | nil,
6168
:maintenanceSchedule => GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule.t() | nil,
69+
:managedBackupSource => GoogleApi.Redis.V1.Model.ManagedBackupSource.t() | nil,
6270
:name => String.t() | nil,
6371
:nodeType => String.t() | nil,
6472
:persistenceConfig => GoogleApi.Redis.V1.Model.ClusterPersistenceConfig.t() | nil,
@@ -78,15 +86,19 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
7886
}
7987

8088
field(:authorizationMode)
89+
field(:automatedBackupConfig, as: GoogleApi.Redis.V1.Model.AutomatedBackupConfig)
90+
field(:backupCollection)
8191
field(:clusterEndpoints, as: GoogleApi.Redis.V1.Model.ClusterEndpoint, type: :list)
8292
field(:createTime, as: DateTime)
8393

8494
field(:crossClusterReplicationConfig, as: GoogleApi.Redis.V1.Model.CrossClusterReplicationConfig)
8595

8696
field(:deletionProtectionEnabled)
8797
field(:discoveryEndpoints, as: GoogleApi.Redis.V1.Model.DiscoveryEndpoint, type: :list)
98+
field(:gcsSource, as: GoogleApi.Redis.V1.Model.GcsBackupSource)
8899
field(:maintenancePolicy, as: GoogleApi.Redis.V1.Model.ClusterMaintenancePolicy)
89100
field(:maintenanceSchedule, as: GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule)
101+
field(:managedBackupSource, as: GoogleApi.Redis.V1.Model.ManagedBackupSource)
90102
field(:name)
91103
field(:nodeType)
92104
field(:persistenceConfig, as: GoogleApi.Redis.V1.Model.ClusterPersistenceConfig)

0 commit comments

Comments
 (0)