-
Notifications
You must be signed in to change notification settings - Fork 461
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
f7ca789
commit afbc7e2
Showing
47 changed files
with
3,631 additions
and
0 deletions.
There are no files selected for viewing
1,261 changes: 1,261 additions & 0 deletions
1,261
clients/connectors/lib/google_api/connectors/v2/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
clients/connectors/lib/google_api/connectors/v2/connection.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,32 @@ | ||
# 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.V2.Connection do | ||
@moduledoc """ | ||
Handle Tesla connections for GoogleApi.Connectors.V2. | ||
""" | ||
|
||
@type t :: Tesla.Env.client() | ||
|
||
use GoogleApi.Gax.Connection, | ||
scopes: [ | ||
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. | ||
"https://www.googleapis.com/auth/cloud-platform" | ||
], | ||
otp_app: :google_api_connectors, | ||
base_url: "https://connectors.googleapis.com/" | ||
end |
26 changes: 26 additions & 0 deletions
26
clients/connectors/lib/google_api/connectors/v2/metadata.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,26 @@ | ||
# Copyright 2020 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.V2 do | ||
@moduledoc """ | ||
API client metadata for GoogleApi.Connectors.V2. | ||
""" | ||
|
||
@discovery_revision "20240305" | ||
|
||
def discovery_revision(), do: @discovery_revision | ||
end |
52 changes: 52 additions & 0 deletions
52
clients/connectors/lib/google_api/connectors/v2/model/access_credentials.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.V2.Model.AccessCredentials do | ||
@moduledoc """ | ||
AccessCredentials includes the OAuth access token, and the other fields returned along with it. | ||
## Attributes | ||
* `accessToken` (*type:* `String.t`, *default:* `nil`) - OAuth access token. | ||
* `expiresIn` (*type:* `String.t`, *default:* `nil`) - Duration till the access token expires. | ||
* `refreshToken` (*type:* `String.t`, *default:* `nil`) - OAuth refresh token. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:accessToken => String.t() | nil, | ||
:expiresIn => String.t() | nil, | ||
:refreshToken => String.t() | nil | ||
} | ||
|
||
field(:accessToken) | ||
field(:expiresIn) | ||
field(:refreshToken) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V2.Model.AccessCredentials do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V2.Model.AccessCredentials.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V2.Model.AccessCredentials do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
64 changes: 64 additions & 0 deletions
64
clients/connectors/lib/google_api/connectors/v2/model/action.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.Connectors.V2.Model.Action do | ||
@moduledoc """ | ||
Action message contains metadata information about a single action present in the external system. | ||
## Attributes | ||
* `description` (*type:* `String.t`, *default:* `nil`) - Brief Description of action | ||
* `displayName` (*type:* `String.t`, *default:* `nil`) - Display Name of action to be shown on client side | ||
* `inputJsonSchema` (*type:* `GoogleApi.Connectors.V2.Model.JsonSchema.t`, *default:* `nil`) - JsonSchema representation of this actions's input schema | ||
* `inputParameters` (*type:* `list(GoogleApi.Connectors.V2.Model.InputParameter.t)`, *default:* `nil`) - List containing input parameter metadata. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Name of the action. | ||
* `resultJsonSchema` (*type:* `GoogleApi.Connectors.V2.Model.JsonSchema.t`, *default:* `nil`) - JsonSchema representation of this actions's result schema | ||
* `resultMetadata` (*type:* `list(GoogleApi.Connectors.V2.Model.ResultMetadata.t)`, *default:* `nil`) - List containing the metadata of result fields. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:description => String.t() | nil, | ||
:displayName => String.t() | nil, | ||
:inputJsonSchema => GoogleApi.Connectors.V2.Model.JsonSchema.t() | nil, | ||
:inputParameters => list(GoogleApi.Connectors.V2.Model.InputParameter.t()) | nil, | ||
:name => String.t() | nil, | ||
:resultJsonSchema => GoogleApi.Connectors.V2.Model.JsonSchema.t() | nil, | ||
:resultMetadata => list(GoogleApi.Connectors.V2.Model.ResultMetadata.t()) | nil | ||
} | ||
|
||
field(:description) | ||
field(:displayName) | ||
field(:inputJsonSchema, as: GoogleApi.Connectors.V2.Model.JsonSchema) | ||
field(:inputParameters, as: GoogleApi.Connectors.V2.Model.InputParameter, type: :list) | ||
field(:name) | ||
field(:resultJsonSchema, as: GoogleApi.Connectors.V2.Model.JsonSchema) | ||
field(:resultMetadata, as: GoogleApi.Connectors.V2.Model.ResultMetadata, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V2.Model.Action do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V2.Model.Action.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V2.Model.Action do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
clients/connectors/lib/google_api/connectors/v2/model/check_readiness_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,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.V2.Model.CheckReadinessResponse do | ||
@moduledoc """ | ||
Response containing status of the connector for readiness prober. | ||
## Attributes | ||
* `status` (*type:* `String.t`, *default:* `nil`) - | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:status => String.t() | nil | ||
} | ||
|
||
field(:status) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V2.Model.CheckReadinessResponse do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V2.Model.CheckReadinessResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V2.Model.CheckReadinessResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
49 changes: 49 additions & 0 deletions
49
clients/connectors/lib/google_api/connectors/v2/model/check_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,49 @@ | ||
# 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.V2.Model.CheckStatusResponse do | ||
@moduledoc """ | ||
The status of the connector. | ||
## Attributes | ||
* `description` (*type:* `String.t`, *default:* `nil`) - When the connector is not in ACTIVE state, the description must be populated to specify the reason why it's not in ACTIVE state. | ||
* `state` (*type:* `String.t`, *default:* `nil`) - State of the connector. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:description => String.t() | nil, | ||
:state => String.t() | nil | ||
} | ||
|
||
field(:description) | ||
field(:state) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V2.Model.CheckStatusResponse do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V2.Model.CheckStatusResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V2.Model.CheckStatusResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
49 changes: 49 additions & 0 deletions
49
clients/connectors/lib/google_api/connectors/v2/model/daily_cycle.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,49 @@ | ||
# 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.V2.Model.DailyCycle do | ||
@moduledoc """ | ||
Time window specified for daily operations. | ||
## Attributes | ||
* `duration` (*type:* `String.t`, *default:* `nil`) - Output only. Duration of the time window, set by service producer. | ||
* `startTime` (*type:* `GoogleApi.Connectors.V2.Model.TimeOfDay.t`, *default:* `nil`) - Time within the day to start the operations. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:duration => String.t() | nil, | ||
:startTime => GoogleApi.Connectors.V2.Model.TimeOfDay.t() | nil | ||
} | ||
|
||
field(:duration) | ||
field(:startTime, as: GoogleApi.Connectors.V2.Model.TimeOfDay) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V2.Model.DailyCycle do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V2.Model.DailyCycle.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V2.Model.DailyCycle 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/v2/model/date.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.V2.Model.Date do | ||
@moduledoc """ | ||
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp | ||
## Attributes | ||
* `day` (*type:* `integer()`, *default:* `nil`) - Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. | ||
* `month` (*type:* `integer()`, *default:* `nil`) - Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. | ||
* `year` (*type:* `integer()`, *default:* `nil`) - Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:day => integer() | nil, | ||
:month => integer() | nil, | ||
:year => integer() | nil | ||
} | ||
|
||
field(:day) | ||
field(:month) | ||
field(:year) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.Connectors.V2.Model.Date do | ||
def decode(value, options) do | ||
GoogleApi.Connectors.V2.Model.Date.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.Connectors.V2.Model.Date do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.