Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Redis client #12659

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_redis, "~> 0.49"}]
[{:google_api_redis, "~> 0.50"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/redis/lib/google_api/redis/v1/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ defmodule GoogleApi.Redis.V1.Api.Projects do
end

@doc """
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.
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.

## Parameters

Expand Down
2 changes: 1 addition & 1 deletion clients/redis/lib/google_api/redis/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Redis.V1 do
API client metadata for GoogleApi.Redis.V1.
"""

@discovery_revision "20241114"
@discovery_revision "20241203"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule GoogleApi.Redis.V1.Model.AutomatedBackupConfig do

* `automatedBackupMode` (*type:* `String.t`, *default:* `nil`) - Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
* `fixedFrequencySchedule` (*type:* `GoogleApi.Redis.V1.Model.FixedFrequencySchedule.t`, *default:* `nil`) - Optional. Trigger automated backups at a fixed frequency.
* `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.
* `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.
"""

use GoogleApi.Gax.ModelBase
Expand Down
5 changes: 4 additions & 1 deletion clients/redis/lib/google_api/redis/v1/model/backup.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of shards for the cluster.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the backup.
* `totalSizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Total size of the backup in bytes.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup.
"""

use GoogleApi.Gax.ModelBase
Expand All @@ -51,7 +52,8 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
:replicaCount => integer() | nil,
:shardCount => integer() | nil,
:state => String.t() | nil,
:totalSizeBytes => String.t() | nil
:totalSizeBytes => String.t() | nil,
:uid => String.t() | nil
}

field(:backupFiles, as: GoogleApi.Redis.V1.Model.BackupFile, type: :list)
Expand All @@ -67,6 +69,7 @@ defmodule GoogleApi.Redis.V1.Model.Backup do
field(:shardCount)
field(:state)
field(:totalSizeBytes)
field(:uid)
end

defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.Backup do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ defmodule GoogleApi.Redis.V1.Model.BackupCollection do
* `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}
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. The cluster uid of the backup collection.
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup collection.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup collection.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:cluster => String.t() | nil,
:clusterUid => String.t() | nil,
:name => String.t() | nil
:name => String.t() | nil,
:uid => String.t() | nil
}

field(:cluster)
field(:clusterUid)
field(:name)
field(:uid)
end

defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupCollection do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ defmodule GoogleApi.Redis.V1.Model.ConnectionDetail do

## Attributes

* `pscAutoConnection` (*type:* `GoogleApi.Redis.V1.Model.PscAutoConnection.t`, *default:* `nil`) - Detailed information of a PSC connection that is created through service connectivity automation.
* `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.
"""

use GoogleApi.Gax.ModelBase

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

field(:pscAutoConnection, as: GoogleApi.Redis.V1.Model.PscAutoConnection)
field(:pscConnection, as: GoogleApi.Redis.V1.Model.PscConnection)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Redis.V1.Model.FixedFrequencySchedule do

## Attributes

* `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.
* `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.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Redis.V1.Model.PscAutoConnection do
@moduledoc """
Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.

## Attributes

* `address` (*type:* `String.t`, *default:* `nil`) - Output only. The IP allocated on the consumer network for the PSC forwarding rule.
* `connectionType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the PSC connection.
* `forwardingRule` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
* `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}.
* `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The consumer project_id where the forwarding rule is created from.
* `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
* `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.
* `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}.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:address => String.t() | nil,
:connectionType => String.t() | nil,
:forwardingRule => String.t() | nil,
:network => String.t() | nil,
:projectId => String.t() | nil,
:pscConnectionId => String.t() | nil,
:pscConnectionStatus => String.t() | nil,
:serviceAttachment => String.t() | nil
}

field(:address)
field(:connectionType)
field(:forwardingRule)
field(:network)
field(:projectId)
field(:pscConnectionId)
field(:pscConnectionStatus)
field(:serviceAttachment)
end

defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.PscAutoConnection do
def decode(value, options) do
GoogleApi.Redis.V1.Model.PscAutoConnection.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.PscAutoConnection do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ defmodule GoogleApi.Redis.V1beta1.Api.Projects do
end

@doc """
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.
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.

## Parameters

Expand Down
2 changes: 1 addition & 1 deletion clients/redis/lib/google_api/redis/v1beta1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Redis.V1beta1 do
API client metadata for GoogleApi.Redis.V1beta1.
"""

