Skip to content

Commit c6292d7

Browse files
feat: Automated regeneration of BeyondCorp client (googleapis#12261)
Auto-created at 2024-10-03 13:16:57 +0000 using the toys pull request generator.
1 parent 30b8038 commit c6292d7

14 files changed

+1499
-3
lines changed

clients/beyond_corp/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_beyond_corp, "~> 0.10"}]
14+
[{:google_api_beyond_corp, "~> 0.11"}]
1515
end
1616
```
1717

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

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

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

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

23-
@discovery_revision "20240802"
23+
@discovery_revision "20240925"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application do
19+
@moduledoc """
20+
A Beyondcorp Application resource information.
21+
22+
## Attributes
23+
24+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the resource was created.
25+
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
26+
* `endpointMatchers` (*type:* `list(GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher.t)`, *default:* `nil`) - Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc
27+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the resource.
28+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the resource was last modified.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:createTime => DateTime.t() | nil,
35+
:displayName => String.t() | nil,
36+
:endpointMatchers =>
37+
list(
38+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher.t()
39+
)
40+
| nil,
41+
:name => String.t() | nil,
42+
:updateTime => DateTime.t() | nil
43+
}
44+
45+
field(:createTime, as: DateTime)
46+
field(:displayName)
47+
48+
field(:endpointMatchers,
49+
as: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher,
50+
type: :list
51+
)
52+
53+
field(:name)
54+
field(:updateTime, as: DateTime)
55+
end
56+
57+
defimpl Poison.Decoder,
58+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application do
59+
def decode(value, options) do
60+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application.decode(
61+
value,
62+
options
63+
)
64+
end
65+
end
66+
67+
defimpl Poison.Encoder,
68+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application do
69+
def encode(value, options) do
70+
GoogleApi.Gax.ModelBase.encode(value, options)
71+
end
72+
end
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher do
19+
@moduledoc """
20+
EndpointMatcher contains the information of the endpoint that will match the application.
21+
22+
## Attributes
23+
24+
* `hostname` (*type:* `String.t`, *default:* `nil`) - Required. Hostname of the application.
25+
* `ports` (*type:* `list(integer())`, *default:* `nil`) - Optional. Ports of the application.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:hostname => String.t() | nil,
32+
:ports => list(integer()) | nil
33+
}
34+
35+
field(:hostname)
36+
field(:ports, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher do
41+
def decode(value, options) do
42+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Hub do
19+
@moduledoc """
20+
The Hub message contains information pertaining to the regional data path deployments.
21+
22+
## Attributes
23+
24+
* `natGatewayConfig` (*type:* `GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig.t`, *default:* `nil`) - Optional. NAT gateway setup to ensure enough NAT IP addresses are available to handle the traffic needed to access the applications. Allows to explicitly enable or disable the NAT in the Hub along with the total IPs allocated to handle the capacity limits.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:natGatewayConfig =>
31+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig.t()
32+
| nil
33+
}
34+
35+
field(:natGatewayConfig,
36+
as: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig
37+
)
38+
end
39+
40+
defimpl Poison.Decoder,
41+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Hub do
42+
def decode(value, options) do
43+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Hub.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Hub do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
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.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse do
19+
@moduledoc """
20+
Message for response to listing Applications.
21+
22+
## Attributes
23+
24+
* `applications` (*type:* `list(GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application.t)`, *default:* `nil`) - A list of BeyondCorp Application in the project.
25+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token to retrieve the next page of results, or empty if there are no more results in the list.
26+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - A list of locations that could not be reached.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:applications =>
33+
list(
34+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application.t()
35+
)
36+
| nil,
37+
:nextPageToken => String.t() | nil,
38+
:unreachable => list(String.t()) | nil
39+
}
40+
41+
field(:applications,
42+
as: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1Application,
43+
type: :list
44+
)
45+
46+
field(:nextPageToken)
47+
field(:unreachable, type: :list)
48+
end
49+
50+
defimpl Poison.Decoder,
51+
for:
52+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse do
53+
def decode(value, options) do
54+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse.decode(
55+
value,
56+
options
57+
)
58+
end
59+
end
60+
61+
defimpl Poison.Encoder,
62+
for:
63+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse do
64+
def encode(value, options) do
65+
GoogleApi.Gax.ModelBase.encode(value, options)
66+
end
67+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse do
19+
@moduledoc """
20+
Message for response to listing SecurityGateways.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token to retrieve the next page of results, or empty if there are no more results in the list.
25+
* `securityGateways` (*type:* `list(GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway.t)`, *default:* `nil`) - A list of BeyondCorp SecurityGateway in the project.
26+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - A list of locations that could not be reached.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:nextPageToken => String.t() | nil,
33+
:securityGateways =>
34+
list(
35+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway.t()
36+
)
37+
| nil,
38+
:unreachable => list(String.t()) | nil
39+
}
40+
41+
field(:nextPageToken)
42+
43+
field(:securityGateways,
44+
as: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway,
45+
type: :list
46+
)
47+
48+
field(:unreachable, type: :list)
49+
end
50+
51+
defimpl Poison.Decoder,
52+
for:
53+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse do
54+
def decode(value, options) do
55+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse.decode(
56+
value,
57+
options
58+
)
59+
end
60+
end
61+
62+
defimpl Poison.Encoder,
63+
for:
64+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse do
65+
def encode(value, options) do
66+
GoogleApi.Gax.ModelBase.encode(value, options)
67+
end
68+
end
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.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig do
19+
@moduledoc """
20+
Represents the NAT Gateway configuration.
21+
22+
## Attributes
23+
24+
* `natIps` (*type:* `list(String.t)`, *default:* `nil`) - Output only. List of NAT IPs that will be used for establishing connection to the endpoints.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:natIps => list(String.t()) | nil
31+
}
32+
33+
field(:natIps, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig do
38+
def decode(value, options) do
39+
GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.BeyondCorp.V1.Model.GoogleCloudBeyondcorpSecuritygatewaysV1NatGatewayConfig do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

0 commit comments

Comments
 (0)