Skip to content

Commit 8fbfd7c

Browse files
feat: Automated regeneration of Memcache client (googleapis#12213)
Auto-created at 2024-09-26 13:15:51 +0000 using the toys pull request generator.
1 parent ffabb76 commit 8fbfd7c

18 files changed

+759
-3
lines changed

clients/memcache/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_memcache, "~> 0.23"}]
14+
[{:google_api_memcache, "~> 0.24"}]
1515
end
1616
```
1717

clients/memcache/lib/google_api/memcache/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Memcache.V1 do
2020
API client metadata for GoogleApi.Memcache.V1.
2121
"""
2222

23-
@discovery_revision "20240604"
23+
@discovery_revision "20240919"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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.Memcache.V1.Model.AssetLocation do
19+
@moduledoc """
20+
Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `expected` (*type:* `GoogleApi.Memcache.V1.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.
26+
* `extraParameters` (*type:* `list(GoogleApi.Memcache.V1.Model.ExtraParameter.t)`, *default:* `nil`) - Defines extra parameters required for specific asset types.
27+
* `locationData` (*type:* `list(GoogleApi.Memcache.V1.Model.LocationData.t)`, *default:* `nil`) - Contains all kinds of physical location definitions for this asset.
28+
* `parentAsset` (*type:* `list(GoogleApi.Memcache.V1.Model.CloudAsset.t)`, *default:* `nil`) - Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:ccfeRmsPath => String.t() | nil,
35+
:expected => GoogleApi.Memcache.V1.Model.IsolationExpectations.t() | nil,
36+
:extraParameters => list(GoogleApi.Memcache.V1.Model.ExtraParameter.t()) | nil,
37+
:locationData => list(GoogleApi.Memcache.V1.Model.LocationData.t()) | nil,
38+
:parentAsset => list(GoogleApi.Memcache.V1.Model.CloudAsset.t()) | nil
39+
}
40+
41+
field(:ccfeRmsPath)
42+
field(:expected, as: GoogleApi.Memcache.V1.Model.IsolationExpectations)
43+
field(:extraParameters, as: GoogleApi.Memcache.V1.Model.ExtraParameter, type: :list)
44+
field(:locationData, as: GoogleApi.Memcache.V1.Model.LocationData, type: :list)
45+
field(:parentAsset, as: GoogleApi.Memcache.V1.Model.CloudAsset, type: :list)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.AssetLocation do
49+
def decode(value, options) do
50+
GoogleApi.Memcache.V1.Model.AssetLocation.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.AssetLocation do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
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.Memcache.V1.Model.BlobstoreLocation do
19+
@moduledoc """
20+
Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains
21+
22+
## Attributes
23+
24+
* `policyId` (*type:* `list(String.t)`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:policyId => list(String.t()) | nil
31+
}
32+
33+
field(:policyId, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.BlobstoreLocation do
37+
def decode(value, options) do
38+
GoogleApi.Memcache.V1.Model.BlobstoreLocation.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.BlobstoreLocation do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.Memcache.V1.Model.CloudAsset do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `assetName` (*type:* `String.t`, *default:* `nil`) -
25+
* `assetType` (*type:* `String.t`, *default:* `nil`) -
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:assetName => String.t() | nil,
32+
:assetType => String.t() | nil
33+
}
34+
35+
field(:assetName)
36+
field(:assetType)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.CloudAsset do
40+
def decode(value, options) do
41+
GoogleApi.Memcache.V1.Model.CloudAsset.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.CloudAsset do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
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.Memcache.V1.Model.CloudAssetComposition do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `childAsset` (*type:* `list(GoogleApi.Memcache.V1.Model.CloudAsset.t)`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:childAsset => list(GoogleApi.Memcache.V1.Model.CloudAsset.t()) | nil
31+
}
32+
33+
field(:childAsset, as: GoogleApi.Memcache.V1.Model.CloudAsset, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.CloudAssetComposition do
37+
def decode(value, options) do
38+
GoogleApi.Memcache.V1.Model.CloudAssetComposition.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.CloudAssetComposition do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
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.Memcache.V1.Model.DirectLocationAssignment do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `location` (*type:* `list(GoogleApi.Memcache.V1.Model.LocationAssignment.t)`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:location => list(GoogleApi.Memcache.V1.Model.LocationAssignment.t()) | nil
31+
}
32+
33+
field(:location, as: GoogleApi.Memcache.V1.Model.LocationAssignment, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.DirectLocationAssignment do
37+
def decode(value, options) do
38+
GoogleApi.Memcache.V1.Model.DirectLocationAssignment.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.DirectLocationAssignment do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.Memcache.V1.Model.ExtraParameter do
19+
@moduledoc """
20+
Defines parameters that should only be used for specific asset types.
21+
22+
## Attributes
23+
24+
* `regionalMigDistributionPolicy` (*type:* `GoogleApi.Memcache.V1.Model.RegionalMigDistributionPolicy.t`, *default:* `nil`) - Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:regionalMigDistributionPolicy =>
31+
GoogleApi.Memcache.V1.Model.RegionalMigDistributionPolicy.t() | nil
32+
}
33+
34+
field(:regionalMigDistributionPolicy,
35+
as: GoogleApi.Memcache.V1.Model.RegionalMigDistributionPolicy
36+
)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.ExtraParameter do
40+
def decode(value, options) do
41+
GoogleApi.Memcache.V1.Model.ExtraParameter.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.ExtraParameter do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.Memcache.V1.Model.IsolationExpectations do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `requirementOverride` (*type:* `GoogleApi.Memcache.V1.Model.RequirementOverride.t`, *default:* `nil`) - Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic.
25+
* `ziOrgPolicy` (*type:* `String.t`, *default:* `nil`) -
26+
* `ziRegionPolicy` (*type:* `String.t`, *default:* `nil`) -
27+
* `ziRegionState` (*type:* `String.t`, *default:* `nil`) -
28+
* `zoneIsolation` (*type:* `String.t`, *default:* `nil`) - Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location.
29+
* `zoneSeparation` (*type:* `String.t`, *default:* `nil`) - Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location.
30+
* `zsOrgPolicy` (*type:* `String.t`, *default:* `nil`) -
31+
* `zsRegionState` (*type:* `String.t`, *default:* `nil`) -
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:requirementOverride => GoogleApi.Memcache.V1.Model.RequirementOverride.t() | nil,
38+
:ziOrgPolicy => String.t() | nil,
39+
:ziRegionPolicy => String.t() | nil,
40+
:ziRegionState => String.t() | nil,
41+
:zoneIsolation => String.t() | nil,
42+
:zoneSeparation => String.t() | nil,
43+
:zsOrgPolicy => String.t() | nil,
44+
:zsRegionState => String.t() | nil
45+
}
46+
47+
field(:requirementOverride, as: GoogleApi.Memcache.V1.Model.RequirementOverride)
48+
field(:ziOrgPolicy)
49+
field(:ziRegionPolicy)
50+
field(:ziRegionState)
51+
field(:zoneIsolation)
52+
field(:zoneSeparation)
53+
field(:zsOrgPolicy)
54+
field(:zsRegionState)
55+
end
56+
57+
defimpl Poison.Decoder, for: GoogleApi.Memcache.V1.Model.IsolationExpectations do
58+
def decode(value, options) do
59+
GoogleApi.Memcache.V1.Model.IsolationExpectations.decode(value, options)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder, for: GoogleApi.Memcache.V1.Model.IsolationExpectations do
64+
def encode(value, options) do
65+
GoogleApi.Gax.ModelBase.encode(value, options)
66+
end
67+
end

0 commit comments

Comments
 (0)