-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of NetworkConnectivity client
- Loading branch information
1 parent
4c85b29
commit f901bb7
Showing
13 changed files
with
261 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...nts/network_connectivity/lib/google_api/network_connectivity/v1/model/hub_status_entry.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry do | ||
@moduledoc """ | ||
The hub status entry. | ||
## Attributes | ||
* `count` (*type:* `integer()`, *default:* `nil`) - The number of status. If group_by is not set in the request, the default is 1. | ||
* `groupBy` (*type:* `String.t`, *default:* `nil`) - The same group_by field from the request. | ||
* `pscPropagationStatus` (*type:* `GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus.t`, *default:* `nil`) - The PSC propagation status. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:count => integer() | nil, | ||
:groupBy => String.t() | nil, | ||
:pscPropagationStatus => | ||
GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus.t() | nil | ||
} | ||
|
||
field(:count) | ||
field(:groupBy) | ||
field(:pscPropagationStatus, as: GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry do | ||
def decode(value, options) do | ||
GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...twork_connectivity/lib/google_api/network_connectivity/v1/model/psc_propagation_status.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus do | ||
@moduledoc """ | ||
The PSC propagation status in a hub. | ||
## Attributes | ||
* `code` (*type:* `String.t`, *default:* `nil`) - The propagation status. | ||
* `message` (*type:* `String.t`, *default:* `nil`) - The human-readable summary of the PSC connection propagation status. | ||
* `sourceForwardingRule` (*type:* `String.t`, *default:* `nil`) - The name of the forwarding rule exported to the hub. | ||
* `sourceGroup` (*type:* `String.t`, *default:* `nil`) - The name of the group that the source spoke belongs to. | ||
* `sourceSpoke` (*type:* `String.t`, *default:* `nil`) - The name of the spoke that the source forwarding rule belongs to. | ||
* `targetGroup` (*type:* `String.t`, *default:* `nil`) - The name of the group that the target spoke belongs to. | ||
* `targetSpoke` (*type:* `String.t`, *default:* `nil`) - The name of the spoke that the source forwarding rule propagates to. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:code => String.t() | nil, | ||
:message => String.t() | nil, | ||
:sourceForwardingRule => String.t() | nil, | ||
:sourceGroup => String.t() | nil, | ||
:sourceSpoke => String.t() | nil, | ||
:targetGroup => String.t() | nil, | ||
:targetSpoke => String.t() | nil | ||
} | ||
|
||
field(:code) | ||
field(:message) | ||
field(:sourceForwardingRule) | ||
field(:sourceGroup) | ||
field(:sourceSpoke) | ||
field(:targetGroup) | ||
field(:targetSpoke) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus do | ||
def decode(value, options) do | ||
GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.PscPropagationStatus do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
50 changes: 50 additions & 0 deletions
50
...rk_connectivity/lib/google_api/network_connectivity/v1/model/query_hub_status_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse do | ||
@moduledoc """ | ||
The response for HubService.QueryHubStatus. | ||
## Attributes | ||
* `hubStatusEntries` (*type:* `list(GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry.t)`, *default:* `nil`) - The list of hub status. | ||
* `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. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:hubStatusEntries => | ||
list(GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry.t()) | nil, | ||
:nextPageToken => String.t() | nil | ||
} | ||
|
||
field(:hubStatusEntries, as: GoogleApi.NetworkConnectivity.V1.Model.HubStatusEntry, type: :list) | ||
field(:nextPageToken) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse do | ||
def decode(value, options) do | ||
GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.NetworkConnectivity.V1.Model.QueryHubStatusResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters