-
Notifications
You must be signed in to change notification settings - Fork 464
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 Connectors client
- Loading branch information
1 parent
e6a95f9
commit 6e47c7c
Showing
12 changed files
with
247 additions
and
7 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
46 changes: 46 additions & 0 deletions
46
clients/connectors/lib/google_api/connectors/v1/model/billing_config.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,46 @@ | ||
# 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.Connectors.V1.Model.BillingConfig do | ||
@moduledoc """ | ||
Billing config for the connection. | ||
## Attributes | ||
* `billingCategory` (*type:* `String.t`, *default:* `nil`) - Output only. Billing category for the connector. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:billingCategory => String.t() | nil | ||
} | ||
|
||
field(:billingCategory) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.BillingConfig do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V1.Model.BillingConfig.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.BillingConfig 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
52 changes: 52 additions & 0 deletions
52
clients/connectors/lib/google_api/connectors/v1/model/search_connection_instance.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,52 @@ | ||
# 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.Connectors.V1.Model.SearchConnectionInstance do | ||
@moduledoc """ | ||
SearchConnectionInstance represents an instance of connector with specific fields | ||
## Attributes | ||
* `actionSchema` (*type:* `GoogleApi.Connectors.V1.Model.RuntimeActionSchema.t`, *default:* `nil`) - Output only. Schema of a runtime action. | ||
* `connection` (*type:* `GoogleApi.Connectors.V1.Model.Connection.t`, *default:* `nil`) - Output only. Connection details | ||
* `entitySchema` (*type:* `GoogleApi.Connectors.V1.Model.RuntimeEntitySchema.t`, *default:* `nil`) - Output only. Schema of a runtime entity. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:actionSchema => GoogleApi.Connectors.V1.Model.RuntimeActionSchema.t() | nil, | ||
:connection => GoogleApi.Connectors.V1.Model.Connection.t() | nil, | ||
:entitySchema => GoogleApi.Connectors.V1.Model.RuntimeEntitySchema.t() | nil | ||
} | ||
|
||
field(:actionSchema, as: GoogleApi.Connectors.V1.Model.RuntimeActionSchema) | ||
field(:connection, as: GoogleApi.Connectors.V1.Model.Connection) | ||
field(:entitySchema, as: GoogleApi.Connectors.V1.Model.RuntimeEntitySchema) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.SearchConnectionInstance do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V1.Model.SearchConnectionInstance.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.SearchConnectionInstance do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
clients/connectors/lib/google_api/connectors/v1/model/search_connections_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,52 @@ | ||
# 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.Connectors.V1.Model.SearchConnectionsResponse do | ||
@moduledoc """ | ||
Response message for Connectors.SearchConnections. | ||
## Attributes | ||
* `connections` (*type:* `list(GoogleApi.Connectors.V1.Model.SearchConnectionInstance.t)`, *default:* `nil`) - A list of connectors. | ||
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Optional. page_token | ||
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:connections => list(GoogleApi.Connectors.V1.Model.SearchConnectionInstance.t()) | nil, | ||
:nextPageToken => String.t() | nil, | ||
:unreachable => list(String.t()) | nil | ||
} | ||
|
||
field(:connections, as: GoogleApi.Connectors.V1.Model.SearchConnectionInstance, type: :list) | ||
field(:nextPageToken) | ||
field(:unreachable, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V1.Model.SearchConnectionsResponse do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V1.Model.SearchConnectionsResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V1.Model.SearchConnectionsResponse 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