Method: integrations.upload

Full name: projects.locations.instances.integrations.upload

Get the zip file content before importing an integration to the system

HTTP request


Path parameters

Parameters
parent

string

Required. The parent, which owns this collection of integrations. Format: projects/{project}/locations/{location}/instances/{instance}/integrations

Request body

The request body contains data with the following structure:

JSON representation
{
  "media": {
    object (Media)
  },
  "mediaInfo": {
    object (MediaRequestInfo)
  },
  "staging": boolean
}
Fields
media

object (Media)

Zipped integration package data in base64. Includes the following folders according to the integrations items: Actions, Connectors, Jobs, Managers, Dependencies Each folder includes json files and a python file for the script. Includes metadata.json file includes integration definition json file

mediaInfo

object (MediaRequestInfo)

Metadata about the media upload request. Information representing the imported data

staging

boolean

Optional. Determines if need to exract the integration and compare it with the staging. Default value is false.

Response body

Response message for extracting integration details.

If successful, the response body contains data with the following structure:

JSON representation
{
  "integrationIdentifier": string,
  "actions": [
    string
  ],
  "jobs": [
    string
  ],
  "connectors": [
    string
  ],
  "managers": [
    string
  ],
  "customFamilies": [
    string
  ],
  "exampleUsecases": [
    string
  ],
  "mappingRules": [
    string
  ],
  "version": string,
  "pythonVersion": enum (PythonVersion),
  "existingIntegration": {
    object (Integration)
  },
  "diff": {
    object (IntegrationDiff)
  },
  "mediaInfo": {
    object (MediaResponseInfo)
  },
  "custom": boolean
}
Fields
integrationIdentifier

string

Required. The extracted integration identifier name.

actions[]

string

Output only. Extracted actions names.

jobs[]

string

Output only. Extracted jobs names.

connectors[]

string

Output only. Extracted connector names.

managers[]

string

Output only. Extracted managers names.

customFamilies[]

string

Output only. Extracted custom families names.

exampleUsecases[]

string

Output only. Extracted example usecases names.

mappingRules[]

string

Output only. Extracted mapping rules names.

version

string

Output only. Integration version.

pythonVersion

enum (PythonVersion)

Output only. Integration's python version.

existingIntegration

object (Integration)

Output only. The existing integration in the system with the same display name as the one that the user wants to import.

diff

object (IntegrationDiff)

Output only. The difference between the existing integration and the imported one.

mediaInfo

object (MediaResponseInfo)

Metadata about the media upload response.

custom

boolean

Output only. Is the integration custom or commercial.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.