Skip to content

Commit a8acc1b

Browse files
feat: Automated regeneration of NetworkConnectivity client (googleapis#12494)
Auto-created at 2024-11-07 13:11:24 +0000 using the toys pull request generator.
1 parent 4c85b29 commit a8acc1b

File tree

13 files changed

+261
-9
lines changed

13 files changed

+261
-9
lines changed

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

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

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,88 @@ defmodule GoogleApi.NetworkConnectivity.V1.Api.Projects do
783783
)
784784
end
785785

786+
@doc """
787+
Query PSC propagation status the status of a Network Connectivity Center hub.
788+
789+
## Parameters
790+
791+
* `connection` (*type:* `GoogleApi.NetworkConnectivity.V1.Connection.t`) - Connection to server
792+
* `name` (*type:* `String.t`) - Required. The name of the hub.
793+
* `optional_params` (*type:* `keyword()`) - Optional parameters
794+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
795+
* `:access_token` (*type:* `String.t`) - OAuth access token.
796+
* `:alt` (*type:* `String.t`) - Data format for response.
797+
* `:callback` (*type:* `String.t`) - JSONP
798+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
799+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
800+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
801+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
802+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
803+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
804+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
805+
* `:filter` (*type:* `String.t`) - Optional. An expression that filters the list of results. The filter can be used to filter the results by the following fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke * psc_propagation_status.target_group * psc_propagation_status.code * psc_propagation_status.message
806+
* `:groupBy` (*type:* `String.t`) - Optional. A field that counts are grouped by. A comma-separated list of any of these fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke * psc_propagation_status.target_group * psc_propagation_status.code
807+
* `:orderBy` (*type:* `String.t`) - Optional. Sort the results in the ascending order by specific fields returned in the response. A comma-separated list of any of these fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke * psc_propagation_status.target_group * psc_propagation_status.code If `group_by` is set, the value of the `order_by` field must be the same as or a subset of the `group_by` field.
808+
* `:pageSize` (*type:* `integer()`) - Optional. The maximum number of results to return per page.
809+
* `:pageToken` (*type:* `String.t`) - Optional. The page token.
810+
* `opts` (*type:* `keyword()`) - Call options
811+
812+
## Returns
813+
814+
* `{:ok, %GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse{}}` on success
815+
* `{:error, info}` on failure
816+
"""
817+
@spec networkconnectivity_projects_locations_global_hubs_query_status(
818+
Tesla.Env.client(),
819+
String.t(),
820+
keyword(),
821+
keyword()
822+
) ::
823+
{:ok, GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse.t()}
824+
| {:ok, Tesla.Env.t()}
825+
| {:ok, list()}
826+
| {:error, any()}
827+
def networkconnectivity_projects_locations_global_hubs_query_status(
828+
connection,
829+
name,
830+
optional_params \\ [],
831+
opts \\ []
832+
) do
833+
optional_params_config = %{
834+
:"$.xgafv" => :query,
835+
:access_token => :query,
836+
:alt => :query,
837+
:callback => :query,
838+
:fields => :query,
839+
:key => :query,
840+
:oauth_token => :query,
841+
:prettyPrint => :query,
842+
:quotaUser => :query,
843+
:uploadType => :query,
844+
:upload_protocol => :query,
845+
:filter => :query,
846+
:groupBy => :query,
847+
:orderBy => :query,
848+
:pageSize => :query,
849+
:pageToken => :query
850+
}
851+
852+
request =
853+
Request.new()
854+
|> Request.method(:get)
855+
|> Request.url("/v1/{+name}:queryStatus", %{
856+
"name" => URI.encode(name, &URI.char_unreserved?/1)
857+
})
858+
|> Request.add_optional_params(optional_params_config, optional_params)
859+
|> Request.library_version(@library_version)
860+
861+
connection
862+
|> Connection.execute(request)
863+
|> Response.decode(
864+
opts ++ [struct: %GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse{}]
865+
)
866+
end
867+
786868
@doc """
787869
Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to connect to other spokes that are attached to the hub.
788870

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

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

23-
@discovery_revision "20241009"
23+
@discovery_revision "20241030"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.NetworkConnectivity.V1.Model.HubStatusEntry do
19+
@moduledoc """
20+
The hub status entry.
21+
22+
## Attributes
23+
24+
* `count` (*type:* `integer()`, *default:* `nil`) - The number of status. If group_by is not set in the request, the default is 1.
25+
* `groupBy` (*type:* `String.t`, *default:* `nil`) - The same group_by field from the request.
26+
* `pscPropagationStatus` (*type:* `GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus.t`, *default:* `nil`) - The PSC propagation status.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:count => integer() | nil,
33+
:groupBy => String.t() | nil,
34+
:pscPropagationStatus =>
35+
GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus.t() | nil
36+
}
37+
38+
field(:count)
39+
field(:groupBy)
40+
field(:pscPropagationStatus, as: GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus)
41+
end
42+
43+
defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry do
44+
def decode(value, options) do
45+
GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry.decode(value, options)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end

