Method: projects.locations.plugins.instances.manageSourceData

Manages data for a given plugin instance.

HTTP request

POST https://apihub.googleapis.com/v1/{name=projects/*/locations/*/plugins/*/instances/*}:manageSourceData

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the plugin instance for which data needs to be managed. Format: projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
  "dataType": enum (DataType),
  "action": enum (Action),
  "relativePath": string,
  "data": string
}
Fields
dataType

enum (DataType)

Required. Type of data to be managed.

action

enum (Action)

Required. Action to be performed.

relativePath

string

Required. Relative path of data being managed for a given plugin instance.

data

string (bytes format)

Required. Data to be managed.

A base64-encoded string.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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

DataType

Type of data to be managed.

Enums
DATA_TYPE_UNSPECIFIED Default unspecified type.
PROXY_DEPLOYMENT_MANIFEST Proxy deployment manifest.
ENVIRONMENT_MANIFEST Environment manifest.
PROXY_BUNDLE Proxy bundle.
SHARED_FLOW_BUNDLE Shared flow bundle.

Action

Action to be performed.

Enums
ACTION_UNSPECIFIED Default unspecified action.
UPLOAD Upload or upsert data.
DELETE Delete data.