diff --git a/clients/integrations/.gitignore b/clients/integrations/.gitignore new file mode 100644 index 0000000000..6bf4496152 --- /dev/null +++ b/clients/integrations/.gitignore @@ -0,0 +1,37 @@ +# 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. + +# The directory Mix will write compiled artifacts to. +/_build + +# If you run "mix test --cover", coverage assets end up here. +/cover + +# The directory Mix downloads your dependencies sources to. +/deps + +# Where 3rd-party dependencies like ExDoc output generated docs. +/doc + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez diff --git a/clients/integrations/LICENSE b/clients/integrations/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/clients/integrations/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. diff --git a/clients/integrations/README.md b/clients/integrations/README.md new file mode 100644 index 0000000000..c9d039a408 --- /dev/null +++ b/clients/integrations/README.md @@ -0,0 +1,23 @@ +# GoogleApi.Integrations + +Application Integration API client library. + + + +## Installation + +Install this package from [Hex](https://hex.pm) by adding +`google_api_integrations` to your list of dependencies in `mix.exs`: + +```elixir +def deps do + [{:google_api_integrations, "~> 0.2"}] +end +``` + +## For more information + +Product documentation is available at [https://cloud.google.com/application-integration](https://cloud.google.com/application-integration). + +Library reference documentation is published on Hexdocs at +[https://hexdocs.pm/google_api_integrations](https://hexdocs.pm/google_api_integrations). diff --git a/clients/integrations/config/config.exs b/clients/integrations/config/config.exs new file mode 100644 index 0000000000..07afe5f311 --- /dev/null +++ b/clients/integrations/config/config.exs @@ -0,0 +1,20 @@ +# 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. + +use Mix.Config + + diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/api/callback.ex b/clients/integrations/lib/google_api/integrations/v1alpha/api/callback.ex new file mode 100644 index 0000000000..a44866ee9e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/api/callback.ex @@ -0,0 +1,101 @@ +# 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.V1alpha.Api.Callback do + @moduledoc """ + API calls for all endpoints tagged `Callback`. + """ + + alias GoogleApi.Integrations.V1alpha.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Receives the auth code and auth config id to combine that with the client id and secret to retrieve access tokens from the token endpoint. Returns either a success or error message when it's done. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:code` (*type:* `String.t`) - The auth code for the given request + * `:gcpProjectId` (*type:* `String.t`) - The gcp project id of the request + * `:product` (*type:* `String.t`) - Which product sends the request + * `:redirectUri` (*type:* `String.t`) - Redirect uri of the auth code request + * `:state` (*type:* `String.t`) - The auth config id for the given request + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_callback_generate_token(Tesla.Env.client(), keyword(), keyword()) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_callback_generate_token(connection, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :code => :query, + :gcpProjectId => :query, + :product => :query, + :redirectUri => :query, + :state => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/callback:generateToken", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse{} + ] + ) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/api/connector_platform_regions.ex b/clients/integrations/lib/google_api/integrations/v1alpha/api/connector_platform_regions.ex new file mode 100644 index 0000000000..88f2d3cbdc --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/api/connector_platform_regions.ex @@ -0,0 +1,99 @@ +# 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.V1alpha.Api.ConnectorPlatformRegions do + @moduledoc """ + API calls for all endpoints tagged `ConnectorPlatformRegions`. + """ + + alias GoogleApi.Integrations.V1alpha.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Enumerates the regions for which Connector Platform is provisioned. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_connector_platform_regions_enumerate( + Tesla.Env.client(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_connector_platform_regions_enumerate( + connection, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/connectorPlatformRegions:enumerate", %{}) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse{} + ] + ) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/api/projects.ex b/clients/integrations/lib/google_api/integrations/v1alpha/api/projects.ex new file mode 100644 index 0000000000..6767a42835 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/api/projects.ex @@ -0,0 +1,6754 @@ +# 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.V1alpha.Api.Projects do + @moduledoc """ + API calls for all endpoints tagged `Projects`. + """ + + alias GoogleApi.Integrations.V1alpha.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Creates an Apps Script project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The project that the executed integration belongs to. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_apps_script_projects_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_apps_script_projects_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/appsScriptProjects", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse{} + ] + ) + end + + @doc """ + Links a existing Apps Script project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The project that the executed integration belongs to. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_apps_script_projects_link( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_apps_script_projects_link( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/appsScriptProjects:link", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse{} + ] + ) + end + + @doc """ + Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"clientCertificate.encryptedPrivateKey"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:"clientCertificate.passphrase"` (*type:* `String.t`) - 'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key. + * `:"clientCertificate.sslCertificate"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_auth_configs_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_auth_configs_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :"clientCertificate.encryptedPrivateKey" => :query, + :"clientCertificate.passphrase" => :query, + :"clientCertificate.sslCertificate" => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/authConfigs", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}] + ) + end + + @doc """ + Deletes an auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the AuthConfig. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_auth_configs_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_auth_configs_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the AuthConfig. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_auth_configs_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_auth_configs_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}] + ) + end + + @doc """ + Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of AuthConfigs. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the AuthConfig's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_auth_configs_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_auth_configs_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/authConfigs", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{} + ] + ) + end + + @doc """ + Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"clientCertificate.encryptedPrivateKey"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:"clientCertificate.passphrase"` (*type:* `String.t`) - 'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key. + * `:"clientCertificate.sslCertificate"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_auth_configs_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_auth_configs_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :"clientCertificate.encryptedPrivateKey" => :query, + :"clientCertificate.passphrase" => :query, + :"clientCertificate.sslCertificate" => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}] + ) + end + + @doc """ + Get a certificates in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_certificates_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_certificates_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{} + ] + ) + end + + @doc """ + Lists the available entities and actions associated with a Connection. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. ConnectionSchemaMetadata name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_connections_get_connection_schema_metadata( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_connections_get_connection_schema_metadata( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata{} + ] + ) + end + + @doc """ + Lists Connections in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent resource of the Connection, of the form: `projects/*/locations/*` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter. + * `:orderBy` (*type:* `String.t`) - Order by parameters. + * `:pageSize` (*type:* `integer()`) - Page size. + * `:pageToken` (*type:* `String.t`) - Page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_connections_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_connections_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/connections", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse{} + ] + ) + end + + @doc """ + Lists the JSON schemas for the inputs and outputs of actions, filtered by action name. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent resource of RuntimeActionSchema. Format: projects/{project}/locations/{location}/connections/{connection} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter. Only the action field with literal equality operator is supported. + * `:pageSize` (*type:* `integer()`) - Page size. + * `:pageToken` (*type:* `String.t`) - Page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_connections_runtime_action_schemas_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_connections_runtime_action_schemas_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/runtimeActionSchemas", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse{} + ] + ) + end + + @doc """ + Lists the JSON schemas for the properties of runtime entities, filtered by entity name. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Parent resource of RuntimeEntitySchema. Format: projects/{project}/locations/{location}/connections/{connection} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter. Only the entity field with literal equality operator is supported. + * `:pageSize` (*type:* `integer()`) - Page size. + * `:pageToken` (*type:* `String.t`) - Page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_connections_runtime_entity_schemas_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_connections_runtime_entity_schemas_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/runtimeEntitySchemas", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse{} + ] + ) + end + + @doc """ + Delete the selected integration and all versions inside + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The location resource of the request. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The integration resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_execute( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_execute( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:execute", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{} + ] + ) + end + + @doc """ + Executes an integration on receiving events from Integration Connector triggers, Eventarc or CPS Trigger. Input data to integration is received in body in json format + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The integration resource name. Format: projects/{gcp_project_id}/locations/{location}/integrations/{integration_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:triggerId` (*type:* `String.t`) - Required. Id of the integration trigger config. The trigger_id is in the format: `integration_connector_trigger/projects/{gcp_project_id}/location/{location}/connections/{connection_name}/subscriptions/{subscription_name}`. + * `:body` (*type:* `String.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_execute_event( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_execute_event( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :triggerId => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:executeEvent", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse{} + ] + ) + end + + @doc """ + Returns the list of all integrations in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Project and location from which the integrations should be listed. Format: projects/{project} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\"1\\" AND state=ACTIVE AND description:"test". Filtering cannot be performed on repeated fields like `task_config`. + * `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Supported sort keys are: Descending sort order by "last_modified_time", "created_time", "snapshot_number". Ascending sort order by the integration name. + * `:pageSize` (*type:* `integer()`) - The page size for the resquest. + * `:pageToken` (*type:* `String.t`) - The page token for the resquest. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/integrations", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse{} + ] + ) + end + + @doc """ + Schedules an integration for execution by passing the trigger id and the scheduled time in the request body. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The integration resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_schedule( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_schedule( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:schedule", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{} + ] + ) + end + + @doc """ + Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource name of the integration execution. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: "parameter_type" HAS \\"string\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\"id1\\" AND workflow_name=\\"testWorkflow\\" + * `:"filterParams.customFilter"` (*type:* `String.t`) - Optional user-provided custom filter. + * `:"filterParams.endTime"` (*type:* `String.t`) - End timestamp. + * `:"filterParams.eventStatuses"` (*type:* `list(String.t)`) - List of possible event statuses. + * `:"filterParams.executionId"` (*type:* `String.t`) - Execution id. + * `:"filterParams.parameterKey"` (*type:* `String.t`) - Param key. DEPRECATED. User parameter_pair_key instead. + * `:"filterParams.parameterPairKey"` (*type:* `String.t`) - Param key in the key value pair filter. + * `:"filterParams.parameterPairValue"` (*type:* `String.t`) - Param value in the key value pair filter. + * `:"filterParams.parameterType"` (*type:* `String.t`) - Param type. + * `:"filterParams.parameterValue"` (*type:* `String.t`) - Param value. DEPRECATED. User parameter_pair_value instead. + * `:"filterParams.startTime"` (*type:* `String.t`) - Start timestamp. + * `:"filterParams.taskStatuses"` (*type:* `list(String.t)`) - List of possible task statuses. + * `:"filterParams.workflowName"` (*type:* `String.t`) - Workflow name. + * `:orderBy` (*type:* `String.t`) - Optional. The results would be returned in order you specified here. Currently supporting "last_modified_time" and "create_time". + * `:pageSize` (*type:* `integer()`) - Optional. The size of entries in the response. + * `:pageToken` (*type:* `String.t`) - Optional. The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned. + * `:refreshAcl` (*type:* `boolean()`) - Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency. + * `:snapshotMetadataWithoutParams` (*type:* `boolean()`) - Optional. If true, the service will provide execution info with snapshot metadata only i.e. without event parameters. + * `:truncateParams` (*type:* `boolean()`) - Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_executions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_executions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :"filterParams.customFilter" => :query, + :"filterParams.endTime" => :query, + :"filterParams.eventStatuses" => :query, + :"filterParams.executionId" => :query, + :"filterParams.parameterKey" => :query, + :"filterParams.parameterPairKey" => :query, + :"filterParams.parameterPairValue" => :query, + :"filterParams.parameterType" => :query, + :"filterParams.parameterValue" => :query, + :"filterParams.startTime" => :query, + :"filterParams.taskStatuses" => :query, + :"filterParams.workflowName" => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query, + :refreshAcl => :query, + :snapshotMetadataWithoutParams => :query, + :truncateParams => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/executions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse{} + ] + ) + end + + @doc """ + * Lifts suspension for the Suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource that the suspension belongs to. "projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_executions_suspensions_lift( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_executions_suspensions_lift( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:lift", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{} + ] + ) + end + + @doc """ + * Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Standard filter field. + * `:orderBy` (*type:* `String.t`) - Field name to order by. + * `:pageSize` (*type:* `integer()`) - Maximum number of entries in the response. + * `:pageToken` (*type:* `String.t`) - Token to retrieve a specific page. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_executions_suspensions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_executions_suspensions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/suspensions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse{} + ] + ) + end + + @doc """ + * Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_executions_suspensions_resolve( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_executions_suspensions_resolve( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:resolve", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{} + ] + ) + end + + @doc """ + Create a integration with a draft version in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:createSampleIntegrations` (*type:* `boolean()`) - Optional. Optional. Indicates if sample workflow should be created. + * `:newIntegration` (*type:* `boolean()`) - Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :createSampleIntegrations => :query, + :newIntegration => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/versions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{} + ] + ) + end + + @doc """ + Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:fileFormat` (*type:* `String.t`) - File format for download request. + * `:files` (*type:* `list(String.t)`) - Optional. Integration related file to download like Integration Json, Config variable, testcase etc. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_download( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_download( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :fileFormat => :query, + :files => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}:download", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{} + ] + ) + end + + @doc """ + Get a integration in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{} + ] + ) + end + + @doc """ + Returns the list of all integration versions in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: "List versions (with filter) for a particular integration". 2. projects//locations//integrations/- Meaning: "List versions (with filter) for a client within a particular region". 3. projects//locations/-/integrations/- Meaning: "List versions (with filter) for a client". + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:fieldMask` (*type:* `String.t`) - The field mask which specifies the particular data to be returned. + * `:filter` (*type:* `String.t`) - Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\"1\\" AND state=ACTIVE AND description:"test". Filtering cannot be performed on repeated fields like `task_config`. + * `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for "last_modified_time", "created_time", "snapshot_number" Ascending sort order for "name". + * `:pageSize` (*type:* `integer()`) - The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :fieldMask => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/versions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{} + ] + ) + end + + @doc """ + Update a integration with a draft version in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Output only. Auto-generated primary key. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above integration that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{} + ] + ) + end + + @doc """ + This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_publish( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_publish( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:publish", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{} + ] + ) + end + + @doc """ + Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `integration_version` (*type:* `String.t`) - Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_takeover_edit_lock( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_takeover_edit_lock( + connection, + integration_version, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+integrationVersion}:takeoverEditLock", %{ + "integrationVersion" => URI.encode(integration_version, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{} + ] + ) + end + + @doc """ + Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_unpublish( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_unpublish( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:unpublish", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_integrations_versions_upload( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_integrations_versions_upload( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/versions:upload", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{} + ] + ) + end + + @doc """ + Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"clientCertificate.encryptedPrivateKey"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:"clientCertificate.passphrase"` (*type:* `String.t`) - 'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key. + * `:"clientCertificate.sslCertificate"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_auth_configs_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_auth_configs_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :"clientCertificate.encryptedPrivateKey" => :query, + :"clientCertificate.passphrase" => :query, + :"clientCertificate.sslCertificate" => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/authConfigs", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}] + ) + end + + @doc """ + Deletes an auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the AuthConfig. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_auth_configs_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_auth_configs_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the AuthConfig. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_auth_configs_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_auth_configs_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}] + ) + end + + @doc """ + Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of AuthConfigs. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the AuthConfig's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_auth_configs_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_auth_configs_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/authConfigs", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse{} + ] + ) + end + + @doc """ + Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"clientCertificate.encryptedPrivateKey"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:"clientCertificate.passphrase"` (*type:* `String.t`) - 'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key. + * `:"clientCertificate.sslCertificate"` (*type:* `String.t`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above AuthConfig that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_auth_configs_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_auth_configs_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :"clientCertificate.encryptedPrivateKey" => :query, + :"clientCertificate.passphrase" => :query, + :"clientCertificate.sslCertificate" => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig{}] + ) + end + + @doc """ + Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_certificates_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_certificates_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/certificates", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{} + ] + ) + end + + @doc """ + Delete a certificate + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the Certificate. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_certificates_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_certificates_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Get a certificates in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The certificate to retrieve. Format: projects/{project}/locations/{location}/certificates/{certificate} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_certificates_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_certificates_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{} + ] + ) + end + + @doc """ + List all the certificates that match the filter. Restrict to certificate of current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of Certificates. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the Certificate's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_certificates_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_certificates_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/certificates", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse{} + ] + ) + end + + @doc """ + Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Output only. Auto generated primary key + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above Certificate that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_certificates_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_certificates_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate{} + ] + ) + end + + @doc """ + Delete the selected integration and all versions inside + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The location resource of the request. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The integration resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_execute( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_execute( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:execute", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse{} + ] + ) + end + + @doc """ + Returns the list of all integrations in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Project and location from which the integrations should be listed. Format: projects/{project} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\"1\\" AND state=ACTIVE AND description:"test". Filtering cannot be performed on repeated fields like `task_config`. + * `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Supported sort keys are: Descending sort order by "last_modified_time", "created_time", "snapshot_number". Ascending sort order by the integration name. + * `:pageSize` (*type:* `integer()`) - The page size for the resquest. + * `:pageToken` (*type:* `String.t`) - The page token for the resquest. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/integrations", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse{} + ] + ) + end + + @doc """ + Schedules an integration for execution by passing the trigger id and the scheduled time in the request body. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The integration resource name. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_schedule( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_schedule( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:schedule", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse{} + ] + ) + end + + @doc """ + Cancellation of an execution + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_executions_cancel( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_executions_cancel( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:cancel", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse{} + ] + ) + end + + @doc """ + Get an execution in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_executions_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_executions_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution{}] + ) + end + + @doc """ + Lists the results of all the integration executions. The response includes the same information as the [execution log](https://cloud.google.com/application-integration/docs/viewing-logs) in the Integration UI. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource name of the integration execution. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: "parameter_type" HAS \\"string\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\"id1\\" AND workflow_name=\\"testWorkflow\\" + * `:"filterParams.customFilter"` (*type:* `String.t`) - Optional user-provided custom filter. + * `:"filterParams.endTime"` (*type:* `String.t`) - End timestamp. + * `:"filterParams.eventStatuses"` (*type:* `list(String.t)`) - List of possible event statuses. + * `:"filterParams.executionId"` (*type:* `String.t`) - Execution id. + * `:"filterParams.parameterKey"` (*type:* `String.t`) - Param key. DEPRECATED. User parameter_pair_key instead. + * `:"filterParams.parameterPairKey"` (*type:* `String.t`) - Param key in the key value pair filter. + * `:"filterParams.parameterPairValue"` (*type:* `String.t`) - Param value in the key value pair filter. + * `:"filterParams.parameterType"` (*type:* `String.t`) - Param type. + * `:"filterParams.parameterValue"` (*type:* `String.t`) - Param value. DEPRECATED. User parameter_pair_value instead. + * `:"filterParams.startTime"` (*type:* `String.t`) - Start timestamp. + * `:"filterParams.taskStatuses"` (*type:* `list(String.t)`) - List of possible task statuses. + * `:"filterParams.workflowName"` (*type:* `String.t`) - Workflow name. + * `:orderBy` (*type:* `String.t`) - Optional. The results would be returned in order you specified here. Currently supporting "last_modified_time" and "create_time". + * `:pageSize` (*type:* `integer()`) - Optional. The size of entries in the response. + * `:pageToken` (*type:* `String.t`) - Optional. The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - Optional. View mask for the response data. If set, only the field specified will be returned as part of the result. If not set, all fields in event execution info will be filled and returned. + * `:refreshAcl` (*type:* `boolean()`) - Optional. If true, the service will use the most recent acl information to list event execution infos and renew the acl cache. Note that fetching the most recent acl is synchronous, so it will increase RPC call latency. + * `:snapshotMetadataWithoutParams` (*type:* `boolean()`) - Optional. If true, the service will provide execution info with snapshot metadata only i.e. without event parameters. + * `:truncateParams` (*type:* `boolean()`) - Optional. If true, the service will truncate the params to only keep the first 1000 characters of string params and empty the executions in order to make response smaller. Only works for UI and when the params fields are not filtered out. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_executions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_executions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :"filterParams.customFilter" => :query, + :"filterParams.endTime" => :query, + :"filterParams.eventStatuses" => :query, + :"filterParams.executionId" => :query, + :"filterParams.parameterKey" => :query, + :"filterParams.parameterPairKey" => :query, + :"filterParams.parameterPairValue" => :query, + :"filterParams.parameterType" => :query, + :"filterParams.parameterValue" => :query, + :"filterParams.startTime" => :query, + :"filterParams.taskStatuses" => :query, + :"filterParams.workflowName" => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query, + :refreshAcl => :query, + :snapshotMetadataWithoutParams => :query, + :truncateParams => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/executions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse{} + ] + ) + end + + @doc """ + * Lifts suspension for the Suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The resource that the suspension belongs to. "projects/{project}/locations/{location}/products/{product}/integrations/{integration}/executions/{execution}/suspensions/{suspenion}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_executions_suspensions_lift( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_executions_suspensions_lift( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:lift", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse{} + ] + ) + end + + @doc """ + * Lists suspensions associated with a specific execution. Only those with permissions to resolve the relevant suspensions will be able to view them. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Standard filter field. + * `:orderBy` (*type:* `String.t`) - Field name to order by. + * `:pageSize` (*type:* `integer()`) - Maximum number of entries in the response. + * `:pageToken` (*type:* `String.t`) - Token to retrieve a specific page. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_executions_suspensions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_executions_suspensions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/suspensions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse{} + ] + ) + end + + @doc """ + * Resolves (lifts/rejects) any number of suspensions. If the integration is already running, only the status of the suspension is updated. Otherwise, the suspended integration will begin execution again. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_name}/executions/{execution_name}/suspensions/{suspension_id} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_executions_suspensions_resolve( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_executions_suspensions_resolve( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:resolve", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse{} + ] + ) + end + + @doc """ + Create a integration with a draft version in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:createSampleIntegrations` (*type:* `boolean()`) - Optional. Optional. Indicates if sample workflow should be created. + * `:newIntegration` (*type:* `boolean()`) - Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :createSampleIntegrations => :query, + :newIntegration => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/versions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{} + ] + ) + end + + @doc """ + Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:fileFormat` (*type:* `String.t`) - File format for download request. + * `:files` (*type:* `list(String.t)`) - Optional. Integration related file to download like Integration Json, Config variable, testcase etc. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_download( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_download( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :fileFormat => :query, + :files => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}:download", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{} + ] + ) + end + + @doc """ + Get a integration in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{} + ] + ) + end + + @doc """ + Returns the list of all integration versions in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: "List versions (with filter) for a particular integration". 2. projects//locations//integrations/- Meaning: "List versions (with filter) for a client within a particular region". 3. projects//locations/-/integrations/- Meaning: "List versions (with filter) for a client". + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:fieldMask` (*type:* `String.t`) - The field mask which specifies the particular data to be returned. + * `:filter` (*type:* `String.t`) - Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\"1\\" AND state=ACTIVE AND description:"test". Filtering cannot be performed on repeated fields like `task_config`. + * `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for "last_modified_time", "created_time", "snapshot_number" Ascending sort order for "name". + * `:pageSize` (*type:* `integer()`) - The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :fieldMask => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/versions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{} + ] + ) + end + + @doc """ + Update a integration with a draft version in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Output only. Auto-generated primary key. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above integration that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion{} + ] + ) + end + + @doc """ + This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_publish( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_publish( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:publish", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{} + ] + ) + end + + @doc """ + Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `integration_version` (*type:* `String.t`) - Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_takeover_edit_lock( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_takeover_edit_lock( + connection, + integration_version, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+integrationVersion}:takeoverEditLock", %{ + "integrationVersion" => URI.encode(integration_version, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{} + ] + ) + end + + @doc """ + Sets the status of the ACTIVE integration to SNAPSHOT with a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_unpublish( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_unpublish( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+name}:unpublish", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrations_versions_upload( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrations_versions_upload( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/versions:upload", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{} + ] + ) + end + + @doc """ + Creates an IntegrationTemplateVersion. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource where this TemplateVersion will be created. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrationtemplates_versions_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrationtemplates_versions_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/versions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion{} + ] + ) + end + + @doc """ + Returns an IntegrationTemplateVersion in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The TemplateVersion to retrieve. Format: projects/{project}/locations/{location}/products/{product}/integrationtemplates/{integrationtemplate}/versions/{version} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrationtemplates_versions_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrationtemplates_versions_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion{} + ] + ) + end + + @doc """ + Returns the list of all IntegrationTemplateVersions in the specified project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Format: projects/{project}/location/{location}/product/{product}/integrationtemplates/{integrationtemplate} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter syntax: defined in the EBNF grammar. + * `:pageSize` (*type:* `integer()`) - The maximum number of IntegrationTemplateVersions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListIntegrationTemplateVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationTemplateVersions` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_integrationtemplates_versions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_integrationtemplates_versions_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/versions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse{} + ] + ) + end + + @doc """ + Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/sfdcInstances", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{} + ] + ) + end + + @doc """ + Deletes an sfdc instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcInstance. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcInstance. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{} + ] + ) + end + + @doc """ + Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of SfdcInstances. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the SfdcInstance's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/sfdcInstances", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse{} + ] + ) + end + + @doc """ + Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{} + ] + ) + end + + @doc """ + Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_sfdc_channels_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_sfdc_channels_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/sfdcChannels", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{} + ] + ) + end + + @doc """ + Deletes an sfdc channel. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcChannel. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_sfdc_channels_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_sfdc_channels_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcChannel. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_sfdc_channels_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_sfdc_channels_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{} + ] + ) + end + + @doc """ + Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of SfdcChannels. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the SfdcChannel's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_sfdc_channels_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_sfdc_channels_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/sfdcChannels", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse{} + ] + ) + end + + @doc """ + Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_products_sfdc_instances_sfdc_channels_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_products_sfdc_instances_sfdc_channels_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{} + ] + ) + end + + @doc """ + Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns the sfdc instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/sfdcInstances", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{} + ] + ) + end + + @doc """ + Deletes an sfdc instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcInstance. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND exception will be thrown. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcInstance. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{} + ] + ) + end + + @doc """ + Lists all sfdc instances that match the filter. Restrict to sfdc instances belonging to the current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of SfdcInstances. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the SfdcInstance's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/sfdcInstances", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse{} + ] + ) + end + + @doc """ + Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the sfdc instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above SfdcInstance that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance{} + ] + ) + end + + @doc """ + Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns the sfdc channel. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. "projects/{project}/locations/{location}" format. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_sfdc_channels_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_sfdc_channels_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1alpha/{+parent}/sfdcChannels", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{} + ] + ) + end + + @doc """ + Deletes an sfdc channel. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcChannel. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_sfdc_channels_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_sfdc_channels_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty{}] + ) + end + + @doc """ + Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception will be thrown. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name that is associated with the SfdcChannel. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_sfdc_channels_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_sfdc_channels_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{} + ] + ) + end + + @doc """ + Lists all sfdc channels that match the filter. Restrict to sfdc channels belonging to the current client only. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The client, which owns this collection of SfdcChannels. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters. + * `:pageSize` (*type:* `integer()`) - The size of entries in the response. If unspecified, defaults to 100. + * `:pageToken` (*type:* `String.t`) - The token returned in the previous response. + * `:readMask` (*type:* `String.t`) - The mask which specifies fields that need to be returned in the SfdcChannel's response. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_sfdc_channels_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_sfdc_channels_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query, + :readMask => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1alpha/{+parent}/sfdcChannels", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse{} + ] + ) + end + + @doc """ + Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the sfdc channel. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Field mask specifying the fields in the above SfdcChannel that have been modified and need to be updated. + * `:body` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{}}` on success + * `{:error, info}` on failure + """ + @spec integrations_projects_locations_sfdc_instances_sfdc_channels_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def integrations_projects_locations_sfdc_instances_sfdc_channels_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1alpha/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel{} + ] + ) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/connection.ex b/clients/integrations/lib/google_api/integrations/v1alpha/connection.ex new file mode 100644 index 0000000000..3ca2bd8796 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/connection.ex @@ -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.Integrations.V1alpha.Connection do + @moduledoc """ + Handle Tesla connections for GoogleApi.Integrations.V1alpha. + """ + + @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_integrations, + base_url: "https://integrations.googleapis.com/" +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/metadata.ex b/clients/integrations/lib/google_api/integrations/v1alpha/metadata.ex new file mode 100644 index 0000000000..8ea3a9d042 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/metadata.ex @@ -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.Integrations.V1alpha do + @moduledoc """ + API client metadata for GoogleApi.Integrations.V1alpha. + """ + + @discovery_revision "20240305" + + def discovery_revision(), do: @discovery_revision +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/crmlog_error_code.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/crmlog_error_code.ex new file mode 100644 index 0000000000..3b79fecac1 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/crmlog_error_code.ex @@ -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.Integrations.V1alpha.Model.CrmlogErrorCode do + @moduledoc """ + Registered ids for errors, as "oneof" enums. Each task or logical grouping of tasks may share the same enum. + + ## Attributes + + * `commonErrorCode` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :commonErrorCode => String.t() | nil + } + + field(:commonErrorCode) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_authconfig_auth_config_task_param.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_authconfig_auth_config_task_param.ex new file mode 100644 index 0000000000..8f5ec9af1f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_authconfig_auth_config_task_param.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam do + @moduledoc """ + + + ## Attributes + + * `allowedCredentialTypes` (*type:* `list(String.t)`, *default:* `nil`) - Defines the credential types to be supported as Task may restrict specific types to use, e.g. Cloud SQL Task will use username/password type only. + * `allowedServiceAccountInContext` (*type:* `boolean()`, *default:* `nil`) - + * `authConfigId` (*type:* `String.t`, *default:* `nil`) - UUID of the AuthConfig. + * `scope` (*type:* `String.t`, *default:* `nil`) - A space-delimited list of requested scope permissions. + * `useServiceAccountInContext` (*type:* `boolean()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowedCredentialTypes => list(String.t()) | nil, + :allowedServiceAccountInContext => boolean() | nil, + :authConfigId => String.t() | nil, + :scope => String.t() | nil, + :useServiceAccountInContext => boolean() | nil + } + + field(:allowedCredentialTypes, type: :list) + field(:allowedServiceAccountInContext) + field(:authConfigId) + field(:scope) + field(:useServiceAccountInContext) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_address.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_address.ex new file mode 100644 index 0000000000..a00d2470a2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_address.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoAddress do + @moduledoc """ + Email address along with optional name and tokens. These tokens will be substituted for the variables in the form of [{var_name}], where var_name could be any string of no more than 32 bytes. + + ## Attributes + + * `email` (*type:* `String.t`, *default:* `nil`) - Required. + * `name` (*type:* `String.t`, *default:* `nil`) - + * `tokens` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :email => String.t() | nil, + :name => String.t() | nil, + :tokens => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken.t()) | nil + } + + field(:email) + field(:name) + + field(:tokens, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAddress do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAddress.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAddress do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_attributes.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_attributes.ex new file mode 100644 index 0000000000..82f9eeaec4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_attributes.ex @@ -0,0 +1,85 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes do + @moduledoc """ + Attributes are additional options that can be associated with each event property. For more information, see + + ## Attributes + + * `dataType` (*type:* `String.t`, *default:* `nil`) - Things like URL, Email, Currency, Timestamp (rather than string, int64...) + * `defaultValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.t`, *default:* `nil`) - Used to define defaults. + * `isRequired` (*type:* `boolean()`, *default:* `nil`) - Required for event execution. The validation will be done by the event bus when the event is triggered. + * `isSearchable` (*type:* `boolean()`, *default:* `nil`) - Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. + * `logSettings` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings.t`, *default:* `nil`) - See + * `masked` (*type:* `boolean()`, *default:* `nil`) - True if this workflow parameter should be masked in the logs + * `readOnly` (*type:* `boolean()`, *default:* `nil`) - Used to indicate if the ParameterEntry is a read only field or not. + * `searchable` (*type:* `String.t`, *default:* `nil`) - + * `taskVisibility` (*type:* `list(String.t)`, *default:* `nil`) - List of tasks that can view this property, if empty then all. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataType => String.t() | nil, + :defaultValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.t() | nil, + :isRequired => boolean() | nil, + :isSearchable => boolean() | nil, + :logSettings => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings.t() | nil, + :masked => boolean() | nil, + :readOnly => boolean() | nil, + :searchable => String.t() | nil, + :taskVisibility => list(String.t()) | nil + } + + field(:dataType) + + field(:defaultValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType + ) + + field(:isRequired) + field(:isSearchable) + + field(:logSettings, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings + ) + + field(:masked) + field(:readOnly) + field(:searchable) + field(:taskVisibility, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_alert_config_error_enum_list.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_alert_config_error_enum_list.ex new file mode 100644 index 0000000000..96ae03d431 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_alert_config_error_enum_list.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList do + @moduledoc """ + List of error enums for alerts. + + ## Attributes + + * `enumStrings` (*type:* `list(String.t)`, *default:* `nil`) - + * `filterType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enumStrings => list(String.t()) | nil, + :filterType => String.t() | nil + } + + field(:enumStrings, type: :list) + field(:filterType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_alert_config_threshold_value.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_alert_config_threshold_value.ex new file mode 100644 index 0000000000..7ca4e4118a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_alert_config_threshold_value.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue do + @moduledoc """ + The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. + + ## Attributes + + * `absolute` (*type:* `String.t`, *default:* `nil`) - + * `percentage` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :absolute => String.t() | nil, + :percentage => integer() | nil + } + + field(:absolute) + field(:percentage) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_function.ex new file mode 100644 index 0000000000..c121de360e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_value.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_value.ex new file mode 100644 index 0000000000..5034b699e7 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_base_value.ex @@ -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.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue do + @moduledoc """ + + + ## Attributes + + * `baseFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction.t`, *default:* `nil`) - Start with a function that does not build on existing values. Eg. CurrentTime, Min, Max, Exists, etc. + * `literalValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t`, *default:* `nil`) - Start with a literal value. + * `referenceValue` (*type:* `String.t`, *default:* `nil`) - Start with a reference value to dereference. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction.t() | nil, + :literalValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t() + | nil, + :referenceValue => String.t() | nil + } + + field(:baseFunction, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction) + + field(:literalValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType + ) + + field(:referenceValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_array_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_array_function.ex new file mode 100644 index 0000000000..5c177c0510 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_array_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_function.ex new file mode 100644 index 0000000000..bd7ba0eb97 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_parameter_array.ex new file mode 100644 index 0000000000..e6656aaa97 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_boolean_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray do + @moduledoc """ + + + ## Attributes + + * `booleanValues` (*type:* `list(boolean())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValues => list(boolean()) | nil + } + + field(:booleanValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_buganizer_notification.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_buganizer_notification.ex new file mode 100644 index 0000000000..1a99d7c7d0 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_buganizer_notification.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification do + @moduledoc """ + + + ## Attributes + + * `assigneeEmailAddress` (*type:* `String.t`, *default:* `nil`) - Whom to assign the new bug. Optional. + * `componentId` (*type:* `String.t`, *default:* `nil`) - ID of the buganizer component within which to create a new issue. Required. + * `templateId` (*type:* `String.t`, *default:* `nil`) - ID of the buganizer template to use. Optional. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the issue to be created. Required. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assigneeEmailAddress => String.t() | nil, + :componentId => String.t() | nil, + :templateId => String.t() | nil, + :title => String.t() | nil + } + + field(:assigneeEmailAddress) + field(:componentId) + field(:templateId) + field(:title) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_cloud_kms_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_cloud_kms_config.ex new file mode 100644 index 0000000000..273a66e0e2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_cloud_kms_config.ex @@ -0,0 +1,66 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig do + @moduledoc """ + + + ## Attributes + + * `gcpProjectId` (*type:* `String.t`, *default:* `nil`) - Optional. The id of GCP project where the KMS key is stored. If not provided, assume the key is stored in the same GCP project defined in Client (tag 14). + * `keyName` (*type:* `String.t`, *default:* `nil`) - A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location. + * `keyRingName` (*type:* `String.t`, *default:* `nil`) - A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location. + * `keyVersionName` (*type:* `String.t`, *default:* `nil`) - Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data. + * `locationName` (*type:* `String.t`, *default:* `nil`) - Location name of the key ring, e.g. "us-west1". + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The service account used for authentication of this KMS key. If this is not provided, the service account in Client.clientSource will be used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcpProjectId => String.t() | nil, + :keyName => String.t() | nil, + :keyRingName => String.t() | nil, + :keyVersionName => String.t() | nil, + :locationName => String.t() | nil, + :serviceAccount => String.t() | nil + } + + field(:gcpProjectId) + field(:keyName) + field(:keyRingName) + field(:keyVersionName) + field(:locationName) + field(:serviceAccount) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_cloud_scheduler_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_cloud_scheduler_config.ex new file mode 100644 index 0000000000..e4d7320f1a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_cloud_scheduler_config.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig do + @moduledoc """ + Cloud Scheduler Trigger configuration + + ## Attributes + + * `cronTab` (*type:* `String.t`, *default:* `nil`) - Required. The cron tab of cloud scheduler trigger. + * `errorMessage` (*type:* `String.t`, *default:* `nil`) - Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations + * `location` (*type:* `String.t`, *default:* `nil`) - Required. The location where associated cloud scheduler job will be created + * `serviceAccountEmail` (*type:* `String.t`, *default:* `nil`) - Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cronTab => String.t() | nil, + :errorMessage => String.t() | nil, + :location => String.t() | nil, + :serviceAccountEmail => String.t() | nil + } + + field(:cronTab) + field(:errorMessage) + field(:location) + field(:serviceAccountEmail) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_combined_condition.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_combined_condition.ex new file mode 100644 index 0000000000..31541218d4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_combined_condition.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition do + @moduledoc """ + This message recursively combines constituent conditions using logical AND. + + ## Attributes + + * `conditions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCondition.t)`, *default:* `nil`) - A set of individual constituent conditions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conditions => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCondition.t()) + | nil + } + + field(:conditions, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCondition, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_condition.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_condition.ex new file mode 100644 index 0000000000..215e20b497 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_condition.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoCondition do + @moduledoc """ + Condition that uses `operator` to evaluate the key against the value. + + ## Attributes + + * `eventPropertyKey` (*type:* `String.t`, *default:* `nil`) - Key that's evaluated against the `value`. Please note the data type of the runtime value associated with the key should match the data type of `value`, else an IllegalArgumentException is thrown. + * `operator` (*type:* `String.t`, *default:* `nil`) - Operator used to evaluate the condition. Please note that an operator with an inappropriate key/value operand will result in IllegalArgumentException, e.g. CONTAINS with boolean key/value pair. + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.t`, *default:* `nil`) - Value that's checked for the key. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventPropertyKey => String.t() | nil, + :operator => String.t() | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.t() | nil + } + + field(:eventPropertyKey) + field(:operator) + field(:value, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCondition do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCondition.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCondition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_condition_result.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_condition_result.ex new file mode 100644 index 0000000000..ecaf175d27 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_condition_result.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult do + @moduledoc """ + Contains the combined condition calculation results. + + ## Attributes + + * `currentTaskNumber` (*type:* `String.t`, *default:* `nil`) - the current task number. + * `nextTaskNumber` (*type:* `String.t`, *default:* `nil`) - the next task number. + * `result` (*type:* `boolean()`, *default:* `nil`) - the result comes out after evaluate the combined condition. True if there's no combined condition specified. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :currentTaskNumber => String.t() | nil, + :nextTaskNumber => String.t() | nil, + :result => boolean() | nil + } + + field(:currentTaskNumber) + field(:nextTaskNumber) + field(:result) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_connectors_connection.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_connectors_connection.ex new file mode 100644 index 0000000000..cea35986e5 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_connectors_connection.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection do + @moduledoc """ + + + ## Attributes + + * `connectionName` (*type:* `String.t`, *default:* `nil`) - Connection name Format: projects/{project}/locations/{location}/connections/{connection} + * `connectorVersion` (*type:* `String.t`, *default:* `nil`) - Connector version Format: projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version} + * `serviceName` (*type:* `String.t`, *default:* `nil`) - Service name Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connectionName => String.t() | nil, + :connectorVersion => String.t() | nil, + :serviceName => String.t() | nil + } + + field(:connectionName) + field(:connectorVersion) + field(:serviceName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_connectors_generic_connector_task_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_connectors_generic_connector_task_config.ex new file mode 100644 index 0000000000..5328decfbc --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_connectors_generic_connector_task_config.ex @@ -0,0 +1,61 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig do + @moduledoc """ + + + ## Attributes + + * `connection` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection.t`, *default:* `nil`) - User-selected connection. + * `operation` (*type:* `String.t`, *default:* `nil`) - Operation to perform using the configured connection. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connection => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection.t() + | nil, + :operation => String.t() | nil + } + + field(:connection, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsConnection + ) + + field(:operation) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConnectorsGenericConnectorTaskConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_coordinate.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_coordinate.ex new file mode 100644 index 0000000000..54f37f8389 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_coordinate.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate do + @moduledoc """ + Represents two-dimensional positions. + + ## Attributes + + * `x` (*type:* `integer()`, *default:* `nil`) - + * `y` (*type:* `integer()`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :x => integer() | nil, + :y => integer() | nil + } + + field(:x) + field(:y) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_custom_suspension_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_custom_suspension_request.ex new file mode 100644 index 0000000000..e63b7d520d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_custom_suspension_request.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest do + @moduledoc """ + + + ## Attributes + + * `postToQueueWithTriggerIdRequest` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest.t`, *default:* `nil`) - Request to fire an event containing the SuspensionInfo message. + * `suspensionInfoEventParameterKey` (*type:* `String.t`, *default:* `nil`) - In the fired event, set the SuspensionInfo message as the value for this key. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :postToQueueWithTriggerIdRequest => + GoogleApi.Integrations.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest.t() + | nil, + :suspensionInfoEventParameterKey => String.t() | nil + } + + field(:postToQueueWithTriggerIdRequest, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest + ) + + field(:suspensionInfoEventParameterKey) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_array.ex new file mode 100644 index 0000000000..4f07f481fa --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray do + @moduledoc """ + + + ## Attributes + + * `values` (*type:* `list(float())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(float()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_array_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_array_function.ex new file mode 100644 index 0000000000..ff64d82978 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_array_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_function.ex new file mode 100644 index 0000000000..6b5a5fbf85 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_parameter_array.ex new file mode 100644 index 0000000000..01494ccce4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_double_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray do + @moduledoc """ + + + ## Attributes + + * `doubleValues` (*type:* `list(float())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :doubleValues => list(float()) | nil + } + + field(:doubleValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_error_detail.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_error_detail.ex new file mode 100644 index 0000000000..e9467a0ca0 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_error_detail.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail do + @moduledoc """ + An error, warning, or information message associated with a workflow. + + ## Attributes + + * `errorCode` (*type:* `GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode.t`, *default:* `nil`) - The associated error-code, which can be a common or internal code. + * `errorMessage` (*type:* `String.t`, *default:* `nil`) - The full text of the error message, including any parameters that were thrown along with the exception. + * `severity` (*type:* `String.t`, *default:* `nil`) - The severity of the error: ERROR|WARN|INFO. + * `taskNumber` (*type:* `integer()`, *default:* `nil`) - The task try-number, in which, the error occurred. If zero, the error happened at the event level. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errorCode => GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode.t() | nil, + :errorMessage => String.t() | nil, + :severity => String.t() | nil, + :taskNumber => integer() | nil + } + + field(:errorCode, as: GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode) + field(:errorMessage) + field(:severity) + field(:taskNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_bus_properties.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_bus_properties.ex new file mode 100644 index 0000000000..5cdc2901b9 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_bus_properties.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties do + @moduledoc """ + LINT.IfChange This message is used for storing key value pair properties for each Event / Task in the EventBus. + + ## Attributes + + * `properties` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry.t)`, *default:* `nil`) - An unordered list of property entries. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :properties => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry.t()) + | nil + } + + field(:properties, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_details.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_details.ex new file mode 100644 index 0000000000..d184317a65 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_details.ex @@ -0,0 +1,92 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails do + @moduledoc """ + Contains the details of the execution info of this event: this includes the tasks execution details plus the event execution statistics. Next available id: 11 + + ## Attributes + + * `eventAttemptStats` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats.t)`, *default:* `nil`) - + * `eventExecutionSnapshot` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot.t)`, *default:* `nil`) - + * `eventExecutionSnapshotsSize` (*type:* `String.t`, *default:* `nil`) - Total size of all event_execution_snapshots for an execution + * `eventExecutionState` (*type:* `String.t`, *default:* `nil`) - + * `eventRetriesFromBeginningCount` (*type:* `integer()`, *default:* `nil`) - Indicates the number of times the execution has restarted from the beginning. + * `logFilePath` (*type:* `String.t`, *default:* `nil`) - The log file path (aka. cns address) for this event. + * `networkAddress` (*type:* `String.t`, *default:* `nil`) - The network address (aka. bns address) that indicates where the event executor is running. + * `nextExecutionTime` (*type:* `String.t`, *default:* `nil`) - Next scheduled execution time in case the execution status was RETRY_ON_HOLD. + * `ryeLockUnheldCount` (*type:* `integer()`, *default:* `nil`) - Used internally and shouldn't be exposed to users. A counter for the cron job to record how many times this event is in in_process state but don't have a lock consecutively/ + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventAttemptStats => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats.t() + ) + | nil, + :eventExecutionSnapshot => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot.t() + ) + | nil, + :eventExecutionSnapshotsSize => String.t() | nil, + :eventExecutionState => String.t() | nil, + :eventRetriesFromBeginningCount => integer() | nil, + :logFilePath => String.t() | nil, + :networkAddress => String.t() | nil, + :nextExecutionTime => String.t() | nil, + :ryeLockUnheldCount => integer() | nil + } + + field(:eventAttemptStats, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats, + type: :list + ) + + field(:eventExecutionSnapshot, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot, + type: :list + ) + + field(:eventExecutionSnapshotsSize) + field(:eventExecutionState) + field(:eventRetriesFromBeginningCount) + field(:logFilePath) + field(:networkAddress) + field(:nextExecutionTime) + field(:ryeLockUnheldCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_details_event_attempt_stats.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_details_event_attempt_stats.ex new file mode 100644 index 0000000000..6c6155c9f2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_details_event_attempt_stats.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats do + @moduledoc """ + + + ## Attributes + + * `endTime` (*type:* `String.t`, *default:* `nil`) - The end time of the event execution for current attempt. + * `startTime` (*type:* `String.t`, *default:* `nil`) - The start time of the event execution for current attempt. This could be in the future if it's been scheduled. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => String.t() | nil, + :startTime => String.t() | nil + } + + field(:endTime) + field(:startTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_snapshot.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_snapshot.ex new file mode 100644 index 0000000000..0377cac72d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_snapshot.ex @@ -0,0 +1,116 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot do + @moduledoc """ + Contains the snapshot of the event execution for a given checkpoint. Next available id: 13 + + ## Attributes + + * `checkpointTaskNumber` (*type:* `String.t`, *default:* `nil`) - Indicates "right after which checkpoint task's execution" this snapshot is taken. + * `conditionResults` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult.t)`, *default:* `nil`) - All of the computed conditions that been calculated. + * `diffParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t`, *default:* `nil`) - The parameters in Event object that differs from last snapshot. + * `eventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Points to the event execution info this snapshot belongs to. + * `eventExecutionSnapshotId` (*type:* `String.t`, *default:* `nil`) - Auto-generated. Used as primary key for EventExecutionSnapshots table. + * `eventExecutionSnapshotMetadata` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata.t`, *default:* `nil`) - + * `eventParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t`, *default:* `nil`) - The parameters in Event object. + * `exceedMaxSize` (*type:* `boolean()`, *default:* `nil`) - indicate whether snapshot exceeded maximum size before clean up + * `snapshotTime` (*type:* `String.t`, *default:* `nil`) - Indicates when this snapshot is taken. + * `taskExecutionDetails` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails.t)`, *default:* `nil`) - All of the task execution details at the given point of time. + * `taskName` (*type:* `String.t`, *default:* `nil`) - The task name associated with this snapshot. Could be empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :checkpointTaskNumber => String.t() | nil, + :conditionResults => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult.t() + ) + | nil, + :diffParams => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t() + | nil, + :eventExecutionInfoId => String.t() | nil, + :eventExecutionSnapshotId => String.t() | nil, + :eventExecutionSnapshotMetadata => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata.t() + | nil, + :eventParams => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t() + | nil, + :exceedMaxSize => boolean() | nil, + :snapshotTime => String.t() | nil, + :taskExecutionDetails => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails.t() + ) + | nil, + :taskName => String.t() | nil + } + + field(:checkpointTaskNumber) + + field(:conditionResults, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult, + type: :list + ) + + field(:diffParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters + ) + + field(:eventExecutionInfoId) + field(:eventExecutionSnapshotId) + + field(:eventExecutionSnapshotMetadata, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata + ) + + field(:eventParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters + ) + + field(:exceedMaxSize) + field(:snapshotTime) + + field(:taskExecutionDetails, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails, + type: :list + ) + + field(:taskName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshot do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_snapshot_event_execution_snapshot_metadata.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_snapshot_event_execution_snapshot_metadata.ex new file mode 100644 index 0000000000..f8d1c95892 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_execution_snapshot_event_execution_snapshot_metadata.ex @@ -0,0 +1,74 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata do + @moduledoc """ + + + ## Attributes + + * `ancestorIterationNumbers` (*type:* `list(String.t)`, *default:* `nil`) - Ancestor iteration number for the task(it will only be non-empty if the task is under 'private workflow') + * `ancestorTaskNumbers` (*type:* `list(String.t)`, *default:* `nil`) - Ancestor task number for the task(it will only be non-empty if the task is under 'private workflow') + * `eventAttemptNum` (*type:* `integer()`, *default:* `nil`) - the event attempt number this snapshot belongs to. + * `integrationName` (*type:* `String.t`, *default:* `nil`) - The direct integration which the event execution snapshots belongs to + * `taskAttemptNum` (*type:* `integer()`, *default:* `nil`) - the task attempt number this snapshot belongs to. Could be empty. + * `taskLabel` (*type:* `String.t`, *default:* `nil`) - the task label associated with this snapshot. Could be empty. + * `taskName` (*type:* `String.t`, *default:* `nil`) - the task name associated with this snapshot. Could be empty. + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - The task number associated with this snapshot. Could be empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ancestorIterationNumbers => list(String.t()) | nil, + :ancestorTaskNumbers => list(String.t()) | nil, + :eventAttemptNum => integer() | nil, + :integrationName => String.t() | nil, + :taskAttemptNum => integer() | nil, + :taskLabel => String.t() | nil, + :taskName => String.t() | nil, + :taskNumber => String.t() | nil + } + + field(:ancestorIterationNumbers, type: :list) + field(:ancestorTaskNumbers, type: :list) + field(:eventAttemptNum) + field(:integrationName) + field(:taskAttemptNum) + field(:taskLabel) + field(:taskName) + field(:taskNumber) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_parameters.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_parameters.ex new file mode 100644 index 0000000000..98ed50ec69 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_event_parameters.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters do + @moduledoc """ + LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see + + ## Attributes + + * `parameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry.t)`, *default:* `nil`) - Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parameters => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry.t() + ) + | nil + } + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_execution_trace_info.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_execution_trace_info.ex new file mode 100644 index 0000000000..8fd2e5acdf --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_execution_trace_info.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo do + @moduledoc """ + Message that helps aggregate all sub-executions triggered by one execution and keeps track of child-parent relationships. + + ## Attributes + + * `parentEventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Parent event execution info id that triggers the current execution through SubWorkflowExecutorTask. + * `traceId` (*type:* `String.t`, *default:* `nil`) - Used to aggregate ExecutionTraceInfo. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parentEventExecutionInfoId => String.t() | nil, + :traceId => String.t() | nil + } + + field(:parentEventExecutionInfoId) + field(:traceId) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_external_traffic.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_external_traffic.ex new file mode 100644 index 0000000000..6b5e23593f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_external_traffic.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic do + @moduledoc """ + Represents external traffic type and id. + + ## Attributes + + * `gcpProjectId` (*type:* `String.t`, *default:* `nil`) - User’s GCP project id the traffic is referring to. + * `gcpProjectNumber` (*type:* `String.t`, *default:* `nil`) - User’s GCP project number the traffic is referring to. + * `location` (*type:* `String.t`, *default:* `nil`) - Location for the user's request. + * `source` (*type:* `String.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/enterprise/crm/eventbus/proto/product.proto:product, //depot/google3/java/com/google/enterprise/crm/integrationplatform/api/utils/ConverterUtils.java:source_to_product) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcpProjectId => String.t() | nil, + :gcpProjectNumber => String.t() | nil, + :location => String.t() | nil, + :source => String.t() | nil + } + + field(:gcpProjectId) + field(:gcpProjectNumber) + field(:location) + field(:source) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_failure_policy.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_failure_policy.ex new file mode 100644 index 0000000000..e4e0cd8bd9 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_failure_policy.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy do + @moduledoc """ + Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). + + ## Attributes + + * `intervalInSeconds` (*type:* `String.t`, *default:* `nil`) - Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff. + * `maxNumRetries` (*type:* `integer()`, *default:* `nil`) - Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be retried if failed. + * `retryStrategy` (*type:* `String.t`, *default:* `nil`) - Defines what happens to the task upon failure. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intervalInSeconds => String.t() | nil, + :maxNumRetries => integer() | nil, + :retryStrategy => String.t() | nil + } + + field(:intervalInSeconds) + field(:maxNumRetries) + field(:retryStrategy) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_field.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_field.ex new file mode 100644 index 0000000000..76c4271695 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_field.ex @@ -0,0 +1,72 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoField do + @moduledoc """ + Information about the value and type of the field. + + ## Attributes + + * `cardinality` (*type:* `String.t`, *default:* `nil`) - By default, if the cardinality is unspecified the field is considered required while mapping. + * `defaultValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t`, *default:* `nil`) - This holds the default values for the fields. This value is supplied by user so may or may not contain PII or SPII data. + * `fieldType` (*type:* `String.t`, *default:* `nil`) - Specifies the data type of the field. + * `protoDefPath` (*type:* `String.t`, *default:* `nil`) - Optional. The fully qualified proto name (e.g. enterprise.crm.storage.Account). Required for output field of type PROTO_VALUE or PROTO_ARRAY. For e.g., if input field_type is BYTES and output field_type is PROTO_VALUE, then fully qualified proto type url should be provided to parse the input bytes. If field_type is *_ARRAY, then all the converted protos are of the same type. + * `referenceKey` (*type:* `String.t`, *default:* `nil`) - This holds the reference key of the workflow or task parameter. 1. Any workflow parameter, for e.g. $workflowParam1$. 2. Any task input or output parameter, for e.g. $task1_param1$. 3. Any workflow or task parameters with subfield references, for e.g., $task1_param1.employee.id$ + * `transformExpression` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression.t`, *default:* `nil`) - This is the transform expression to fetch the input field value. for e.g. $param1$.CONCAT('test'). Keep points - 1. Only input field can have a transform expression. 2. If a transform expression is provided, reference_key will be ignored. 3. If no value is returned after evaluation of transform expression, default_value can be mapped if provided. 4. The field_type should be the type of the final object returned after the transform expression is evaluated. Scrubs the transform expression before logging as value provided by user so may or may not contain PII or SPII data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cardinality => String.t() | nil, + :defaultValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t() + | nil, + :fieldType => String.t() | nil, + :protoDefPath => String.t() | nil, + :referenceKey => String.t() | nil, + :transformExpression => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression.t() + | nil + } + + field(:cardinality) + + field(:defaultValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType + ) + + field(:fieldType) + field(:protoDefPath) + field(:referenceKey) + + field(:transformExpression, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_field_mapping_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_field_mapping_config.ex new file mode 100644 index 0000000000..0ad7280742 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_field_mapping_config.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoFieldMappingConfig do + @moduledoc """ + Field Mapping Config to map multiple output fields values from input fields values. + + ## Attributes + + * `mappedFields` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mappedFields => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField.t()) + | nil + } + + field(:mappedFields, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFieldMappingConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFieldMappingConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFieldMappingConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_function.ex new file mode 100644 index 0000000000..66e4742550 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoFunction do + @moduledoc """ + + + ## Attributes + + * `functionType` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType.t`, *default:* `nil`) - The name of the function to perform. + * `parameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression.t)`, *default:* `nil`) - List of parameters required for the transformation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionType => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType.t() | nil, + :parameters => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression.t() + ) + | nil + } + + field(:functionType, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType + ) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_function_type.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_function_type.ex new file mode 100644 index 0000000000..0744f8e114 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_function_type.ex @@ -0,0 +1,139 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType do + @moduledoc """ + + + ## Attributes + + * `baseFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction.t`, *default:* `nil`) - LINT.IfChange + * `booleanArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction.t`, *default:* `nil`) - + * `booleanFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction.t`, *default:* `nil`) - + * `doubleArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction.t`, *default:* `nil`) - + * `doubleFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction.t`, *default:* `nil`) - + * `intArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction.t`, *default:* `nil`) - + * `intFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction.t`, *default:* `nil`) - + * `jsonFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction.t`, *default:* `nil`) - LINT.ThenChange(//depot/google3/alkali/apps/integrationplatform/client/workflow_editor/utils/transform_function.ts) + * `protoArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction.t`, *default:* `nil`) - + * `protoFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction.t`, *default:* `nil`) - + * `stringArrayFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction.t`, *default:* `nil`) - + * `stringFunction` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :baseFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction.t() | nil, + :booleanArrayFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction.t() + | nil, + :booleanFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction.t() + | nil, + :doubleArrayFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction.t() + | nil, + :doubleFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction.t() + | nil, + :intArrayFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction.t() + | nil, + :intFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction.t() | nil, + :jsonFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction.t() | nil, + :protoArrayFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction.t() + | nil, + :protoFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction.t() | nil, + :stringArrayFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction.t() + | nil, + :stringFunction => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction.t() + | nil + } + + field(:baseFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseFunction + ) + + field(:booleanArrayFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanArrayFunction + ) + + field(:booleanFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanFunction + ) + + field(:doubleArrayFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArrayFunction + ) + + field(:doubleFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleFunction + ) + + field(:intArrayFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction + ) + + field(:intFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction + ) + + field(:jsonFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction + ) + + field(:protoArrayFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction + ) + + field(:protoFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction + ) + + field(:stringArrayFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction + ) + + field(:stringFunction, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunctionType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_array.ex new file mode 100644 index 0000000000..41cdc2b092 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_array.ex @@ -0,0 +1,48 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray do + @moduledoc """ + + + ## Attributes + + * `values` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(String.t()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_array_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_array_function.ex new file mode 100644 index 0000000000..4aaddb367b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_array_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArrayFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_function.ex new file mode 100644 index 0000000000..dc3c08a303 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_parameter_array.ex new file mode 100644 index 0000000000..5c4a6fffdd --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_int_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray do + @moduledoc """ + + + ## Attributes + + * `intValues` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intValues => list(String.t()) | nil + } + + field(:intValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_json_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_json_function.ex new file mode 100644 index 0000000000..01a5e5395e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_json_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoJsonFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_log_settings.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_log_settings.ex new file mode 100644 index 0000000000..f63d0fd11c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_log_settings.ex @@ -0,0 +1,72 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings do + @moduledoc """ + The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. + + ## Attributes + + * `logFieldName` (*type:* `String.t`, *default:* `nil`) - The name of corresponding logging field of the event property. If omitted, assumes the same name as the event property key. + * `sanitizeOptions` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions.t`, *default:* `nil`) - Contains the scrubbing options, such as whether to scrub, obfuscate, etc. + * `seedPeriod` (*type:* `String.t`, *default:* `nil`) - + * `seedScope` (*type:* `String.t`, *default:* `nil`) - + * `shorteningLimits` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits.t`, *default:* `nil`) - Contains the field limits for shortening, such as max string length and max array length. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :logFieldName => String.t() | nil, + :sanitizeOptions => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions.t() | nil, + :seedPeriod => String.t() | nil, + :seedScope => String.t() | nil, + :shorteningLimits => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits.t() | nil + } + + field(:logFieldName) + + field(:sanitizeOptions, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions + ) + + field(:seedPeriod) + field(:seedScope) + + field(:shorteningLimits, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLogSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_loop_metadata.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_loop_metadata.ex new file mode 100644 index 0000000000..ec235ea208 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_loop_metadata.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoLoopMetadata do + @moduledoc """ + + + ## Attributes + + * `currentIterationCount` (*type:* `String.t`, *default:* `nil`) - Starting from 1, not 0. + * `currentIterationDetail` (*type:* `String.t`, *default:* `nil`) - Needs to be set by the loop impl class before each iteration. The abstract loop class will append the request and response to it. Eg. The foreach Loop will clean up and set it as the current iteration element at the start of each loop. The post request and response will be appended to the value once they are available. + * `errorMsg` (*type:* `String.t`, *default:* `nil`) - Add the error message when loops fail. + * `failureLocation` (*type:* `String.t`, *default:* `nil`) - Indicates where in the loop logic did it error out. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :currentIterationCount => String.t() | nil, + :currentIterationDetail => String.t() | nil, + :errorMsg => String.t() | nil, + :failureLocation => String.t() | nil + } + + field(:currentIterationCount) + field(:currentIterationDetail) + field(:errorMsg) + field(:failureLocation) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLoopMetadata do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLoopMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoLoopMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_mapped_field.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_mapped_field.ex new file mode 100644 index 0000000000..802cb610fe --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_mapped_field.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField do + @moduledoc """ + Mapped field is a pair of input field and output field. + + ## Attributes + + * `inputField` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField.t`, *default:* `nil`) - The input field being mapped from. + * `outputField` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField.t`, *default:* `nil`) - The output field being mapped to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputField => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField.t() | nil, + :outputField => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField.t() | nil + } + + field(:inputField, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField) + field(:outputField, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoField) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoMappedField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_next_task.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_next_task.ex new file mode 100644 index 0000000000..7535fd67d1 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_next_task.ex @@ -0,0 +1,71 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask do + @moduledoc """ + The task that is next in line to be executed, if the condition specified evaluated to true. + + ## Attributes + + * `combinedConditions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition.t)`, *default:* `nil`) - Combined condition for this task to become an eligible next task. Each of these combined_conditions are joined with logical OR. DEPRECATED: use `condition` + * `condition` (*type:* `String.t`, *default:* `nil`) - Standard filter expression for this task to become an eligible next task. + * `description` (*type:* `String.t`, *default:* `nil`) - User-provided description intended to give more business context about the next task edge or condition. + * `label` (*type:* `String.t`, *default:* `nil`) - User-provided label that is attached to this edge in the UI. + * `taskConfigId` (*type:* `String.t`, *default:* `nil`) - ID of the next task. + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - Task number of the next task. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :combinedConditions => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition.t() + ) + | nil, + :condition => String.t() | nil, + :description => String.t() | nil, + :label => String.t() | nil, + :taskConfigId => String.t() | nil, + :taskNumber => String.t() | nil + } + + field(:combinedConditions, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCombinedCondition, + type: :list + ) + + field(:condition) + field(:description) + field(:label) + field(:taskConfigId) + field(:taskNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_next_teardown_task.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_next_teardown_task.ex new file mode 100644 index 0000000000..ca55efdd37 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_next_teardown_task.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask do + @moduledoc """ + The teardown task that is next in line to be executed. We support only sequential execution of teardown tasks (i.e. no branching). + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the next teardown task. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_node_identifier.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_node_identifier.ex new file mode 100644 index 0000000000..0b6a501de6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_node_identifier.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier do + @moduledoc """ + Represents a node identifier (type + id). Next highest id: 3 + + ## Attributes + + * `elementIdentifier` (*type:* `String.t`, *default:* `nil`) - Configuration of the edge. + * `elementType` (*type:* `String.t`, *default:* `nil`) - Destination node where the edge ends. It can only be a task config. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :elementIdentifier => String.t() | nil, + :elementType => String.t() | nil + } + + field(:elementIdentifier) + field(:elementType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_notification.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_notification.ex new file mode 100644 index 0000000000..885ee6081a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_notification.ex @@ -0,0 +1,74 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoNotification do + @moduledoc """ + + + ## Attributes + + * `buganizerNotification` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification.t`, *default:* `nil`) - + * `emailAddress` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAddress.t`, *default:* `nil`) - + * `escalatorQueue` (*type:* `String.t`, *default:* `nil`) - + * `pubsubTopic` (*type:* `String.t`, *default:* `nil`) - + * `request` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest.t`, *default:* `nil`) - If the out-of-the-box email/pubsub notifications are not suitable and custom logic is required, fire a workflow containing all info needed to notify users to resume execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :buganizerNotification => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification.t() + | nil, + :emailAddress => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAddress.t() | nil, + :escalatorQueue => String.t() | nil, + :pubsubTopic => String.t() | nil, + :request => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest.t() + | nil + } + + field(:buganizerNotification, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBuganizerNotification + ) + + field(:emailAddress, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAddress) + field(:escalatorQueue) + field(:pubsubTopic) + + field(:request, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCustomSuspensionRequest + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNotification do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNotification.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNotification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_config.ex new file mode 100644 index 0000000000..ddd45a890e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_config.ex @@ -0,0 +1,75 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig do + @moduledoc """ + + + ## Attributes + + * `descriptivePhrase` (*type:* `String.t`, *default:* `nil`) - A short phrase to describe what this parameter contains. + * `helpText` (*type:* `String.t`, *default:* `nil`) - Detailed help text for this parameter containing information not provided elsewhere. For example, instructions on how to migrate from a deprecated parameter. + * `hideDefaultValue` (*type:* `boolean()`, *default:* `nil`) - Whether the default value is hidden in the UI. + * `inputDisplayOption` (*type:* `String.t`, *default:* `nil`) - + * `isHidden` (*type:* `boolean()`, *default:* `nil`) - Whether this field is hidden in the UI. + * `label` (*type:* `String.t`, *default:* `nil`) - A user-friendly label for the parameter. + * `parameterNameOption` (*type:* `String.t`, *default:* `nil`) - + * `subSectionLabel` (*type:* `String.t`, *default:* `nil`) - A user-friendly label for subSection under which the parameter will be displayed. + * `uiPlaceholderText` (*type:* `String.t`, *default:* `nil`) - Placeholder text which will appear in the UI input form for this parameter. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :descriptivePhrase => String.t() | nil, + :helpText => String.t() | nil, + :hideDefaultValue => boolean() | nil, + :inputDisplayOption => String.t() | nil, + :isHidden => boolean() | nil, + :label => String.t() | nil, + :parameterNameOption => String.t() | nil, + :subSectionLabel => String.t() | nil, + :uiPlaceholderText => String.t() | nil + } + + field(:descriptivePhrase) + field(:helpText) + field(:hideDefaultValue) + field(:inputDisplayOption) + field(:isHidden) + field(:label) + field(:parameterNameOption) + field(:subSectionLabel) + field(:uiPlaceholderText) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_proto_definition.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_proto_definition.ex new file mode 100644 index 0000000000..9dd3ba55a6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_proto_definition.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition do + @moduledoc """ + + + ## Attributes + + * `fullName` (*type:* `String.t`, *default:* `nil`) - The fully-qualified proto name. This message, for example, would be "enterprise.crm.eventbus.proto.ParamSpecEntry.ProtoDefinition". + * `path` (*type:* `String.t`, *default:* `nil`) - Path to the proto file that contains the message type's definition. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fullName => String.t() | nil, + :path => String.t() | nil + } + + field(:fullName) + field(:path) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule.ex new file mode 100644 index 0000000000..3d1bdf84ec --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule.ex @@ -0,0 +1,74 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule do + @moduledoc """ + + + ## Attributes + + * `doubleRange` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange.t`, *default:* `nil`) - + * `intRange` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange.t`, *default:* `nil`) - + * `stringRegex` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :doubleRange => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange.t() + | nil, + :intRange => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange.t() + | nil, + :stringRegex => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex.t() + | nil + } + + field(:doubleRange, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange + ) + + field(:intRange, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange + ) + + field(:stringRegex, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_double_range.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_double_range.ex new file mode 100644 index 0000000000..ec64b0110b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_double_range.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange do + @moduledoc """ + Range used to validate doubles and floats. + + ## Attributes + + * `max` (*type:* `float()`, *default:* `nil`) - The inclusive maximum of the acceptable range. + * `min` (*type:* `float()`, *default:* `nil`) - The inclusive minimum of the acceptable range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :max => float() | nil, + :min => float() | nil + } + + field(:max) + field(:min) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_int_range.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_int_range.ex new file mode 100644 index 0000000000..ffc5f5480c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_int_range.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange do + @moduledoc """ + Range used to validate longs and ints. + + ## Attributes + + * `max` (*type:* `String.t`, *default:* `nil`) - The inclusive maximum of the acceptable range. + * `min` (*type:* `String.t`, *default:* `nil`) - The inclusive minimum of the acceptable range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :max => String.t() | nil, + :min => String.t() | nil + } + + field(:max) + field(:min) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleIntRange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_string_regex.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_string_regex.ex new file mode 100644 index 0000000000..718670de6e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_param_spec_entry_validation_rule_string_regex.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex do + @moduledoc """ + Rule used to validate strings. + + ## Attributes + + * `exclusive` (*type:* `boolean()`, *default:* `nil`) - Whether the regex matcher is applied exclusively (if true, matching values will be rejected). + * `regex` (*type:* `String.t`, *default:* `nil`) - The regex applied to the input value(s). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :exclusive => boolean() | nil, + :regex => String.t() | nil + } + + field(:exclusive) + field(:regex) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_entry.ex new file mode 100644 index 0000000000..f5d5332f7b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_entry.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry do + @moduledoc """ + Key-value pair of EventBus parameters. + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. + * `masked` (*type:* `boolean()`, *default:* `nil`) - True if this parameter should be masked in the logs + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t`, *default:* `nil`) - Values for the defined keys. Each value can either be string, int, double or any proto message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :masked => boolean() | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t() + | nil + } + + field(:key) + field(:masked) + + field(:value, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map.ex new file mode 100644 index 0000000000..4f114934f3 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map.ex @@ -0,0 +1,65 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMap do + @moduledoc """ + A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified. + + ## Attributes + + * `entries` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry.t)`, *default:* `nil`) - + * `keyType` (*type:* `String.t`, *default:* `nil`) - Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this. + * `valueType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entries => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry.t() + ) + | nil, + :keyType => String.t() | nil, + :valueType => String.t() | nil + } + + field(:entries, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry, + type: :list + ) + + field(:keyType) + field(:valueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMap do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMap.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMap do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map_entry.ex new file mode 100644 index 0000000000..035c3c6caf --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map_entry.ex @@ -0,0 +1,61 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry do + @moduledoc """ + Entry is a pair of key and value. + + ## Attributes + + * `key` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField.t`, *default:* `nil`) - + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField.t() + | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField.t() + | nil + } + + field(:key, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField) + + field(:value, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map_field.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map_field.ex new file mode 100644 index 0000000000..baf0842d65 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_map_field.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField do + @moduledoc """ + Field represents either the key or value in an entry. + + ## Attributes + + * `literalValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t`, *default:* `nil`) - Passing a literal value. + * `referenceKey` (*type:* `String.t`, *default:* `nil`) - Referencing one of the WF variables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :literalValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t() + | nil, + :referenceKey => String.t() | nil + } + + field(:literalValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType + ) + + field(:referenceKey) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterMapField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_value_type.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_value_type.ex new file mode 100644 index 0000000000..92b05664c8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_parameter_value_type.ex @@ -0,0 +1,115 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType do + @moduledoc """ + LINT.IfChange To support various types of parameter values. Next available id: 14 + + ## Attributes + + * `booleanArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray.t`, *default:* `nil`) - + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - + * `doubleArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray.t`, *default:* `nil`) - + * `doubleValue` (*type:* `float()`, *default:* `nil`) - + * `intArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray.t`, *default:* `nil`) - + * `intValue` (*type:* `String.t`, *default:* `nil`) - + * `protoArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray.t`, *default:* `nil`) - + * `protoValue` (*type:* `map()`, *default:* `nil`) - + * `serializedObjectValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter.t`, *default:* `nil`) - + * `stringArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray.t`, *default:* `nil`) - + * `stringValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray.t() + | nil, + :booleanValue => boolean() | nil, + :doubleArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray.t() + | nil, + :doubleValue => float() | nil, + :intArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray.t() + | nil, + :intValue => String.t() | nil, + :protoArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray.t() + | nil, + :protoValue => map() | nil, + :serializedObjectValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter.t() + | nil, + :stringArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray.t() + | nil, + :stringValue => String.t() | nil + } + + field(:booleanArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBooleanParameterArray + ) + + field(:booleanValue) + + field(:doubleArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleParameterArray + ) + + field(:doubleValue) + + field(:intArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntParameterArray + ) + + field(:intValue) + + field(:protoArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray + ) + + field(:protoValue, type: :map) + + field(:serializedObjectValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter + ) + + field(:stringArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray + ) + + field(:stringValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_property_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_property_entry.ex new file mode 100644 index 0000000000..5ff1030d84 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_property_entry.ex @@ -0,0 +1,55 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry do + @moduledoc """ + Key-value pair of EventBus property. + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding property value. This should be unique for a given fired event. The Tasks should be aware of the keys used while firing the events for them to be able to retrieve the values. + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.t`, *default:* `nil`) - Values for the defined keys. Each value can either be string, int, double or any proto message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.t() | nil + } + + field(:key) + field(:value, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoPropertyEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_array_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_array_function.ex new file mode 100644 index 0000000000..19b5e1a243 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_array_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoArrayFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_function.ex new file mode 100644 index 0000000000..854e697aea --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_parameter_array.ex new file mode 100644 index 0000000000..7af03bfd22 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_proto_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray do + @moduledoc """ + + + ## Attributes + + * `protoValues` (*type:* `list(map())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :protoValues => list(map()) | nil + } + + field(:protoValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoProtoParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_scatter_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_scatter_response.ex new file mode 100644 index 0000000000..cb97216761 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_scatter_response.ex @@ -0,0 +1,76 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoScatterResponse do + @moduledoc """ + + + ## Attributes + + * `errorMsg` (*type:* `String.t`, *default:* `nil`) - The error message of the failure if applicable. + * `executionIds` (*type:* `list(String.t)`, *default:* `nil`) - The execution ids of each Subworkflow fired by this scatter. + * `isSuccessful` (*type:* `boolean()`, *default:* `nil`) - If execution is sync, this is true if the execution passed and false if it failed. If the execution is async, this is true if the WF was fired off successfully, and false if it failed to execute. The success or failure of the subworkflows executed are not captured. + * `responseParams` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry.t)`, *default:* `nil`) - A list of all the response parameters in the aggregtorMap stored with the remapped key. + * `scatterElement` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t`, *default:* `nil`) - The element that was scattered for this execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errorMsg => String.t() | nil, + :executionIds => list(String.t()) | nil, + :isSuccessful => boolean() | nil, + :responseParams => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry.t() + ) + | nil, + :scatterElement => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType.t() + | nil + } + + field(:errorMsg) + field(:executionIds, type: :list) + field(:isSuccessful) + + field(:responseParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterEntry, + type: :list + ) + + field(:scatterElement, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParameterValueType + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoScatterResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoScatterResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoScatterResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_serialized_object_parameter.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_serialized_object_parameter.ex new file mode 100644 index 0000000000..1f193e758b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_serialized_object_parameter.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter do + @moduledoc """ + + + ## Attributes + + * `objectValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectValue => String.t() | nil + } + + field(:objectValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSerializedObjectParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_array.ex new file mode 100644 index 0000000000..961f79959f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray do + @moduledoc """ + + + ## Attributes + + * `values` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :values => list(String.t()) | nil + } + + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_array_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_array_function.ex new file mode 100644 index 0000000000..0a7f35eab1 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_array_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArrayFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_function.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_function.ex new file mode 100644 index 0000000000..baf25d0f69 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_function.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction do + @moduledoc """ + + + ## Attributes + + * `functionName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :functionName => String.t() | nil + } + + field(:functionName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringFunction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_parameter_array.ex new file mode 100644 index 0000000000..e28611c00a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_string_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray do + @moduledoc """ + + + ## Attributes + + * `stringValues` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stringValues => list(String.t()) | nil + } + + field(:stringValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_success_policy.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_success_policy.ex new file mode 100644 index 0000000000..ddbb47068d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_success_policy.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy do + @moduledoc """ + Policy that dictates the behavior for the task after it completes successfully. + + ## Attributes + + * `finalState` (*type:* `String.t`, *default:* `nil`) - State to which the execution snapshot status will be set if the task succeeds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :finalState => String.t() | nil + } + + field(:finalState) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_auth_permissions.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_auth_permissions.ex new file mode 100644 index 0000000000..e6f345b78f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_auth_permissions.ex @@ -0,0 +1,72 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions do + @moduledoc """ + LINT.IfChange + + ## Attributes + + * `gaiaIdentity` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity.t`, *default:* `nil`) - Represents a Gaia identity for a person or service account. + * `googleGroup` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity.t`, *default:* `nil`) - + * `loasRole` (*type:* `String.t`, *default:* `nil`) - + * `mdbGroup` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gaiaIdentity => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity.t() + | nil, + :googleGroup => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity.t() + | nil, + :loasRole => String.t() | nil, + :mdbGroup => String.t() | nil + } + + field(:gaiaIdentity, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity + ) + + field(:googleGroup, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity + ) + + field(:loasRole) + field(:mdbGroup) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_auth_permissions_gaia_identity.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_auth_permissions_gaia_identity.ex new file mode 100644 index 0000000000..1b68a14053 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_auth_permissions_gaia_identity.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity do + @moduledoc """ + + + ## Attributes + + * `emailAddress` (*type:* `String.t`, *default:* `nil`) - + * `gaiaId` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :emailAddress => String.t() | nil, + :gaiaId => String.t() | nil + } + + field(:emailAddress) + field(:gaiaId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissionsGaiaIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_config.ex new file mode 100644 index 0000000000..c657780c6c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_config.ex @@ -0,0 +1,79 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig do + @moduledoc """ + + + ## Attributes + + * `customMessage` (*type:* `String.t`, *default:* `nil`) - Optional information to provide recipients of the suspension in addition to the resolution URL, typically containing relevant parameter values from the originating workflow. + * `notifications` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNotification.t)`, *default:* `nil`) - + * `suspensionExpiration` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration.t`, *default:* `nil`) - Indicates the next steps when no external actions happen on the suspension. + * `whoMayResolve` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions.t)`, *default:* `nil`) - Identities able to resolve this suspension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customMessage => String.t() | nil, + :notifications => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNotification.t()) + | nil, + :suspensionExpiration => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration.t() + | nil, + :whoMayResolve => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions.t() + ) + | nil + } + + field(:customMessage) + + field(:notifications, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNotification, + type: :list + ) + + field(:suspensionExpiration, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration + ) + + field(:whoMayResolve, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionAuthPermissions, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_expiration.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_expiration.ex new file mode 100644 index 0000000000..ee297c56c8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_expiration.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration do + @moduledoc """ + + + ## Attributes + + * `expireAfterMs` (*type:* `integer()`, *default:* `nil`) - Milliseconds after which the suspension expires, if no action taken. + * `liftWhenExpired` (*type:* `boolean()`, *default:* `nil`) - Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior. + * `remindAfterMs` (*type:* `integer()`, *default:* `nil`) - Milliseconds after which the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expireAfterMs => integer() | nil, + :liftWhenExpired => boolean() | nil, + :remindAfterMs => integer() | nil + } + + field(:expireAfterMs) + field(:liftWhenExpired) + field(:remindAfterMs) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionExpiration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_resolution_info.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_resolution_info.ex new file mode 100644 index 0000000000..bc56f6cea6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_resolution_info.ex @@ -0,0 +1,117 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfo do + @moduledoc """ + + + ## Attributes + + * `audit` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit.t`, *default:* `nil`) - + * `clientId` (*type:* `String.t`, *default:* `nil`) - The event data user sends as request. + * `cloudKmsConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig.t`, *default:* `nil`) - KMS info, used by cmek/gmek integration + * `createdTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - Auto-generated. + * `encryptedSuspensionResolutionInfo` (*type:* `String.t`, *default:* `nil`) - Encrypted SuspensionResolutionInfo + * `eventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Required. ID of the associated execution. + * `externalTraffic` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic.t`, *default:* `nil`) - The origin of the suspension for periodic notifications. + * `lastModifiedTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - Auto-generated. + * `product` (*type:* `String.t`, *default:* `nil`) - Which Google product the suspension belongs to. If not set, the suspension belongs to Integration Platform by default. + * `status` (*type:* `String.t`, *default:* `nil`) - + * `suspensionConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig.t`, *default:* `nil`) - + * `suspensionId` (*type:* `String.t`, *default:* `nil`) - Primary key for the SuspensionResolutionInfoTable. + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - Required. Task number of the associated SuspensionTask. + * `workflowName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the originating workflow. + * `wrappedDek` (*type:* `String.t`, *default:* `nil`) - Wrapped dek + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audit => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit.t() + | nil, + :clientId => String.t() | nil, + :cloudKmsConfig => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig.t() + | nil, + :createdTimestamp => DateTime.t() | nil, + :encryptedSuspensionResolutionInfo => String.t() | nil, + :eventExecutionInfoId => String.t() | nil, + :externalTraffic => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic.t() + | nil, + :lastModifiedTimestamp => DateTime.t() | nil, + :product => String.t() | nil, + :status => String.t() | nil, + :suspensionConfig => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig.t() + | nil, + :suspensionId => String.t() | nil, + :taskNumber => String.t() | nil, + :workflowName => String.t() | nil, + :wrappedDek => String.t() | nil + } + + field(:audit, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit + ) + + field(:clientId) + + field(:cloudKmsConfig, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudKmsConfig + ) + + field(:createdTimestamp, as: DateTime) + field(:encryptedSuspensionResolutionInfo) + field(:eventExecutionInfoId) + + field(:externalTraffic, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExternalTraffic + ) + + field(:lastModifiedTimestamp, as: DateTime) + field(:product) + field(:status) + + field(:suspensionConfig, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig + ) + + field(:suspensionId) + field(:taskNumber) + field(:workflowName) + field(:wrappedDek) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfo do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_resolution_info_audit.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_resolution_info_audit.ex new file mode 100644 index 0000000000..e710ebb03e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_suspension_resolution_info_audit.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit do + @moduledoc """ + + + ## Attributes + + * `resolvedBy` (*type:* `String.t`, *default:* `nil`) - + * `resolvedByCpi` (*type:* `String.t`, *default:* `nil`) - + * `timestamp` (*type:* `DateTime.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resolvedBy => String.t() | nil, + :resolvedByCpi => String.t() | nil, + :timestamp => DateTime.t() | nil + } + + field(:resolvedBy) + field(:resolvedByCpi) + field(:timestamp, as: DateTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_alert_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_alert_config.ex new file mode 100644 index 0000000000..cdc16d201c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_alert_config.ex @@ -0,0 +1,106 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig do + @moduledoc """ + Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event. + + ## Attributes + + * `aggregationPeriod` (*type:* `String.t`, *default:* `nil`) - The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). + * `alertDisabled` (*type:* `boolean()`, *default:* `nil`) - Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. + * `alertName` (*type:* `String.t`, *default:* `nil`) - A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow. + * `clientId` (*type:* `String.t`, *default:* `nil`) - Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers. + * `durationThresholdMs` (*type:* `String.t`, *default:* `nil`) - Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. + * `errorEnumList` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t`, *default:* `nil`) - + * `metricType` (*type:* `String.t`, *default:* `nil`) - + * `numAggregationPeriods` (*type:* `integer()`, *default:* `nil`) - For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. + * `onlyFinalAttempt` (*type:* `boolean()`, *default:* `nil`) - Only count final task attempts, not retries. + * `playbookUrl` (*type:* `String.t`, *default:* `nil`) - Link to a playbook for resolving the issue that triggered this alert. + * `thresholdType` (*type:* `String.t`, *default:* `nil`) - The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. + * `thresholdValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.t`, *default:* `nil`) - The metric value, above or below which the alert should be triggered. + * `warningEnumList` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregationPeriod => String.t() | nil, + :alertDisabled => boolean() | nil, + :alertName => String.t() | nil, + :clientId => String.t() | nil, + :durationThresholdMs => String.t() | nil, + :errorEnumList => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t() + | nil, + :metricType => String.t() | nil, + :numAggregationPeriods => integer() | nil, + :onlyFinalAttempt => boolean() | nil, + :playbookUrl => String.t() | nil, + :thresholdType => String.t() | nil, + :thresholdValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.t() + | nil, + :warningEnumList => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t() + | nil + } + + field(:aggregationPeriod) + field(:alertDisabled) + field(:alertName) + field(:clientId) + field(:durationThresholdMs) + + field(:errorEnumList, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList + ) + + field(:metricType) + field(:numAggregationPeriods) + field(:onlyFinalAttempt) + field(:playbookUrl) + field(:thresholdType) + + field(:thresholdValue, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue + ) + + field(:warningEnumList, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_execution_details.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_execution_details.ex new file mode 100644 index 0000000000..a035585374 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_execution_details.ex @@ -0,0 +1,66 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails do + @moduledoc """ + Contains the details of the execution of this task. Next available id: 11 + + ## Attributes + + * `taskAttemptStats` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats.t)`, *default:* `nil`) - + * `taskExecutionState` (*type:* `String.t`, *default:* `nil`) - + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - Pointer to the task config it used for execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :taskAttemptStats => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats.t() + ) + | nil, + :taskExecutionState => String.t() | nil, + :taskNumber => String.t() | nil + } + + field(:taskAttemptStats, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats, + type: :list + ) + + field(:taskExecutionState) + field(:taskNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_execution_details_task_attempt_stats.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_execution_details_task_attempt_stats.ex new file mode 100644 index 0000000000..e770fce0be --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_execution_details_task_attempt_stats.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats do + @moduledoc """ + + + ## Attributes + + * `endTime` (*type:* `String.t`, *default:* `nil`) - The end time of the task execution for current attempt. + * `startTime` (*type:* `String.t`, *default:* `nil`) - The start time of the task execution for current attempt. This could be in the future if it's been scheduled. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => String.t() | nil, + :startTime => String.t() | nil + } + + field(:endTime) + field(:startTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_metadata.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_metadata.ex new file mode 100644 index 0000000000..a9c34d66fa --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_metadata.ex @@ -0,0 +1,123 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata do + @moduledoc """ + TaskMetadata are attributes that are associated to every common Task we have. + + ## Attributes + + * `activeTaskName` (*type:* `String.t`, *default:* `nil`) - The new task name to replace the current task if it is deprecated. Otherwise, it is the same as the current task name. + * `admins` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin.t)`, *default:* `nil`) - + * `category` (*type:* `String.t`, *default:* `nil`) - + * `codeSearchLink` (*type:* `String.t`, *default:* `nil`) - The Code Search link to the Task Java file. + * `defaultJsonValidationOption` (*type:* `String.t`, *default:* `nil`) - Controls whether JSON workflow parameters are validated against provided schemas before and/or after this task's execution. + * `defaultSpec` (*type:* `String.t`, *default:* `nil`) - Contains the initial configuration of the task with default values set. For now, The string should be compatible to an ASCII-proto format. + * `description` (*type:* `String.t`, *default:* `nil`) - In a few sentences, describe the purpose and usage of the task. + * `descriptiveName` (*type:* `String.t`, *default:* `nil`) - The string name to show on the task list on the Workflow editor screen. This should be a very short, one to two words name for the task. (e.g. "Send Mail") + * `docMarkdown` (*type:* `String.t`, *default:* `nil`) - Snippet of markdown documentation to embed in the RHP for this task. + * `externalCategory` (*type:* `String.t`, *default:* `nil`) - + * `externalCategorySequence` (*type:* `integer()`, *default:* `nil`) - Sequence with which the task in specific category to be displayed in task discovery panel for external users. + * `externalDocHtml` (*type:* `String.t`, *default:* `nil`) - External-facing documention embedded in the RHP for this task. + * `externalDocLink` (*type:* `String.t`, *default:* `nil`) - Doc link for external-facing documentation (separate from g3doc). + * `externalDocMarkdown` (*type:* `String.t`, *default:* `nil`) - DEPRECATED: Use external_doc_html. + * `g3DocLink` (*type:* `String.t`, *default:* `nil`) - URL to the associated G3 Doc for the task if available + * `iconLink` (*type:* `String.t`, *default:* `nil`) - URL to gstatic image icon for this task. This icon shows up on the task list panel along with the task name in the Workflow Editor screen. Use the 24p, 2x, gray color icon image format. + * `isDeprecated` (*type:* `boolean()`, *default:* `nil`) - The deprecation status of the current task. Default value is false; + * `name` (*type:* `String.t`, *default:* `nil`) - The actual class name or the annotated name of the task. Task Author should initialize this field with value from the getName() method of the Task class. + * `standaloneExternalDocHtml` (*type:* `String.t`, *default:* `nil`) - External-facing documention for standalone IP in pantheon embedded in the RHP for this task. Non null only if different from external_doc_html + * `status` (*type:* `String.t`, *default:* `nil`) - Allows author to indicate if the task is ready to use or not. If not set, then it will default to INACTIVE. + * `system` (*type:* `String.t`, *default:* `nil`) - + * `tags` (*type:* `list(String.t)`, *default:* `nil`) - A set of tags that pertain to a particular task. This can be used to improve the searchability of tasks with several names ("REST Caller" vs. "Call REST Endpoint") or to help users find tasks based on related words. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activeTaskName => String.t() | nil, + :admins => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin.t() + ) + | nil, + :category => String.t() | nil, + :codeSearchLink => String.t() | nil, + :defaultJsonValidationOption => String.t() | nil, + :defaultSpec => String.t() | nil, + :description => String.t() | nil, + :descriptiveName => String.t() | nil, + :docMarkdown => String.t() | nil, + :externalCategory => String.t() | nil, + :externalCategorySequence => integer() | nil, + :externalDocHtml => String.t() | nil, + :externalDocLink => String.t() | nil, + :externalDocMarkdown => String.t() | nil, + :g3DocLink => String.t() | nil, + :iconLink => String.t() | nil, + :isDeprecated => boolean() | nil, + :name => String.t() | nil, + :standaloneExternalDocHtml => String.t() | nil, + :status => String.t() | nil, + :system => String.t() | nil, + :tags => list(String.t()) | nil + } + + field(:activeTaskName) + + field(:admins, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin, + type: :list + ) + + field(:category) + field(:codeSearchLink) + field(:defaultJsonValidationOption) + field(:defaultSpec) + field(:description) + field(:descriptiveName) + field(:docMarkdown) + field(:externalCategory) + field(:externalCategorySequence) + field(:externalDocHtml) + field(:externalDocLink) + field(:externalDocMarkdown) + field(:g3DocLink) + field(:iconLink) + field(:isDeprecated) + field(:name) + field(:standaloneExternalDocHtml) + field(:status) + field(:system) + field(:tags, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_metadata_admin.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_metadata_admin.ex new file mode 100644 index 0000000000..219cf87638 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_metadata_admin.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin do + @moduledoc """ + Admins are owners of a Task, and have all permissions on a particular task identified by the task name. By default, Eventbus periodically scans all task metadata and syncs (adds) any new admins defined here to Zanzibar. + + ## Attributes + + * `googleGroupEmail` (*type:* `String.t`, *default:* `nil`) - + * `userEmail` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :googleGroupEmail => String.t() | nil, + :userEmail => String.t() | nil + } + + field(:googleGroupEmail) + field(:userEmail) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadataAdmin do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_ui_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_ui_config.ex new file mode 100644 index 0000000000..8392ef6bea --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_ui_config.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig do + @moduledoc """ + Task authors would use this type to configure the UI for a particular task by specifying what UI config modules should be included to compose the UI. Learn more about config module framework: + + ## Attributes + + * `taskUiModuleConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig.t)`, *default:* `nil`) - Configurations of included config modules. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :taskUiModuleConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig.t() + ) + | nil + } + + field(:taskUiModuleConfigs, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_ui_module_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_ui_module_config.ex new file mode 100644 index 0000000000..ef529475b8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_task_ui_module_config.ex @@ -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.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig do + @moduledoc """ + Task author would use this type to configure a config module. + + ## Attributes + + * `moduleId` (*type:* `String.t`, *default:* `nil`) - ID of the config module. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :moduleId => String.t() | nil + } + + field(:moduleId) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiModuleConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_teardown.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_teardown.ex new file mode 100644 index 0000000000..8847ca42da --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_teardown.ex @@ -0,0 +1,55 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown do + @moduledoc """ + + + ## Attributes + + * `teardownTaskConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig.t)`, *default:* `nil`) - Required. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :teardownTaskConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig.t() + ) + | nil + } + + field(:teardownTaskConfigs, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_teardown_task_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_teardown_task_config.ex new file mode 100644 index 0000000000..82031f3f1d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_teardown_task_config.ex @@ -0,0 +1,82 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig do + @moduledoc """ + + + ## Attributes + + * `creatorEmail` (*type:* `String.t`, *default:* `nil`) - The creator's email address. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Unique identifier of the teardown task within this Config. We use this field as the identifier to find next teardown tasks. + * `nextTeardownTask` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask.t`, *default:* `nil`) - + * `parameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t`, *default:* `nil`) - The parameters the user can pass to this task. + * `properties` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties.t`, *default:* `nil`) - + * `teardownTaskImplementationClassName` (*type:* `String.t`, *default:* `nil`) - Required. Implementation class name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :creatorEmail => String.t() | nil, + :name => String.t() | nil, + :nextTeardownTask => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask.t() + | nil, + :parameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t() + | nil, + :properties => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties.t() + | nil, + :teardownTaskImplementationClassName => String.t() | nil + } + + field(:creatorEmail) + field(:name) + + field(:nextTeardownTask, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTeardownTask + ) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters + ) + + field(:properties, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventBusProperties + ) + + field(:teardownTaskImplementationClassName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardownTaskConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_token.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_token.ex new file mode 100644 index 0000000000..5e658db7dd --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_token.ex @@ -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.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken do + @moduledoc """ + + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - + * `value` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :value => String.t() | nil + } + + field(:name) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_transform_expression.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_transform_expression.ex new file mode 100644 index 0000000000..747df599af --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_transform_expression.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression do + @moduledoc """ + + + ## Attributes + + * `initialValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue.t`, *default:* `nil`) - Initial value upon which to perform transformations. + * `transformationFunctions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction.t)`, *default:* `nil`) - Transformations to be applied sequentially. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :initialValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue.t() | nil, + :transformationFunctions => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction.t()) + | nil + } + + field(:initialValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseValue + ) + + field(:transformationFunctions, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFunction, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTransformExpression do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_trigger_criteria.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_trigger_criteria.ex new file mode 100644 index 0000000000..270cd3f906 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_trigger_criteria.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria do + @moduledoc """ + + + ## Attributes + + * `condition` (*type:* `String.t`, *default:* `nil`) - Required. Standard filter expression, when true the workflow will be executed. If there's no trigger_criteria_task_implementation_class_name specified, the condition will be validated directly. + * `parameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t`, *default:* `nil`) - Optional. To be used in TaskConfig for the implementation class. + * `triggerCriteriaTaskImplementationClassName` (*type:* `String.t`, *default:* `nil`) - Optional. Implementation class name. The class should implement the “TypedTask” interface. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :condition => String.t() | nil, + :parameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t() + | nil, + :triggerCriteriaTaskImplementationClassName => String.t() | nil + } + + field(:condition) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters + ) + + field(:triggerCriteriaTaskImplementationClassName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_value_type.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_value_type.ex new file mode 100644 index 0000000000..4e89663452 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_value_type.ex @@ -0,0 +1,83 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoValueType do + @moduledoc """ + Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. + + ## Attributes + + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - + * `doubleArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray.t`, *default:* `nil`) - + * `doubleValue` (*type:* `float()`, *default:* `nil`) - + * `intArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray.t`, *default:* `nil`) - + * `intValue` (*type:* `String.t`, *default:* `nil`) - + * `protoValue` (*type:* `map()`, *default:* `nil`) - + * `stringArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray.t`, *default:* `nil`) - + * `stringValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValue => boolean() | nil, + :doubleArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray.t() | nil, + :doubleValue => float() | nil, + :intArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray.t() | nil, + :intValue => String.t() | nil, + :protoValue => map() | nil, + :stringArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray.t() | nil, + :stringValue => String.t() | nil + } + + field(:booleanValue) + + field(:doubleArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoDoubleArray + ) + + field(:doubleValue) + field(:intArray, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoIntArray) + field(:intValue) + field(:protoValue, type: :map) + + field(:stringArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoStringArray + ) + + field(:stringValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoValueType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_workflow_alert_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_workflow_alert_config.ex new file mode 100644 index 0000000000..325e628bd2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_proto_workflow_alert_config.ex @@ -0,0 +1,106 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig do + @moduledoc """ + Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. + + ## Attributes + + * `aggregationPeriod` (*type:* `String.t`, *default:* `nil`) - For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. + * `alertDisabled` (*type:* `boolean()`, *default:* `nil`) - Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert. + * `alertName` (*type:* `String.t`, *default:* `nil`) - A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the workflow. + * `clientId` (*type:* `String.t`, *default:* `nil`) - Client associated with this alert configuration. + * `durationThresholdMs` (*type:* `String.t`, *default:* `nil`) - Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. + * `errorEnumList` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t`, *default:* `nil`) - + * `metricType` (*type:* `String.t`, *default:* `nil`) - + * `numAggregationPeriods` (*type:* `integer()`, *default:* `nil`) - For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. + * `onlyFinalAttempt` (*type:* `boolean()`, *default:* `nil`) - For either events or tasks, depending on the type of alert, count only final attempts, not retries. + * `playbookUrl` (*type:* `String.t`, *default:* `nil`) - Link to a playbook for resolving the issue that triggered this alert. + * `thresholdType` (*type:* `String.t`, *default:* `nil`) - The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. + * `thresholdValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.t`, *default:* `nil`) - The metric value, above or below which the alert should be triggered. + * `warningEnumList` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregationPeriod => String.t() | nil, + :alertDisabled => boolean() | nil, + :alertName => String.t() | nil, + :clientId => String.t() | nil, + :durationThresholdMs => String.t() | nil, + :errorEnumList => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t() + | nil, + :metricType => String.t() | nil, + :numAggregationPeriods => integer() | nil, + :onlyFinalAttempt => boolean() | nil, + :playbookUrl => String.t() | nil, + :thresholdType => String.t() | nil, + :thresholdValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.t() + | nil, + :warningEnumList => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList.t() + | nil + } + + field(:aggregationPeriod) + field(:alertDisabled) + field(:alertName) + field(:clientId) + field(:durationThresholdMs) + + field(:errorEnumList, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList + ) + + field(:metricType) + field(:numAggregationPeriods) + field(:onlyFinalAttempt) + field(:playbookUrl) + field(:thresholdType) + + field(:thresholdValue, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue + ) + + field(:warningEnumList, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumList + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_stats.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_stats.ex new file mode 100644 index 0000000000..f7584d0f8b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_stats.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusStats do + @moduledoc """ + Stats for the requested dimensions: QPS, duration, and error/warning rate + + ## Attributes + + * `dimensions` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions.t`, *default:* `nil`) - Dimensions that these stats have been aggregated on. + * `durationInSeconds` (*type:* `float()`, *default:* `nil`) - Average duration in seconds. + * `errorRate` (*type:* `float()`, *default:* `nil`) - Average error rate. + * `qps` (*type:* `float()`, *default:* `nil`) - Queries per second. + * `warningRate` (*type:* `float()`, *default:* `nil`) - Average warning rate. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dimensions => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions.t() | nil, + :durationInSeconds => float() | nil, + :errorRate => float() | nil, + :qps => float() | nil, + :warningRate => float() | nil + } + + field(:dimensions, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions) + + field(:durationInSeconds) + field(:errorRate) + field(:qps) + field(:warningRate) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStats do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStats.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_stats_dimensions.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_stats_dimensions.ex new file mode 100644 index 0000000000..bde21f051a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_eventbus_stats_dimensions.ex @@ -0,0 +1,78 @@ +# 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.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions do + @moduledoc """ + + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - + * `enumFilterType` (*type:* `String.t`, *default:* `nil`) - Whether to include or exclude the enums matching the regex. + * `errorEnumString` (*type:* `String.t`, *default:* `nil`) - + * `retryAttempt` (*type:* `String.t`, *default:* `nil`) - + * `taskName` (*type:* `String.t`, *default:* `nil`) - + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - + * `triggerId` (*type:* `String.t`, *default:* `nil`) - Stats have been or will be aggregated on set fields for any semantically-meaningful combination. + * `warningEnumString` (*type:* `String.t`, *default:* `nil`) - + * `workflowId` (*type:* `String.t`, *default:* `nil`) - + * `workflowName` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :enumFilterType => String.t() | nil, + :errorEnumString => String.t() | nil, + :retryAttempt => String.t() | nil, + :taskName => String.t() | nil, + :taskNumber => String.t() | nil, + :triggerId => String.t() | nil, + :warningEnumString => String.t() | nil, + :workflowId => String.t() | nil, + :workflowName => String.t() | nil + } + + field(:clientId) + field(:enumFilterType) + field(:errorEnumString) + field(:retryAttempt) + field(:taskName) + field(:taskNumber) + field(:triggerId) + field(:warningEnumString) + field(:workflowId) + field(:workflowName) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStatsDimensions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_boolean_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_boolean_parameter_array.ex new file mode 100644 index 0000000000..1d48ad1645 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_boolean_parameter_array.ex @@ -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.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray do + @moduledoc """ + + + ## Attributes + + * `booleanValues` (*type:* `list(boolean())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValues => list(boolean()) | nil + } + + field(:booleanValues, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_double_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_double_parameter_array.ex new file mode 100644 index 0000000000..6c7ab2d2c1 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_double_parameter_array.ex @@ -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.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray do + @moduledoc """ + + + ## Attributes + + * `doubleValues` (*type:* `list(float())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :doubleValues => list(float()) | nil + } + + field(:doubleValues, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_details.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_details.ex new file mode 100644 index 0000000000..e5257e1849 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_details.ex @@ -0,0 +1,95 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails do + @moduledoc """ + Contains the details of the execution info of this event: this includes the tasks execution details plus the event execution statistics. Next available id: 11 + + ## Attributes + + * `eventAttemptStats` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats.t)`, *default:* `nil`) - + * `eventExecutionSnapshot` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot.t)`, *default:* `nil`) - After snapshot migration, this field will no longer be populated, but old execution snapshots will still be accessible. + * `eventExecutionSnapshotsSize` (*type:* `String.t`, *default:* `nil`) - Total size of all event_execution_snapshots for an execution + * `eventExecutionState` (*type:* `String.t`, *default:* `nil`) - The execution state of this event. + * `eventRetriesFromBeginningCount` (*type:* `integer()`, *default:* `nil`) - Indicates the number of times the execution has restarted from the beginning. + * `logFilePath` (*type:* `String.t`, *default:* `nil`) - The log file path (aka. cns address) for this event. + * `networkAddress` (*type:* `String.t`, *default:* `nil`) - The network address (aka. bns address) that indicates where the event executor is running. + * `nextExecutionTime` (*type:* `String.t`, *default:* `nil`) - Next scheduled execution time in case the execution status was RETRY_ON_HOLD. + * `ryeLockUnheldCount` (*type:* `integer()`, *default:* `nil`) - Used internally and shouldn't be exposed to users. A counter for the cron job to record how many times this event is in in_process state but don't have a lock consecutively/ + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventAttemptStats => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats.t() + ) + | nil, + :eventExecutionSnapshot => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot.t() + ) + | nil, + :eventExecutionSnapshotsSize => String.t() | nil, + :eventExecutionState => String.t() | nil, + :eventRetriesFromBeginningCount => integer() | nil, + :logFilePath => String.t() | nil, + :networkAddress => String.t() | nil, + :nextExecutionTime => String.t() | nil, + :ryeLockUnheldCount => integer() | nil + } + + field(:eventAttemptStats, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetailsEventAttemptStats, + type: :list + ) + + field(:eventExecutionSnapshot, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot, + type: :list + ) + + field(:eventExecutionSnapshotsSize) + field(:eventExecutionState) + field(:eventRetriesFromBeginningCount) + field(:logFilePath) + field(:networkAddress) + field(:nextExecutionTime) + field(:ryeLockUnheldCount) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_info.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_info.ex new file mode 100644 index 0000000000..105e6e1e53 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_info.ex @@ -0,0 +1,135 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo do + @moduledoc """ + Contains all the execution details for a workflow instance. Next available id: 24 + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - The event data user sends as request. + * `createTime` (*type:* `String.t`, *default:* `nil`) - Auto-generated. + * `errorCode` (*type:* `GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode.t`, *default:* `nil`) - Final error-code if event failed. + * `errors` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail.t)`, *default:* `nil`) - Errors, warnings, and informationals associated with the workflow/task. The order in which the errors were added by the workflow/task is maintained. + * `eventExecutionDetails` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails.t`, *default:* `nil`) - The execution info about this event. + * `eventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Auto-generated primary key. + * `executionTraceInfo` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo.t`, *default:* `nil`) - Execution trace info to aggregate parent-child executions. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Auto-generated. + * `postMethod` (*type:* `String.t`, *default:* `nil`) - The ways user posts this event. + * `product` (*type:* `String.t`, *default:* `nil`) - Which Google product the execution_info belongs to. If not set, the execution_info belongs to Integration Platform by default. + * `requestId` (*type:* `String.t`, *default:* `nil`) - Optional. This is used to de-dup incoming request. + * `requestParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - Event parameters come in as part of the request. + * `responseParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - Event parameters come out as part of the response. + * `snapshotNumber` (*type:* `String.t`, *default:* `nil`) - Workflow snapshot number. + * `tenant` (*type:* `String.t`, *default:* `nil`) - Tenant this event is created. Used to reschedule the event to correct tenant. + * `triggerId` (*type:* `String.t`, *default:* `nil`) - The trigger id of the workflow trigger config. If both trigger_id and client_id is present, the workflow is executed from the start tasks provided by the matching trigger config otherwise it is executed from the default start tasks. + * `workflowId` (*type:* `String.t`, *default:* `nil`) - Required. Pointer to the workflow it is executing. + * `workflowName` (*type:* `String.t`, *default:* `nil`) - Name of the workflow. + * `workflowRetryBackoffIntervalSeconds` (*type:* `String.t`, *default:* `nil`) - Time interval in seconds to schedule retry of workflow in manifold when workflow is already running + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :createTime => String.t() | nil, + :errorCode => GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode.t() | nil, + :errors => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail.t()) + | nil, + :eventExecutionDetails => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails.t() + | nil, + :eventExecutionInfoId => String.t() | nil, + :executionTraceInfo => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo.t() + | nil, + :lastModifiedTime => String.t() | nil, + :postMethod => String.t() | nil, + :product => String.t() | nil, + :requestId => String.t() | nil, + :requestParams => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :responseParams => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :snapshotNumber => String.t() | nil, + :tenant => String.t() | nil, + :triggerId => String.t() | nil, + :workflowId => String.t() | nil, + :workflowName => String.t() | nil, + :workflowRetryBackoffIntervalSeconds => String.t() | nil + } + + field(:clientId) + field(:createTime) + field(:errorCode, as: GoogleApi.Integrations.V1alpha.Model.CrmlogErrorCode) + + field(:errors, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoErrorDetail, + type: :list + ) + + field(:eventExecutionDetails, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionDetails + ) + + field(:eventExecutionInfoId) + + field(:executionTraceInfo, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoExecutionTraceInfo + ) + + field(:lastModifiedTime) + field(:postMethod) + field(:product) + field(:requestId) + + field(:requestParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:responseParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:snapshotNumber) + field(:tenant) + field(:triggerId) + field(:workflowId) + field(:workflowName) + field(:workflowRetryBackoffIntervalSeconds) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_snapshot.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_snapshot.ex new file mode 100644 index 0000000000..2f36f8e40d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_execution_snapshot.ex @@ -0,0 +1,115 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot do + @moduledoc """ + + + ## Attributes + + * `checkpointTaskNumber` (*type:* `String.t`, *default:* `nil`) - Indicates "right after which checkpoint task's execution" this snapshot is taken. + * `conditionResults` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult.t)`, *default:* `nil`) - All of the computed conditions that been calculated. + * `diffParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - The parameters in Event object that differs from last snapshot. + * `eventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Points to the event execution info this snapshot belongs to. + * `eventExecutionSnapshotId` (*type:* `String.t`, *default:* `nil`) - Auto-generated. Used as primary key for EventExecutionSnapshots table. + * `eventExecutionSnapshotMetadata` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata.t`, *default:* `nil`) - + * `eventParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - The parameters in Event object. + * `snapshotTime` (*type:* `String.t`, *default:* `nil`) - Indicates when this snapshot is taken. + * `taskExecutionDetails` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails.t)`, *default:* `nil`) - All of the task execution details at the given point of time. + * `taskName` (*type:* `String.t`, *default:* `nil`) - The task name associated with this snapshot. Could be empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :checkpointTaskNumber => String.t() | nil, + :conditionResults => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult.t() + ) + | nil, + :diffParams => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :eventExecutionInfoId => String.t() | nil, + :eventExecutionSnapshotId => String.t() | nil, + :eventExecutionSnapshotMetadata => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata.t() + | nil, + :eventParams => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :snapshotTime => String.t() | nil, + :taskExecutionDetails => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails.t() + ) + | nil, + :taskName => String.t() | nil + } + + field(:checkpointTaskNumber) + + field(:conditionResults, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoConditionResult, + type: :list + ) + + field(:diffParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:eventExecutionInfoId) + field(:eventExecutionSnapshotId) + + field(:eventExecutionSnapshotMetadata, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata + ) + + field(:eventParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:snapshotTime) + + field(:taskExecutionDetails, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskExecutionDetails, + type: :list + ) + + field(:taskName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionSnapshot do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_parameters.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_parameters.ex new file mode 100644 index 0000000000..3409463ebd --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_event_parameters.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters do + @moduledoc """ + LINT.IfChange This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Please see + + ## Attributes + + * `parameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t)`, *default:* `nil`) - Parameters are a part of Event and can be used to communicate between different tasks that are part of the same workflow execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parameters => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + ) + | nil + } + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_int_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_int_parameter_array.ex new file mode 100644 index 0000000000..932e28875a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_int_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray do + @moduledoc """ + + + ## Attributes + + * `intValues` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intValues => list(String.t()) | nil + } + + field(:intValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_param_spec_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_param_spec_entry.ex new file mode 100644 index 0000000000..ef99bb38b7 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_param_spec_entry.ex @@ -0,0 +1,109 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry do + @moduledoc """ + Key-value pair of EventBus task parameters. Next id: 13 + + ## Attributes + + * `className` (*type:* `String.t`, *default:* `nil`) - The FQCN of the Java object this represents. A string, for example, would be "java.lang.String". If this is "java.lang.Object", the parameter can be of any type. + * `collectionElementClassName` (*type:* `String.t`, *default:* `nil`) - If it is a collection of objects, this would be the FCQN of every individual element in the collection. If this is "java.lang.Object", the parameter is a collection of any type. + * `config` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig.t`, *default:* `nil`) - Optional fields, such as help text and other useful info. + * `dataType` (*type:* `String.t`, *default:* `nil`) - The data type of the parameter. + * `defaultValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t`, *default:* `nil`) - Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. + * `isDeprecated` (*type:* `boolean()`, *default:* `nil`) - If set, this entry is deprecated, so further use of this parameter should be prohibited. + * `isOutput` (*type:* `boolean()`, *default:* `nil`) - + * `jsonSchema` (*type:* `String.t`, *default:* `nil`) - If the data_type is JSON_VALUE, then this will define its schema. + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding parameter value. This should be unique for a given task. These parameters must be predefined in the workflow definition. + * `protoDef` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition.t`, *default:* `nil`) - Populated if this represents a proto or proto array. + * `required` (*type:* `boolean()`, *default:* `nil`) - If set, the user must provide an input value for this parameter. + * `validationRule` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule.t`, *default:* `nil`) - Rule used to validate inputs (individual values and collection elements) for this parameter. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :className => String.t() | nil, + :collectionElementClassName => String.t() | nil, + :config => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig.t() + | nil, + :dataType => String.t() | nil, + :defaultValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t() + | nil, + :isDeprecated => boolean() | nil, + :isOutput => boolean() | nil, + :jsonSchema => String.t() | nil, + :key => String.t() | nil, + :protoDef => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition.t() + | nil, + :required => boolean() | nil, + :validationRule => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule.t() + | nil + } + + field(:className) + field(:collectionElementClassName) + + field(:config, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryConfig + ) + + field(:dataType) + + field(:defaultValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType + ) + + field(:isDeprecated) + field(:isOutput) + field(:jsonSchema) + field(:key) + + field(:protoDef, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryProtoDefinition + ) + + field(:required) + + field(:validationRule, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoParamSpecEntryValidationRule + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_param_specs_message.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_param_specs_message.ex new file mode 100644 index 0000000000..d74dc22449 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_param_specs_message.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage do + @moduledoc """ + + + ## Attributes + + * `parameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parameters => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry.t() + ) + | nil + } + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_entry.ex new file mode 100644 index 0000000000..9dadd756cc --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_entry.ex @@ -0,0 +1,65 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry do + @moduledoc """ + Key-value pair of EventBus parameters. + + ## Attributes + + * `dataType` (*type:* `String.t`, *default:* `nil`) - Explicitly getting the type of the parameter. + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. + * `masked` (*type:* `boolean()`, *default:* `nil`) - True if this parameter should be masked in the logs + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t`, *default:* `nil`) - Values for the defined keys. Each value can either be string, int, double or any proto message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataType => String.t() | nil, + :key => String.t() | nil, + :masked => boolean() | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t() + | nil + } + + field(:dataType) + field(:key) + field(:masked) + + field(:value, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map.ex new file mode 100644 index 0000000000..8bc81a9ccc --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map.ex @@ -0,0 +1,65 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMap do + @moduledoc """ + A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified. + + ## Attributes + + * `entries` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry.t)`, *default:* `nil`) - + * `keyType` (*type:* `String.t`, *default:* `nil`) - Option to specify key value type for all entries of the map. If provided then field types for all entries must conform to this. + * `valueType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entries => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry.t() + ) + | nil, + :keyType => String.t() | nil, + :valueType => String.t() | nil + } + + field(:entries, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry, + type: :list + ) + + field(:keyType) + field(:valueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMap do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMap.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMap do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map_entry.ex new file mode 100644 index 0000000000..0ba0d75825 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map_entry.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry do + @moduledoc """ + Entry is a pair of key and value. + + ## Attributes + + * `key` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField.t`, *default:* `nil`) - + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField.t() + | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField.t() + | nil + } + + field(:key, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField + ) + + field(:value, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map_field.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map_field.ex new file mode 100644 index 0000000000..5e60f12dd7 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_map_field.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField do + @moduledoc """ + Field represents either the key or value in an entry. + + ## Attributes + + * `literalValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t`, *default:* `nil`) - Passing a literal value. + * `referenceKey` (*type:* `String.t`, *default:* `nil`) - Referencing one of the WF variables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :literalValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t() + | nil, + :referenceKey => String.t() | nil + } + + field(:literalValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType + ) + + field(:referenceKey) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterMapField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_value_type.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_value_type.ex new file mode 100644 index 0000000000..51fa79ab5f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_parameter_value_type.ex @@ -0,0 +1,123 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType do + @moduledoc """ + To support various types of parameter values. Next available id: 14 + + ## Attributes + + * `booleanArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray.t`, *default:* `nil`) - + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - + * `doubleArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray.t`, *default:* `nil`) - + * `doubleValue` (*type:* `float()`, *default:* `nil`) - + * `intArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray.t`, *default:* `nil`) - + * `intValue` (*type:* `String.t`, *default:* `nil`) - + * `jsonValue` (*type:* `String.t`, *default:* `nil`) - + * `protoArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray.t`, *default:* `nil`) - + * `protoValue` (*type:* `map()`, *default:* `nil`) - + * `serializedObjectValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter.t`, *default:* `nil`) - + * `stringArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray.t`, *default:* `nil`) - + * `stringValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray.t() + | nil, + :booleanValue => boolean() | nil, + :doubleArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray.t() + | nil, + :doubleValue => float() | nil, + :intArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray.t() + | nil, + :intValue => String.t() | nil, + :jsonValue => String.t() | nil, + :protoArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray.t() + | nil, + :protoValue => map() | nil, + :serializedObjectValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter.t() + | nil, + :stringArray => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray.t() + | nil, + :stringValue => String.t() | nil + } + + field(:booleanArray, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoBooleanParameterArray + ) + + field(:booleanValue) + + field(:doubleArray, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoDoubleParameterArray + ) + + field(:doubleValue) + + field(:intArray, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoIntParameterArray + ) + + field(:intValue) + field(:jsonValue) + + field(:protoArray, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray + ) + + field(:protoValue, type: :map) + + field(:serializedObjectValue, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter + ) + + field(:stringArray, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray + ) + + field(:stringValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_proto_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_proto_parameter_array.ex new file mode 100644 index 0000000000..993a73c200 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_proto_parameter_array.ex @@ -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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray do + @moduledoc """ + + + ## Attributes + + * `protoValues` (*type:* `list(map())`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :protoValues => list(map()) | nil + } + + field(:protoValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoProtoParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_rollback_strategy.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_rollback_strategy.ex new file mode 100644 index 0000000000..3a1cc942a6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_rollback_strategy.ex @@ -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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy do + @moduledoc """ + Next available id: 4 + + ## Attributes + + * `parameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - Optional. The customized parameters the user can pass to this task. + * `rollbackTaskImplementationClassName` (*type:* `String.t`, *default:* `nil`) - Required. This is the name of the task that needs to be executed upon rollback of this task. + * `taskNumbersToRollback` (*type:* `list(String.t)`, *default:* `nil`) - Required. These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :rollbackTaskImplementationClassName => String.t() | nil, + :taskNumbersToRollback => list(String.t()) | nil + } + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:rollbackTaskImplementationClassName) + field(:taskNumbersToRollback, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_serialized_object_parameter.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_serialized_object_parameter.ex new file mode 100644 index 0000000000..a3d5254e75 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_serialized_object_parameter.ex @@ -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.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter do + @moduledoc """ + + + ## Attributes + + * `objectValue` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :objectValue => String.t() | nil + } + + field(:objectValue) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoSerializedObjectParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_string_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_string_parameter_array.ex new file mode 100644 index 0000000000..333e054017 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_string_parameter_array.ex @@ -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.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray do + @moduledoc """ + + + ## Attributes + + * `stringValues` (*type:* `list(String.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stringValues => list(String.t()) | nil + } + + field(:stringValues, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoStringParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_task_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_task_config.ex new file mode 100644 index 0000000000..d7e2e96537 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_task_config.ex @@ -0,0 +1,182 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig do + @moduledoc """ + The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. + + ## Attributes + + * `alertConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig.t)`, *default:* `nil`) - Alert configurations on error rate, warning rate, number of runs, durations, etc. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Auto-generated. + * `creatorEmail` (*type:* `String.t`, *default:* `nil`) - The creator's email address. Auto-generated from the user's email. + * `description` (*type:* `String.t`, *default:* `nil`) - User-provided description intended to give more business context about the task. + * `disableStrictTypeValidation` (*type:* `boolean()`, *default:* `nil`) - If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter. + * `errorCatcherId` (*type:* `String.t`, *default:* `nil`) - Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task + * `externalTaskType` (*type:* `String.t`, *default:* `nil`) - + * `failurePolicy` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy.t`, *default:* `nil`) - Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). + * `incomingEdgeCount` (*type:* `integer()`, *default:* `nil`) - The number of edges leading into this TaskConfig. + * `jsonValidationOption` (*type:* `String.t`, *default:* `nil`) - If set, overrides the option configured in the Task implementation class. + * `label` (*type:* `String.t`, *default:* `nil`) - User-provided label that is attached to this TaskConfig in the UI. + * `lastModifiedTime` (*type:* `DateTime.t`, *default:* `nil`) - Auto-generated. + * `nextTasks` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask.t)`, *default:* `nil`) - The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. + * `nextTasksExecutionPolicy` (*type:* `String.t`, *default:* `nil`) - The policy dictating the execution of the next set of tasks for the current task. + * `parameters` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t}`, *default:* `nil`) - The customized parameters the user can pass to this task. + * `position` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate.t`, *default:* `nil`) - Optional. Informs the front-end application where to draw this task config on the UI. + * `precondition` (*type:* `String.t`, *default:* `nil`) - Optional. Standard filter expression evaluated before execution. Independent of other conditions and tasks. Can be used to enable rollout. e.g. "rollout(5)" will only allow 5% of incoming traffic to task. + * `preconditionLabel` (*type:* `String.t`, *default:* `nil`) - Optional. User-provided label that is attached to precondition in the UI. + * `rollbackStrategy` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy.t`, *default:* `nil`) - Optional. Contains information about what needs to be done upon failure (either a permanent error or after it has been retried too many times). + * `successPolicy` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy.t`, *default:* `nil`) - Determines what action to take upon successful task completion. + * `synchronousCallFailurePolicy` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy.t`, *default:* `nil`) - Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). + * `taskEntity` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity.t`, *default:* `nil`) - Copy of the task entity that this task config is an instance of. + * `taskExecutionStrategy` (*type:* `String.t`, *default:* `nil`) - The policy dictating the execution strategy of this task. + * `taskName` (*type:* `String.t`, *default:* `nil`) - The name for the task. + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - REQUIRED: the identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_number`). + * `taskSpec` (*type:* `String.t`, *default:* `nil`) - A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old "parameters" field. + * `taskTemplateName` (*type:* `String.t`, *default:* `nil`) - Used to define task-template name if task is of type task-template + * `taskType` (*type:* `String.t`, *default:* `nil`) - Defines the type of the task + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alertConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig.t() + ) + | nil, + :createTime => DateTime.t() | nil, + :creatorEmail => String.t() | nil, + :description => String.t() | nil, + :disableStrictTypeValidation => boolean() | nil, + :errorCatcherId => String.t() | nil, + :externalTaskType => String.t() | nil, + :failurePolicy => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy.t() | nil, + :incomingEdgeCount => integer() | nil, + :jsonValidationOption => String.t() | nil, + :label => String.t() | nil, + :lastModifiedTime => DateTime.t() | nil, + :nextTasks => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask.t()) + | nil, + :nextTasksExecutionPolicy => String.t() | nil, + :parameters => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + } + | nil, + :position => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate.t() | nil, + :precondition => String.t() | nil, + :preconditionLabel => String.t() | nil, + :rollbackStrategy => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy.t() + | nil, + :successPolicy => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy.t() | nil, + :synchronousCallFailurePolicy => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy.t() | nil, + :taskEntity => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity.t() + | nil, + :taskExecutionStrategy => String.t() | nil, + :taskName => String.t() | nil, + :taskNumber => String.t() | nil, + :taskSpec => String.t() | nil, + :taskTemplateName => String.t() | nil, + :taskType => String.t() | nil + } + + field(:alertConfigs, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskAlertConfig, + type: :list + ) + + field(:createTime, as: DateTime) + field(:creatorEmail) + field(:description) + field(:disableStrictTypeValidation) + field(:errorCatcherId) + field(:externalTaskType) + + field(:failurePolicy, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy + ) + + field(:incomingEdgeCount) + field(:jsonValidationOption) + field(:label) + field(:lastModifiedTime, as: DateTime) + + field(:nextTasks, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask, + type: :list + ) + + field(:nextTasksExecutionPolicy) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :map + ) + + field(:position, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate) + field(:precondition) + field(:preconditionLabel) + + field(:rollbackStrategy, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoRollbackStrategy + ) + + field(:successPolicy, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuccessPolicy + ) + + field(:synchronousCallFailurePolicy, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoFailurePolicy + ) + + field(:taskEntity, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity + ) + + field(:taskExecutionStrategy) + field(:taskName) + field(:taskNumber) + field(:taskSpec) + field(:taskTemplateName) + field(:taskType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_task_entity.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_task_entity.ex new file mode 100644 index 0000000000..5724256b76 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_task_entity.ex @@ -0,0 +1,76 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity do + @moduledoc """ + Contains a task's metadata and associated information. Next available id: 7 + + ## Attributes + + * `disabledForVpcSc` (*type:* `boolean()`, *default:* `nil`) - True if the task has conflict with vpcsc + * `metadata` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata.t`, *default:* `nil`) - Metadata inclueds the task name, author and so on. + * `paramSpecs` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage.t`, *default:* `nil`) - Declarations for inputs/outputs for a TypedTask. This is also associated with the METADATA mask. + * `stats` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStats.t`, *default:* `nil`) - Deprecated - statistics from the Monarch query. + * `taskType` (*type:* `String.t`, *default:* `nil`) - Defines the type of the task + * `uiConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig.t`, *default:* `nil`) - UI configuration for this task Also associated with the METADATA mask. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :disabledForVpcSc => boolean() | nil, + :metadata => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata.t() | nil, + :paramSpecs => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage.t() + | nil, + :stats => GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStats.t() | nil, + :taskType => String.t() | nil, + :uiConfig => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig.t() | nil + } + + field(:disabledForVpcSc) + + field(:metadata, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskMetadata) + + field(:paramSpecs, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParamSpecsMessage + ) + + field(:stats, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusStats) + field(:taskType) + + field(:uiConfig, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTaskUiConfig) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskEntity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_trigger_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_trigger_config.ex new file mode 100644 index 0000000000..586079b51c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_trigger_config.ex @@ -0,0 +1,122 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig do + @moduledoc """ + Configuration detail of a trigger. Next available id: 20 + + ## Attributes + + * `alertConfig` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig.t)`, *default:* `nil`) - An alert threshold configuration for the [trigger + client + workflow] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + workflow] when published. + * `cloudSchedulerConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig.t`, *default:* `nil`) - + * `description` (*type:* `String.t`, *default:* `nil`) - User-provided description intended to give more business context about the task. + * `enabledClients` (*type:* `list(String.t)`, *default:* `nil`) - Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client. + * `errorCatcherId` (*type:* `String.t`, *default:* `nil`) - Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task + * `label` (*type:* `String.t`, *default:* `nil`) - The user created label for a particular trigger. + * `nextTasksExecutionPolicy` (*type:* `String.t`, *default:* `nil`) - Dictates how next tasks will be executed. + * `pauseWorkflowExecutions` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed. + * `position` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate.t`, *default:* `nil`) - Optional. Informs the front-end application where to draw this trigger config on the UI. + * `properties` (*type:* `map()`, *default:* `nil`) - Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers. + * `startTasks` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask.t)`, *default:* `nil`) - Set of tasks numbers from where the workflow execution is started by this trigger. If this is empty, then workflow is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same workflow execution graph). + * `triggerCriteria` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria.t`, *default:* `nil`) - Optional. When set, Eventbus will run the task specified in the trigger_criteria and validate the result using the trigger_criteria.condition, and only execute the workflow when result is true. + * `triggerId` (*type:* `String.t`, *default:* `nil`) - The backend trigger ID. + * `triggerName` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the trigger This is added to identify the type of trigger. This is avoid the logic on triggerId to identify the trigger_type and push the same to monitoring. + * `triggerNumber` (*type:* `String.t`, *default:* `nil`) - Required. A number to uniquely identify each trigger config within the workflow on UI. + * `triggerType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alertConfig => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig.t() + ) + | nil, + :cloudSchedulerConfig => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig.t() + | nil, + :description => String.t() | nil, + :enabledClients => list(String.t()) | nil, + :errorCatcherId => String.t() | nil, + :label => String.t() | nil, + :nextTasksExecutionPolicy => String.t() | nil, + :pauseWorkflowExecutions => boolean() | nil, + :position => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate.t() | nil, + :properties => map() | nil, + :startTasks => + list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask.t()) + | nil, + :triggerCriteria => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria.t() + | nil, + :triggerId => String.t() | nil, + :triggerName => String.t() | nil, + :triggerNumber => String.t() | nil, + :triggerType => String.t() | nil + } + + field(:alertConfig, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoWorkflowAlertConfig, + type: :list + ) + + field(:cloudSchedulerConfig, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCloudSchedulerConfig + ) + + field(:description) + field(:enabledClients, type: :list) + field(:errorCatcherId) + field(:label) + field(:nextTasksExecutionPolicy) + field(:pauseWorkflowExecutions) + field(:position, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoCoordinate) + field(:properties, type: :map) + + field(:startTasks, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNextTask, + type: :list + ) + + field(:triggerCriteria, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTriggerCriteria + ) + + field(:triggerId) + field(:triggerName) + field(:triggerNumber) + field(:triggerType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_workflow_parameter_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_workflow_parameter_entry.ex new file mode 100644 index 0000000000..20a4a9551e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_workflow_parameter_entry.ex @@ -0,0 +1,118 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry do + @moduledoc """ + + + ## Attributes + + * `attributes` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes.t`, *default:* `nil`) - Metadata information about the parameters. + * `children` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry.t)`, *default:* `nil`) - Child parameters nested within this parameter. This field only applies to protobuf parameters + * `containsLargeData` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. + * `dataType` (*type:* `String.t`, *default:* `nil`) - The data type of the parameter. + * `defaultValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t`, *default:* `nil`) - Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The description about the parameter + * `inOutType` (*type:* `String.t`, *default:* `nil`) - Specifies the input/output type for the parameter. + * `isTransient` (*type:* `boolean()`, *default:* `nil`) - Whether this parameter is a transient parameter. + * `jsonSchema` (*type:* `String.t`, *default:* `nil`) - This schema will be used to validate runtime JSON-typed values of this parameter. + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the workflow definition. + * `name` (*type:* `String.t`, *default:* `nil`) - The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". + * `producedBy` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier.t`, *default:* `nil`) - The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. + * `producer` (*type:* `String.t`, *default:* `nil`) - + * `protoDefName` (*type:* `String.t`, *default:* `nil`) - The name of the protobuf type if the parameter has a protobuf data type. + * `protoDefPath` (*type:* `String.t`, *default:* `nil`) - If the data type is of type proto or proto array, this field needs to be populated with the fully qualified proto name. This message, for example, would be "enterprise.crm.frontends.eventbus.proto.WorkflowParameterEntry". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributes => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes.t() | nil, + :children => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry.t() + ) + | nil, + :containsLargeData => boolean() | nil, + :dataType => String.t() | nil, + :defaultValue => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType.t() + | nil, + :description => String.t() | nil, + :inOutType => String.t() | nil, + :isTransient => boolean() | nil, + :jsonSchema => String.t() | nil, + :key => String.t() | nil, + :name => String.t() | nil, + :producedBy => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier.t() + | nil, + :producer => String.t() | nil, + :protoDefName => String.t() | nil, + :protoDefPath => String.t() | nil + } + + field(:attributes, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoAttributes) + + field(:children, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry, + type: :list + ) + + field(:containsLargeData) + field(:dataType) + + field(:defaultValue, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterValueType + ) + + field(:description) + field(:inOutType) + field(:isTransient) + field(:jsonSchema) + field(:key) + field(:name) + + field(:producedBy, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoNodeIdentifier + ) + + field(:producer) + field(:protoDefName) + field(:protoDefPath) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_workflow_parameters.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_workflow_parameters.ex new file mode 100644 index 0000000000..9249335c66 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_frontends_eventbus_proto_workflow_parameters.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters do + @moduledoc """ + LINT.IfChange This is the frontend version of WorkflowParameters. It's exactly like the backend version except that instead of flattening protobuf parameters and treating every field and subfield of a protobuf parameter as a separate parameter, the fields/subfields of a protobuf parameter will be nested as "children" (see 'children' field below) parameters of the parent parameter. Please refer to enterprise/crm/eventbus/proto/workflow_parameters.proto for more information about WorkflowParameters. + + ## Attributes + + * `parameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry.t)`, *default:* `nil`) - Parameters are a part of Event and can be used to communiticate between different tasks that are part of the same workflow execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parameters => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry.t() + ) + | nil + } + + field(:parameters, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_logging_gws_field_limits.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_logging_gws_field_limits.ex new file mode 100644 index 0000000000..5450487d81 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_logging_gws_field_limits.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits do + @moduledoc """ + Describes string and array limits when writing to logs. When a limit is exceeded the *shortener_type* describes how to shorten the field. next_id: 6 + + ## Attributes + + * `logAction` (*type:* `String.t`, *default:* `nil`) - + * `logType` (*type:* `list(String.t)`, *default:* `nil`) - To which type(s) of logs the limits apply. + * `maxArraySize` (*type:* `integer()`, *default:* `nil`) - maximum array size. If the array exceds this size, the field (list) is truncated. + * `maxStringLength` (*type:* `integer()`, *default:* `nil`) - maximum string length. If the field exceeds this amount the field is shortened. + * `shortenerType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :logAction => String.t() | nil, + :logType => list(String.t()) | nil, + :maxArraySize => integer() | nil, + :maxStringLength => integer() | nil, + :shortenerType => String.t() | nil + } + + field(:logAction) + field(:logType, type: :list) + field(:maxArraySize) + field(:maxStringLength) + field(:shortenerType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsFieldLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_logging_gws_sanitize_options.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_logging_gws_sanitize_options.ex new file mode 100644 index 0000000000..fb5cfe43bd --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/enterprise_crm_logging_gws_sanitize_options.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions do + @moduledoc """ + Identifies whether a field contains, or may contain, PII or sensitive data, and how to sanitize the field if it does. If a field's privacy type cannot be determined then it is sanitized (e.g., scrubbed). The specific sanitizer implementation is determined by run-time configuration and environment options (e.g., prod vs. qa). next_id: 5 + + ## Attributes + + * `isAlreadySanitized` (*type:* `boolean()`, *default:* `nil`) - If true, the value has already been sanitized and needs no further sanitization. For instance, a D3 customer id is already an obfuscated entity and *might not* need further sanitization. + * `logType` (*type:* `list(String.t)`, *default:* `nil`) - To which type(s) of logs the sanitize options apply. + * `privacy` (*type:* `String.t`, *default:* `nil`) - + * `sanitizeType` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isAlreadySanitized => boolean() | nil, + :logType => list(String.t()) | nil, + :privacy => String.t() | nil, + :sanitizeType => String.t() | nil + } + + field(:isAlreadySanitized) + field(:logType, type: :list) + field(:privacy) + field(:sanitizeType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmLoggingGwsSanitizeOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config.ex new file mode 100644 index 0000000000..6bbcdcd1ee --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config.ex @@ -0,0 +1,101 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig do + @moduledoc """ + AuthConfig defines details of a authentication type. + + ## Attributes + + * `additionalVariables` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t)`, *default:* `nil`) - List containing additional auth configs. + * `authKey` (*type:* `String.t`, *default:* `nil`) - Identifier key for auth config + * `authType` (*type:* `String.t`, *default:* `nil`) - The type of authentication configured. + * `oauth2AuthCodeFlow` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.t`, *default:* `nil`) - Oauth2AuthCodeFlow. + * `oauth2ClientCredentials` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials.t`, *default:* `nil`) - Oauth2ClientCredentials. + * `oauth2JwtBearer` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer.t`, *default:* `nil`) - Oauth2JwtBearer. + * `sshPublicKey` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey.t`, *default:* `nil`) - SSH Public Key. + * `userPassword` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword.t`, *default:* `nil`) - UserPassword. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalVariables => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t()) + | nil, + :authKey => String.t() | nil, + :authType => String.t() | nil, + :oauth2AuthCodeFlow => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.t() + | nil, + :oauth2ClientCredentials => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials.t() + | nil, + :oauth2JwtBearer => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer.t() + | nil, + :sshPublicKey => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey.t() + | nil, + :userPassword => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword.t() + | nil + } + + field(:additionalVariables, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable, + type: :list + ) + + field(:authKey) + field(:authType) + + field(:oauth2AuthCodeFlow, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow + ) + + field(:oauth2ClientCredentials, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials + ) + + field(:oauth2JwtBearer, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer + ) + + field(:sshPublicKey, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey + ) + + field(:userPassword, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_auth_code_flow.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_auth_code_flow.ex new file mode 100644 index 0000000000..dcb92bf0bf --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_auth_code_flow.ex @@ -0,0 +1,73 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow do + @moduledoc """ + Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. + + ## Attributes + + * `authCode` (*type:* `String.t`, *default:* `nil`) - Authorization code to be exchanged for access and refresh tokens. + * `authUri` (*type:* `String.t`, *default:* `nil`) - Auth URL for Authorization Code Flow + * `clientId` (*type:* `String.t`, *default:* `nil`) - Client ID for user-provided OAuth app. + * `clientSecret` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Client secret for user-provided OAuth app. + * `enablePkce` (*type:* `boolean()`, *default:* `nil`) - Whether to enable PKCE when the user performs the auth code flow. + * `pkceVerifier` (*type:* `String.t`, *default:* `nil`) - PKCE verifier to be used during the auth code exchange. + * `redirectUri` (*type:* `String.t`, *default:* `nil`) - Redirect URI to be provided during the auth code exchange. + * `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Scopes the connection will request when the user performs the auth code flow. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authCode => String.t() | nil, + :authUri => String.t() | nil, + :clientId => String.t() | nil, + :clientSecret => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :enablePkce => boolean() | nil, + :pkceVerifier => String.t() | nil, + :redirectUri => String.t() | nil, + :scopes => list(String.t()) | nil + } + + field(:authCode) + field(:authUri) + field(:clientId) + field(:clientSecret, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + field(:enablePkce) + field(:pkceVerifier) + field(:redirectUri) + field(:scopes, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_client_credentials.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_client_credentials.ex new file mode 100644 index 0000000000..23d809e56e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_client_credentials.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials do + @moduledoc """ + Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - The client identifier. + * `clientSecret` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Secret version reference containing the client secret. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :clientSecret => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil + } + + field(:clientId) + field(:clientSecret, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_jwt_bearer.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_jwt_bearer.ex new file mode 100644 index 0000000000..e8abc6346d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_jwt_bearer.ex @@ -0,0 +1,61 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer do + @moduledoc """ + Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication. See https://tools.ietf.org/html/rfc7523 for more details. + + ## Attributes + + * `clientKey` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Secret version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate. This private key will be used to sign JWTs used for the jwt-bearer authorization grant. Specified in the form as: `projects/*/secrets/*/versions/*`. + * `jwtClaims` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims.t`, *default:* `nil`) - JwtClaims providers fields to generate the token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientKey => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :jwtClaims => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims.t() + | nil + } + + field(:clientKey, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + + field(:jwtClaims, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearer do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_jwt_bearer_jwt_claims.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_jwt_bearer_jwt_claims.ex new file mode 100644 index 0000000000..799c8281df --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_oauth2_jwt_bearer_jwt_claims.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims do + @moduledoc """ + JWT claims used for the jwt-bearer authorization grant. + + ## Attributes + + * `audience` (*type:* `String.t`, *default:* `nil`) - Value for the "aud" claim. + * `issuer` (*type:* `String.t`, *default:* `nil`) - Value for the "iss" claim. + * `subject` (*type:* `String.t`, *default:* `nil`) - Value for the "sub" claim. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audience => String.t() | nil, + :issuer => String.t() | nil, + :subject => String.t() | nil + } + + field(:audience) + field(:issuer) + field(:subject) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigOauth2JwtBearerJwtClaims do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_ssh_public_key.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_ssh_public_key.ex new file mode 100644 index 0000000000..59891025c0 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_ssh_public_key.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey do + @moduledoc """ + Parameters to support Ssh public key Authentication. + + ## Attributes + + * `certType` (*type:* `String.t`, *default:* `nil`) - Format of SSH Client cert. + * `sshClientCert` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - SSH Client Cert. It should contain both public and private key. + * `sshClientCertPass` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Password (passphrase) for ssh client certificate if it has one. + * `username` (*type:* `String.t`, *default:* `nil`) - The user account used to authenticate. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certType => String.t() | nil, + :sshClientCert => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :sshClientCertPass => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :username => String.t() | nil + } + + field(:certType) + field(:sshClientCert, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + + field(:sshClientCertPass, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + + field(:username) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigSshPublicKey do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_user_password.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_user_password.ex new file mode 100644 index 0000000000..5b48265438 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_auth_config_user_password.ex @@ -0,0 +1,55 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword do + @moduledoc """ + Parameters to support Username and Password Authentication. + + ## Attributes + + * `password` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Secret version reference containing the password. + * `username` (*type:* `String.t`, *default:* `nil`) - Username. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :password => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :username => String.t() | nil + } + + field(:password, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + field(:username) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfigUserPassword do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_config_variable.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_config_variable.ex new file mode 100644 index 0000000000..42cd5d2aa2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_config_variable.ex @@ -0,0 +1,72 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable do + @moduledoc """ + ConfigVariable represents a configuration variable present in a Connection. or AuthConfig. + + ## Attributes + + * `boolValue` (*type:* `boolean()`, *default:* `nil`) - Value is a bool. + * `encryptionKeyValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey.t`, *default:* `nil`) - Value is a Encryption Key. + * `intValue` (*type:* `String.t`, *default:* `nil`) - Value is an integer + * `key` (*type:* `String.t`, *default:* `nil`) - Key of the config variable. + * `secretValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Value is a secret. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - Value is a string. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boolValue => boolean() | nil, + :encryptionKeyValue => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey.t() | nil, + :intValue => String.t() | nil, + :key => String.t() | nil, + :secretValue => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :stringValue => String.t() | nil + } + + field(:boolValue) + + field(:encryptionKeyValue, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey + ) + + field(:intValue) + field(:key) + field(:secretValue, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + field(:stringValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connection.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connection.ex new file mode 100644 index 0000000000..7318cd610d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connection.ex @@ -0,0 +1,165 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1Connection do + @moduledoc """ + Connection represents an instance of connector. + + ## Attributes + + * `authConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.t`, *default:* `nil`) - Optional. Configuration for establishing the connection's authentication with an external system. + * `configVariables` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t)`, *default:* `nil`) - Optional. Configuration for configuring the connection with an external system. + * `connectionRevision` (*type:* `String.t`, *default:* `nil`) - Output only. Connection revision. This field is only updated when the connection is created or updated by User. + * `connectorVersion` (*type:* `String.t`, *default:* `nil`) - Required. Connector version on which the connection is created. The format is: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource. + * `connectorVersionInfraConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig.t`, *default:* `nil`) - Output only. Infra configs supported by Connector Version. + * `connectorVersionLaunchStage` (*type:* `String.t`, *default:* `nil`) - Output only. Flag to mark the version indicating the launch stage. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Created time. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the resource. + * `destinationConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.t)`, *default:* `nil`) - Optional. Configuration of the Connector's destination. Only accepted for Connectors that accepts user defined destination(s). + * `envoyImageLocation` (*type:* `String.t`, *default:* `nil`) - Output only. GCR location where the envoy image is stored. formatted like: gcr.io/{bucketName}/{imageName} + * `eventingConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig.t`, *default:* `nil`) - Optional. Eventing config of a connection + * `eventingEnablementType` (*type:* `String.t`, *default:* `nil`) - Optional. Eventing enablement type. Will be nil if eventing is not enabled. + * `eventingRuntimeData` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData.t`, *default:* `nil`) - Output only. Eventing Runtime Data. + * `imageLocation` (*type:* `String.t`, *default:* `nil`) - Output only. GCR location where the runtime image is stored. formatted like: gcr.io/{bucketName}/{imageName} + * `isTrustedTester` (*type:* `boolean()`, *default:* `nil`) - Output only. Is trusted tester program enabled for the project. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources + * `lockConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LockConfig.t`, *default:* `nil`) - Optional. Configuration that indicates whether or not the Connection can be edited. + * `logConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig.t`, *default:* `nil`) - Optional. Log configuration for the connection. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} + * `nodeConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig.t`, *default:* `nil`) - Optional. Node configuration for the connection. + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. Service account needed for runtime plane to access Google Cloud resources. + * `serviceDirectory` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the Service Directory service name. Used for Private Harpoon to resolve the ILB address. e.g. "projects/cloud-connectors-e2e-testing/locations/us-central1/namespaces/istio-system/services/istio-ingressgateway-connectors" + * `sslConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1SslConfig.t`, *default:* `nil`) - Optional. Ssl config of a connection + * `status` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus.t`, *default:* `nil`) - Output only. Current status of the connection. + * `subscriptionType` (*type:* `String.t`, *default:* `nil`) - Output only. This subscription type enum states the subscription type of the project. + * `suspended` (*type:* `boolean()`, *default:* `nil`) - Optional. Suspended indicates if a user has suspended a connection or not. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Updated time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.t() | nil, + :configVariables => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t()) + | nil, + :connectionRevision => String.t() | nil, + :connectorVersion => String.t() | nil, + :connectorVersionInfraConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig.t() + | nil, + :connectorVersionLaunchStage => String.t() | nil, + :createTime => DateTime.t() | nil, + :description => String.t() | nil, + :destinationConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.t() + ) + | nil, + :envoyImageLocation => String.t() | nil, + :eventingConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig.t() | nil, + :eventingEnablementType => String.t() | nil, + :eventingRuntimeData => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData.t() + | nil, + :imageLocation => String.t() | nil, + :isTrustedTester => boolean() | nil, + :labels => map() | nil, + :lockConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LockConfig.t() | nil, + :logConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig.t() | nil, + :name => String.t() | nil, + :nodeConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig.t() | nil, + :serviceAccount => String.t() | nil, + :serviceDirectory => String.t() | nil, + :sslConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1SslConfig.t() | nil, + :status => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus.t() | nil, + :subscriptionType => String.t() | nil, + :suspended => boolean() | nil, + :updateTime => DateTime.t() | nil + } + + field(:authConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig) + + field(:configVariables, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable, + type: :list + ) + + field(:connectionRevision) + field(:connectorVersion) + + field(:connectorVersionInfraConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig + ) + + field(:connectorVersionLaunchStage) + field(:createTime, as: DateTime) + field(:description) + + field(:destinationConfigs, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig, + type: :list + ) + + field(:envoyImageLocation) + + field(:eventingConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig + ) + + field(:eventingEnablementType) + + field(:eventingRuntimeData, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData + ) + + field(:imageLocation) + field(:isTrustedTester) + field(:labels, type: :map) + field(:lockConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LockConfig) + field(:logConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig) + field(:name) + field(:nodeConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig) + field(:serviceAccount) + field(:serviceDirectory) + field(:sslConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1SslConfig) + field(:status, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus) + field(:subscriptionType) + field(:suspended) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Connection do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Connection.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Connection do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connection_status.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connection_status.ex new file mode 100644 index 0000000000..11ba6c2133 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connection_status.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus do + @moduledoc """ + ConnectionStatus indicates the state of the connection. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Description. + * `state` (*type:* `String.t`, *default:* `nil`) - State. + * `status` (*type:* `String.t`, *default:* `nil`) - Status provides detailed information for the state. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :state => String.t() | nil, + :status => String.t() | nil + } + + field(:description) + field(:state) + field(:status) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectionStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connector_version_infra_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connector_version_infra_config.ex new file mode 100644 index 0000000000..f48716b785 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_connector_version_infra_config.ex @@ -0,0 +1,82 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig do + @moduledoc """ + This cofiguration provides infra configs like rate limit threshold which need to be configurable for every connector version + + ## Attributes + + * `connectionRatelimitWindowSeconds` (*type:* `String.t`, *default:* `nil`) - Output only. The window used for ratelimiting runtime requests to connections. + * `deploymentModel` (*type:* `String.t`, *default:* `nil`) - Optional. Indicates whether connector is deployed on GKE/CloudRun + * `hpaConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig.t`, *default:* `nil`) - Output only. HPA autoscaling config. + * `internalclientRatelimitThreshold` (*type:* `String.t`, *default:* `nil`) - Output only. Max QPS supported for internal requests originating from Connd. + * `ratelimitThreshold` (*type:* `String.t`, *default:* `nil`) - Output only. Max QPS supported by the connector version before throttling of requests. + * `resourceLimits` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits.t`, *default:* `nil`) - Output only. System resource limits. + * `resourceRequests` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests.t`, *default:* `nil`) - Output only. System resource requests. + * `sharedDeployment` (*type:* `String.t`, *default:* `nil`) - Output only. The name of shared connector deployment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connectionRatelimitWindowSeconds => String.t() | nil, + :deploymentModel => String.t() | nil, + :hpaConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig.t() | nil, + :internalclientRatelimitThreshold => String.t() | nil, + :ratelimitThreshold => String.t() | nil, + :resourceLimits => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits.t() | nil, + :resourceRequests => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests.t() | nil, + :sharedDeployment => String.t() | nil + } + + field(:connectionRatelimitWindowSeconds) + field(:deploymentModel) + field(:hpaConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig) + field(:internalclientRatelimitThreshold) + field(:ratelimitThreshold) + + field(:resourceLimits, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits + ) + + field(:resourceRequests, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests + ) + + field(:sharedDeployment) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConnectorVersionInfraConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_destination.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_destination.ex new file mode 100644 index 0000000000..c78512635b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_destination.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1Destination do + @moduledoc """ + + + ## Attributes + + * `host` (*type:* `String.t`, *default:* `nil`) - For publicly routable host. + * `port` (*type:* `integer()`, *default:* `nil`) - The port is the target port number that is accepted by the destination. + * `serviceAttachment` (*type:* `String.t`, *default:* `nil`) - PSC service attachments. Format: projects/*/regions/*/serviceAttachments/* + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :host => String.t() | nil, + :port => integer() | nil, + :serviceAttachment => String.t() | nil + } + + field(:host) + field(:port) + field(:serviceAttachment) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Destination do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Destination.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Destination do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_destination_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_destination_config.ex new file mode 100644 index 0000000000..862e9a102a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_destination_config.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig do + @moduledoc """ + Define the Connectors target endpoint. + + ## Attributes + + * `destinations` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Destination.t)`, *default:* `nil`) - The destinations for the key. + * `key` (*type:* `String.t`, *default:* `nil`) - The key is the destination identifier that is supported by the Connector. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :destinations => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Destination.t()) + | nil, + :key => String.t() | nil + } + + field(:destinations, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Destination, + type: :list + ) + + field(:key) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_encryption_key.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_encryption_key.ex new file mode 100644 index 0000000000..bc4b432f17 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_encryption_key.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey do + @moduledoc """ + Encryption Key value. + + ## Attributes + + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed. + * `type` (*type:* `String.t`, *default:* `nil`) - Type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kmsKeyName => String.t() | nil, + :type => String.t() | nil + } + + field(:kmsKeyName) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EncryptionKey do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_config.ex new file mode 100644 index 0000000000..c2a96ab9d2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_config.ex @@ -0,0 +1,103 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig do + @moduledoc """ + Eventing Configuration of a connection + + ## Attributes + + * `additionalVariables` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t)`, *default:* `nil`) - Additional eventing related field values + * `authConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.t`, *default:* `nil`) - Auth details for the webhook adapter. + * `deadLetterConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig.t`, *default:* `nil`) - Optional. Dead letter configuration for eventing of a connection. + * `enrichmentEnabled` (*type:* `boolean()`, *default:* `nil`) - Enrichment Enabled. + * `eventsListenerIngressEndpoint` (*type:* `String.t`, *default:* `nil`) - Optional. Ingress endpoint of the event listener. This is used only when private connectivity is enabled. + * `listenerAuthConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.t`, *default:* `nil`) - Optional. Auth details for the event listener. + * `privateConnectivityEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Private Connectivity Enabled. + * `proxyDestinationConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.t`, *default:* `nil`) - Optional. Proxy for Eventing auto-registration. + * `registrationDestinationConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.t`, *default:* `nil`) - Registration endpoint for auto registration. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalVariables => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t()) + | nil, + :authConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.t() | nil, + :deadLetterConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig.t() + | nil, + :enrichmentEnabled => boolean() | nil, + :eventsListenerIngressEndpoint => String.t() | nil, + :listenerAuthConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig.t() | nil, + :privateConnectivityEnabled => boolean() | nil, + :proxyDestinationConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.t() + | nil, + :registrationDestinationConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig.t() + | nil + } + + field(:additionalVariables, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable, + type: :list + ) + + field(:authConfig, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig) + + field(:deadLetterConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig + ) + + field(:enrichmentEnabled) + field(:eventsListenerIngressEndpoint) + + field(:listenerAuthConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1AuthConfig + ) + + field(:privateConnectivityEnabled) + + field(:proxyDestinationConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig + ) + + field(:registrationDestinationConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1DestinationConfig + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_config_dead_letter_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_config_dead_letter_config.ex new file mode 100644 index 0000000000..40980abb32 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_config_dead_letter_config.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig do + @moduledoc """ + Dead Letter configuration details provided by the user. + + ## Attributes + + * `projectId` (*type:* `String.t`, *default:* `nil`) - Optional. Project which has the topic given. + * `topic` (*type:* `String.t`, *default:* `nil`) - Optional. Topic to push events which couldn't be processed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :projectId => String.t() | nil, + :topic => String.t() | nil + } + + field(:projectId) + field(:topic) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingConfigDeadLetterConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_runtime_data.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_runtime_data.ex new file mode 100644 index 0000000000..56a5a3add0 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_runtime_data.ex @@ -0,0 +1,66 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData do + @moduledoc """ + Eventing runtime data has the details related to eventing managed by the system. + + ## Attributes + + * `eventsListenerEndpoint` (*type:* `String.t`, *default:* `nil`) - Output only. Events listener endpoint. The value will populated after provisioning the events listener. + * `eventsListenerPscSa` (*type:* `String.t`, *default:* `nil`) - Output only. Events listener PSC Service attachment. The value will be populated after provisioning the events listener with private connectivity enabled. + * `status` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus.t`, *default:* `nil`) - Output only. Current status of eventing. + * `webhookData` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData.t`, *default:* `nil`) - Output only. Webhook data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventsListenerEndpoint => String.t() | nil, + :eventsListenerPscSa => String.t() | nil, + :status => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus.t() | nil, + :webhookData => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData.t() + | nil + } + + field(:eventsListenerEndpoint) + field(:eventsListenerPscSa) + field(:status, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus) + + field(:webhookData, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_runtime_data_webhook_data.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_runtime_data_webhook_data.ex new file mode 100644 index 0000000000..16b715d94f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_runtime_data_webhook_data.ex @@ -0,0 +1,72 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData do + @moduledoc """ + WebhookData has details of webhook configuration. + + ## Attributes + + * `additionalVariables` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t)`, *default:* `nil`) - Output only. Additional webhook related field values. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the webhook was created. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. ID to uniquely identify webhook. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the Webhook + * `nextRefreshTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Next webhook refresh time. Will be null if refresh is not supported. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the webhook was last updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalVariables => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t()) + | nil, + :createTime => DateTime.t() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :nextRefreshTime => DateTime.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:additionalVariables, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable, + type: :list + ) + + field(:createTime, as: DateTime) + field(:id) + field(:name) + field(:nextRefreshTime, as: DateTime) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingRuntimeDataWebhookData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_status.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_status.ex new file mode 100644 index 0000000000..470dfb3978 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_eventing_status.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus do + @moduledoc """ + EventingStatus indicates the state of eventing. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Output only. Description of error if State is set to "ERROR". + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. State. + """ + + 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.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1EventingStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_hpa_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_hpa_config.ex new file mode 100644 index 0000000000..6b823c62ee --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_hpa_config.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig do + @moduledoc """ + Autoscaling config for connector deployment system metrics. + + ## Attributes + + * `cpuUtilizationThreshold` (*type:* `String.t`, *default:* `nil`) - Output only. Percent CPU utilization where HPA triggers autoscaling. + * `memoryUtilizationThreshold` (*type:* `String.t`, *default:* `nil`) - Output only. Percent Memory utilization where HPA triggers autoscaling. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpuUtilizationThreshold => String.t() | nil, + :memoryUtilizationThreshold => String.t() | nil + } + + field(:cpuUtilizationThreshold) + field(:memoryUtilizationThreshold) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1HPAConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_lock_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_lock_config.ex new file mode 100644 index 0000000000..49e96f26eb --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_lock_config.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1LockConfig do + @moduledoc """ + Determines whether or no a connection is locked. If locked, a reason must be specified. + + ## Attributes + + * `locked` (*type:* `boolean()`, *default:* `nil`) - Indicates whether or not the connection is locked. + * `reason` (*type:* `String.t`, *default:* `nil`) - Describes why a connection is locked. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :locked => boolean() | nil, + :reason => String.t() | nil + } + + field(:locked) + field(:reason) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LockConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LockConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LockConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_log_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_log_config.ex new file mode 100644 index 0000000000..29eaef6ea7 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_log_config.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig do + @moduledoc """ + Log configuration for the connection. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Enabled represents whether logging is enabled or not for a connection. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil + } + + field(:enabled) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1LogConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_node_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_node_config.ex new file mode 100644 index 0000000000..fa67c0baeb --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_node_config.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig do + @moduledoc """ + Node configuration for the connection. + + ## Attributes + + * `maxNodeCount` (*type:* `integer()`, *default:* `nil`) - Maximum number of nodes in the runtime nodes. + * `minNodeCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of nodes in the runtime nodes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :maxNodeCount => integer() | nil, + :minNodeCount => integer() | nil + } + + field(:maxNodeCount) + field(:minNodeCount) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1NodeConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_resource_limits.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_resource_limits.ex new file mode 100644 index 0000000000..64a5998053 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_resource_limits.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits do + @moduledoc """ + Resource limits defined for connection pods of a given connector type. + + ## Attributes + + * `cpu` (*type:* `String.t`, *default:* `nil`) - Output only. CPU limit. + * `memory` (*type:* `String.t`, *default:* `nil`) - Output only. Memory limit. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpu => String.t() | nil, + :memory => String.t() | nil + } + + field(:cpu) + field(:memory) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceLimits do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_resource_requests.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_resource_requests.ex new file mode 100644 index 0000000000..035c739a8c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_resource_requests.ex @@ -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.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests do + @moduledoc """ + Resource requests defined for connection pods of a given connector type. + + ## Attributes + + * `cpu` (*type:* `String.t`, *default:* `nil`) - Output only. CPU request. + * `memory` (*type:* `String.t`, *default:* `nil`) - Output only. Memory request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cpu => String.t() | nil, + :memory => String.t() | nil + } + + field(:cpu) + field(:memory) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ResourceRequests do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_secret.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_secret.ex new file mode 100644 index 0000000000..b5d40df38b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_secret.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret do + @moduledoc """ + Secret provides a reference to entries in Secret Manager. + + ## Attributes + + * `secretVersion` (*type:* `String.t`, *default:* `nil`) - The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :secretVersion => String.t() | nil + } + + field(:secretVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_ssl_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_ssl_config.ex new file mode 100644 index 0000000000..9585a2dbb7 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_connectors_v1_ssl_config.ex @@ -0,0 +1,92 @@ +# 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.V1alpha.Model.GoogleCloudConnectorsV1SslConfig do + @moduledoc """ + SSL Configuration of a connection + + ## Attributes + + * `additionalVariables` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t)`, *default:* `nil`) - Additional SSL related field values + * `clientCertType` (*type:* `String.t`, *default:* `nil`) - Type of Client Cert (PEM/JKS/.. etc.) + * `clientCertificate` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Client Certificate + * `clientPrivateKey` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Client Private Key + * `clientPrivateKeyPass` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Secret containing the passphrase protecting the Client Private Key + * `privateServerCertificate` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t`, *default:* `nil`) - Private Server Certificate. Needs to be specified if trust model is `PRIVATE`. + * `serverCertType` (*type:* `String.t`, *default:* `nil`) - Type of Server Cert (PEM/JKS/.. etc.) + * `trustModel` (*type:* `String.t`, *default:* `nil`) - Trust Model of the SSL connection + * `type` (*type:* `String.t`, *default:* `nil`) - Controls the ssl type for the given connector version. + * `useSsl` (*type:* `boolean()`, *default:* `nil`) - Bool for enabling SSL + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalVariables => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable.t()) + | nil, + :clientCertType => String.t() | nil, + :clientCertificate => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :clientPrivateKey => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :clientPrivateKeyPass => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :privateServerCertificate => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret.t() | nil, + :serverCertType => String.t() | nil, + :trustModel => String.t() | nil, + :type => String.t() | nil, + :useSsl => boolean() | nil + } + + field(:additionalVariables, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1ConfigVariable, + type: :list + ) + + field(:clientCertType) + + field(:clientCertificate, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + + field(:clientPrivateKey, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret) + + field(:clientPrivateKeyPass, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret + ) + + field(:privateServerCertificate, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Secret + ) + + field(:serverCertType) + field(:trustModel) + field(:type) + field(:useSsl) +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1SslConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1SslConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1SslConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_access_token.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_access_token.ex new file mode 100644 index 0000000000..040df092e1 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_access_token.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken do + @moduledoc """ + The access token represents the authorization of a specific application to access specific parts of a user’s data. + + ## Attributes + + * `accessToken` (*type:* `String.t`, *default:* `nil`) - The access token encapsulating the security identity of a process or thread. + * `accessTokenExpireTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The approximate time until the access token retrieved is valid. + * `refreshToken` (*type:* `String.t`, *default:* `nil`) - If the access token will expire, use the refresh token to obtain another access token. + * `refreshTokenExpireTime` (*type:* `DateTime.t`, *default:* `nil`) - The approximate time until the refresh token retrieved is valid. + * `tokenType` (*type:* `String.t`, *default:* `nil`) - Only support "bearer" token in v1 as bearer token is the predominant type used with OAuth 2.0. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessToken => String.t() | nil, + :accessTokenExpireTime => DateTime.t() | nil, + :refreshToken => String.t() | nil, + :refreshTokenExpireTime => DateTime.t() | nil, + :tokenType => String.t() | nil + } + + field(:accessToken) + field(:accessTokenExpireTime, as: DateTime) + field(:refreshToken) + field(:refreshTokenExpireTime, as: DateTime) + field(:tokenType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_attempt_stats.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_attempt_stats.ex new file mode 100644 index 0000000000..2c7f84fea2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_attempt_stats.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats do + @moduledoc """ + Status for the execution attempt. + + ## Attributes + + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The end time of the integration execution for current attempt. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The start time of the integration execution for current attempt. This could be in the future if it's been scheduled. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => DateTime.t() | nil, + :startTime => DateTime.t() | nil + } + + field(:endTime, as: DateTime) + field(:startTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_auth_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_auth_config.ex new file mode 100644 index 0000000000..129b8a3711 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_auth_config.ex @@ -0,0 +1,105 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig do + @moduledoc """ + The AuthConfig resource use to hold channels and connection config data. + + ## Attributes + + * `certificateId` (*type:* `String.t`, *default:* `nil`) - Certificate id for client certificate + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the auth config is created. + * `creatorEmail` (*type:* `String.t`, *default:* `nil`) - The creator's email address. Generated based on the End User Credentials/LOAS role of the user making the call. + * `credentialType` (*type:* `String.t`, *default:* `nil`) - Credential type of the encrypted credential. + * `decryptedCredential` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential.t`, *default:* `nil`) - Raw auth credentials. + * `description` (*type:* `String.t`, *default:* `nil`) - A description of the auth config. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the auth config. + * `encryptedCredential` (*type:* `String.t`, *default:* `nil`) - Auth credential encrypted by Cloud KMS. Can be decrypted as Credential with proper KMS key. + * `expiryNotificationDuration` (*type:* `list(String.t)`, *default:* `nil`) - User can define the time to receive notification after which the auth config becomes invalid. Support up to 30 days. Support granularity in hours. + * `lastModifierEmail` (*type:* `String.t`, *default:* `nil`) - The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. + * `name` (*type:* `String.t`, *default:* `nil`) - Resource name of the SFDC instance projects/{project}/locations/{location}/authConfigs/{authConfig}. + * `overrideValidTime` (*type:* `DateTime.t`, *default:* `nil`) - User provided expiry time to override. For the example of Salesforce, username/password credentials can be valid for 6 months depending on the instance settings. + * `reason` (*type:* `String.t`, *default:* `nil`) - The reason / details of the current status. + * `state` (*type:* `String.t`, *default:* `nil`) - The status of the auth config. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the auth config is modified. + * `validTime` (*type:* `DateTime.t`, *default:* `nil`) - The time until the auth config is valid. Empty or max value is considered the auth config won't expire. + * `visibility` (*type:* `String.t`, *default:* `nil`) - The visibility of the auth config. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificateId => String.t() | nil, + :createTime => DateTime.t() | nil, + :creatorEmail => String.t() | nil, + :credentialType => String.t() | nil, + :decryptedCredential => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential.t() + | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :encryptedCredential => String.t() | nil, + :expiryNotificationDuration => list(String.t()) | nil, + :lastModifierEmail => String.t() | nil, + :name => String.t() | nil, + :overrideValidTime => DateTime.t() | nil, + :reason => String.t() | nil, + :state => String.t() | nil, + :updateTime => DateTime.t() | nil, + :validTime => DateTime.t() | nil, + :visibility => String.t() | nil + } + + field(:certificateId) + field(:createTime, as: DateTime) + field(:creatorEmail) + field(:credentialType) + + field(:decryptedCredential, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential + ) + + field(:description) + field(:displayName) + field(:encryptedCredential) + field(:expiryNotificationDuration, type: :list) + field(:lastModifierEmail) + field(:name) + field(:overrideValidTime, as: DateTime) + field(:reason) + field(:state) + field(:updateTime, as: DateTime) + field(:validTime, as: DateTime) + field(:visibility) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_auth_token.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_auth_token.ex new file mode 100644 index 0000000000..f9d8855b69 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_auth_token.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken do + @moduledoc """ + The credentials to authenticate a user agent with a server that is put in HTTP Authorization request header. + + ## Attributes + + * `token` (*type:* `String.t`, *default:* `nil`) - The token for the auth type. + * `type` (*type:* `String.t`, *default:* `nil`) - Authentication type, e.g. "Basic", "Bearer", etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :token => String.t() | nil, + :type => String.t() | nil + } + + field(:token) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_boolean_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_boolean_parameter_array.ex new file mode 100644 index 0000000000..55dc9e7d4a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_boolean_parameter_array.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray do + @moduledoc """ + This message only contains a field of boolean array. + + ## Attributes + + * `booleanValues` (*type:* `list(boolean())`, *default:* `nil`) - Boolean array. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanValues => list(boolean()) | nil + } + + field(:booleanValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cancel_execution_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cancel_execution_request.ex new file mode 100644 index 0000000000..f56e36ba04 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cancel_execution_request.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest do + @moduledoc """ + Request for cancelling an execution. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cancel_execution_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cancel_execution_response.ex new file mode 100644 index 0000000000..987e05253c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cancel_execution_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse do + @moduledoc """ + Response for cancelling an execution. + + ## Attributes + + * `isCanceled` (*type:* `boolean()`, *default:* `nil`) - True if cancellation performed successfully + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isCanceled => boolean() | nil + } + + field(:isCanceled) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_certificate.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_certificate.ex new file mode 100644 index 0000000000..db64aefc52 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_certificate.ex @@ -0,0 +1,81 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate do + @moduledoc """ + The certificate definition + + ## Attributes + + * `certificateStatus` (*type:* `String.t`, *default:* `nil`) - Status of the certificate + * `credentialId` (*type:* `String.t`, *default:* `nil`) - Immutable. Credential id that will be used to register with trawler INTERNAL_ONLY + * `description` (*type:* `String.t`, *default:* `nil`) - Description of the certificate + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Name of the certificate + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Auto generated primary key + * `rawCertificate` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate.t`, *default:* `nil`) - Input only. Raw client certificate which would be registered with trawler + * `requestorId` (*type:* `String.t`, *default:* `nil`) - Immutable. Requestor ID to be used to register certificate with trawler + * `validEndTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp after which certificate will expire + * `validStartTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp after which certificate will be valid + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificateStatus => String.t() | nil, + :credentialId => String.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :name => String.t() | nil, + :rawCertificate => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate.t() + | nil, + :requestorId => String.t() | nil, + :validEndTime => DateTime.t() | nil, + :validStartTime => DateTime.t() | nil + } + + field(:certificateStatus) + field(:credentialId) + field(:description) + field(:displayName) + field(:name) + + field(:rawCertificate, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate + ) + + field(:requestorId) + field(:validEndTime, as: DateTime) + field(:validStartTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_client_certificate.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_client_certificate.ex new file mode 100644 index 0000000000..e586eac93c --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_client_certificate.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate do + @moduledoc """ + Contains client certificate information + + ## Attributes + + * `encryptedPrivateKey` (*type:* `String.t`, *default:* `nil`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + * `passphrase` (*type:* `String.t`, *default:* `nil`) - 'passphrase' should be left unset if private key is not encrypted. Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key. + * `sslCertificate` (*type:* `String.t`, *default:* `nil`) - The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines. For example, -----BEGIN CERTIFICATE----- MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1 JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE----- + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :encryptedPrivateKey => String.t() | nil, + :passphrase => String.t() | nil, + :sslCertificate => String.t() | nil + } + + field(:encryptedPrivateKey) + field(:passphrase) + field(:sslCertificate) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaClientCertificate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cloud_logging_details.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cloud_logging_details.ex new file mode 100644 index 0000000000..d3e3b00ee4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cloud_logging_details.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails do + @moduledoc """ + Cloud Logging details for execution info + + ## Attributes + + * `cloudLoggingSeverity` (*type:* `String.t`, *default:* `nil`) - Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. + * `enableCloudLogging` (*type:* `boolean()`, *default:* `nil`) - Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudLoggingSeverity => String.t() | nil, + :enableCloudLogging => boolean() | nil + } + + field(:cloudLoggingSeverity) + field(:enableCloudLogging) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cloud_scheduler_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cloud_scheduler_config.ex new file mode 100644 index 0000000000..6e337c9bf6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_cloud_scheduler_config.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig do + @moduledoc """ + Cloud Scheduler Trigger configuration + + ## Attributes + + * `cronTab` (*type:* `String.t`, *default:* `nil`) - Required. The cron tab of cloud scheduler trigger. + * `errorMessage` (*type:* `String.t`, *default:* `nil`) - Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations + * `location` (*type:* `String.t`, *default:* `nil`) - Required. The location where associated cloud scheduler job will be created + * `serviceAccountEmail` (*type:* `String.t`, *default:* `nil`) - Required. Service account used by Cloud Scheduler to trigger the integration at scheduled time + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cronTab => String.t() | nil, + :errorMessage => String.t() | nil, + :location => String.t() | nil, + :serviceAccountEmail => String.t() | nil + } + + field(:cronTab) + field(:errorMessage) + field(:location) + field(:serviceAccountEmail) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_connection_schema_metadata.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_connection_schema_metadata.ex new file mode 100644 index 0000000000..4c090067a5 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_connection_schema_metadata.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata do + @moduledoc """ + Metadata of runtime connection schema. + + ## Attributes + + * `actions` (*type:* `list(String.t)`, *default:* `nil`) - List of actions. + * `entities` (*type:* `list(String.t)`, *default:* `nil`) - List of entity names. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actions => list(String.t()) | nil, + :entities => list(String.t()) | nil + } + + field(:actions, type: :list) + field(:entities, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_coordinate.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_coordinate.ex new file mode 100644 index 0000000000..716e739d71 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_coordinate.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate do + @moduledoc """ + Configuration detail of coordinate, it used for UI + + ## Attributes + + * `x` (*type:* `integer()`, *default:* `nil`) - Required. X axis of the coordinate + * `y` (*type:* `integer()`, *default:* `nil`) - Required. Y axis of the coordinate + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :x => integer() | nil, + :y => integer() | nil + } + + field(:x) + field(:y) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_create_apps_script_project_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_create_apps_script_project_request.ex new file mode 100644 index 0000000000..95ce8daee4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_create_apps_script_project_request.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest do + @moduledoc """ + Request for CreateAppsScriptProject rpc call. + + ## Attributes + + * `appsScriptProject` (*type:* `String.t`, *default:* `nil`) - The name of the Apps Script project to be created. + * `authConfigId` (*type:* `String.t`, *default:* `nil`) - The auth config id necessary to fetch the necessary credentials to create the project for external clients + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appsScriptProject => String.t() | nil, + :authConfigId => String.t() | nil + } + + field(:appsScriptProject) + field(:authConfigId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_create_apps_script_project_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_create_apps_script_project_response.ex new file mode 100644 index 0000000000..fb6c24aa00 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_create_apps_script_project_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse do + @moduledoc """ + Response for CreateAppsScriptProject rpc call. + + ## Attributes + + * `projectId` (*type:* `String.t`, *default:* `nil`) - The created AppsScriptProject ID. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :projectId => String.t() | nil + } + + field(:projectId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_credential.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_credential.ex new file mode 100644 index 0000000000..6c06062bcc --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_credential.ex @@ -0,0 +1,111 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential do + @moduledoc """ + Defines parameters for a single, canonical credential. + + ## Attributes + + * `authToken` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken.t`, *default:* `nil`) - Auth token credential + * `credentialType` (*type:* `String.t`, *default:* `nil`) - Credential type associated with auth config. + * `jwt` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt.t`, *default:* `nil`) - JWT credential + * `oauth2AuthorizationCode` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.t`, *default:* `nil`) - The api_key and oauth2_implicit are not covered in v1 and will be picked up once v1 is implemented. ApiKey api_key = 3; OAuth2 authorization code credential + * `oauth2ClientCredentials` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.t`, *default:* `nil`) - OAuth2Implicit oauth2_implicit = 5; OAuth2 client credentials + * `oauth2ResourceOwnerCredentials` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.t`, *default:* `nil`) - OAuth2 resource owner credentials + * `oidcToken` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken.t`, *default:* `nil`) - Google OIDC ID Token + * `serviceAccountCredentials` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials.t`, *default:* `nil`) - Service account credential + * `usernameAndPassword` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword.t`, *default:* `nil`) - Username and password credential + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authToken => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken.t() | nil, + :credentialType => String.t() | nil, + :jwt => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt.t() | nil, + :oauth2AuthorizationCode => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.t() + | nil, + :oauth2ClientCredentials => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.t() + | nil, + :oauth2ResourceOwnerCredentials => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.t() + | nil, + :oidcToken => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken.t() | nil, + :serviceAccountCredentials => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials.t() + | nil, + :usernameAndPassword => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword.t() + | nil + } + + field(:authToken, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthToken + ) + + field(:credentialType) + field(:jwt, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt) + + field(:oauth2AuthorizationCode, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode + ) + + field(:oauth2ClientCredentials, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials + ) + + field(:oauth2ResourceOwnerCredentials, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials + ) + + field(:oidcToken, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken + ) + + field(:serviceAccountCredentials, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials + ) + + field(:usernameAndPassword, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCredential do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_double_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_double_parameter_array.ex new file mode 100644 index 0000000000..2094177e30 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_double_parameter_array.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray do + @moduledoc """ + This message only contains a field of double number array. + + ## Attributes + + * `doubleValues` (*type:* `list(float())`, *default:* `nil`) - Double number array. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :doubleValues => list(float()) | nil + } + + field(:doubleValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_download_integration_version_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_download_integration_version_response.ex new file mode 100644 index 0000000000..e81ebb0926 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_download_integration_version_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse do + @moduledoc """ + Response for DownloadIntegrationVersion. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - String representation of the requested file. + * `files` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile.t)`, *default:* `nil`) - List containing String represendation for multiple file with type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :files => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile.t() + ) + | nil + } + + field(:content) + + field(:files, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_enumerate_connector_platform_regions_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_enumerate_connector_platform_regions_response.ex new file mode 100644 index 0000000000..05feb52ad0 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_enumerate_connector_platform_regions_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse do + @moduledoc """ + Response containing all provisioned regions for Connector Platform. + + ## Attributes + + * `regions` (*type:* `list(String.t)`, *default:* `nil`) - All regions where Connector Platform is provisioned. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :regions => list(String.t()) | nil + } + + field(:regions, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_error_catcher_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_error_catcher_config.ex new file mode 100644 index 0000000000..fa037511ab --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_error_catcher_config.ex @@ -0,0 +1,77 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig do + @moduledoc """ + Configuration detail of a error catch task + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. User-provided description intended to give more business context about the error catcher config. + * `errorCatcherId` (*type:* `String.t`, *default:* `nil`) - Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow + * `errorCatcherNumber` (*type:* `String.t`, *default:* `nil`) - Required. A number to uniquely identify each error catcher config within the workflow on UI. + * `label` (*type:* `String.t`, *default:* `nil`) - Optional. The user created label for a particular error catcher. Optional. + * `position` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.t`, *default:* `nil`) - Optional. Informs the front-end application where to draw this error catcher config on the UI. + * `startErrorTasks` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.t)`, *default:* `nil`) - Required. The set of start tasks that are to be executed for the error catch flow + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :errorCatcherId => String.t() | nil, + :errorCatcherNumber => String.t() | nil, + :label => String.t() | nil, + :position => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.t() + | nil, + :startErrorTasks => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.t()) + | nil + } + + field(:description) + field(:errorCatcherId) + field(:errorCatcherNumber) + field(:label) + + field(:position, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate + ) + + field(:startErrorTasks, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_event_parameter.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_event_parameter.ex new file mode 100644 index 0000000000..15fd832973 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_event_parameter.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter do + @moduledoc """ + This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. + * `masked` (*type:* `boolean()`, *default:* `nil`) - True if this parameter should be masked in the logs + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t`, *default:* `nil`) - Values for the defined keys. Each value can either be string, int, double or any proto message. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :masked => boolean() | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() | nil + } + + field(:key) + field(:masked) + field(:value, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_event_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_event_response.ex new file mode 100644 index 0000000000..96e66421f8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_event_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse do + @moduledoc """ + The response for executing an integration. + + ## Attributes + + * `executionId` (*type:* `String.t`, *default:* `nil`) - The id of the execution corresponding to this run of integration. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :executionId => String.t() | nil + } + + field(:executionId) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteEventResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_integrations_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_integrations_request.ex new file mode 100644 index 0000000000..cedca42894 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_integrations_request.ex @@ -0,0 +1,94 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest do + @moduledoc """ + The request for executing an integration. + + ## Attributes + + * `doNotPropagateError` (*type:* `boolean()`, *default:* `nil`) - Optional. Flag to determine how to should propagate errors. If this flag is set to be true, it will not throw an exception. Instead, it will return a {@link ExecuteIntegrationsResponse} with an execution id and error messages as PostWithTriggerIdExecutionException in {@link EventParameters}. The flag is set to be false by default. + * `executionId` (*type:* `String.t`, *default:* `nil`) - Optional. The id of the ON_HOLD execution to be resumed. + * `inputParameters` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t}`, *default:* `nil`) - Optional. Input parameters used by integration execution. + * `parameterEntries` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t)`, *default:* `nil`) - Optional. Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. + * `parameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - Optional. Passed in as parameters to each integration execution. Redacted + * `requestId` (*type:* `String.t`, *default:* `nil`) - Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. + * `triggerId` (*type:* `String.t`, *default:* `nil`) - Required. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id). The trigger_id is in the format of `api_trigger/TRIGGER_NAME`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :doNotPropagateError => boolean() | nil, + :executionId => String.t() | nil, + :inputParameters => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() + } + | nil, + :parameterEntries => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + ) + | nil, + :parameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :requestId => String.t() | nil, + :triggerId => String.t() | nil + } + + field(:doNotPropagateError) + field(:executionId) + + field(:inputParameters, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType, + type: :map + ) + + field(:parameterEntries, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :list + ) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:requestId) + field(:triggerId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_integrations_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_integrations_response.ex new file mode 100644 index 0000000000..2614128a6a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execute_integrations_response.ex @@ -0,0 +1,78 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse do + @moduledoc """ + The response for executing an integration. + + ## Attributes + + * `eventParameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t`, *default:* `nil`) - Details for the integration that were executed. + * `executionFailed` (*type:* `boolean()`, *default:* `nil`) - Is true if any execution in the integration failed. False otherwise. + * `executionId` (*type:* `String.t`, *default:* `nil`) - The id of the execution corresponding to this run of integration. + * `outputParameters` (*type:* `map()`, *default:* `nil`) - OUTPUT parameters in format of Map. Where Key is the name of the parameter. Note: Name of the system generated parameters are wrapped by backtick(`) to distinguish them from the user defined parameters. + * `parameterEntries` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t)`, *default:* `nil`) - Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventParameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters.t() + | nil, + :executionFailed => boolean() | nil, + :executionId => String.t() | nil, + :outputParameters => map() | nil, + :parameterEntries => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + ) + | nil + } + + field(:eventParameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventParameters + ) + + field(:executionFailed) + field(:executionId) + field(:outputParameters, type: :map) + + field(:parameterEntries, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution.ex new file mode 100644 index 0000000000..98a770b22f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution.ex @@ -0,0 +1,150 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution do + @moduledoc """ + The Execution resource contains detailed information of an individual integration execution. + + ## Attributes + + * `cloudLoggingDetails` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails.t`, *default:* `nil`) - Cloud Logging details for the integration version + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Created time of the execution. + * `directSubExecutions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution.t)`, *default:* `nil`) - Direct sub executions of the following Execution. + * `eventExecutionDetails` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails.t`, *default:* `nil`) - The execution info about this event. + * `executionDetails` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails.t`, *default:* `nil`) - Detailed info of this execution. + * `executionMethod` (*type:* `String.t`, *default:* `nil`) - The ways user posts this event. + * `integrationVersionState` (*type:* `String.t`, *default:* `nil`) - Output only. State of the integration version + * `name` (*type:* `String.t`, *default:* `nil`) - Auto-generated primary key. + * `requestParameters` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t}`, *default:* `nil`) - Event parameters come in as part of the request. + * `requestParams` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t)`, *default:* `nil`) - Event parameters come in as part of the request. + * `responseParameters` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t}`, *default:* `nil`) - Event parameters returned as part of the response. + * `responseParams` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t)`, *default:* `nil`) - Event parameters come out as part of the response. + * `snapshotNumber` (*type:* `String.t`, *default:* `nil`) - Output only. An increasing sequence that is set when a new snapshot is created + * `triggerId` (*type:* `String.t`, *default:* `nil`) - The trigger id of the integration trigger config. If both trigger_id and client_id is present, the integration is executed from the start tasks provided by the matching trigger config otherwise it is executed from the default start tasks. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Last modified time of the execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudLoggingDetails => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails.t() + | nil, + :createTime => DateTime.t() | nil, + :directSubExecutions => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution.t()) + | nil, + :eventExecutionDetails => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails.t() + | nil, + :executionDetails => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails.t() + | nil, + :executionMethod => String.t() | nil, + :integrationVersionState => String.t() | nil, + :name => String.t() | nil, + :requestParameters => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() + } + | nil, + :requestParams => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + ) + | nil, + :responseParameters => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() + } + | nil, + :responseParams => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + ) + | nil, + :snapshotNumber => String.t() | nil, + :triggerId => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:cloudLoggingDetails, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails + ) + + field(:createTime, as: DateTime) + + field(:directSubExecutions, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution, + type: :list + ) + + field(:eventExecutionDetails, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventExecutionDetails + ) + + field(:executionDetails, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails + ) + + field(:executionMethod) + field(:integrationVersionState) + field(:name) + + field(:requestParameters, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType, + type: :map + ) + + field(:requestParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :list + ) + + field(:responseParameters, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType, + type: :map + ) + + field(:responseParams, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :list + ) + + field(:snapshotNumber) + field(:triggerId) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_details.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_details.ex new file mode 100644 index 0000000000..7ce6893965 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_details.ex @@ -0,0 +1,77 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails do + @moduledoc """ + Contains the details of the execution info: this includes the tasks execution details plus the event execution statistics. + + ## Attributes + + * `attemptStats` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats.t)`, *default:* `nil`) - List of Start and end time of the execution attempts. + * `eventExecutionSnapshotsSize` (*type:* `String.t`, *default:* `nil`) - Total size of all event_execution_snapshots for an execution + * `executionSnapshots` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot.t)`, *default:* `nil`) - List of snapshots taken during the execution. + * `state` (*type:* `String.t`, *default:* `nil`) - Status of the execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attemptStats => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats.t() + ) + | nil, + :eventExecutionSnapshotsSize => String.t() | nil, + :executionSnapshots => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot.t() + ) + | nil, + :state => String.t() | nil + } + + field(:attemptStats, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats, + type: :list + ) + + field(:eventExecutionSnapshotsSize) + + field(:executionSnapshots, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot, + type: :list + ) + + field(:state) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_snapshot.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_snapshot.ex new file mode 100644 index 0000000000..7e68a50509 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_snapshot.ex @@ -0,0 +1,83 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot do + @moduledoc """ + Contains the snapshot of the execution for a given checkpoint. + + ## Attributes + + * `checkpointTaskNumber` (*type:* `String.t`, *default:* `nil`) - Indicates "after which checkpoint task's execution" this snapshot is taken. + * `executionSnapshotMetadata` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata.t`, *default:* `nil`) - Metadata of the execution snapshot. + * `params` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t}`, *default:* `nil`) - Parameters used during the execution. + * `taskExecutionDetails` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails.t)`, *default:* `nil`) - All of the task execution details at the given point of time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :checkpointTaskNumber => String.t() | nil, + :executionSnapshotMetadata => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata.t() + | nil, + :params => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() + } + | nil, + :taskExecutionDetails => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails.t() + ) + | nil + } + + field(:checkpointTaskNumber) + + field(:executionSnapshotMetadata, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata + ) + + field(:params, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType, + type: :map + ) + + field(:taskExecutionDetails, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshot do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_snapshot_execution_snapshot_metadata.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_snapshot_execution_snapshot_metadata.ex new file mode 100644 index 0000000000..a0bea54f85 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_execution_snapshot_execution_snapshot_metadata.ex @@ -0,0 +1,74 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata do + @moduledoc """ + Metadata of the execution snapshot. + + ## Attributes + + * `ancestorIterationNumbers` (*type:* `list(String.t)`, *default:* `nil`) - Ancestor iteration number for the task(it will only be non-empty if the task is under 'private workflow') + * `ancestorTaskNumbers` (*type:* `list(String.t)`, *default:* `nil`) - Ancestor task number for the task(it will only be non-empty if the task is under 'private workflow') + * `executionAttempt` (*type:* `integer()`, *default:* `nil`) - the execution attempt number this snapshot belongs to. + * `integrationName` (*type:* `String.t`, *default:* `nil`) - The direct integration which the event execution snapshots belongs to + * `task` (*type:* `String.t`, *default:* `nil`) - the task name associated with this snapshot. + * `taskAttempt` (*type:* `integer()`, *default:* `nil`) - the task attempt number this snapshot belongs to. + * `taskLabel` (*type:* `String.t`, *default:* `nil`) - the task label associated with this snapshot. Could be empty. + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - The task number associated with this snapshot. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :ancestorIterationNumbers => list(String.t()) | nil, + :ancestorTaskNumbers => list(String.t()) | nil, + :executionAttempt => integer() | nil, + :integrationName => String.t() | nil, + :task => String.t() | nil, + :taskAttempt => integer() | nil, + :taskLabel => String.t() | nil, + :taskNumber => String.t() | nil + } + + field(:ancestorIterationNumbers, type: :list) + field(:ancestorTaskNumbers, type: :list) + field(:executionAttempt) + field(:integrationName) + field(:task) + field(:taskAttempt) + field(:taskLabel) + field(:taskNumber) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecutionSnapshotExecutionSnapshotMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_failure_policy.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_failure_policy.ex new file mode 100644 index 0000000000..e73afcf795 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_failure_policy.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy do + @moduledoc """ + Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). + + ## Attributes + + * `intervalTime` (*type:* `DateTime.t`, *default:* `nil`) - Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. + * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. + * `retryStrategy` (*type:* `String.t`, *default:* `nil`) - Defines what happens to the task upon failure. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intervalTime => DateTime.t() | nil, + :maxRetries => integer() | nil, + :retryStrategy => String.t() | nil + } + + field(:intervalTime, as: DateTime) + field(:maxRetries) + field(:retryStrategy) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_generate_token_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_generate_token_response.ex new file mode 100644 index 0000000000..c6ad7a083d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_generate_token_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse do + @moduledoc """ + Returns success or error message + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - The message that notifies the user if the request succeeded or not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil + } + + field(:message) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaGenerateTokenResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_int_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_int_parameter_array.ex new file mode 100644 index 0000000000..50ef50c036 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_int_parameter_array.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray do + @moduledoc """ + This message only contains a field of integer array. + + ## Attributes + + * `intValues` (*type:* `list(String.t)`, *default:* `nil`) - Integer array. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intValues => list(String.t()) | nil + } + + field(:intValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration.ex new file mode 100644 index 0000000000..9bfa279724 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration do + @moduledoc """ + The integration definition. + + ## Attributes + + * `active` (*type:* `boolean()`, *default:* `nil`) - Required. If any integration version is published. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The resource name of the integration. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :active => boolean() | nil, + :description => String.t() | nil, + :name => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:active) + field(:description) + field(:name) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_alert_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_alert_config.ex new file mode 100644 index 0000000000..8439cd4ac8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_alert_config.ex @@ -0,0 +1,81 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig do + @moduledoc """ + Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. + + ## Attributes + + * `aggregationPeriod` (*type:* `String.t`, *default:* `nil`) - The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. + * `alertThreshold` (*type:* `integer()`, *default:* `nil`) - For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. + * `disableAlert` (*type:* `boolean()`, *default:* `nil`) - Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. + * `durationThreshold` (*type:* `String.t`, *default:* `nil`) - Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. + * `metricType` (*type:* `String.t`, *default:* `nil`) - The type of metric. + * `onlyFinalAttempt` (*type:* `boolean()`, *default:* `nil`) - For either events or tasks, depending on the type of alert, count only final attempts, not retries. + * `thresholdType` (*type:* `String.t`, *default:* `nil`) - The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. + * `thresholdValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.t`, *default:* `nil`) - The metric value, above or below which the alert should be triggered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregationPeriod => String.t() | nil, + :alertThreshold => integer() | nil, + :disableAlert => boolean() | nil, + :displayName => String.t() | nil, + :durationThreshold => String.t() | nil, + :metricType => String.t() | nil, + :onlyFinalAttempt => boolean() | nil, + :thresholdType => String.t() | nil, + :thresholdValue => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.t() + | nil + } + + field(:aggregationPeriod) + field(:alertThreshold) + field(:disableAlert) + field(:displayName) + field(:durationThreshold) + field(:metricType) + field(:onlyFinalAttempt) + field(:thresholdType) + + field(:thresholdValue, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_alert_config_threshold_value.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_alert_config_threshold_value.ex new file mode 100644 index 0000000000..b4d29ef4d4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_alert_config_threshold_value.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue do + @moduledoc """ + The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. + + ## Attributes + + * `absolute` (*type:* `String.t`, *default:* `nil`) - Absolute value threshold. + * `percentage` (*type:* `integer()`, *default:* `nil`) - Percentage threshold. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :absolute => String.t() | nil, + :percentage => integer() | nil + } + + field(:absolute) + field(:percentage) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_config_parameter.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_config_parameter.ex new file mode 100644 index 0000000000..5c9d688b8d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_config_parameter.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter do + @moduledoc """ + Integration Config Parameter is defined in the integration config and are used to provide external configuration for integration. It provide information about data types of the expected parameters and provide any default values or value. They can also be used to add custom attributes. + + ## Attributes + + * `parameter` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter.t`, *default:* `nil`) - Optional. Integration Parameter to provide the default value, data type and attributes required for the Integration config variables. + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t`, *default:* `nil`) - Values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :parameter => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter.t() + | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() | nil + } + + field(:parameter, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter + ) + + field(:value, as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_parameter.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_parameter.ex new file mode 100644 index 0000000000..2212cb4eb2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_parameter.ex @@ -0,0 +1,86 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter do + @moduledoc """ + Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. + + ## Attributes + + * `containsLargeData` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this variable contains large data and need to be uploaded to Cloud Storage. + * `dataType` (*type:* `String.t`, *default:* `nil`) - Type of the parameter. + * `defaultValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t`, *default:* `nil`) - Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". + * `inputOutputType` (*type:* `String.t`, *default:* `nil`) - Specifies the input/output type for the parameter. + * `isTransient` (*type:* `boolean()`, *default:* `nil`) - Whether this parameter is a transient parameter. + * `jsonSchema` (*type:* `String.t`, *default:* `nil`) - This schema will be used to validate runtime JSON-typed values of this parameter. + * `key` (*type:* `String.t`, *default:* `nil`) - Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. + * `masked` (*type:* `boolean()`, *default:* `nil`) - True if this parameter should be masked in the logs + * `producer` (*type:* `String.t`, *default:* `nil`) - The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. + * `searchable` (*type:* `boolean()`, *default:* `nil`) - Searchable in the execution log or not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containsLargeData => boolean() | nil, + :dataType => String.t() | nil, + :defaultValue => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() | nil, + :displayName => String.t() | nil, + :inputOutputType => String.t() | nil, + :isTransient => boolean() | nil, + :jsonSchema => String.t() | nil, + :key => String.t() | nil, + :masked => boolean() | nil, + :producer => String.t() | nil, + :searchable => boolean() | nil + } + + field(:containsLargeData) + field(:dataType) + + field(:defaultValue, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType + ) + + field(:displayName) + field(:inputOutputType) + field(:isTransient) + field(:jsonSchema) + field(:key) + field(:masked) + field(:producer) + field(:searchable) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_template_version.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_template_version.ex new file mode 100644 index 0000000000..9e47b5128a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_template_version.ex @@ -0,0 +1,131 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion do + @moduledoc """ + IntegrationTemplateVersion definition. An IntegrationTemplateVersion provides configurations required to construct an IntegrationVersion. It cannot be executed directly like an Integration. Users can create IntegrationTemplateVersions using Integrations. These Templates can be shared by users across GCP projects. Next available: 17 + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + * `databasePersistencePolicy` (*type:* `String.t`, *default:* `nil`) - Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The templateversion description. Permitted format is alphanumeric with underscores and no spaces. + * `enableVariableMasking` (*type:* `boolean()`, *default:* `nil`) - Optional. True if variable masking feature should be turned on for generated workflows + * `errorCatcherConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig.t)`, *default:* `nil`) - Optional. Error Catch Task configuration for the IntegrationTemplateVersion. It's optional. + * `lastModifierEmail` (*type:* `String.t`, *default:* `nil`) - Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Auto-generated primary key. Format: projects/{project}/locations/{location}/products/{product}/integrationtemplates/{integrationtemplate}/versions/{version} + * `parentIntegrationVersionId` (*type:* `String.t`, *default:* `nil`) - Optional. ID of the IntegrationVersion that was used to create this IntegrationTemplateVersion + * `snapshotNumber` (*type:* `String.t`, *default:* `nil`) - Output only. An increasing sequence that is set when a new snapshot is created. + * `status` (*type:* `String.t`, *default:* `nil`) - Optional. Generated by eventbus. User should not set it as an input. + * `taskConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig.t)`, *default:* `nil`) - Optional. Task configuration for the IntegrationTemplateVersion. It's optional, but the IntegrationTemplateVersion doesn't do anything without task_configs. + * `teardown` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown.t`, *default:* `nil`) - Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. + * `templateParameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters.t`, *default:* `nil`) - Optional. Parameters that are expected to be passed to the IntegrationTemplateVersion when an event is triggered. This consists of all the parameters that are expected in the IntegrationTemplateVersion execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. + * `triggerConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig.t)`, *default:* `nil`) - Optional. Trigger configurations. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + * `userLabel` (*type:* `String.t`, *default:* `nil`) - Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :databasePersistencePolicy => String.t() | nil, + :description => String.t() | nil, + :enableVariableMasking => boolean() | nil, + :errorCatcherConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig.t() + ) + | nil, + :lastModifierEmail => String.t() | nil, + :name => String.t() | nil, + :parentIntegrationVersionId => String.t() | nil, + :snapshotNumber => String.t() | nil, + :status => String.t() | nil, + :taskConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig.t() + ) + | nil, + :teardown => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown.t() | nil, + :templateParameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters.t() + | nil, + :triggerConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig.t() + ) + | nil, + :updateTime => DateTime.t() | nil, + :userLabel => String.t() | nil + } + + field(:createTime, as: DateTime) + field(:databasePersistencePolicy) + field(:description) + field(:enableVariableMasking) + + field(:errorCatcherConfigs, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig, + type: :list + ) + + field(:lastModifierEmail) + field(:name) + field(:parentIntegrationVersionId) + field(:snapshotNumber) + field(:status) + + field(:taskConfigs, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig, + type: :list + ) + + field(:teardown, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown) + + field(:templateParameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters + ) + + field(:triggerConfigs, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig, + type: :list + ) + + field(:updateTime, as: DateTime) + field(:userLabel) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_version.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_version.ex new file mode 100644 index 0000000000..286cc7a121 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_integration_version.ex @@ -0,0 +1,194 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion do + @moduledoc """ + The integration version definition. + + ## Attributes + + * `cloudLoggingDetails` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails.t`, *default:* `nil`) - Optional. Cloud Logging details for the integration version + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + * `databasePersistencePolicy` (*type:* `String.t`, *default:* `nil`) - Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The integration description. + * `enableVariableMasking` (*type:* `boolean()`, *default:* `nil`) - Optional. True if variable masking feature should be turned on for this version + * `errorCatcherConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig.t)`, *default:* `nil`) - Optional. Error Catch Task configuration for the integration. It's optional. + * `integrationConfigParameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter.t)`, *default:* `nil`) - Optional. Config Parameters that are expected to be passed to the integration when an integration is published. This consists of all the parameters that are expected to provide configuration in the integration execution. This gives the user the ability to provide default values, value, add information like connection url, project based configuration value and also provide data types of each parameter. + * `integrationParameters` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter.t)`, *default:* `nil`) - Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. + * `integrationParametersInternal` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters.t`, *default:* `nil`) - Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. + * `lastModifierEmail` (*type:* `String.t`, *default:* `nil`) - Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. + * `lockHolder` (*type:* `String.t`, *default:* `nil`) - Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Auto-generated primary key. + * `origin` (*type:* `String.t`, *default:* `nil`) - Optional. The origin that indicates where this integration is coming from. + * `parentTemplateId` (*type:* `String.t`, *default:* `nil`) - Optional. The id of the template which was used to create this integration_version. + * `runAsServiceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. + * `snapshotNumber` (*type:* `String.t`, *default:* `nil`) - Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. User should not set it as an input. + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Generated by eventbus. User should not set it as an input. + * `taskConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig.t)`, *default:* `nil`) - Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. + * `taskConfigsInternal` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig.t)`, *default:* `nil`) - Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. + * `teardown` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown.t`, *default:* `nil`) - Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. + * `triggerConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig.t)`, *default:* `nil`) - Optional. Trigger configurations. + * `triggerConfigsInternal` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig.t)`, *default:* `nil`) - Optional. Trigger configurations. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + * `userLabel` (*type:* `String.t`, *default:* `nil`) - Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cloudLoggingDetails => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails.t() + | nil, + :createTime => DateTime.t() | nil, + :databasePersistencePolicy => String.t() | nil, + :description => String.t() | nil, + :enableVariableMasking => boolean() | nil, + :errorCatcherConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig.t() + ) + | nil, + :integrationConfigParameters => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter.t() + ) + | nil, + :integrationParameters => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter.t() + ) + | nil, + :integrationParametersInternal => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters.t() + | nil, + :lastModifierEmail => String.t() | nil, + :lockHolder => String.t() | nil, + :name => String.t() | nil, + :origin => String.t() | nil, + :parentTemplateId => String.t() | nil, + :runAsServiceAccount => String.t() | nil, + :snapshotNumber => String.t() | nil, + :state => String.t() | nil, + :status => String.t() | nil, + :taskConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig.t() + ) + | nil, + :taskConfigsInternal => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig.t() + ) + | nil, + :teardown => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown.t() | nil, + :triggerConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig.t() + ) + | nil, + :triggerConfigsInternal => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig.t() + ) + | nil, + :updateTime => DateTime.t() | nil, + :userLabel => String.t() | nil + } + + field(:cloudLoggingDetails, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudLoggingDetails + ) + + field(:createTime, as: DateTime) + field(:databasePersistencePolicy) + field(:description) + field(:enableVariableMasking) + + field(:errorCatcherConfigs, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaErrorCatcherConfig, + type: :list + ) + + field(:integrationConfigParameters, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationConfigParameter, + type: :list + ) + + field(:integrationParameters, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationParameter, + type: :list + ) + + field(:integrationParametersInternal, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoWorkflowParameters + ) + + field(:lastModifierEmail) + field(:lockHolder) + field(:name) + field(:origin) + field(:parentTemplateId) + field(:runAsServiceAccount) + field(:snapshotNumber) + field(:state) + field(:status) + + field(:taskConfigs, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig, + type: :list + ) + + field(:taskConfigsInternal, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTaskConfig, + type: :list + ) + + field(:teardown, as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoTeardown) + + field(:triggerConfigs, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig, + type: :list + ) + + field(:triggerConfigsInternal, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig, + type: :list + ) + + field(:updateTime, as: DateTime) + field(:userLabel) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_jwt.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_jwt.ex new file mode 100644 index 0000000000..ebfb661e33 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_jwt.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt do + @moduledoc """ + Represents JSON web token(JWT), which is a compact, URL-safe means of representing claims to be transferred between two parties, enabling the claims to be digitally signed or integrity protected. + + ## Attributes + + * `jwt` (*type:* `String.t`, *default:* `nil`) - The token calculated by the header, payload and signature. + * `jwtHeader` (*type:* `String.t`, *default:* `nil`) - Identifies which algorithm is used to generate the signature. + * `jwtPayload` (*type:* `String.t`, *default:* `nil`) - Contains a set of claims. The JWT specification defines seven Registered Claim Names which are the standard fields commonly included in tokens. Custom claims are usually also included, depending on the purpose of the token. + * `secret` (*type:* `String.t`, *default:* `nil`) - User's pre-shared secret to sign the token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :jwt => String.t() | nil, + :jwtHeader => String.t() | nil, + :jwtPayload => String.t() | nil, + :secret => String.t() | nil + } + + field(:jwt) + field(:jwtHeader) + field(:jwtPayload) + field(:secret) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaJwt do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_lift_suspension_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_lift_suspension_request.ex new file mode 100644 index 0000000000..3bf5a04e59 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_lift_suspension_request.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionRequest do + @moduledoc """ + Request for lift Suspension + + ## Attributes + + * `suspensionResult` (*type:* `String.t`, *default:* `nil`) - User passed in suspension result and will be used to control workflow execution branching behavior by setting up corresponnding edge condition with suspension result. For example, if you want to lift the suspension, you can pass "Approved", or if you want to reject the suspension and terminate workfloe execution, you can pass "Rejected" and terminate the workflow execution with configuring the edge condition. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :suspensionResult => String.t() | nil + } + + field(:suspensionResult) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_lift_suspension_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_lift_suspension_response.ex new file mode 100644 index 0000000000..9ab906be4b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_lift_suspension_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse do + @moduledoc """ + Response of lift Suspense + + ## Attributes + + * `eventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Execution Id that will be returned + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventExecutionInfoId => String.t() | nil + } + + field(:eventExecutionInfoId) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLiftSuspensionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_link_apps_script_project_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_link_apps_script_project_request.ex new file mode 100644 index 0000000000..a1d5ef0720 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_link_apps_script_project_request.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest do + @moduledoc """ + Request for LinkAppsScriptProject rpc call. + + ## Attributes + + * `scriptId` (*type:* `String.t`, *default:* `nil`) - The id of the Apps Script project to be linked. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :scriptId => String.t() | nil + } + + field(:scriptId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_link_apps_script_project_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_link_apps_script_project_response.ex new file mode 100644 index 0000000000..8cbb24640f --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_link_apps_script_project_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse do + @moduledoc """ + Response for LinkAppsScriptProject rpc call. + + ## Attributes + + * `scriptId` (*type:* `String.t`, *default:* `nil`) - The id of the linked Apps Script project. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :scriptId => String.t() | nil + } + + field(:scriptId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_auth_configs_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_auth_configs_response.ex new file mode 100644 index 0000000000..4d44571955 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_auth_configs_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse do + @moduledoc """ + Response to list AuthConfigs. + + ## Attributes + + * `authConfigs` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t)`, *default:* `nil`) - The list of AuthConfigs retrieved. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token used to retrieve the next page of results. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authConfigs => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:authConfigs, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAuthConfig, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListAuthConfigsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_certificates_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_certificates_response.ex new file mode 100644 index 0000000000..db0ad49adc --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_certificates_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse do + @moduledoc """ + Response to list Certificates. + + ## Attributes + + * `certificates` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t)`, *default:* `nil`) - The list of Certificates retrieved. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token used to retrieve the next page of results. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificates => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:certificates, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCertificate, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListCertificatesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_connections_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_connections_response.ex new file mode 100644 index 0000000000..162221ce8d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_connections_response.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse do + @moduledoc """ + Response containing Connections listed by region. + + ## Attributes + + * `connections` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Connection.t)`, *default:* `nil`) - Connections. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Next page token. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connections => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Connection.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:connections, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudConnectorsV1Connection, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListConnectionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_executions_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_executions_response.ex new file mode 100644 index 0000000000..148e2ea9f4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_executions_response.ex @@ -0,0 +1,72 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse do + @moduledoc """ + Response for listing the integration execution data. + + ## Attributes + + * `executionInfos` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo.t)`, *default:* `nil`) - Required. The detailed information of requested executions. + * `executions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution.t)`, *default:* `nil`) - The detailed information of requested executions + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token used to retrieve the next page results. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :executionInfos => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo.t() + ) + | nil, + :executions => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution.t()) + | nil, + :nextPageToken => String.t() | nil + } + + field(:executionInfos, + as: + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoEventExecutionInfo, + type: :list + ) + + field(:executions, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaExecution, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListExecutionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integration_template_versions_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integration_template_versions_response.ex new file mode 100644 index 0000000000..6402e114cd --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integration_template_versions_response.ex @@ -0,0 +1,65 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse do + @moduledoc """ + Response for IntegrationTemplateVersions.ListIntegrationTemplateVersions. + + ## Attributes + + * `integrationTemplateVersions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.t)`, *default:* `nil`) - The IntegrationTemplateVersions which match the request. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :integrationTemplateVersions => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:integrationTemplateVersions, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integration_versions_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integration_versions_response.ex new file mode 100644 index 0000000000..b036076901 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integration_versions_response.ex @@ -0,0 +1,67 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse do + @moduledoc """ + Response for ListIntegrationVersions. + + ## Attributes + + * `integrationVersions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t)`, *default:* `nil`) - The integrations which match the request. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + * `noPermission` (*type:* `boolean()`, *default:* `nil`) - Whether the user has no permission on the version or not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :integrationVersions => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t() + ) + | nil, + :nextPageToken => String.t() | nil, + :noPermission => boolean() | nil + } + + field(:integrationVersions, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion, + type: :list + ) + + field(:nextPageToken) + field(:noPermission) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integrations_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integrations_response.ex new file mode 100644 index 0000000000..31dd8e0843 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_integrations_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse do + @moduledoc """ + Response for ListIntegrations. + + ## Attributes + + * `integrations` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration.t)`, *default:* `nil`) - The integrations which match the request. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The next page token for the response. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :integrations => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration.t() + ) + | nil, + :nextPageToken => String.t() | nil + } + + field(:integrations, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegration, + type: :list + ) + + field(:nextPageToken) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListIntegrationsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_runtime_action_schemas_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_runtime_action_schemas_response.ex new file mode 100644 index 0000000000..02982b4f06 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_runtime_action_schemas_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse do + @moduledoc """ + Response for listing RuntimeActionSchemas for a specific Connection. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Next page token. + * `runtimeActionSchemas` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema.t)`, *default:* `nil`) - Runtime action schemas. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :runtimeActionSchemas => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema.t() + ) + | nil + } + + field(:nextPageToken) + + field(:runtimeActionSchemas, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_runtime_entity_schemas_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_runtime_entity_schemas_response.ex new file mode 100644 index 0000000000..615cef8d2b --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_runtime_entity_schemas_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse do + @moduledoc """ + Response for listing RuntimeEntitySchemas for a specific Connection. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Next page token. + * `runtimeEntitySchemas` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema.t)`, *default:* `nil`) - Runtime entity schemas. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :runtimeEntitySchemas => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema.t() + ) + | nil + } + + field(:nextPageToken) + + field(:runtimeEntitySchemas, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_sfdc_channels_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_sfdc_channels_response.ex new file mode 100644 index 0000000000..e316da2453 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_sfdc_channels_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse do + @moduledoc """ + Response to list SfdcChannels. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token used to retrieve the next page of results. + * `sfdcChannels` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t)`, *default:* `nil`) - The list of SfdcChannels retrieved. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :sfdcChannels => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.t() + ) + | nil + } + + field(:nextPageToken) + + field(:sfdcChannels, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_sfdc_instances_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_sfdc_instances_response.ex new file mode 100644 index 0000000000..894c2490f3 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_sfdc_instances_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse do + @moduledoc """ + Response to list SfdcInstances. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token used to retrieve the next page of results. + * `sfdcInstances` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t)`, *default:* `nil`) - The list of SfdcInstances retrieved. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :sfdcInstances => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.t() + ) + | nil + } + + field(:nextPageToken) + + field(:sfdcInstances, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance, + type: :list + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_suspensions_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_suspensions_response.ex new file mode 100644 index 0000000000..12d9d3c7aa --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_list_suspensions_response.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse do + @moduledoc """ + Response for Suspensions.ListSuspensions. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to retrieve the next page of results. + * `suspensions` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension.t)`, *default:* `nil`) - The suspensions for the relevant execution which the caller has permissions to view and resolve. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :suspensions => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension.t() + ) + | nil + } + + field(:nextPageToken) + + field(:suspensions, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaListSuspensionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_next_task.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_next_task.ex new file mode 100644 index 0000000000..1f4a9d54b4 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_next_task.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask do + @moduledoc """ + The task that is next in line to be executed, if the condition specified evaluated to true. + + ## Attributes + + * `condition` (*type:* `String.t`, *default:* `nil`) - Standard filter expression for this task to become an eligible next task. + * `description` (*type:* `String.t`, *default:* `nil`) - User-provided description intended to give additional business context about the task. + * `displayName` (*type:* `String.t`, *default:* `nil`) - User-provided label that is attached to this edge in the UI. + * `taskConfigId` (*type:* `String.t`, *default:* `nil`) - ID of the next task. + * `taskId` (*type:* `String.t`, *default:* `nil`) - Task number of the next task. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :condition => String.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :taskConfigId => String.t() | nil, + :taskId => String.t() | nil + } + + field(:condition) + field(:description) + field(:displayName) + field(:taskConfigId) + field(:taskId) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_authorization_code.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_authorization_code.ex new file mode 100644 index 0000000000..92c0aeb744 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_authorization_code.ex @@ -0,0 +1,97 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode do + @moduledoc """ + The OAuth Type where the client sends request with the client id and requested scopes to auth endpoint. User sees a consent screen and auth code is received at specified redirect url afterwards. The auth code is then combined with the client id and secret and sent to the token endpoint in exchange for the access and refresh token. The refresh token can be used to fetch new access tokens. + + ## Attributes + + * `accessToken` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t`, *default:* `nil`) - The access token received from the token endpoint. + * `applyReauthPolicy` (*type:* `boolean()`, *default:* `nil`) - Indicates if the user has opted in Google Reauth Policy. If opted in, the refresh token will be valid for 20 hours, after which time users must re-authenticate in order to obtain a new one. + * `authCode` (*type:* `String.t`, *default:* `nil`) - The Auth Code that is used to initially retrieve the access token. + * `authEndpoint` (*type:* `String.t`, *default:* `nil`) - The auth url endpoint to send the auth code request to. + * `authParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t`, *default:* `nil`) - The auth parameters sent along with the auth code request. + * `clientId` (*type:* `String.t`, *default:* `nil`) - The client's id. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - The client's secret. + * `requestType` (*type:* `String.t`, *default:* `nil`) - Represent how to pass parameters to fetch access token + * `scope` (*type:* `String.t`, *default:* `nil`) - A space-delimited list of requested scope permissions. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - The token url endpoint to send the token request to. + * `tokenParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t`, *default:* `nil`) - The token parameters sent along with the token request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessToken => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t() + | nil, + :applyReauthPolicy => boolean() | nil, + :authCode => String.t() | nil, + :authEndpoint => String.t() | nil, + :authParams => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t() + | nil, + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :requestType => String.t() | nil, + :scope => String.t() | nil, + :tokenEndpoint => String.t() | nil, + :tokenParams => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t() + | nil + } + + field(:accessToken, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken + ) + + field(:applyReauthPolicy) + field(:authCode) + field(:authEndpoint) + + field(:authParams, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap + ) + + field(:clientId) + field(:clientSecret) + field(:requestType) + field(:scope) + field(:tokenEndpoint) + + field(:tokenParams, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_client_credentials.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_client_credentials.ex new file mode 100644 index 0000000000..1d6166dded --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_client_credentials.ex @@ -0,0 +1,79 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials do + @moduledoc """ + For client credentials grant, the client sends a POST request with grant_type as 'client_credentials' to the authorization server. The authorization server will respond with a JSON object containing the access token. + + ## Attributes + + * `accessToken` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t`, *default:* `nil`) - Access token fetched from the authorization server. + * `clientId` (*type:* `String.t`, *default:* `nil`) - The client's ID. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - The client's secret. + * `requestType` (*type:* `String.t`, *default:* `nil`) - Represent how to pass parameters to fetch access token + * `scope` (*type:* `String.t`, *default:* `nil`) - A space-delimited list of requested scope permissions. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token. + * `tokenParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t`, *default:* `nil`) - Token parameters for the auth request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessToken => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t() + | nil, + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :requestType => String.t() | nil, + :scope => String.t() | nil, + :tokenEndpoint => String.t() | nil, + :tokenParams => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t() + | nil + } + + field(:accessToken, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken + ) + + field(:clientId) + field(:clientSecret) + field(:requestType) + field(:scope) + field(:tokenEndpoint) + + field(:tokenParams, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_resource_owner_credentials.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_resource_owner_credentials.ex new file mode 100644 index 0000000000..8e9834bcb3 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_o_auth2_resource_owner_credentials.ex @@ -0,0 +1,88 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials do + @moduledoc """ + For resource owner credentials grant, the client will ask the user for their authorization credentials (ususally a username and password) and send a POST request to the authorization server. The authorization server will respond with a JSON object containing the access token. + + ## Attributes + + * `accessToken` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t`, *default:* `nil`) - Access token fetched from the authorization server. + * `clientId` (*type:* `String.t`, *default:* `nil`) - The client's ID. + * `clientSecret` (*type:* `String.t`, *default:* `nil`) - The client's secret. + * `password` (*type:* `String.t`, *default:* `nil`) - The user's password. + * `requestType` (*type:* `String.t`, *default:* `nil`) - Represent how to pass parameters to fetch access token + * `scope` (*type:* `String.t`, *default:* `nil`) - A space-delimited list of requested scope permissions. + * `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token. + * `tokenParams` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t`, *default:* `nil`) - Token parameters for the auth request. + * `username` (*type:* `String.t`, *default:* `nil`) - The user's username. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :accessToken => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t() + | nil, + :clientId => String.t() | nil, + :clientSecret => String.t() | nil, + :password => String.t() | nil, + :requestType => String.t() | nil, + :scope => String.t() | nil, + :tokenEndpoint => String.t() | nil, + :tokenParams => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t() + | nil, + :username => String.t() | nil + } + + field(:accessToken, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken + ) + + field(:clientId) + field(:clientSecret) + field(:password) + field(:requestType) + field(:scope) + field(:tokenEndpoint) + + field(:tokenParams, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap + ) + + field(:username) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_oidc_token.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_oidc_token.ex new file mode 100644 index 0000000000..ffe48aba16 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_oidc_token.ex @@ -0,0 +1,60 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken do + @moduledoc """ + OIDC Token + + ## Attributes + + * `audience` (*type:* `String.t`, *default:* `nil`) - Audience to be used when generating OIDC token. The audience claim identifies the recipients that the JWT is intended for. + * `serviceAccountEmail` (*type:* `String.t`, *default:* `nil`) - The service account email to be used as the identity for the token. + * `token` (*type:* `String.t`, *default:* `nil`) - ID token obtained for the service account + * `tokenExpireTime` (*type:* `DateTime.t`, *default:* `nil`) - The approximate time until the token retrieved is valid. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :audience => String.t() | nil, + :serviceAccountEmail => String.t() | nil, + :token => String.t() | nil, + :tokenExpireTime => DateTime.t() | nil + } + + field(:audience) + field(:serviceAccountEmail) + field(:token) + field(:tokenExpireTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOidcToken do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map.ex new file mode 100644 index 0000000000..63c7c5f2c3 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map.ex @@ -0,0 +1,65 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap do + @moduledoc """ + A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified. + + ## Attributes + + * `entries` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry.t)`, *default:* `nil`) - A list of parameter map entries. + * `keyType` (*type:* `String.t`, *default:* `nil`) - Option to specify key type for all entries of the map. If provided then field types for all entries must conform to this. + * `valueType` (*type:* `String.t`, *default:* `nil`) - Option to specify value type for all entries of the map. If provided then field types for all entries must conform to this. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :entries => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry.t() + ) + | nil, + :keyType => String.t() | nil, + :valueType => String.t() | nil + } + + field(:entries, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry, + type: :list + ) + + field(:keyType) + field(:valueType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map_entry.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map_entry.ex new file mode 100644 index 0000000000..0b954939e5 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map_entry.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry do + @moduledoc """ + Entry is a pair of key and value. + + ## Attributes + + * `key` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField.t`, *default:* `nil`) - Key of the map entry. + * `value` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField.t`, *default:* `nil`) - Value of the map entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField.t() + | nil, + :value => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField.t() + | nil + } + + field(:key, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField + ) + + field(:value, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map_field.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map_field.ex new file mode 100644 index 0000000000..6a264da5b6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_parameter_map_field.ex @@ -0,0 +1,58 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField do + @moduledoc """ + Field represents either the key or value in an entry. + + ## Attributes + + * `literalValue` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t`, *default:* `nil`) - Passing a literal value. + * `referenceKey` (*type:* `String.t`, *default:* `nil`) - Referencing one of the Integration variables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :literalValue => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() | nil, + :referenceKey => String.t() | nil + } + + field(:literalValue, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType + ) + + field(:referenceKey) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMapField do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_publish_integration_version_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_publish_integration_version_request.ex new file mode 100644 index 0000000000..920af3b21d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_publish_integration_version_request.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest do + @moduledoc """ + Request for PublishIntegrationVersion. + + ## Attributes + + * `configParameters` (*type:* `map()`, *default:* `nil`) - Optional. Config parameters used during integration execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :configParameters => map() | nil + } + + field(:configParameters, type: :map) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_publish_integration_version_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_publish_integration_version_response.ex new file mode 100644 index 0000000000..6a597ae548 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_publish_integration_version_response.ex @@ -0,0 +1,48 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse do + @moduledoc """ + Response for PublishIntegrationVersion. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_resolve_suspension_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_resolve_suspension_request.ex new file mode 100644 index 0000000000..d316d21b34 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_resolve_suspension_request.ex @@ -0,0 +1,55 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionRequest do + @moduledoc """ + Request for [Suspensions.ResolveSuspensions]. + + ## Attributes + + * `suspension` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension.t`, *default:* `nil`) - Suspension, containing the event_execution_info_id, task_id, and state to set on the corresponding suspension record. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :suspension => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension.t() + | nil + } + + field(:suspension, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_resolve_suspension_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_resolve_suspension_response.ex new file mode 100644 index 0000000000..66e3a6acd2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_resolve_suspension_response.ex @@ -0,0 +1,48 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse do + @moduledoc """ + Response for Suspensions.ResolveSuspensions. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaResolveSuspensionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_runtime_action_schema.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_runtime_action_schema.ex new file mode 100644 index 0000000000..1a3ba411f8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_runtime_action_schema.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema do + @moduledoc """ + Metadata of an action, including schemas for its inputs and outputs. + + ## Attributes + + * `action` (*type:* `String.t`, *default:* `nil`) - Name of the action. + * `inputSchema` (*type:* `String.t`, *default:* `nil`) - Input parameter schema for the action. + * `outputSchema` (*type:* `String.t`, *default:* `nil`) - Output parameter schema for the action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :action => String.t() | nil, + :inputSchema => String.t() | nil, + :outputSchema => String.t() | nil + } + + field(:action) + field(:inputSchema) + field(:outputSchema) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeActionSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_runtime_entity_schema.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_runtime_entity_schema.ex new file mode 100644 index 0000000000..4cea07798e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_runtime_entity_schema.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema do + @moduledoc """ + Metadata of an entity, including a schema for its properties. + + ## Attributes + + * `arrayFieldSchema` (*type:* `String.t`, *default:* `nil`) - The above schema, but for an array of the associated entity. + * `entity` (*type:* `String.t`, *default:* `nil`) - Name of the entity. + * `fieldSchema` (*type:* `String.t`, *default:* `nil`) - List of fields in the entity. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :arrayFieldSchema => String.t() | nil, + :entity => String.t() | nil, + :fieldSchema => String.t() | nil + } + + field(:arrayFieldSchema) + field(:entity) + field(:fieldSchema) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaRuntimeEntitySchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_schedule_integrations_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_schedule_integrations_request.ex new file mode 100644 index 0000000000..0f83b761d8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_schedule_integrations_request.ex @@ -0,0 +1,93 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest do + @moduledoc """ + The request for scheduling an integration. Next available id: 10 + + ## Attributes + + * `inputParameters` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t}`, *default:* `nil`) - Optional. Input parameters used by integration execution. + * `parameterEntries` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t)`, *default:* `nil`) - Parameters are a part of Event and can be used to communicate between different tasks that are part of the same integration execution. + * `parameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t`, *default:* `nil`) - Passed in as parameters to each integration execution. + * `requestId` (*type:* `String.t`, *default:* `nil`) - This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. + * `scheduleTime` (*type:* `DateTime.t`, *default:* `nil`) - The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately. + * `triggerId` (*type:* `String.t`, *default:* `nil`) - Required. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id) + * `userGeneratedExecutionId` (*type:* `String.t`, *default:* `nil`) - Optional. This is a unique id provided by the method caller. If provided this will be used as the execution_id when a new execution info is created. This is a string representation of a UUID. Must have no more than 36 characters and contain only alphanumeric characters and hyphens. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputParameters => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.t() + } + | nil, + :parameterEntries => + list( + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry.t() + ) + | nil, + :parameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t() + | nil, + :requestId => String.t() | nil, + :scheduleTime => DateTime.t() | nil, + :triggerId => String.t() | nil, + :userGeneratedExecutionId => String.t() | nil + } + + field(:inputParameters, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType, + type: :map + ) + + field(:parameterEntries, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmFrontendsEventbusProtoParameterEntry, + type: :list + ) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters + ) + + field(:requestId) + field(:scheduleTime, as: DateTime) + field(:triggerId) + field(:userGeneratedExecutionId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_schedule_integrations_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_schedule_integrations_response.ex new file mode 100644 index 0000000000..b3b94cc67e --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_schedule_integrations_response.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse do + @moduledoc """ + The response for executing an integration. + + ## Attributes + + * `executionInfoIds` (*type:* `list(String.t)`, *default:* `nil`) - The execution info id for the executed integrations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :executionInfoIds => list(String.t()) | nil + } + + field(:executionInfoIds, type: :list) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_serialized_file.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_serialized_file.ex new file mode 100644 index 0000000000..12df2a56c7 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_serialized_file.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile do + @moduledoc """ + To store string representation of Integration file. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - String representation of the file content. + * `file` (*type:* `String.t`, *default:* `nil`) - File information like Integration version, Integration Config variables etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :file => String.t() | nil + } + + field(:content) + field(:file) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSerializedFile do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_service_account_credentials.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_service_account_credentials.ex new file mode 100644 index 0000000000..9f9df9f380 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_service_account_credentials.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials do + @moduledoc """ + Represents the service account which can be used to generate access token for authenticating the service call. + + ## Attributes + + * `scope` (*type:* `String.t`, *default:* `nil`) - A space-delimited list of requested scope permissions. + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Name of the service account that has the permission to make the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :scope => String.t() | nil, + :serviceAccount => String.t() | nil + } + + field(:scope) + field(:serviceAccount) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaServiceAccountCredentials do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_sfdc_channel.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_sfdc_channel.ex new file mode 100644 index 0000000000..4c54446550 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_sfdc_channel.ex @@ -0,0 +1,75 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel do + @moduledoc """ + The SfdcChannel that points to a CDC or Platform Event Channel. + + ## Attributes + + * `channelTopic` (*type:* `String.t`, *default:* `nil`) - The Channel topic defined by salesforce once an channel is opened + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the channel is created + * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the channel was deleted. Empty if not deleted. + * `description` (*type:* `String.t`, *default:* `nil`) - The description for this channel + * `displayName` (*type:* `String.t`, *default:* `nil`) - Client level unique name/alias to easily reference a channel. + * `isActive` (*type:* `boolean()`, *default:* `nil`) - Indicated if a channel has any active integrations referencing it. Set to false when the channel is created, and set to true if there is any integration published with the channel configured in it. + * `lastReplayId` (*type:* `String.t`, *default:* `nil`) - Last sfdc messsage replay id for channel + * `name` (*type:* `String.t`, *default:* `nil`) - Resource name of the SFDC channel projects/{project}/locations/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the channel was last updated + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :channelTopic => String.t() | nil, + :createTime => DateTime.t() | nil, + :deleteTime => DateTime.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :isActive => boolean() | nil, + :lastReplayId => String.t() | nil, + :name => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:channelTopic) + field(:createTime, as: DateTime) + field(:deleteTime, as: DateTime) + field(:description) + field(:displayName) + field(:isActive) + field(:lastReplayId) + field(:name) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcChannel do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_sfdc_instance.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_sfdc_instance.ex new file mode 100644 index 0000000000..7f971c36f8 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_sfdc_instance.ex @@ -0,0 +1,75 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance do + @moduledoc """ + The SfdcInstance resource use to hold channels and connection config data. + + ## Attributes + + * `authConfigId` (*type:* `list(String.t)`, *default:* `nil`) - A list of AuthConfigs that can be tried to open the channel to SFDC + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the instance is created + * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the instance was deleted. Empty if not deleted. + * `description` (*type:* `String.t`, *default:* `nil`) - A description of the sfdc instance. + * `displayName` (*type:* `String.t`, *default:* `nil`) - User selected unique name/alias to easily reference an instance. + * `name` (*type:* `String.t`, *default:* `nil`) - Resource name of the SFDC instance projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}. + * `serviceAuthority` (*type:* `String.t`, *default:* `nil`) - URL used for API calls after authentication (the login authority is configured within the referenced AuthConfig). + * `sfdcOrgId` (*type:* `String.t`, *default:* `nil`) - The SFDC Org Id. This is defined in salesforce. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when the instance was last updated + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :authConfigId => list(String.t()) | nil, + :createTime => DateTime.t() | nil, + :deleteTime => DateTime.t() | nil, + :description => String.t() | nil, + :displayName => String.t() | nil, + :name => String.t() | nil, + :serviceAuthority => String.t() | nil, + :sfdcOrgId => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:authConfigId, type: :list) + field(:createTime, as: DateTime) + field(:deleteTime, as: DateTime) + field(:description) + field(:displayName) + field(:name) + field(:serviceAuthority) + field(:sfdcOrgId) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSfdcInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_string_parameter_array.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_string_parameter_array.ex new file mode 100644 index 0000000000..e22f6f6132 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_string_parameter_array.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray do + @moduledoc """ + This message only contains a field of string array. + + ## Attributes + + * `stringValues` (*type:* `list(String.t)`, *default:* `nil`) - String array. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :stringValues => list(String.t()) | nil + } + + field(:stringValues, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_success_policy.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_success_policy.ex new file mode 100644 index 0000000000..038cee7113 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_success_policy.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy do + @moduledoc """ + Policy that dictates the behavior for the task after it completes successfully. + + ## Attributes + + * `finalState` (*type:* `String.t`, *default:* `nil`) - State to which the execution snapshot status will be set if the task succeeds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :finalState => String.t() | nil + } + + field(:finalState) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension.ex new file mode 100644 index 0000000000..47ae0aac68 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension.ex @@ -0,0 +1,95 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension do + @moduledoc """ + A record representing a suspension. + + ## Attributes + + * `approvalConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig.t`, *default:* `nil`) - Controls the notifications and approval permissions for this suspension. + * `audit` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit.t`, *default:* `nil`) - Metadata pertaining to the resolution of this suspension. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + * `eventExecutionInfoId` (*type:* `String.t`, *default:* `nil`) - Required. ID of the associated execution. + * `integration` (*type:* `String.t`, *default:* `nil`) - Required. The name of the originating integration. + * `lastModifyTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Auto-generated. + * `name` (*type:* `String.t`, *default:* `nil`) - Resource name for suspensions suspension/{suspension_id} + * `state` (*type:* `String.t`, *default:* `nil`) - Required. State of this suspension, indicating what action a resolver has taken. + * `suspensionConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig.t`, *default:* `nil`) - Controls the notifications and resolver permissions for this suspension. + * `taskId` (*type:* `String.t`, *default:* `nil`) - Required. Task id of the associated SuspensionTask. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approvalConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig.t() + | nil, + :audit => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit.t() + | nil, + :createTime => DateTime.t() | nil, + :eventExecutionInfoId => String.t() | nil, + :integration => String.t() | nil, + :lastModifyTime => DateTime.t() | nil, + :name => String.t() | nil, + :state => String.t() | nil, + :suspensionConfig => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig.t() + | nil, + :taskId => String.t() | nil + } + + field(:approvalConfig, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig + ) + + field(:audit, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit + ) + + field(:createTime, as: DateTime) + field(:eventExecutionInfoId) + field(:integration) + field(:lastModifyTime, as: DateTime) + field(:name) + field(:state) + + field(:suspensionConfig, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoSuspensionConfig + ) + + field(:taskId) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_approval_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_approval_config.ex new file mode 100644 index 0000000000..9911fd2ccd --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_approval_config.ex @@ -0,0 +1,63 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig do + @moduledoc """ + Configurations for approving the Suspension. + + ## Attributes + + * `customMessage` (*type:* `String.t`, *default:* `nil`) - Information to provide for recipients. + * `emailAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Email addresses to send approval request to. + * `expiration` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration.t`, *default:* `nil`) - Indicates the next steps when no external actions happen on the suspension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customMessage => String.t() | nil, + :emailAddresses => list(String.t()) | nil, + :expiration => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration.t() + | nil + } + + field(:customMessage) + field(:emailAddresses, type: :list) + + field(:expiration, + as: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_approval_expiration.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_approval_expiration.ex new file mode 100644 index 0000000000..13481c5c56 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_approval_expiration.ex @@ -0,0 +1,59 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration do + @moduledoc """ + Expiration configs for the approval request. + + ## Attributes + + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time after which the suspension expires, if no action taken. + * `liftWhenExpired` (*type:* `boolean()`, *default:* `nil`) - Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior. + * `remindTime` (*type:* `DateTime.t`, *default:* `nil`) - Time after the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :expireTime => DateTime.t() | nil, + :liftWhenExpired => boolean() | nil, + :remindTime => DateTime.t() | nil + } + + field(:expireTime, as: DateTime) + field(:liftWhenExpired) + field(:remindTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_audit.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_audit.ex new file mode 100644 index 0000000000..f92158139a --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_suspension_audit.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit do + @moduledoc """ + Contains when and by whom the suspension was resolved. + + ## Attributes + + * `resolveTime` (*type:* `DateTime.t`, *default:* `nil`) - Time at which this suspension was resolved. + * `resolver` (*type:* `String.t`, *default:* `nil`) - Email address of the person who resolved this suspension. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :resolveTime => DateTime.t() | nil, + :resolver => String.t() | nil + } + + field(:resolveTime, as: DateTime) + field(:resolver) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuspensionAudit do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_takeover_edit_lock_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_takeover_edit_lock_request.ex new file mode 100644 index 0000000000..bafa8f70c5 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_takeover_edit_lock_request.ex @@ -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.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest do + @moduledoc """ + Request for TakeoverEditLock. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_takeover_edit_lock_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_takeover_edit_lock_response.ex new file mode 100644 index 0000000000..d428abaa8d --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_takeover_edit_lock_response.ex @@ -0,0 +1,55 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse do + @moduledoc """ + Response for TakeoverEditLock. + + ## Attributes + + * `integrationVersion` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t`, *default:* `nil`) - Version after the lock is acquired by the new user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :integrationVersion => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t() + | nil + } + + field(:integrationVersion, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_task_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_task_config.ex new file mode 100644 index 0000000000..05ea51a771 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_task_config.ex @@ -0,0 +1,134 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig do + @moduledoc """ + The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. + + ## Attributes + + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. User-provided description intended to give additional business context about the task. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. User-provided label that is attached to this TaskConfig in the UI. + * `errorCatcherId` (*type:* `String.t`, *default:* `nil`) - Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task + * `externalTaskType` (*type:* `String.t`, *default:* `nil`) - Optional. External task type of the task + * `failurePolicy` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy.t`, *default:* `nil`) - Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). + * `jsonValidationOption` (*type:* `String.t`, *default:* `nil`) - Optional. If set, overrides the option configured in the Task implementation class. + * `nextTasks` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.t)`, *default:* `nil`) - Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. + * `nextTasksExecutionPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. The policy dictating the execution of the next set of tasks for the current task. + * `parameters` (*type:* `%{optional(String.t) => GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter.t}`, *default:* `nil`) - Optional. The customized parameters the user can pass to this task. + * `position` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.t`, *default:* `nil`) - Optional. Informs the front-end application where to draw this error catcher config on the UI. + * `successPolicy` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy.t`, *default:* `nil`) - Optional. Determines what action to take upon successful task completion. + * `synchronousCallFailurePolicy` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy.t`, *default:* `nil`) - Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). + * `task` (*type:* `String.t`, *default:* `nil`) - Optional. The name for the task. + * `taskExecutionStrategy` (*type:* `String.t`, *default:* `nil`) - Optional. The policy dictating the execution strategy of this task. + * `taskId` (*type:* `String.t`, *default:* `nil`) - Required. The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). + * `taskTemplate` (*type:* `String.t`, *default:* `nil`) - Optional. Used to define task-template name if task is of type task-template + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :description => String.t() | nil, + :displayName => String.t() | nil, + :errorCatcherId => String.t() | nil, + :externalTaskType => String.t() | nil, + :failurePolicy => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy.t() + | nil, + :jsonValidationOption => String.t() | nil, + :nextTasks => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.t()) + | nil, + :nextTasksExecutionPolicy => String.t() | nil, + :parameters => + %{ + optional(String.t()) => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter.t() + } + | nil, + :position => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.t() + | nil, + :successPolicy => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy.t() + | nil, + :synchronousCallFailurePolicy => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy.t() + | nil, + :task => String.t() | nil, + :taskExecutionStrategy => String.t() | nil, + :taskId => String.t() | nil, + :taskTemplate => String.t() | nil + } + + field(:description) + field(:displayName) + field(:errorCatcherId) + field(:externalTaskType) + + field(:failurePolicy, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy + ) + + field(:jsonValidationOption) + + field(:nextTasks, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask, + type: :list + ) + + field(:nextTasksExecutionPolicy) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaEventParameter, + type: :map + ) + + field(:position, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate + ) + + field(:successPolicy, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaSuccessPolicy + ) + + field(:synchronousCallFailurePolicy, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaFailurePolicy + ) + + field(:task) + field(:taskExecutionStrategy) + field(:taskId) + field(:taskTemplate) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_task_execution_details.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_task_execution_details.ex new file mode 100644 index 0000000000..623f444483 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_task_execution_details.ex @@ -0,0 +1,65 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails do + @moduledoc """ + Contains the details of the execution of this task. + + ## Attributes + + * `taskAttemptStats` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats.t)`, *default:* `nil`) - Status for the current task execution attempt. + * `taskExecutionState` (*type:* `String.t`, *default:* `nil`) - The execution state of this task. + * `taskNumber` (*type:* `String.t`, *default:* `nil`) - Pointer to the task config it used for execution. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :taskAttemptStats => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats.t() + ) + | nil, + :taskExecutionState => String.t() | nil, + :taskNumber => String.t() | nil + } + + field(:taskAttemptStats, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAttemptStats, + type: :list + ) + + field(:taskExecutionState) + field(:taskNumber) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTaskExecutionDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_trigger_config.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_trigger_config.ex new file mode 100644 index 0000000000..470ed91e66 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_trigger_config.ex @@ -0,0 +1,113 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig do + @moduledoc """ + Configuration detail of a trigger. + + ## Attributes + + * `alertConfig` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.t)`, *default:* `nil`) - Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. + * `cloudSchedulerConfig` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig.t`, *default:* `nil`) - Optional. Cloud Scheduler Trigger related metadata + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. User-provided description intended to give additional business context about the task. + * `errorCatcherId` (*type:* `String.t`, *default:* `nil`) - Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task + * `label` (*type:* `String.t`, *default:* `nil`) - Optional. The user created label for a particular trigger. + * `nextTasksExecutionPolicy` (*type:* `String.t`, *default:* `nil`) - Optional. Dictates how next tasks will be executed. + * `position` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.t`, *default:* `nil`) - Optional. Informs the front-end application where to draw this error catcher config on the UI. + * `properties` (*type:* `map()`, *default:* `nil`) - Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. + * `startTasks` (*type:* `list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.t)`, *default:* `nil`) - Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). + * `trigger` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. + * `triggerId` (*type:* `String.t`, *default:* `nil`) - Optional. The backend trigger ID. + * `triggerNumber` (*type:* `String.t`, *default:* `nil`) - Required. A number to uniquely identify each trigger config within the integration on UI. + * `triggerType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of trigger + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alertConfig => + list( + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.t() + ) + | nil, + :cloudSchedulerConfig => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig.t() + | nil, + :description => String.t() | nil, + :errorCatcherId => String.t() | nil, + :label => String.t() | nil, + :nextTasksExecutionPolicy => String.t() | nil, + :position => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate.t() + | nil, + :properties => map() | nil, + :startTasks => + list(GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask.t()) + | nil, + :trigger => String.t() | nil, + :triggerId => String.t() | nil, + :triggerNumber => String.t() | nil, + :triggerType => String.t() | nil + } + + field(:alertConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig, + type: :list + ) + + field(:cloudSchedulerConfig, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCloudSchedulerConfig + ) + + field(:description) + field(:errorCatcherId) + field(:label) + field(:nextTasksExecutionPolicy) + + field(:position, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaCoordinate + ) + + field(:properties, type: :map) + + field(:startTasks, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaNextTask, + type: :list + ) + + field(:trigger) + field(:triggerId) + field(:triggerNumber) + field(:triggerType) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaTriggerConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_unpublish_integration_version_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_unpublish_integration_version_request.ex new file mode 100644 index 0000000000..5e161c0cd6 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_unpublish_integration_version_request.ex @@ -0,0 +1,48 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest do + @moduledoc """ + Request for UnpublishIntegrationVersion. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_upload_integration_version_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_upload_integration_version_request.ex new file mode 100644 index 0000000000..b604a15a54 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_upload_integration_version_request.ex @@ -0,0 +1,56 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest do + @moduledoc """ + Request for UploadIntegrationVersion. + + ## Attributes + + * `content` (*type:* `String.t`, *default:* `nil`) - The textproto of the integration_version. + * `fileFormat` (*type:* `String.t`, *default:* `nil`) - File format for upload request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :content => String.t() | nil, + :fileFormat => String.t() | nil + } + + field(:content) + field(:fileFormat) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_upload_integration_version_response.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_upload_integration_version_response.ex new file mode 100644 index 0000000000..9297d685c2 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_upload_integration_version_response.ex @@ -0,0 +1,57 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse do + @moduledoc """ + Response for UploadIntegrationVersion. + + ## Attributes + + * `integrationVersion` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t`, *default:* `nil`) - The uploaded integration. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :integrationVersion => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion.t() + | nil + } + + field(:integrationVersion, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntegrationVersion + ) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_username_and_password.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_username_and_password.ex new file mode 100644 index 0000000000..8fe47aaf40 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_username_and_password.ex @@ -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.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword do + @moduledoc """ + Username and password pair. + + ## Attributes + + * `password` (*type:* `String.t`, *default:* `nil`) - Password to be used + * `username` (*type:* `String.t`, *default:* `nil`) - Username to be used + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :password => String.t() | nil, + :username => String.t() | nil + } + + field(:password) + field(:username) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaUsernameAndPassword do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_value_type.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_value_type.ex new file mode 100644 index 0000000000..968f0c3a09 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_cloud_integrations_v1alpha_value_type.ex @@ -0,0 +1,98 @@ +# 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.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType do + @moduledoc """ + The type of the parameter. + + ## Attributes + + * `booleanArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray.t`, *default:* `nil`) - Boolean Array. + * `booleanValue` (*type:* `boolean()`, *default:* `nil`) - Boolean. + * `doubleArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray.t`, *default:* `nil`) - Double Number Array. + * `doubleValue` (*type:* `float()`, *default:* `nil`) - Double Number. + * `intArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray.t`, *default:* `nil`) - Integer Array. + * `intValue` (*type:* `String.t`, *default:* `nil`) - Integer. + * `jsonValue` (*type:* `String.t`, *default:* `nil`) - Json. + * `stringArray` (*type:* `GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray.t`, *default:* `nil`) - String Array. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - String. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :booleanArray => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray.t() + | nil, + :booleanValue => boolean() | nil, + :doubleArray => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray.t() + | nil, + :doubleValue => float() | nil, + :intArray => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray.t() + | nil, + :intValue => String.t() | nil, + :jsonValue => String.t() | nil, + :stringArray => + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray.t() + | nil, + :stringValue => String.t() | nil + } + + field(:booleanArray, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaBooleanParameterArray + ) + + field(:booleanValue) + + field(:doubleArray, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaDoubleParameterArray + ) + + field(:doubleValue) + + field(:intArray, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaIntParameterArray + ) + + field(:intValue) + field(:jsonValue) + + field(:stringArray, + as: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaStringParameterArray + ) + + field(:stringValue) +end + +defimpl Poison.Decoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaValueType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_internal_cloud_crm_eventbus_v3_post_to_queue_with_trigger_id_request.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_internal_cloud_crm_eventbus_v3_post_to_queue_with_trigger_id_request.ex new file mode 100644 index 0000000000..9f62eeb541 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_internal_cloud_crm_eventbus_v3_post_to_queue_with_trigger_id_request.ex @@ -0,0 +1,89 @@ +# 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.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest do + @moduledoc """ + LINT.IfChange Use this request to post all workflows associated with a given trigger id. Next available id: 12 + + ## Attributes + + * `clientId` (*type:* `String.t`, *default:* `nil`) - Optional. If the client id is provided, then the combination of trigger id and client id is matched across all the workflows. If the client id is not provided, then workflows with matching trigger id are executed for each client id in the {@link TriggerConfig}. For Api Trigger, the client id is required and will be validated against the allowed clients. + * `ignoreErrorIfNoActiveWorkflow` (*type:* `boolean()`, *default:* `nil`) - Optional. Flag to determine whether clients would suppress a warning when no ACTIVE workflows are not found. If this flag is set to be true, an error will not be thrown if the requested trigger_id or client_id is not found in any ACTIVE workflow. Otherwise, the error is always thrown. The flag is set to be false by default. + * `parameters` (*type:* `GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t`, *default:* `nil`) - Passed in as parameters to each workflow execution. Optional. + * `priority` (*type:* `String.t`, *default:* `nil`) - The request priority this request should be processed at. For internal users: + * `requestId` (*type:* `String.t`, *default:* `nil`) - Optional. This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned. Must have no more than 36 characters and contain only alphanumeric characters and hyphens. + * `resourceName` (*type:* `String.t`, *default:* `nil`) - This field is only required when using Admin Access. The resource name of target, or the parent resource name. For example: "projects/*/locations/*/integrations/*" + * `scheduledTime` (*type:* `String.t`, *default:* `nil`) - Optional. Time in milliseconds since epoch when the given event would be scheduled. + * `testMode` (*type:* `boolean()`, *default:* `nil`) - Optional. Sets test mode in {@link enterprise/crm/eventbus/event_message.proto}. + * `triggerId` (*type:* `String.t`, *default:* `nil`) - Matched against all {@link TriggerConfig}s across all workflows. i.e. TriggerConfig.trigger_id.equals(trigger_id) Required. + * `userGeneratedExecutionId` (*type:* `String.t`, *default:* `nil`) - This is a unique id provided by the method caller. If provided this will be used as the execution_id when a new execution info is created. This is a string representation of a UUID. Must have no more than 36 characters and contain only alphanumeric characters and hyphens. + * `workflowName` (*type:* `String.t`, *default:* `nil`) - Optional. If provided, the workflow_name is used to filter all the matched workflows having same trigger_id+client_id. A combination of trigger_id, client_id and workflow_name identifies a unique workflow. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clientId => String.t() | nil, + :ignoreErrorIfNoActiveWorkflow => boolean() | nil, + :parameters => + GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters.t() + | nil, + :priority => String.t() | nil, + :requestId => String.t() | nil, + :resourceName => String.t() | nil, + :scheduledTime => String.t() | nil, + :testMode => boolean() | nil, + :triggerId => String.t() | nil, + :userGeneratedExecutionId => String.t() | nil, + :workflowName => String.t() | nil + } + + field(:clientId) + field(:ignoreErrorIfNoActiveWorkflow) + + field(:parameters, + as: GoogleApi.Integrations.V1alpha.Model.EnterpriseCrmEventbusProtoEventParameters + ) + + field(:priority) + field(:requestId) + field(:resourceName) + field(:scheduledTime) + field(:testMode) + field(:triggerId) + field(:userGeneratedExecutionId) + field(:workflowName) +end + +defimpl Poison.Decoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.Integrations.V1alpha.Model.GoogleInternalCloudCrmEventbusV3PostToQueueWithTriggerIdRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/lib/google_api/integrations/v1alpha/model/google_protobuf_empty.ex b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_protobuf_empty.ex new file mode 100644 index 0000000000..508f41a753 --- /dev/null +++ b/clients/integrations/lib/google_api/integrations/v1alpha/model/google_protobuf_empty.ex @@ -0,0 +1,41 @@ +# 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.V1alpha.Model.GoogleProtobufEmpty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty do + def decode(value, options) do + GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Integrations.V1alpha.Model.GoogleProtobufEmpty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/integrations/mix.exs b/clients/integrations/mix.exs new file mode 100644 index 0000000000..6777ebf65e --- /dev/null +++ b/clients/integrations/mix.exs @@ -0,0 +1,66 @@ +# 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.Mixfile do + use Mix.Project + + @version "0.2.0" + + def project() do + [ + app: :google_api_integrations, + version: @version, + elixir: "~> 1.6", + build_embedded: Mix.env == :prod, + start_permanent: Mix.env == :prod, + description: description(), + package: package(), + deps: deps(), + source_url: "https://github.com/googleapis/elixir-google-api/tree/master/clients/integrations" + ] + end + + def application() do + [extra_applications: [:logger]] + end + + defp deps() do + [ + {:google_gax, "~> 0.4"}, + + {:ex_doc, "~> 0.16", only: :dev} + ] + end + + defp description() do + """ + Application Integration API client library. + """ + end + + defp package() do + [ + files: ["lib", "mix.exs", "README*", "LICENSE"], + maintainers: ["Jeff Ching", "Daniel Azuma"], + licenses: ["Apache 2.0"], + links: %{ + "GitHub" => "https://github.com/googleapis/elixir-google-api/tree/master/clients/integrations", + "Homepage" => "https://cloud.google.com/application-integration" + } + ] + end +end diff --git a/clients/integrations/test/test_helper.exs b/clients/integrations/test/test_helper.exs new file mode 100644 index 0000000000..e697a337ba --- /dev/null +++ b/clients/integrations/test/test_helper.exs @@ -0,0 +1,35 @@ +# 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. + +ExUnit.start() + +defmodule GoogleApi.Integrations.TestHelper do + + defmacro __using__(opts) do + quote do + use ExUnit.Case, unquote(opts) + import GoogleApi.Integrations.TestHelper + end + end + + def for_scope(scopes) when is_list(scopes), do: for_scope(Enum.join(scopes, " ")) + def for_scope(scope) do + {:ok, token} = Goth.Token.for_scope(scope) + token.token + end + +end