@discovery_revision "20241114"
@discovery_revision "20241203"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.AutomatedBackupConfig do

* `automatedBackupMode` (*type:* `String.t`, *default:* `nil`) - Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored.
* `fixedFrequencySchedule` (*type:* `GoogleApi.Redis.V1beta1.Model.FixedFrequencySchedule.t`, *default:* `nil`) - Optional. Trigger automated backups at a fixed frequency.
* `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.
* `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.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.Backup do
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of shards for the cluster.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the backup.
* `totalSizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Total size of the backup in bytes.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup.
"""

use GoogleApi.Gax.ModelBase
Expand All @@ -51,7 +52,8 @@ defmodule GoogleApi.Redis.V1beta1.Model.Backup do
:replicaCount => integer() | nil,
:shardCount => integer() | nil,
:state => String.t() | nil,
:totalSizeBytes => String.t() | nil
:totalSizeBytes => String.t() | nil,
:uid => String.t() | nil
}

field(:backupFiles, as: GoogleApi.Redis.V1beta1.Model.BackupFile, type: :list)
Expand All @@ -67,6 +69,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.Backup do
field(:shardCount)
field(:state)
field(:totalSizeBytes)
field(:uid)
end

defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.Backup do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ defmodule GoogleApi.Redis.V1beta1.Model.BackupCollection do
* `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}
* `clusterUid` (*type:* `String.t`, *default:* `nil`) - Output only. The cluster uid of the backup collection.
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full resource path of the backup collection.
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned unique identifier of the backup collection.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:cluster => String.t() | nil,
:clusterUid => String.t() | nil,
:name => String.t() | nil
:name => String.t() | nil,
:uid => String.t() | nil
}

field(:cluster)
field(:clusterUid)
field(:name)
field(:uid)
end

defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.BackupCollection do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ defmodule GoogleApi.Redis.V1beta1.Model.ConnectionDetail do

## Attributes

* `pscAutoConnection` (*type:* `GoogleApi.Redis.V1beta1.Model.PscAutoConnection.t`, *default:* `nil`) - Detailed information of a PSC connection that is created through service connectivity automation.
* `pscConnection` (*type:* `GoogleApi.Redis.V1beta1.Model.PscConnection.t`, *default:* `nil`) - Detailed information of a PSC connection that is created by the customer who owns the cluster.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:pscAutoConnection => GoogleApi.Redis.V1beta1.Model.PscAutoConnection.t() | nil,
:pscConnection => GoogleApi.Redis.V1beta1.Model.PscConnection.t() | nil
}

field(:pscAutoConnection, as: GoogleApi.Redis.V1beta1.Model.PscAutoConnection)
field(:pscConnection, as: GoogleApi.Redis.V1beta1.Model.PscConnection)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.FixedFrequencySchedule do

## Attributes

* `startTime` (*type:* `GoogleApi.Redis.V1beta1.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.
* `startTime` (*type:* `GoogleApi.Redis.V1beta1.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.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Redis.V1beta1.Model.PscAutoConnection do
@moduledoc """
Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.

## Attributes

* `address` (*type:* `String.t`, *default:* `nil`) - Output only. The IP allocated on the consumer network for the PSC forwarding rule.
* `connectionType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the PSC connection.
* `forwardingRule` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
* `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}.
* `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The consumer project_id where the forwarding rule is created from.
* `pscConnectionId` (*type:* `String.t`, *default:* `nil`) - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
* `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.
* `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}.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:address => String.t() | nil,
:connectionType => String.t() | nil,
:forwardingRule => String.t() | nil,
:network => String.t() | nil,
:projectId => String.t() | nil,
:pscConnectionId => String.t() | nil,
:pscConnectionStatus => String.t() | nil,
:serviceAttachment => String.t() | nil
}

field(:address)
field(:connectionType)
field(:forwardingRule)
field(:network)
field(:projectId)
field(:pscConnectionId)
field(:pscConnectionStatus)
field(:serviceAttachment)
end

defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.PscAutoConnection do
def decode(value, options) do
GoogleApi.Redis.V1beta1.Model.PscAutoConnection.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.PscAutoConnection do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/redis/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Redis.Mixfile do
use Mix.Project

@version "0.49.0"
@version "0.50.0"

def project() do
[
Expand Down
Loading