Skip to content

Commit 4befd14

Browse files
feat: Automated regeneration of NetworkManagement client (#12711)
Auto-created at 2024-12-13 13:19:22 +0000 using the toys pull request generator.
1 parent 3c3707a commit 4befd14

File tree

7 files changed

+543
-16
lines changed

7 files changed

+543
-16
lines changed

clients/network_management/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_network_management, "~> 0.36"}]
14+
[{:google_api_network_management, "~> 0.37"}]
1515
end
1616
```
1717

clients/network_management/lib/google_api/network_management/v1/api/projects.ex

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

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

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

23-
@discovery_revision "20241202"
23+
@discovery_revision "20241210"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.NetworkManagement.V1.Model.ListVpcFlowLogsConfigsResponse do
19+
@moduledoc """
20+
Response for the `ListVpcFlowLogsConfigs` method.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Page token to fetch the next set of configurations.
25+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached (when querying all locations with `-`).
26+
* `vpcFlowLogsConfigs` (*type:* `list(GoogleApi.NetworkManagement.V1.Model.VpcFlowLogsConfig.t)`, *default:* `nil`) - List of VPC Flow Log configurations.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:nextPageToken => String.t() | nil,
33+
:unreachable => list(String.t()) | nil,
34+
:vpcFlowLogsConfigs =>
35+
list(GoogleApi.NetworkManagement.V1.Model.VpcFlowLogsConfig.t()) | nil
36+
}
37+
38+
field(:nextPageToken)
39+
field(:unreachable, type: :list)
40+
41+
field(:vpcFlowLogsConfigs,
42+
as: GoogleApi.NetworkManagement.V1.Model.VpcFlowLogsConfig,
43+
type: :list
44+
)
45+
end
46+
47+
defimpl Poison.Decoder, for: GoogleApi.NetworkManagement.V1.Model.ListVpcFlowLogsConfigsResponse do
48+
def decode(value, options) do
49+
GoogleApi.NetworkManagement.V1.Model.ListVpcFlowLogsConfigsResponse.decode(value, options)
50+
end
51+
end
52+
53+
defimpl Poison.Encoder, for: GoogleApi.NetworkManagement.V1.Model.ListVpcFlowLogsConfigsResponse do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end

clients/network_management/lib/google_api/network_management/v1/model/route_info.ex

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,30 @@ defmodule GoogleApi.NetworkManagement.V1.Model.RouteInfo do
2121
2222
## Attributes
2323
24-
* `advertisedRouteNextHopUri` (*type:* `String.t`, *default:* `nil`) - For advertised routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network.
25-
* `advertisedRouteSourceRouterUri` (*type:* `String.t`, *default:* `nil`) - For advertised dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix.
24+
* `advertisedRouteNextHopUri` (*type:* `String.t`, *default:* `nil`) - For ADVERTISED routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network. Deprecated in favor of the next_hop_uri field, not used in new tests.
25+
* `advertisedRouteSourceRouterUri` (*type:* `String.t`, *default:* `nil`) - For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix.
2626
* `destIpRange` (*type:* `String.t`, *default:* `nil`) - Destination IP range of the route.
27-
* `destPortRanges` (*type:* `list(String.t)`, *default:* `nil`) - Destination port ranges of the route. Policy based routes only.
27+
* `destPortRanges` (*type:* `list(String.t)`, *default:* `nil`) - Destination port ranges of the route. POLICY_BASED routes only.
2828
* `displayName` (*type:* `String.t`, *default:* `nil`) - Name of a route.
2929
* `instanceTags` (*type:* `list(String.t)`, *default:* `nil`) - Instance tags of the route.
30-
* `nccHubUri` (*type:* `String.t`, *default:* `nil`) - URI of a NCC Hub. NCC_HUB routes only.
31-
* `nccSpokeUri` (*type:* `String.t`, *default:* `nil`) - URI of a NCC Spoke. NCC_HUB routes only.
32-
* `networkUri` (*type:* `String.t`, *default:* `nil`) - URI of a Compute Engine network. NETWORK routes only.
33-
* `nextHop` (*type:* `String.t`, *default:* `nil`) - Next hop of the route.
30+
* `nccHubRouteUri` (*type:* `String.t`, *default:* `nil`) - For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub, the URI of the corresponding route in NCC Hub's routing table.
31+
* `nccHubUri` (*type:* `String.t`, *default:* `nil`) - URI of the NCC Hub the route is advertised by. PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub only.
32+
* `nccSpokeUri` (*type:* `String.t`, *default:* `nil`) - URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub only.
33+
* `networkUri` (*type:* `String.t`, *default:* `nil`) - URI of a VPC network where route is located.
34+
* `nextHop` (*type:* `String.t`, *default:* `nil`) - String type of the next hop of the route (for example, "VPN tunnel"). Deprecated in favor of the next_hop_type and next_hop_uri fields, not used in new tests.
35+
* `nextHopNetworkUri` (*type:* `String.t`, *default:* `nil`) - URI of a VPC network where the next hop resource is located.
3436
* `nextHopType` (*type:* `String.t`, *default:* `nil`) - Type of next hop.
37+
* `nextHopUri` (*type:* `String.t`, *default:* `nil`) - URI of the next hop resource.
38+
* `originatingRouteDisplayName` (*type:* `String.t`, *default:* `nil`) - For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of the originating SUBNET/STATIC/DYNAMIC route.
39+
* `originatingRouteUri` (*type:* `String.t`, *default:* `nil`) - For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating SUBNET/STATIC route.
3540
* `priority` (*type:* `integer()`, *default:* `nil`) - Priority of the route.
36-
* `protocols` (*type:* `list(String.t)`, *default:* `nil`) - Protocols of the route. Policy based routes only.
37-
* `region` (*type:* `String.t`, *default:* `nil`) - Region of the route (if applicable).
38-
* `routeScope` (*type:* `String.t`, *default:* `nil`) - Indicates where route is applicable.
41+
* `protocols` (*type:* `list(String.t)`, *default:* `nil`) - Protocols of the route. POLICY_BASED routes only.
42+
* `region` (*type:* `String.t`, *default:* `nil`) - Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED routes only. If set for POLICY_BASED route, this is a region of VLAN attachments for Cloud Interconnect the route applies to.
43+
* `routeScope` (*type:* `String.t`, *default:* `nil`) - Indicates where route is applicable. Deprecated, routes with NCC_HUB scope are not included in the trace in new tests.
3944
* `routeType` (*type:* `String.t`, *default:* `nil`) - Type of route.
40-
* `srcIpRange` (*type:* `String.t`, *default:* `nil`) - Source IP address range of the route. Policy based routes only.
41-
* `srcPortRanges` (*type:* `list(String.t)`, *default:* `nil`) - Source port ranges of the route. Policy based routes only.
42-
* `uri` (*type:* `String.t`, *default:* `nil`) - URI of a route (if applicable).
45+
* `srcIpRange` (*type:* `String.t`, *default:* `nil`) - Source IP address range of the route. POLICY_BASED routes only.
46+
* `srcPortRanges` (*type:* `list(String.t)`, *default:* `nil`) - Source port ranges of the route. POLICY_BASED routes only.
47+
* `uri` (*type:* `String.t`, *default:* `nil`) - URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) and POLICY_BASED routes only.
4348
"""
4449

4550
use GoogleApi.Gax.ModelBase
@@ -51,11 +56,16 @@ defmodule GoogleApi.NetworkManagement.V1.Model.RouteInfo do
5156
:destPortRanges => list(String.t()) | nil,
5257
:displayName => String.t() | nil,
5358
:instanceTags => list(String.t()) | nil,
59+
:nccHubRouteUri => String.t() | nil,
5460
:nccHubUri => String.t() | nil,
5561
:nccSpokeUri => String.t() | nil,
5662
:networkUri => String.t() | nil,
5763
:nextHop => String.t() | nil,
64+
:nextHopNetworkUri => String.t() | nil,
5865
:nextHopType => String.t() | nil,
66+
:nextHopUri => String.t() | nil,
67+
:originatingRouteDisplayName => String.t() | nil,
68+
:originatingRouteUri => String.t() | nil,
5969
:priority => integer() | nil,
6070
:protocols => list(String.t()) | nil,
6171
:region => String.t() | nil,
@@ -72,11 +82,16 @@ defmodule GoogleApi.NetworkManagement.V1.Model.RouteInfo do
7282
field(:destPortRanges, type: :list)
7383
field(:displayName)
7484
field(:instanceTags, type: :list)
85+
field(:nccHubRouteUri)
7586
field(:nccHubUri)
7687
field(:nccSpokeUri)
7788
field(:networkUri)
7889
field(:nextHop)
90+
field(:nextHopNetworkUri)
7991
field(:nextHopType)
92+
field(:nextHopUri)
93+
field(:originatingRouteDisplayName)
94+
field(:originatingRouteUri)
8095
field(:priority)
8196
field(:protocols, type: :list)
8297
field(:region)
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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.NetworkManagement.V1.Model.VpcFlowLogsConfig do
19+
@moduledoc """
20+
A configuration to generate VPC Flow Logs.
21+
22+
## Attributes
23+
24+
* `aggregationInterval` (*type:* `String.t`, *default:* `nil`) - Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
25+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the config was created.
26+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
27+
* `filterExpr` (*type:* `String.t`, *default:* `nil`) - Optional. Export filter used to define which VPC Flow Logs should be logged.
28+
* `flowSampling` (*type:* `number()`, *default:* `nil`) - Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
29+
* `interconnectAttachment` (*type:* `String.t`, *default:* `nil`) - Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
30+
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels to represent user-provided metadata.
31+
* `metadata` (*type:* `String.t`, *default:* `nil`) - Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
32+
* `metadataFields` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
33+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
34+
* `state` (*type:* `String.t`, *default:* `nil`) - Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled.
35+
* `targetResourceState` (*type:* `String.t`, *default:* `nil`) - Output only. A diagnostic bit - describes the state of the configured target resource for diagnostic purposes.
36+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the config was updated.
37+
* `vpnTunnel` (*type:* `String.t`, *default:* `nil`) - Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
38+
"""
39+
40+
use GoogleApi.Gax.ModelBase
41+
42+
@type t :: %__MODULE__{
43+
:aggregationInterval => String.t() | nil,
44+
:createTime => DateTime.t() | nil,
45+
:description => String.t() | nil,
46+
:filterExpr => String.t() | nil,
47+
:flowSampling => number() | nil,
48+
:interconnectAttachment => String.t() | nil,
49+
:labels => map() | nil,
50+
:metadata => String.t() | nil,
51+
:metadataFields => list(String.t()) | nil,
52+
:name => String.t() | nil,
53+
:state => String.t() | nil,
54+
:targetResourceState => String.t() | nil,
55+
:updateTime => DateTime.t() | nil,
56+
:vpnTunnel => String.t() | nil
57+
}
58+
59+
field(:aggregationInterval)
60+
field(:createTime, as: DateTime)
61+
field(:description)
62+
field(:filterExpr)
63+
field(:flowSampling)
64+
field(:interconnectAttachment)
65+
field(:labels, type: :map)
66+
field(:metadata)
67+
field(:metadataFields, type: :list)
68+
field(:name)
69+
field(:state)
70+
field(:targetResourceState)
71+
field(:updateTime, as: DateTime)
72+
field(:vpnTunnel)
73+
end
74+
75+
defimpl Poison.Decoder, for: GoogleApi.NetworkManagement.V1.Model.VpcFlowLogsConfig do
76+
def decode(value, options) do
77+
GoogleApi.NetworkManagement.V1.Model.VpcFlowLogsConfig.decode(value, options)
78+
end
79+
end
80+
81+
defimpl Poison.Encoder, for: GoogleApi.NetworkManagement.V1.Model.VpcFlowLogsConfig do
82+
def encode(value, options) do
83+
GoogleApi.Gax.ModelBase.encode(value, options)
84+
end
85+
end

clients/network_management/mix.exs

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

21-
@version "0.36.0"
21+
@version "0.37.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)