Skip to content

Commit

Permalink
feat(integrations): update the api
Browse files Browse the repository at this point in the history
#### integrations:v1alpha

The following keys were added:
- resources.projects.resources.locations.resources.integrations.methods.executeEvent (Total Keys: 12)
- resources.projects.resources.locations.resources.integrations.resources.executions.methods.list.parameters.filterParams.parameterKey.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.integrations.resources.executions.methods.list.parameters.filterParams.parameterValue.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.integrations.resources.executions.methods.list.parameters.filterParams.taskStatuses.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.integrations.resources.executions.methods.list.parameters.truncateParams.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.products.resources.integrations.resources.executions.methods.list.parameters.filterParams.parameterKey.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.products.resources.integrations.resources.executions.methods.list.parameters.filterParams.parameterValue.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.products.resources.integrations.resources.executions.methods.list.parameters.filterParams.taskStatuses.deprecated (Total Keys: 1)
- resources.projects.resources.locations.resources.products.resources.integrations.resources.executions.methods.list.parameters.truncateParams.deprecated (Total Keys: 1)
- schemas.GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.properties.authUri.type (Total Keys: 1)
- schemas.GoogleCloudConnectorsV1ConfigVariable.properties.keyValue.$ref (Total Keys: 1)
- schemas.GoogleCloudConnectorsV1EncryptionKey (Total Keys: 4)
- schemas.GoogleCloudIntegrationsV1alphaExecuteEventRequest (Total Keys: 3)
- schemas.GoogleCloudIntegrationsV1alphaExecuteEventResponse (Total Keys: 3)
- schemas.IoCloudeventsV1CloudEvent (Total Keys: 25)
  • Loading branch information
yoshi-automation committed May 30, 2023
1 parent d500efb commit a32107f
Show file tree
Hide file tree
Showing 11 changed files with 258 additions and 21 deletions.
Expand Up @@ -1262,7 +1262,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of AuthConfigs. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the AuthConfig&#x27;s response.
Expand Down
14 changes: 14 additions & 0 deletions docs/dyn/integrations_v1alpha.projects.locations.connections.html
Expand Up @@ -153,6 +153,10 @@ <h3>Method Details</h3>
&quot;boolValue&quot;: True or False, # Value is a bool.
&quot;intValue&quot;: &quot;A String&quot;, # Value is an integer
&quot;key&quot;: &quot;A String&quot;, # Key of the config variable.
&quot;keyValue&quot;: { # Encryption Key value. # Value is a Encryption Key.
&quot;kmsKeyName&quot;: &quot;A String&quot;, # 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.
&quot;type&quot;: &quot;A String&quot;, # Type.
},
&quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Value is a secret.
&quot;secretVersion&quot;: &quot;A String&quot;, # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
},
Expand All @@ -163,6 +167,7 @@ <h3>Method Details</h3>
&quot;authType&quot;: &quot;A String&quot;, # The type of authentication configured.
&quot;oauth2AuthCodeFlow&quot;: { # 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. # Oauth2AuthCodeFlow.
&quot;authCode&quot;: &quot;A String&quot;, # Authorization code to be exchanged for access and refresh tokens.
&quot;authUri&quot;: &quot;A String&quot;, # Auth URL for Authorization Code Flow
&quot;clientId&quot;: &quot;A String&quot;, # Client ID for user-provided OAuth app.
&quot;clientSecret&quot;: { # Secret provides a reference to entries in Secret Manager. # Client secret for user-provided OAuth app.
&quot;secretVersion&quot;: &quot;A String&quot;, # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
Expand Down Expand Up @@ -212,12 +217,17 @@ <h3>Method Details</h3>
&quot;boolValue&quot;: True or False, # Value is a bool.
&quot;intValue&quot;: &quot;A String&quot;, # Value is an integer
&quot;key&quot;: &quot;A String&quot;, # Key of the config variable.
&quot;keyValue&quot;: { # Encryption Key value. # Value is a Encryption Key.
&quot;kmsKeyName&quot;: &quot;A String&quot;, # 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.
&quot;type&quot;: &quot;A String&quot;, # Type.
},
&quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Value is a secret.
&quot;secretVersion&quot;: &quot;A String&quot;, # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
},
&quot;stringValue&quot;: &quot;A String&quot;, # Value is a string.
},
],
&quot;connectionRevision&quot;: &quot;A String&quot;, # Output only. Connection revision. This field is only updated when the connection is created or updated by User.
&quot;connectorVersion&quot;: &quot;A String&quot;, # 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.
&quot;connectorVersionLaunchStage&quot;: &quot;A String&quot;, # Output only. Flag to mark the version indicating the launch stage.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
Expand Down Expand Up @@ -259,6 +269,10 @@ <h3>Method Details</h3>
&quot;boolValue&quot;: True or False, # Value is a bool.
&quot;intValue&quot;: &quot;A String&quot;, # Value is an integer
&quot;key&quot;: &quot;A String&quot;, # Key of the config variable.
&quot;keyValue&quot;: { # Encryption Key value. # Value is a Encryption Key.
&quot;kmsKeyName&quot;: &quot;A String&quot;, # 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.
&quot;type&quot;: &quot;A String&quot;, # Type.
},
&quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Value is a secret.
&quot;secretVersion&quot;: &quot;A String&quot;, # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
},
Expand Down
Expand Up @@ -93,6 +93,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#execute">execute(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">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.</p>
<p class="toc_element">
<code><a href="#executeEvent">executeEvent(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Executes an integration on receiving events from Integration Connector triggers, Eventarc or CPS Trigger. The details about integration are derived from CloudEvent request body.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns the list of all integrations in the specified project.</p>
Expand Down Expand Up @@ -376,6 +379,53 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="executeEvent">executeEvent(name, body=None, x__xgafv=None)</code>
<pre>Executes an integration on receiving events from Integration Connector triggers, Eventarc or CPS Trigger. The details about integration are derived from CloudEvent request body.

Args:
name: string, Required. The integration resource name. Format: projects/{gcp_project_id}/locations/{location}/integrations/{integration_id} (required)
body: object, The request body.
The object takes the form of:

{ # Request for triggering an integration using event triggers.
&quot;cloudEvent&quot;: { # -- CloudEvent Context Attributes # Required. Details about the trigger which is to be executed and values for input variable to the integration.
&quot;attributes&quot;: { # Optional &amp; Extension Attributes
&quot;a_key&quot;: {
&quot;ceBoolean&quot;: True or False,
&quot;ceBytes&quot;: &quot;A String&quot;,
&quot;ceInteger&quot;: 42,
&quot;ceString&quot;: &quot;A String&quot;,
&quot;ceTimestamp&quot;: &quot;A String&quot;,
&quot;ceUri&quot;: &quot;A String&quot;,
&quot;ceUriRef&quot;: &quot;A String&quot;,
},
},
&quot;binaryData&quot;: &quot;A String&quot;,
&quot;id&quot;: &quot;A String&quot;, # Required Attributes
&quot;protoData&quot;: {
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;source&quot;: &quot;A String&quot;, # URI-reference
&quot;specVersion&quot;: &quot;A String&quot;,
&quot;textData&quot;: &quot;A String&quot;,
&quot;type&quot;: &quot;A String&quot;,
},
}

x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The response for executing an integration.
&quot;executionId&quot;: &quot;A String&quot;, # The id of the execution corresponding to this run of integration.
}</pre>
</div>

<div class="method">
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Returns the list of all integrations in the specified project.
Expand Down Expand Up @@ -554,7 +604,7 @@ <h3>Method Details</h3>
},
&quot;requestId&quot;: &quot;A String&quot;, # This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.
&quot;scheduleTime&quot;: &quot;A String&quot;, # The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately.
&quot;triggerId&quot;: &quot;A String&quot;, # Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id)
&quot;triggerId&quot;: &quot;A String&quot;, # Required. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id)
}