clients/network_connectivity/lib/google_api/network_connectivity/v1/model/linked_producer_vpc_network.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
defmodule GoogleApi.NetworkConnectivity.V1.Model.LinkedProducerVpcNetwork do
1919
@moduledoc """
20-
Next ID: 7
20+
2121
2222
## Attributes
2323
2424
* `excludeExportRanges` (*type:* `list(String.t)`, *default:* `nil`) - Optional. IP ranges encompassing the subnets to be excluded from peering.
25+
* `includeExportRanges` (*type:* `list(String.t)`, *default:* `nil`) - Optional. IP ranges allowed to be included from peering.
2526
* `network` (*type:* `String.t`, *default:* `nil`) - Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
2627
* `peering` (*type:* `String.t`, *default:* `nil`) - Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.
2728
* `producerNetwork` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the Producer VPC.
@@ -32,13 +33,15 @@ defmodule GoogleApi.NetworkConnectivity.V1.Model.LinkedProducerVpcNetwork do
3233

3334
@type t :: %__MODULE__{
3435
:excludeExportRanges => list(String.t()) | nil,
36+
:includeExportRanges => list(String.t()) | nil,
3537
:network => String.t() | nil,
3638
:peering => String.t() | nil,
3739
:producerNetwork => String.t() | nil,
3840
:serviceConsumerVpcSpoke => String.t() | nil
3941
}
4042

4143
field(:excludeExportRanges, type: :list)
44+
field(:includeExportRanges, type: :list)
4245
field(:network)
4346
field(:peering)
4447
field(:producerNetwork)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.NetworkConnectivity.V1.Model.PscPropagationStatus do
19+
@moduledoc """
20+
The PSC propagation status in a hub.
21+
22+
## Attributes
23+
24+
* `code` (*type:* `String.t`, *default:* `nil`) - The propagation status.
25+
* `message` (*type:* `String.t`, *default:* `nil`) - The human-readable summary of the PSC connection propagation status.
26+
* `sourceForwardingRule` (*type:* `String.t`, *default:* `nil`) - The name of the forwarding rule exported to the hub.
27+
* `sourceGroup` (*type:* `String.t`, *default:* `nil`) - The name of the group that the source spoke belongs to.
28+
* `sourceSpoke` (*type:* `String.t`, *default:* `nil`) - The name of the spoke that the source forwarding rule belongs to.
29+
* `targetGroup` (*type:* `String.t`, *default:* `nil`) - The name of the group that the target spoke belongs to.
30+
* `targetSpoke` (*type:* `String.t`, *default:* `nil`) - The name of the spoke that the source forwarding rule propagates to.
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:code => String.t() | nil,
37+
:message => String.t() | nil,
38+
:sourceForwardingRule => String.t() | nil,
39+
:sourceGroup => String.t() | nil,
40+
:sourceSpoke => String.t() | nil,
41+
:targetGroup => String.t() | nil,
42+
:targetSpoke => String.t() | nil
43+
}
44+
45+
field(:code)
46+
field(:message)
47+
field(:sourceForwardingRule)
48+
field(:sourceGroup)
49+
field(:sourceSpoke)
50+
field(:targetGroup)
51+
field(:targetSpoke)
52+
end
53+
54+
defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus do
55+
def decode(value, options) do
56+
GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus.decode(value, options)
57+
end
58+
end
59+
60+
defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus do
61+
def encode(value, options) do
62+
GoogleApi.Gax.ModelBase.encode(value, options)
63+
end
64+
end
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.NetworkConnectivity.V1.Model.QueryHubStatusResponse do
19+
@moduledoc """
20+
The response for HubService.QueryHubStatus.
21+
22+
## Attributes
23+
24+
* `hubStatusEntries` (*type:* `list(GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry.t)`, *default:* `nil`) - The list of hub status.
25+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:hubStatusEntries =>
32+
list(GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry.t()) | nil,
33+
:nextPageToken => String.t() | nil
34+
}
35+
36+
field(:hubStatusEntries, as: GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry, type: :list)
37+
field(:nextPageToken)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse do
41+
def decode(value, options) do
42+
GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end

clients/network_connectivity/lib/google_api/network_connectivity/v1/model/service_class.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.NetworkConnectivity.V1.Model.ServiceClass do
1919
@moduledoc """
20-
The ServiceClass resource. Next id: 9
20+
The ServiceClass resource.
2121
2222
## Attributes
2323

clients/network_connectivity/lib/google_api/network_connectivity/v1/model/service_connection_map.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.NetworkConnectivity.V1.Model.ServiceConnectionMap do
1919
@moduledoc """
20-
The ServiceConnectionMap resource. Next id: 15
20+
The ServiceConnectionMap resource.
2121
2222
## Attributes
2323

clients/network_connectivity/lib/google_api/network_connectivity/v1/model/service_connection_policy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.NetworkConnectivity.V1.Model.ServiceConnectionPolicy do
1919
@moduledoc """
20-
The ServiceConnectionPolicy resource. Next id: 12
20+
The ServiceConnectionPolicy resource.
2121
2222
## Attributes
2323

0 commit comments

Comments
 (0)