-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Redis client (#10882)
Auto-created at 2024-03-12 01:32:01 +0000 using the toys pull request generator.
- Loading branch information
1 parent
8a69c08
commit 44162de
Showing
62 changed files
with
3,950 additions
and
10 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
clients/redis/lib/google_api/redis/v1/model/availability_configuration.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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.AvailabilityConfiguration do | ||
@moduledoc """ | ||
Configuration for availability of database instance | ||
## Attributes | ||
* `availabilityType` (*type:* `String.t`, *default:* `nil`) - Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available). | ||
* `externalReplicaConfigured` (*type:* `boolean()`, *default:* `nil`) - | ||
* `promotableReplicaConfigured` (*type:* `boolean()`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:availabilityType => String.t() | nil, | ||
:externalReplicaConfigured => boolean() | nil, | ||
:promotableReplicaConfigured => boolean() | nil | ||
} | ||
|
||
field(:availabilityType) | ||
field(:externalReplicaConfigured) | ||
field(:promotableReplicaConfigured) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.AvailabilityConfiguration do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1.Model.AvailabilityConfiguration.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.AvailabilityConfiguration do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
clients/redis/lib/google_api/redis/v1/model/backup_configuration.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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.BackupConfiguration do | ||
@moduledoc """ | ||
Configuration for automatic backups | ||
## Attributes | ||
* `automatedBackupEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether customer visible automated backups are enabled on the instance. | ||
* `backupRetentionSettings` (*type:* `GoogleApi.Redis.V1.Model.RetentionSettings.t`, *default:* `nil`) - Backup retention settings. | ||
* `pointInTimeRecoveryEnabled` (*type:* `boolean()`, *default:* `nil`) - Whether point-in-time recovery is enabled. This is optional field, if the database service does not have this feature or metadata is not available in control plane, this can be omitted. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:automatedBackupEnabled => boolean() | nil, | ||
:backupRetentionSettings => GoogleApi.Redis.V1.Model.RetentionSettings.t() | nil, | ||
:pointInTimeRecoveryEnabled => boolean() | nil | ||
} | ||
|
||
field(:automatedBackupEnabled) | ||
field(:backupRetentionSettings, as: GoogleApi.Redis.V1.Model.RetentionSettings) | ||
field(:pointInTimeRecoveryEnabled) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupConfiguration do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1.Model.BackupConfiguration.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.BackupConfiguration do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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.BackupRun do | ||
@moduledoc """ | ||
A backup run. | ||
## Attributes | ||
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the backup operation completed. REQUIRED | ||
* `error` (*type:* `GoogleApi.Redis.V1.Model.OperationError.t`, *default:* `nil`) - Information about why the backup operation failed. This is only present if the run has the FAILED status. OPTIONAL | ||
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the backup operation started. REQUIRED | ||
* `status` (*type:* `String.t`, *default:* `nil`) - The status of this run. REQUIRED | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:endTime => DateTime.t() | nil, | ||
:error => GoogleApi.Redis.V1.Model.OperationError.t() | nil, | ||
:startTime => DateTime.t() | nil, | ||
:status => String.t() | nil | ||
} | ||
|
||
field(:endTime, as: DateTime) | ||
field(:error, as: GoogleApi.Redis.V1.Model.OperationError) | ||
field(:startTime, as: DateTime) | ||
field(:status) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.BackupRun do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1.Model.BackupRun.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.BackupRun do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# 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.CertChain do | ||
@moduledoc """ | ||
## Attributes | ||
* `certificates` (*type:* `list(String.t)`, *default:* `nil`) - The certificates that form the CA chain, from leaf to root order. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:certificates => list(String.t()) | nil | ||
} | ||
|
||
field(:certificates, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.CertChain do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1.Model.CertChain.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.CertChain do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
49 changes: 49 additions & 0 deletions
49
clients/redis/lib/google_api/redis/v1/model/certificate_authority.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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.CertificateAuthority do | ||
@moduledoc """ | ||
Redis cluster certificate authority | ||
## Attributes | ||
* `managedServerCa` (*type:* `GoogleApi.Redis.V1.Model.ManagedCertificateAuthority.t`, *default:* `nil`) - | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Unique name of the resource in this scope including project, location and cluster using the form: `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority` | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:managedServerCa => GoogleApi.Redis.V1.Model.ManagedCertificateAuthority.t() | nil, | ||
:name => String.t() | nil | ||
} | ||
|
||
field(:managedServerCa, as: GoogleApi.Redis.V1.Model.ManagedCertificateAuthority) | ||
field(:name) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.CertificateAuthority do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1.Model.CertificateAuthority.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.CertificateAuthority do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# 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.Cluster do | ||
@moduledoc """ | ||
A cluster instance. | ||
## Attributes | ||
* `authorizationMode` (*type:* `String.t`, *default:* `nil`) - Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. | ||
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp associated with the cluster creation request. | ||
* `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. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` | ||
* `pscConfigs` (*type:* `list(GoogleApi.Redis.V1.Model.PscConfig.t)`, *default:* `nil`) - Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported. | ||
* `pscConnections` (*type:* `list(GoogleApi.Redis.V1.Model.PscConnection.t)`, *default:* `nil`) - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. | ||
* `replicaCount` (*type:* `integer()`, *default:* `nil`) - Optional. The number of replica nodes per shard. | ||
* `shardCount` (*type:* `integer()`, *default:* `nil`) - Required. Number of shards for the Redis cluster. | ||
* `sizeGb` (*type:* `integer()`, *default:* `nil`) - Output only. Redis memory size in GB for the entire cluster rounded up to the next integer. | ||
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED | ||
* `stateInfo` (*type:* `GoogleApi.Redis.V1.Model.StateInfo.t`, *default:* `nil`) - Output only. Additional information about the current state of the cluster. | ||
* `transitEncryptionMode` (*type:* `String.t`, *default:* `nil`) - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. | ||
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. System assigned, unique identifier for the cluster. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:authorizationMode => String.t() | nil, | ||
:createTime => DateTime.t() | nil, | ||
:discoveryEndpoints => list(GoogleApi.Redis.V1.Model.DiscoveryEndpoint.t()) | nil, | ||
:name => String.t() | nil, | ||
:pscConfigs => list(GoogleApi.Redis.V1.Model.PscConfig.t()) | nil, | ||
:pscConnections => list(GoogleApi.Redis.V1.Model.PscConnection.t()) | nil, | ||
:replicaCount => integer() | nil, | ||
:shardCount => integer() | nil, | ||
:sizeGb => integer() | nil, | ||
:state => String.t() | nil, | ||
:stateInfo => GoogleApi.Redis.V1.Model.StateInfo.t() | nil, | ||
:transitEncryptionMode => String.t() | nil, | ||
:uid => String.t() | nil | ||
} | ||
|
||
field(:authorizationMode) | ||
field(:createTime, as: DateTime) | ||
field(:discoveryEndpoints, as: GoogleApi.Redis.V1.Model.DiscoveryEndpoint, type: :list) | ||
field(:name) | ||
field(:pscConfigs, as: GoogleApi.Redis.V1.Model.PscConfig, type: :list) | ||
field(:pscConnections, as: GoogleApi.Redis.V1.Model.PscConnection, type: :list) | ||
field(:replicaCount) | ||
field(:shardCount) | ||
field(:sizeGb) | ||
field(:state) | ||
field(:stateInfo, as: GoogleApi.Redis.V1.Model.StateInfo) | ||
field(:transitEncryptionMode) | ||
field(:uid) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1.Model.Cluster do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1.Model.Cluster.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1.Model.Cluster do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.