x__xgafv: string, V1 error format.
Expand Down
Expand Up @@ -1262,7 +1262,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of AuthConfigs. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the AuthConfig&#x27;s response.
Expand Down
Expand Up @@ -206,7 +206,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of Certificates. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the Certificate&#x27;s response.
Expand Down
Expand Up @@ -554,7 +554,7 @@ <h3>Method Details</h3>
},
&quot;requestId&quot;: &quot;A String&quot;, # This is used to de-dup incoming request: if the duplicate request was detected, the response from the previous execution is returned.
&quot;scheduleTime&quot;: &quot;A String&quot;, # The time that the integration should be executed. If the time is less or equal to the current time, the integration is executed immediately.
&quot;triggerId&quot;: &quot;A String&quot;, # Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id)
&quot;triggerId&quot;: &quot;A String&quot;, # Required. Matched against all {@link TriggerConfig}s across all integrations. i.e. TriggerConfig.trigger_id.equals(trigger_id)
}

x__xgafv: string, V1 error format.
Expand Down
Expand Up @@ -205,7 +205,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of SfdcInstances. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the SfdcInstance&#x27;s response.
Expand Down
Expand Up @@ -194,7 +194,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of SfdcChannels. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the SfdcChannel&#x27;s response.
Expand Down
Expand Up @@ -205,7 +205,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of SfdcInstances. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the SfdcInstance&#x27;s response.
Expand Down
Expand Up @@ -194,7 +194,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The client, which owns this collection of SfdcChannels. (required)
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
filter: string, Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
pageSize: integer, The size of entries in the response. If unspecified, defaults to 100.
pageToken: string, The token returned in the previous response.
readMask: string, The mask which specifies fields that need to be returned in the SfdcChannel&#x27;s response.
Expand Down

0 comments on commit a32107f

Please sign in to comment.