Skip to content

Commit 18b8f00

Browse files
feat: Automated regeneration of Compute client (googleapis#12992)
Auto-created at 2025-02-18 13:17:08 +0000 using the toys pull request generator.
1 parent a085213 commit 18b8f00

19 files changed

+1186
-6
lines changed

clients/compute/lib/google_api/compute/v1/api/routers.ex

Lines changed: 526 additions & 0 deletions
Large diffs are not rendered by default.

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

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

23-
@discovery_revision "20250126"
23+
@discovery_revision "20250211"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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.Compute.V1.Model.BgpRoute do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `asPaths` (*type:* `list(GoogleApi.Compute.V1.Model.BgpRouteAsPath.t)`, *default:* `nil`) - [Output only] AS-PATH for the route
25+
* `communities` (*type:* `list(String.t)`, *default:* `nil`) - [Output only] BGP communities in human-readable A:B format.
26+
* `destination` (*type:* `GoogleApi.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation.t`, *default:* `nil`) - [Output only] Destination IP range for the route, in human-readable CIDR format
27+
* `med` (*type:* `integer()`, *default:* `nil`) - [Output only] BGP multi-exit discriminator
28+
* `origin` (*type:* `String.t`, *default:* `nil`) - [Output only] BGP origin (EGP, IGP or INCOMPLETE)
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:asPaths => list(GoogleApi.Compute.V1.Model.BgpRouteAsPath.t()) | nil,
35+
:communities => list(String.t()) | nil,
36+
:destination =>
37+
GoogleApi.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation.t() | nil,
38+
:med => integer() | nil,
39+
:origin => String.t() | nil
40+
}
41+
42+
field(:asPaths, as: GoogleApi.Compute.V1.Model.BgpRouteAsPath, type: :list)
43+
field(:communities, type: :list)
44+
field(:destination, as: GoogleApi.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation)
45+
field(:med)
46+
field(:origin)
47+
end
48+
49+
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.BgpRoute do
50+
def decode(value, options) do
51+
GoogleApi.Compute.V1.Model.BgpRoute.decode(value, options)
52+
end
53+
end
54+
55+
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.BgpRoute do
56+
def encode(value, options) do
57+
GoogleApi.Gax.ModelBase.encode(value, options)
58+
end
59+
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.Compute.V1.Model.BgpRouteAsPath do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `asns` (*type:* `list(integer())`, *default:* `nil`) - [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered.
25+
* `type` (*type:* `String.t`, *default:* `nil`) - [Output only] Type of AS-PATH segment (SEQUENCE or SET)
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:asns => list(integer()) | nil,
32+
:type => String.t() | nil
33+
}
34+
35+
field(:asns, type: :list)
36+
field(:type)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.BgpRouteAsPath do
40+
def decode(value, options) do
41+
GoogleApi.Compute.V1.Model.BgpRouteAsPath.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.BgpRouteAsPath do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation do
19+
@moduledoc """
20+
Network Layer Reachability Information (NLRI) for a route.
21+
22+
## Attributes
23+
24+
* `pathId` (*type:* `integer()`, *default:* `nil`) - If the BGP session supports multiple paths (RFC 7911), the path identifier for this route.
25+
* `prefix` (*type:* `String.t`, *default:* `nil`) - Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:pathId => integer() | nil,
32+
:prefix => String.t() | nil
33+
}
34+
35+
field(:pathId)
36+
field(:prefix)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation do
41+
def decode(value, options) do
42+
GoogleApi.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Compute.V1.Model.BgpRouteNetworkLayerReachabilityInformation do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

clients/compute/lib/google_api/compute/v1/model/region_network_firewall_policies_get_effective_firewalls_response_effective_firewall_policy.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.Compute.V1.Model.RegionNetworkFirewallPoliciesGetEffectiveFi
2424
* `displayName` (*type:* `String.t`, *default:* `nil`) - [Output Only] The display name of the firewall policy.
2525
* `name` (*type:* `String.t`, *default:* `nil`) - [Output Only] The name of the firewall policy.
2626
* `packetMirroringRules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - [Output only] The packet mirroring rules that apply to the network.
27+
* `priority` (*type:* `integer()`, *default:* `nil`) - [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.
2728
* `rules` (*type:* `list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t)`, *default:* `nil`) - [Output only] The rules that apply to the network.
2829
* `type` (*type:* `String.t`, *default:* `nil`) - [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL.
2930
"""
@@ -34,13 +35,15 @@ defmodule GoogleApi.Compute.V1.Model.RegionNetworkFirewallPoliciesGetEffectiveFi
3435
:displayName => String.t() | nil,
3536
:name => String.t() | nil,
3637
:packetMirroringRules => list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t()) | nil,
38+
:priority => integer() | nil,
3739
:rules => list(GoogleApi.Compute.V1.Model.FirewallPolicyRule.t()) | nil,
3840
:type => String.t() | nil
3941
}
4042

