-
Notifications
You must be signed in to change notification settings - Fork 461
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 (#12089)
Auto-created at 2024-09-05 13:17:36 +0000 using the toys pull request generator.
- Loading branch information
1 parent
a3a847f
commit 21119df
Showing
20 changed files
with
809 additions
and
4 deletions.
There are no files selected for viewing
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
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
58 changes: 58 additions & 0 deletions
58
clients/redis/lib/google_api/redis/v1beta1/model/asset_location.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,58 @@ | ||
# 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.AssetLocation do | ||
@moduledoc """ | ||
Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf. | ||
## Attributes | ||
* `ccfeRmsPath` (*type:* `String.t`, *default:* `nil`) - Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata. | ||
* `expected` (*type:* `GoogleApi.Redis.V1beta1.Model.IsolationExpectations.t`, *default:* `nil`) - Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation. | ||
* `extraParameters` (*type:* `list(GoogleApi.Redis.V1beta1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types. | ||
* `locationData` (*type:* `list(GoogleApi.Redis.V1beta1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset. | ||
* `parentAsset` (*type:* `list(GoogleApi.Redis.V1beta1.Model.CloudAsset.t)`, *default:* `nil`) - Defines parents assets if any in order to allow later generation of child_asset_location data via child assets. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:ccfeRmsPath => String.t() | nil, | ||
:expected => GoogleApi.Redis.V1beta1.Model.IsolationExpectations.t() | nil, | ||
:extraParameters => list(GoogleApi.Redis.V1beta1.Model.ExtraParameter.t()) | nil, | ||
:locationData => list(GoogleApi.Redis.V1beta1.Model.LocationData.t()) | nil, | ||
:parentAsset => list(GoogleApi.Redis.V1beta1.Model.CloudAsset.t()) | nil | ||
} | ||
|
||
field(:ccfeRmsPath) | ||
field(:expected, as: GoogleApi.Redis.V1beta1.Model.IsolationExpectations) | ||
field(:extraParameters, as: GoogleApi.Redis.V1beta1.Model.ExtraParameter, type: :list) | ||
field(:locationData, as: GoogleApi.Redis.V1beta1.Model.LocationData, type: :list) | ||
field(:parentAsset, as: GoogleApi.Redis.V1beta1.Model.CloudAsset, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.AssetLocation do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1beta1.Model.AssetLocation.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.AssetLocation do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/redis/lib/google_api/redis/v1beta1/model/blobstore_location.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,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.V1beta1.Model.BlobstoreLocation do | ||
@moduledoc """ | ||
Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains | ||
## Attributes | ||
* `policyId` (*type:* `list(String.t)`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:policyId => list(String.t()) | nil | ||
} | ||
|
||
field(:policyId, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.BlobstoreLocation do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1beta1.Model.BlobstoreLocation.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.BlobstoreLocation 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/v1beta1/model/cloud_asset.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.V1beta1.Model.CloudAsset do | ||
@moduledoc """ | ||
## Attributes | ||
* `assetName` (*type:* `String.t`, *default:* `nil`) - | ||
* `assetType` (*type:* `String.t`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:assetName => String.t() | nil, | ||
:assetType => String.t() | nil | ||
} | ||
|
||
field(:assetName) | ||
field(:assetType) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.CloudAsset do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1beta1.Model.CloudAsset.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.CloudAsset do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/redis/lib/google_api/redis/v1beta1/model/cloud_asset_composition.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,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.V1beta1.Model.CloudAssetComposition do | ||
@moduledoc """ | ||
## Attributes | ||
* `childAsset` (*type:* `list(GoogleApi.Redis.V1beta1.Model.CloudAsset.t)`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:childAsset => list(GoogleApi.Redis.V1beta1.Model.CloudAsset.t()) | nil | ||
} | ||
|
||
field(:childAsset, as: GoogleApi.Redis.V1beta1.Model.CloudAsset, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.CloudAssetComposition do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1beta1.Model.CloudAssetComposition.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.CloudAssetComposition 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
46 changes: 46 additions & 0 deletions
46
clients/redis/lib/google_api/redis/v1beta1/model/direct_location_assignment.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,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.V1beta1.Model.DirectLocationAssignment do | ||
@moduledoc """ | ||
## Attributes | ||
* `location` (*type:* `list(GoogleApi.Redis.V1beta1.Model.LocationAssignment.t)`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:location => list(GoogleApi.Redis.V1beta1.Model.LocationAssignment.t()) | nil | ||
} | ||
|
||
field(:location, as: GoogleApi.Redis.V1beta1.Model.LocationAssignment, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.DirectLocationAssignment do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1beta1.Model.DirectLocationAssignment.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.DirectLocationAssignment 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/v1beta1/model/extra_parameter.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.V1beta1.Model.ExtraParameter do | ||
@moduledoc """ | ||
Defines parameters that should only be used for specific asset types. | ||
## Attributes | ||
* `regionalMigDistributionPolicy` (*type:* `GoogleApi.Redis.V1beta1.Model.RegionalMigDistributionPolicy.t`, *default:* `nil`) - Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:regionalMigDistributionPolicy => | ||
GoogleApi.Redis.V1beta1.Model.RegionalMigDistributionPolicy.t() | nil | ||
} | ||
|
||
field(:regionalMigDistributionPolicy, | ||
as: GoogleApi.Redis.V1beta1.Model.RegionalMigDistributionPolicy | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Redis.V1beta1.Model.ExtraParameter do | ||
def decode(value, options) do | ||
GoogleApi.Redis.V1beta1.Model.ExtraParameter.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Redis.V1beta1.Model.ExtraParameter do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.