Skip to content

Commit 70353b4

Browse files
feat: Automated regeneration of DNS client (googleapis#12788)
Auto-created at 2025-01-08 13:17:27 +0000 using the toys pull request generator.
1 parent 8a34bff commit 70353b4

File tree

6 files changed

+104
-3
lines changed

6 files changed

+104
-3
lines changed

clients/dns/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_dns, "~> 0.31"}]
14+
[{:google_api_dns, "~> 0.32"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20240719"
23+
@discovery_revision "20250102"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/dns/lib/google_api/dns/v1/model/policy.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.DNS.V1.Model.Policy do
2323
2424
* `alternativeNameServerConfig` (*type:* `GoogleApi.DNS.V1.Model.PolicyAlternativeNameServerConfig.t`, *default:* `nil`) - Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
2525
* `description` (*type:* `String.t`, *default:* `nil`) - A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
26+
* `dns64Config` (*type:* `GoogleApi.DNS.V1.Model.PolicyDns64Config.t`, *default:* `nil`) - Configurations related to DNS64 for this Policy.
2627
* `enableInboundForwarding` (*type:* `boolean()`, *default:* `nil`) - Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
2728
* `enableLogging` (*type:* `boolean()`, *default:* `nil`) - Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
2829
* `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier for the resource; defined by the server (output only).
@@ -37,6 +38,7 @@ defmodule GoogleApi.DNS.V1.Model.Policy do
3738
:alternativeNameServerConfig =>
3839
GoogleApi.DNS.V1.Model.PolicyAlternativeNameServerConfig.t() | nil,
3940
:description => String.t() | nil,
41+
:dns64Config => GoogleApi.DNS.V1.Model.PolicyDns64Config.t() | nil,
4042
:enableInboundForwarding => boolean() | nil,
4143
:enableLogging => boolean() | nil,
4244
:id => String.t() | nil,
@@ -48,6 +50,7 @@ defmodule GoogleApi.DNS.V1.Model.Policy do
4850
field(:alternativeNameServerConfig, as: GoogleApi.DNS.V1.Model.PolicyAlternativeNameServerConfig)
4951

5052
field(:description)
53+
field(:dns64Config, as: GoogleApi.DNS.V1.Model.PolicyDns64Config)
5154
field(:enableInboundForwarding)
5255
field(:enableLogging)
5356
field(:id)
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.DNS.V1.Model.PolicyDns64Config do
19+
@moduledoc """
20+
DNS64 policies
21+
22+
## Attributes
23+
24+
* `kind` (*type:* `String.t`, *default:* `dns#policyDns64Config`) -
25+
* `scope` (*type:* `GoogleApi.DNS.V1.Model.PolicyDns64ConfigScope.t`, *default:* `nil`) - The scope to which DNS64 config will be applied to.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:kind => String.t() | nil,
32+
:scope => GoogleApi.DNS.V1.Model.PolicyDns64ConfigScope.t() | nil
33+
}
34+
35+
field(:kind)
36+
field(:scope, as: GoogleApi.DNS.V1.Model.PolicyDns64ConfigScope)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.DNS.V1.Model.PolicyDns64Config do
40+
def decode(value, options) do
41+
GoogleApi.DNS.V1.Model.PolicyDns64Config.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.DNS.V1.Model.PolicyDns64Config do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.DNS.V1.Model.PolicyDns64ConfigScope do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `allQueries` (*type:* `boolean()`, *default:* `nil`) - Controls whether DNS64 is enabled globally at the network level.
25+
* `kind` (*type:* `String.t`, *default:* `dns#policyDns64ConfigScope`) -
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:allQueries => boolean() | nil,
32+
:kind => String.t() | nil
33+
}
34+
35+
field(:allQueries)
36+
field(:kind)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.DNS.V1.Model.PolicyDns64ConfigScope do
40+
def decode(value, options) do
41+
GoogleApi.DNS.V1.Model.PolicyDns64ConfigScope.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.DNS.V1.Model.PolicyDns64ConfigScope do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/dns/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.DNS.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.31.0"
21+
@version "0.32.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)