4143
field(:displayName)
4244
field(:name)
4345
field(:packetMirroringRules, as: GoogleApi.Compute.V1.Model.FirewallPolicyRule, type: :list)
46+
field(:priority)
4447
field(:rules, as: GoogleApi.Compute.V1.Model.FirewallPolicyRule, type: :list)
4548
field(:type)
4649
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.Compute.V1.Model.RoutePolicy do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `description` (*type:* `String.t`, *default:* `nil`) - An optional description of route policy.
25+
* `fingerprint` (*type:* `String.t`, *default:* `nil`) - A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035.
27+
* `terms` (*type:* `list(GoogleApi.Compute.V1.Model.RoutePolicyPolicyTerm.t)`, *default:* `nil`) - List of terms (the order in the list is not important, they are evaluated in order of priority). Order of policies is not retained and might change when getting policy later.
28+
* `type` (*type:* `String.t`, *default:* `nil`) -
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:description => String.t() | nil,
35+
:fingerprint => String.t() | nil,
36+
:name => String.t() | nil,
37+
:terms => list(GoogleApi.Compute.V1.Model.RoutePolicyPolicyTerm.t()) | nil,
38+
:type => String.t() | nil
39+
}
40+
41+
field(:description)
42+
field(:fingerprint)
43+
field(:name)
44+
field(:terms, as: GoogleApi.Compute.V1.Model.RoutePolicyPolicyTerm, type: :list)
45+
field(:type)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.RoutePolicy do
49+
def decode(value, options) do
50+
GoogleApi.Compute.V1.Model.RoutePolicy.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.RoutePolicy do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.Compute.V1.Model.RoutePolicyPolicyTerm do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `actions` (*type:* `list(GoogleApi.Compute.V1.Model.Expr.t)`, *default:* `nil`) - CEL expressions to evaluate to modify a route when this term matches.
25+
* `match` (*type:* `GoogleApi.Compute.V1.Model.Expr.t`, *default:* `nil`) - CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes.
26+
* `priority` (*type:* `integer()`, *default:* `nil`) - The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:actions => list(GoogleApi.Compute.V1.Model.Expr.t()) | nil,
33+
:match => GoogleApi.Compute.V1.Model.Expr.t() | nil,
34+
:priority => integer() | nil
35+
}
36+
37+
field(:actions, as: GoogleApi.Compute.V1.Model.Expr, type: :list)
38+
field(:match, as: GoogleApi.Compute.V1.Model.Expr)
39+
field(:priority)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.RoutePolicyPolicyTerm do
43+
def decode(value, options) do
44+
GoogleApi.Compute.V1.Model.RoutePolicyPolicyTerm.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.RoutePolicyPolicyTerm do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/compute/lib/google_api/compute/v1/model/router_bgp_peer.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ defmodule GoogleApi.Compute.V1.Model.RouterBgpPeer do
3131
* `enable` (*type:* `String.t`, *default:* `nil`) - The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE.
3232
* `enableIpv4` (*type:* `boolean()`, *default:* `nil`) - Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.
3333
* `enableIpv6` (*type:* `boolean()`, *default:* `nil`) - Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.
34-
* `exportPolicies` (*type:* `list(String.t)`, *default:* `nil`) - List of export policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. Note that Route Policies are currently available in preview. Please use Beta API to use Route Policies.
35-
* `importPolicies` (*type:* `list(String.t)`, *default:* `nil`) - List of import policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. Note that Route Policies are currently available in preview. Please use Beta API to use Route Policies.
34+
* `exportPolicies` (*type:* `list(String.t)`, *default:* `nil`) - List of export policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type.
35+
* `importPolicies` (*type:* `list(String.t)`, *default:* `nil`) - List of import policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type.
3636
* `interfaceName` (*type:* `String.t`, *default:* `nil`) - Name of the interface the BGP peer is associated with.
3737
* `ipAddress` (*type:* `String.t`, *default:* `nil`) - IP address of the interface inside Google Cloud Platform.
3838
* `ipv4NexthopAddress` (*type:* `String.t`, *default:* `nil`) - IPv4 address of the interface inside Google Cloud Platform.
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.Compute.V1.Model.RoutersGetRoutePolicyResponse do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `resource` (*type:* `GoogleApi.Compute.V1.Model.RoutePolicy.t`, *default:* `nil`) -
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:resource => GoogleApi.Compute.V1.Model.RoutePolicy.t() | nil
31+
}
32+
33+
field(:resource, as: GoogleApi.Compute.V1.Model.RoutePolicy)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Compute.V1.Model.RoutersGetRoutePolicyResponse do
37+
def decode(value, options) do
38+
GoogleApi.Compute.V1.Model.RoutersGetRoutePolicyResponse.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Compute.V1.Model.RoutersGetRoutePolicyResponse do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)