Skip to content

Commit 1f03f00

Browse files
feat: Automated regeneration of Redis client (googleapis#12982)
Auto-created at 2025-02-15 13:17:04 +0000 using the toys pull request generator.
1 parent 414ccb8 commit 1f03f00

File tree

9 files changed

+23
-5
lines changed

9 files changed

+23
-5
lines changed

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 "20250121"
23+
@discovery_revision "20250206"
2424

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
1919
@moduledoc """
20-
Common model for database resource instance metadata. Next ID: 23
20+
Common model for database resource instance metadata. Next ID: 24
2121
2222
## Attributes
2323
@@ -39,6 +39,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
3939
* `product` (*type:* `GoogleApi.Redis.V1.Model.Product.t`, *default:* `nil`) - The product this resource represents.
4040
* `resourceContainer` (*type:* `String.t`, *default:* `nil`) - Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "/", such as "projects/123". For GCP provided resources, number should be project number.
4141
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
42+
* `suspensionReason` (*type:* `String.t`, *default:* `nil`) - Suspension reason for the resource.
4243
* `tagsSet` (*type:* `GoogleApi.Redis.V1.Model.Tags.t`, *default:* `nil`) - Optional. Tags associated with this resources.
4344
* `updationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the resource was updated and recorded at partner service.
4445
* `userLabelSet` (*type:* `GoogleApi.Redis.V1.Model.UserLabels.t`, *default:* `nil`) - User-provided labels associated with the resource
@@ -66,6 +67,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
6667
:product => GoogleApi.Redis.V1.Model.Product.t() | nil,
6768
:resourceContainer => String.t() | nil,
6869
:resourceName => String.t() | nil,
70+
:suspensionReason => String.t() | nil,
6971
:tagsSet => GoogleApi.Redis.V1.Model.Tags.t() | nil,
7072
:updationTime => DateTime.t() | nil,
7173
:userLabelSet => GoogleApi.Redis.V1.Model.UserLabels.t() | nil
@@ -89,6 +91,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
8991
field(:product, as: GoogleApi.Redis.V1.Model.Product)
9092
field(:resourceContainer)
9193
field(:resourceName)
94+
field(:suspensionReason)
9295
field(:tagsSet, as: GoogleApi.Redis.V1.Model.Tags)
9396
field(:updationTime, as: DateTime)
9497
field(:userLabelSet, as: GoogleApi.Redis.V1.Model.UserLabels)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule GoogleApi.Redis.V1.Model.Instance do
3535
* `memorySizeGb` (*type:* `integer()`, *default:* `nil`) - Required. Redis memory size in GiB.
3636
* `alternativeLocationId` (*type:* `String.t`, *default:* `nil`) - Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.
3737
* `displayName` (*type:* `String.t`, *default:* `nil`) - An arbitrary and optional user-provided name for the instance.
38-
* `redisVersion` (*type:* `String.t`, *default:* `nil`) - Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility * `REDIS_7_0` for Redis 7.0 compatibility
38+
* `redisVersion` (*type:* `String.t`, *default:* `nil`) - Optional. The version of Redis software. If not provided, the default version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility * `REDIS_7_0` for Redis 7.0 compatibility (default) * `REDIS_7_2` for Redis 7.2 compatibility
3939
* `readEndpointPort` (*type:* `integer()`, *default:* `nil`) - Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.
4040
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Optional. Output only. Reserved for future use.
4141
* `replicaCount` (*type:* `integer()`, *default:* `nil`) - Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Redis.V1.Model.InternalResourceMetadata do
2323
2424
* `backupConfiguration` (*type:* `GoogleApi.Redis.V1.Model.BackupConfiguration.t`, *default:* `nil`) - Backup configuration for this database
2525
* `backupRun` (*type:* `GoogleApi.Redis.V1.Model.BackupRun.t`, *default:* `nil`) - Information about the last backup attempt for this database
26+
* `isDeletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether deletion protection is enabled for this internal resource.
2627
* `product` (*type:* `GoogleApi.Redis.V1.Model.Product.t`, *default:* `nil`) -
2728
* `resourceId` (*type:* `GoogleApi.Redis.V1.Model.DatabaseResourceId.t`, *default:* `nil`) -
2829
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Required. internal resource name for spanner this will be database name e.g."spanner.googleapis.com/projects/123/abc/instances/inst1/databases/db1"
@@ -33,13 +34,15 @@ defmodule GoogleApi.Redis.V1.Model.InternalResourceMetadata do
3334
@type t :: %__MODULE__{
3435
:backupConfiguration => GoogleApi.Redis.V1.Model.BackupConfiguration.t() | nil,
3536
:backupRun => GoogleApi.Redis.V1.Model.BackupRun.t() | nil,
37+
:isDeletionProtectionEnabled => boolean() | nil,
3638
:product => GoogleApi.Redis.V1.Model.Product.t() | nil,
3739
:resourceId => GoogleApi.Redis.V1.Model.DatabaseResourceId.t() | nil,
3840
:resourceName => String.t() | nil
3941
}
4042

4143
field(:backupConfiguration, as: GoogleApi.Redis.V1.Model.BackupConfiguration)
4244
field(:backupRun, as: GoogleApi.Redis.V1.Model.BackupRun)
45+
field(:isDeletionProtectionEnabled)
4346
field(:product, as: GoogleApi.Redis.V1.Model.Product)
4447
field(:resourceId, as: GoogleApi.Redis.V1.Model.DatabaseResourceId)
4548
field(:resourceName)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ defmodule GoogleApi.Redis.V1.Model.UpdateInfo do
2121
2222
## Attributes
2323
24+
* `targetNodeType` (*type:* `String.t`, *default:* `nil`) - Target node type for redis cluster.
2425
* `targetReplicaCount` (*type:* `integer()`, *default:* `nil`) - Target number of replica nodes per shard.
2526
* `targetShardCount` (*type:* `integer()`, *default:* `nil`) - Target number of shards for redis cluster
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:targetNodeType => String.t() | nil,
3133
:targetReplicaCount => integer() | nil,
3234
:targetShardCount => integer() | nil
3335
}
3436

37+
field(:targetNodeType)
3538
field(:targetReplicaCount)
3639
field(:targetShardCount)
3740
end

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 "20250121"
23+
@discovery_revision "20250206"
2424

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
1919
@moduledoc """
20-
Common model for database resource instance metadata. Next ID: 23
20+
Common model for database resource instance metadata. Next ID: 24
2121
2222
## Attributes
2323
@@ -39,6 +39,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
3939
* `product` (*type:* `GoogleApi.Redis.V1beta1.Model.Product.t`, *default:* `nil`) - The product this resource represents.
4040
* `resourceContainer` (*type:* `String.t`, *default:* `nil`) - Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "/", such as "projects/123". For GCP provided resources, number should be project number.
4141
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named "ABC" is deleted, the name "ABC" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel
42+
* `suspensionReason` (*type:* `String.t`, *default:* `nil`) - Suspension reason for the resource.
4243
* `tagsSet` (*type:* `GoogleApi.Redis.V1beta1.Model.Tags.t`, *default:* `nil`) - Optional. Tags associated with this resources.
4344
* `updationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the resource was updated and recorded at partner service.
4445
* `userLabelSet` (*type:* `GoogleApi.Redis.V1beta1.Model.UserLabels.t`, *default:* `nil`) - User-provided labels associated with the resource
@@ -66,6 +67,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
6667
:product => GoogleApi.Redis.V1beta1.Model.Product.t() | nil,
6768
:resourceContainer => String.t() | nil,
6869
:resourceName => String.t() | nil,
70+
:suspensionReason => String.t() | nil,
6971
:tagsSet => GoogleApi.Redis.V1beta1.Model.Tags.t() | nil,
7072
:updationTime => DateTime.t() | nil,
7173
:userLabelSet => GoogleApi.Redis.V1beta1.Model.UserLabels.t() | nil
@@ -89,6 +91,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
8991
field(:product, as: GoogleApi.Redis.V1beta1.Model.Product)
9092
field(:resourceContainer)
9193
field(:resourceName)
94+
field(:suspensionReason)
9295
field(:tagsSet, as: GoogleApi.Redis.V1beta1.Model.Tags)
9396
field(:updationTime, as: DateTime)
9497
field(:userLabelSet, as: GoogleApi.Redis.V1beta1.Model.UserLabels)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.InternalResourceMetadata do
2323
2424
* `backupConfiguration` (*type:* `GoogleApi.Redis.V1beta1.Model.BackupConfiguration.t`, *default:* `nil`) - Backup configuration for this database
2525
* `backupRun` (*type:* `GoogleApi.Redis.V1beta1.Model.BackupRun.t`, *default:* `nil`) - Information about the last backup attempt for this database
26+
* `isDeletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether deletion protection is enabled for this internal resource.
2627
* `product` (*type:* `GoogleApi.Redis.V1beta1.Model.Product.t`, *default:* `nil`) -
2728
* `resourceId` (*type:* `GoogleApi.Redis.V1beta1.Model.DatabaseResourceId.t`, *default:* `nil`) -
2829
* `resourceName` (*type:* `String.t`, *default:* `nil`) - Required. internal resource name for spanner this will be database name e.g."spanner.googleapis.com/projects/123/abc/instances/inst1/databases/db1"
@@ -33,13 +34,15 @@ defmodule GoogleApi.Redis.V1beta1.Model.InternalResourceMetadata do
3334
@type t :: %__MODULE__{
3435
:backupConfiguration => GoogleApi.Redis.V1beta1.Model.BackupConfiguration.t() | nil,
3536
:backupRun => GoogleApi.Redis.V1beta1.Model.BackupRun.t() | nil,
37+
:isDeletionProtectionEnabled => boolean() | nil,
3638
:product => GoogleApi.Redis.V1beta1.Model.Product.t() | nil,
3739
:resourceId => GoogleApi.Redis.V1beta1.Model.DatabaseResourceId.t() | nil,
3840
:resourceName => String.t() | nil
3941
}
4042

4143
field(:backupConfiguration, as: GoogleApi.Redis.V1beta1.Model.BackupConfiguration)
4244
field(:backupRun, as: GoogleApi.Redis.V1beta1.Model.BackupRun)
45+
field(:isDeletionProtectionEnabled)
4346
field(:product, as: GoogleApi.Redis.V1beta1.Model.Product)
4447
field(:resourceId, as: GoogleApi.Redis.V1beta1.Model.DatabaseResourceId)
4548
field(:resourceName)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ defmodule GoogleApi.Redis.V1beta1.Model.UpdateInfo do
2121
2222
## Attributes
2323
24+
* `targetNodeType` (*type:* `String.t`, *default:* `nil`) - Target node type for redis cluster.
2425
* `targetReplicaCount` (*type:* `integer()`, *default:* `nil`) - Target number of replica nodes per shard.
2526
* `targetShardCount` (*type:* `integer()`, *default:* `nil`) - Target number of shards for redis cluster
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:targetNodeType => String.t() | nil,
3133
:targetReplicaCount => integer() | nil,
3234
:targetShardCount => integer() | nil
3335
}
3436

37+
field(:targetNodeType)
3538
field(:targetReplicaCount)
3639
field(:targetShardCount)
3740
end

0 commit comments

Comments
 (0)