Skip to content

Commit

Permalink
feat: Automated regeneration of Redis client (#12089)
Browse files Browse the repository at this point in the history
Auto-created at 2024-09-05 13:17:36 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Sep 5, 2024
1 parent a3a847f commit 21119df
Show file tree
Hide file tree
Showing 20 changed files with 809 additions and 4 deletions.
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.41"}]
[{:google_api_redis, "~> 0.42"}]
end
```

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 "20240822"
@discovery_revision "20240904"

def discovery_revision(), do: @discovery_revision
end
58 changes: 58 additions & 0 deletions clients/redis/lib/google_api/redis/v1beta1/model/asset_location.ex
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
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 clients/redis/lib/google_api/redis/v1beta1/model/cloud_asset.ex
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
@moduledoc """
Common model for database resource instance metadata.
Common model for database resource instance metadata. Next ID: 21
## Attributes
Expand All @@ -37,6 +37,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
* `product` (*type:* `GoogleApi.Redis.V1beta1.Model.Product.t`, *default:* `nil`) - The product this resource represents.
* `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.
* `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
* `tagsSet` (*type:* `GoogleApi.Redis.V1beta1.Model.Tags.t`, *default:* `nil`) - Optional. Tags associated with this resources.
* `updationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the resource was updated and recorded at partner service.
* `userLabelSet` (*type:* `GoogleApi.Redis.V1beta1.Model.UserLabels.t`, *default:* `nil`) - User-provided labels associated with the resource
"""
Expand All @@ -61,6 +62,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
:product => GoogleApi.Redis.V1beta1.Model.Product.t() | nil,
:resourceContainer => String.t() | nil,
:resourceName => String.t() | nil,
:tagsSet => GoogleApi.Redis.V1beta1.Model.Tags.t() | nil,
:updationTime => DateTime.t() | nil,
:userLabelSet => GoogleApi.Redis.V1beta1.Model.UserLabels.t() | nil
}
Expand All @@ -81,6 +83,7 @@ defmodule GoogleApi.Redis.V1beta1.Model.DatabaseResourceMetadata do
field(:product, as: GoogleApi.Redis.V1beta1.Model.Product)
field(:resourceContainer)
field(:resourceName)
field(:tagsSet, as: GoogleApi.Redis.V1beta1.Model.Tags)
field(:updationTime, as: DateTime)
field(:userLabelSet, as: GoogleApi.Redis.V1beta1.Model.UserLabels)
end
Expand Down
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
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
Loading

0 comments on commit 21119df

Please sign in to comment.