-
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 Integrations client (#12667)
Auto-created at 2024-12-09 13:15:30 +0000 using the toys pull request generator.
- Loading branch information
1 parent
a5f907d
commit 980352b
Showing
7 changed files
with
249 additions
and
3 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
54 changes: 54 additions & 0 deletions
54
...oogle_api/integrations/v1/model/google_cloud_integrations_v1alpha_api_trigger_resource.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,54 @@ | ||
# 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.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource do | ||
@moduledoc """ | ||
List of API triggerID and their workflow resource name. | ||
## Attributes | ||
* `integrationResource` (*type:* `String.t`, *default:* `nil`) - Required. Integration where the API is published | ||
* `triggerId` (*type:* `list(String.t)`, *default:* `nil`) - Required. Trigger Id of the API trigger(s) in the integration | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:integrationResource => String.t() | nil, | ||
:triggerId => list(String.t()) | nil | ||
} | ||
|
||
field(:integrationResource) | ||
field(:triggerId, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource do | ||
def decode(value, options) do | ||
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
62 changes: 62 additions & 0 deletions
62
...integrations/v1/model/google_cloud_integrations_v1alpha_generate_open_api_spec_request.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,62 @@ | ||
# 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.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest do | ||
@moduledoc """ | ||
Request for GenerateOpenApiSpec. | ||
## Attributes | ||
* `apiTriggerResources` (*type:* `list(GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource.t)`, *default:* `nil`) - Required. List of api triggers | ||
* `fileFormat` (*type:* `String.t`, *default:* `nil`) - Required. File format for generated spec. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:apiTriggerResources => | ||
list( | ||
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource.t() | ||
) | ||
| nil, | ||
:fileFormat => String.t() | nil | ||
} | ||
|
||
field(:apiTriggerResources, | ||
as: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaApiTriggerResource, | ||
type: :list | ||
) | ||
|
||
field(:fileFormat) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest do | ||
def decode(value, options) do | ||
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
51 changes: 51 additions & 0 deletions
51
...ntegrations/v1/model/google_cloud_integrations_v1alpha_generate_open_api_spec_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,51 @@ | ||
# 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.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse do | ||
@moduledoc """ | ||
Response of the GenerateOpenApiSpec API. | ||
## Attributes | ||
* `openApiSpec` (*type:* `String.t`, *default:* `nil`) - Open API spec as per the required format | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:openApiSpec => String.t() | nil | ||
} | ||
|
||
field(:openApiSpec) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse do | ||
def decode(value, options) do | ||
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse 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