Skip to content

Commit 6e0e1ba

Browse files
feat: Automated regeneration of Redis client (googleapis#13018)
Auto-created at 2025-02-22 13:10:50 +0000 using the toys pull request generator.
1 parent 52d593c commit 6e0e1ba

18 files changed

+124
-20
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ defmodule GoogleApi.Redis.V1.Api.Projects do
677677
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
678678
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
679679
* `:clusterId` (*type:* `String.t`) - Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location
680-
* `:requestId` (*type:* `String.t`) - Idempotent request UUID.
680+
* `:requestId` (*type:* `String.t`) - Optional. Idempotent request UUID.
681681
* `:body` (*type:* `GoogleApi.Redis.V1.Model.Cluster.t`) -
682682
* `opts` (*type:* `keyword()`) - Call options
683683
@@ -752,7 +752,7 @@ defmodule GoogleApi.Redis.V1.Api.Projects do
752752
* `: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.
753753
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
754754
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
755-
* `:requestId` (*type:* `String.t`) - Idempotent request UUID.
755+
* `:requestId` (*type:* `String.t`) - Optional. Idempotent request UUID.
756756
* `opts` (*type:* `keyword()`) - Call options
757757
758758
## Returns
@@ -1033,7 +1033,7 @@ defmodule GoogleApi.Redis.V1.Api.Projects do
10331033
* `: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.
10341034
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
10351035
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1036-
* `:requestId` (*type:* `String.t`) - Idempotent request UUID.
1036+
* `:requestId` (*type:* `String.t`) - Optional. Idempotent request UUID.
10371037
* `:updateMask` (*type:* `String.t`) - Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * `size_gb` * `replica_count` * `cluster_endpoints`
10381038
* `:body` (*type:* `GoogleApi.Redis.V1.Model.Cluster.t`) -
10391039
* `opts` (*type:* `keyword()`) - Call options

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.Redis.V1.Model.Cluster do
2525
* `authorizationMode` (*type:* `String.t`, *default:* `nil`) - Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.
2626
* `automatedBackupConfig` (*type:* `GoogleApi.Redis.V1.Model.AutomatedBackupConfig.t`, *default:* `nil`) - Optional. The automated backup config for the cluster.
2727
* `backupCollection` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
28-
* `clusterEndpoints` (*type:* `list(GoogleApi.Redis.V1.Model.ClusterEndpoint.t)`, *default:* `nil`) - Optional. A list of cluster enpoints.
28+
* `clusterEndpoints` (*type:* `list(GoogleApi.Redis.V1.Model.ClusterEndpoint.t)`, *default:* `nil`) - Optional. A list of cluster endpoints.
2929
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp associated with the cluster creation request.
3030
* `crossClusterReplicationConfig` (*type:* `GoogleApi.Redis.V1.Model.CrossClusterReplicationConfig.t`, *default:* `nil`) - Optional. Cross cluster replication config.
3131
* `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. The delete operation will fail when the value is set to true.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Redis.V1.Model.ClusterEndpoint do
2121
2222
## Attributes
2323
24-
* `connections` (*type:* `list(GoogleApi.Redis.V1.Model.ConnectionDetail.t)`, *default:* `nil`) - A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.
24+
* `connections` (*type:* `list(GoogleApi.Redis.V1.Model.ConnectionDetail.t)`, *default:* `nil`) - Required. A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

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

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

1818
defmodule GoogleApi.Redis.V1.Model.ClusterMaintenanceSchedule do
1919
@moduledoc """
20-
Upcoming maitenance schedule.
20+
Upcoming maintenance schedule.
2121
2222
## Attributes
2323

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

Lines changed: 5 additions & 2 deletions
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: 24
20+
Common model for database resource instance metadata. Next ID: 25
2121
2222
## Attributes
2323
@@ -30,6 +30,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
3030
* `edition` (*type:* `String.t`, *default:* `nil`) - Optional. Edition represents whether the instance is ENTERPRISE or ENTERPRISE_PLUS. This information is core to Cloud SQL only and is used to identify the edition of the instance.
3131
* `entitlements` (*type:* `list(GoogleApi.Redis.V1.Model.Entitlement.t)`, *default:* `nil`) - Entitlements associated with the resource
3232
* `expectedState` (*type:* `String.t`, *default:* `nil`) - The state that the instance is expected to be in. For example, an instance state can transition to UNHEALTHY due to wrong patch update, while the expected state will remain at the HEALTHY.
33+
* `gcbdrConfiguration` (*type:* `GoogleApi.Redis.V1.Model.GCBDRConfiguration.t`, *default:* `nil`) - GCBDR configuration for the resource.
3334
* `id` (*type:* `GoogleApi.Redis.V1.Model.DatabaseResourceId.t`, *default:* `nil`) - Required. Unique identifier for a Database resource
3435
* `instanceType` (*type:* `String.t`, *default:* `nil`) - The type of the instance. Specified at creation time.
3536
* `location` (*type:* `String.t`, *default:* `nil`) - The resource location. REQUIRED
@@ -39,7 +40,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
3940
* `product` (*type:* `GoogleApi.Redis.V1.Model.Product.t`, *default:* `nil`) - The product this resource represents.
4041
* `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.
4142
* `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.
43+
* `suspensionReason` (*type:* `String.t`, *default:* `nil`) - Optional. Suspension reason for the resource.
4344
* `tagsSet` (*type:* `GoogleApi.Redis.V1.Model.Tags.t`, *default:* `nil`) - Optional. Tags associated with this resources.
4445
* `updationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the resource was updated and recorded at partner service.
4546
* `userLabelSet` (*type:* `GoogleApi.Redis.V1.Model.UserLabels.t`, *default:* `nil`) - User-provided labels associated with the resource
@@ -58,6 +59,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
5859
:edition => String.t() | nil,
5960
:entitlements => list(GoogleApi.Redis.V1.Model.Entitlement.t()) | nil,
6061
:expectedState => String.t() | nil,
62+
:gcbdrConfiguration => GoogleApi.Redis.V1.Model.GCBDRConfiguration.t() | nil,
6163
:id => GoogleApi.Redis.V1.Model.DatabaseResourceId.t() | nil,
6264
:instanceType => String.t() | nil,
6365
:location => String.t() | nil,
@@ -82,6 +84,7 @@ defmodule GoogleApi.Redis.V1.Model.DatabaseResourceMetadata do
8284
field(:edition)
8385
field(:entitlements, as: GoogleApi.Redis.V1.Model.Entitlement, type: :list)
8486
field(:expectedState)
87+
field(:gcbdrConfiguration, as: GoogleApi.Redis.V1.Model.GCBDRConfiguration)
8588
field(:id, as: GoogleApi.Redis.V1.Model.DatabaseResourceId)
8689
field(:instanceType)
8790
field(:location)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.GCBDRConfiguration do
19+
@moduledoc """
20+
GCBDR Configuration for the resource.
21+
22+
## Attributes
23+
24+
* `gcbdrManaged` (*type:* `boolean()`, *default:* `nil`) - Whether the resource is managed by GCBDR.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:gcbdrManaged => boolean() | nil
31+
}
32+
33+
field(:gcbdrManaged)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.GCBDRConfiguration do
37+
def decode(value, options) do
38+
GoogleApi.Redis.V1.Model.GCBDRConfiguration.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.GCBDRConfiguration do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Redis.V1.Model.GcsBackupSource do
2121
2222
## Attributes
2323
24-
* `uris` (*type:* `list(String.t)`, *default:* `nil`) - Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2
24+
* `uris` (*type:* `list(String.t)`, *default:* `nil`) - Optional. URIs of the Cloud Storage objects to import. Example: gs://bucket1/object1, gs://bucket2/folder2/object2
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.Redis.V1.Model.PscConnection do
2525
* `connectionType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the PSC connection.
2626
* `forwardingRule` (*type:* `String.t`, *default:* `nil`) - Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
2727
* `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+
* `port` (*type:* `integer()`, *default:* `nil`) - Output only. The port number of the exposed discovery endpoint.
2829
* `projectId` (*type:* `String.t`, *default:* `nil`) - Optional. Project ID of the consumer project where the forwarding rule is created in.
2930
* `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - Required. The PSC connection id of the forwarding rule connected to the service attachment.
3031
* `pscConnectionStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The status of the PSC connection. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
@@ -38,6 +39,7 @@ defmodule GoogleApi.Redis.V1.Model.PscConnection do
3839
:connectionType => String.t() | nil,
3940
:forwardingRule => String.t() | nil,
4041
:network => String.t() | nil,
42+
:port => integer() | nil,
4143
:projectId => String.t() | nil,
4244
:pscConnectionId => String.t() | nil,
4345
:pscConnectionStatus => String.t() | nil,
@@ -48,6 +50,7 @@ defmodule GoogleApi.Redis.V1.Model.PscConnection do
4850
field(:connectionType)
4951
field(:forwardingRule)
5052
field(:network)
53+
field(:port)
5154
field(:projectId)
5255
field(:pscConnectionId)
5356
field(:pscConnectionStatus)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ defmodule GoogleApi.Redis.V1beta1.Api.Projects do
677677
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
678678
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
679679
* `:clusterId` (*type:* `String.t`) - Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location
680-
* `:requestId` (*type:* `String.t`) - Idempotent request UUID.
680+
* `:requestId` (*type:* `String.t`) - Optional. Idempotent request UUID.
681681
* `:body` (*type:* `GoogleApi.Redis.V1beta1.Model.Cluster.t`) -
682682
* `opts` (*type:* `keyword()`) - Call options
683683
@@ -752,7 +752,7 @@ defmodule GoogleApi.Redis.V1beta1.Api.Projects do
752752
* `: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.
753753
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
754754
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
755-
* `:requestId` (*type:* `String.t`) - Idempotent request UUID.
755+
* `:requestId` (*type:* `String.t`) - Optional. Idempotent request UUID.
756756
* `opts` (*type:* `keyword()`) - Call options
757757
758758
## Returns
@@ -1033,7 +1033,7 @@ defmodule GoogleApi.Redis.V1beta1.Api.Projects do
10331033
* `: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.
10341034
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
10351035
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1036-
* `:requestId` (*type:* `String.t`) - Idempotent request UUID.
1036+
* `:requestId` (*type:* `String.t`) - Optional. Idempotent request UUID.
10371037
* `:updateMask` (*type:* `String.t`) - Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * `size_gb` * `replica_count` * `cluster_endpoints`
10381038
* `:body` (*type:* `GoogleApi.Redis.V1beta1.Model.Cluster.t`) -
10391039
* `opts` (*type:* `keyword()`) - Call options

0 commit comments

Comments
 (0)