Dialogflow API . projects . locations . agents . tools . versions

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, x__xgafv=None)

delete(name, force=None, x__xgafv=None)

get(name, x__xgafv=None)

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

list_next()

Retrieves the next page of results.

restore(name, body=None, x__xgafv=None)

Method Details

close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)

Args:
  parent: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "createTime": "A String",
  "displayName": "A String",
  "name": "A String",
  "tool": {
    "connectorSpec": {
      "actions": [
        {
          "connectionActionId": "A String",
          "entityOperation": {
            "entityId": "A String",
            "operation": "A String",
          },
          "inputFields": [
            "A String",
          ],
          "outputFields": [
            "A String",
          ],
        },
      ],
      "endUserAuthConfig": {
        "oauth2AuthCodeConfig": {
          "oauthToken": "A String",
        },
        "oauth2JwtBearerConfig": {
          "clientKey": "A String",
          "issuer": "A String",
          "subject": "A String",
        },
      },
      "name": "A String",
    },
    "dataStoreSpec": {
      "dataStoreConnections": [
        {
          "dataStore": "A String",
          "dataStoreType": "A String",
          "documentProcessingMode": "A String",
        },
      ],
      "fallbackPrompt": {
      },
    },
    "description": "A String",
    "displayName": "A String",
    "extensionSpec": {
      "name": "A String",
    },
    "functionSpec": {
      "inputSchema": {
        "a_key": "", # Properties of the object.
      },
      "outputSchema": {
        "a_key": "", # Properties of the object.
      },
    },
    "name": "A String",
    "openApiSpec": {
      "authentication": {
        "apiKeyConfig": {
          "apiKey": "A String",
          "keyName": "A String",
          "requestLocation": "A String",
          "secretVersionForApiKey": "A String",
        },
        "bearerTokenConfig": {
          "secretVersionForToken": "A String",
          "token": "A String",
        },
        "oauthConfig": {
          "clientId": "A String",
          "clientSecret": "A String",
          "oauthGrantType": "A String",
          "scopes": [
            "A String",
          ],
          "secretVersionForClientSecret": "A String",
          "tokenEndpoint": "A String",
        },
        "serviceAccountAuthConfig": {
          "serviceAccount": "A String",
        },
        "serviceAgentAuthConfig": {
          "serviceAgentAuth": "A String",
        },
      },
      "serviceDirectoryConfig": {
        "service": "A String",
      },
      "textSchema": "A String",
      "tlsConfig": {
        "caCerts": [
          {
            "cert": "A String",
            "displayName": "A String",
          },
        ],
      },
    },
    "toolType": "A String",
  },
  "updateTime": "A String",
}

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

Returns:
  An object of the form:

    {
  "createTime": "A String",
  "displayName": "A String",
  "name": "A String",
  "tool": {
    "connectorSpec": {
      "actions": [
        {
          "connectionActionId": "A String",
          "entityOperation": {
            "entityId": "A String",
            "operation": "A String",
          },
          "inputFields": [
            "A String",
          ],
          "outputFields": [
            "A String",
          ],
        },
      ],
      "endUserAuthConfig": {
        "oauth2AuthCodeConfig": {
          "oauthToken": "A String",
        },
        "oauth2JwtBearerConfig": {
          "clientKey": "A String",
          "issuer": "A String",
          "subject": "A String",
        },
      },
      "name": "A String",
    },
    "dataStoreSpec": {
      "dataStoreConnections": [
        {
          "dataStore": "A String",
          "dataStoreType": "A String",
          "documentProcessingMode": "A String",
        },
      ],
      "fallbackPrompt": {
      },
    },
    "description": "A String",
    "displayName": "A String",
    "extensionSpec": {
      "name": "A String",
    },
    "functionSpec": {
      "inputSchema": {
        "a_key": "", # Properties of the object.
      },
      "outputSchema": {
        "a_key": "", # Properties of the object.
      },
    },
    "name": "A String",
    "openApiSpec": {
      "authentication": {
        "apiKeyConfig": {
          "apiKey": "A String",
          "keyName": "A String",
          "requestLocation": "A String",
          "secretVersionForApiKey": "A String",
        },
        "bearerTokenConfig": {
          "secretVersionForToken": "A String",
          "token": "A String",
        },
        "oauthConfig": {
          "clientId": "A String",
          "clientSecret": "A String",
          "oauthGrantType": "A String",
          "scopes": [
            "A String",
          ],
          "secretVersionForClientSecret": "A String",
          "tokenEndpoint": "A String",
        },
        "serviceAccountAuthConfig": {
          "serviceAccount": "A String",
        },
        "serviceAgentAuthConfig": {
          "serviceAgentAuth": "A String",
        },
      },
      "serviceDirectoryConfig": {
        "service": "A String",
      },
      "textSchema": "A String",
      "tlsConfig": {
        "caCerts": [
          {
            "cert": "A String",
            "displayName": "A String",
          },
        ],
      },
    },
    "toolType": "A String",
  },
  "updateTime": "A String",
}
delete(name, force=None, x__xgafv=None)

Args:
  name: string, A parameter (required)
  force: boolean, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
}
get(name, x__xgafv=None)

Args:
  name: string, A parameter (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "createTime": "A String",
  "displayName": "A String",
  "name": "A String",
  "tool": {
    "connectorSpec": {
      "actions": [
        {
          "connectionActionId": "A String",
          "entityOperation": {
            "entityId": "A String",
            "operation": "A String",
          },
          "inputFields": [
            "A String",
          ],
          "outputFields": [
            "A String",
          ],
        },
      ],
      "endUserAuthConfig": {
        "oauth2AuthCodeConfig": {
          "oauthToken": "A String",
        },
        "oauth2JwtBearerConfig": {
          "clientKey": "A String",
          "issuer": "A String",
          "subject": "A String",
        },
      },
      "name": "A String",
    },
    "dataStoreSpec": {
      "dataStoreConnections": [
        {
          "dataStore": "A String",
          "dataStoreType": "A String",
          "documentProcessingMode": "A String",
        },
      ],
      "fallbackPrompt": {
      },
    },
    "description": "A String",
    "displayName": "A String",
    "extensionSpec": {
      "name": "A String",
    },
    "functionSpec": {
      "inputSchema": {
        "a_key": "", # Properties of the object.
      },
      "outputSchema": {
        "a_key": "", # Properties of the object.
      },
    },
    "name": "A String",
    "openApiSpec": {
      "authentication": {
        "apiKeyConfig": {
          "apiKey": "A String",
          "keyName": "A String",
          "requestLocation": "A String",
          "secretVersionForApiKey": "A String",
        },
        "bearerTokenConfig": {
          "secretVersionForToken": "A String",
          "token": "A String",
        },
        "oauthConfig": {
          "clientId": "A String",
          "clientSecret": "A String",
          "oauthGrantType": "A String",
          "scopes": [
            "A String",
          ],
          "secretVersionForClientSecret": "A String",
          "tokenEndpoint": "A String",
        },
        "serviceAccountAuthConfig": {
          "serviceAccount": "A String",
        },
        "serviceAgentAuthConfig": {
          "serviceAgentAuth": "A String",
        },
      },
      "serviceDirectoryConfig": {
        "service": "A String",
      },
      "textSchema": "A String",
      "tlsConfig": {
        "caCerts": [
          {
            "cert": "A String",
            "displayName": "A String",
          },
        ],
      },
    },
    "toolType": "A String",
  },
  "updateTime": "A String",
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Args:
  parent: string, A parameter (required)
  pageSize: integer, A parameter
  pageToken: string, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "nextPageToken": "A String",
  "toolVersions": [
    {
      "createTime": "A String",
      "displayName": "A String",
      "name": "A String",
      "tool": {
        "connectorSpec": {
          "actions": [
            {
              "connectionActionId": "A String",
              "entityOperation": {
                "entityId": "A String",
                "operation": "A String",
              },
              "inputFields": [
                "A String",
              ],
              "outputFields": [
                "A String",
              ],
            },
          ],
          "endUserAuthConfig": {
            "oauth2AuthCodeConfig": {
              "oauthToken": "A String",
            },
            "oauth2JwtBearerConfig": {
              "clientKey": "A String",
              "issuer": "A String",
              "subject": "A String",
            },
          },
          "name": "A String",
        },
        "dataStoreSpec": {
          "dataStoreConnections": [
            {
              "dataStore": "A String",
              "dataStoreType": "A String",
              "documentProcessingMode": "A String",
            },
          ],
          "fallbackPrompt": {
          },
        },
        "description": "A String",
        "displayName": "A String",
        "extensionSpec": {
          "name": "A String",
        },
        "functionSpec": {
          "inputSchema": {
            "a_key": "", # Properties of the object.
          },
          "outputSchema": {
            "a_key": "", # Properties of the object.
          },
        },
        "name": "A String",
        "openApiSpec": {
          "authentication": {
            "apiKeyConfig": {
              "apiKey": "A String",
              "keyName": "A String",
              "requestLocation": "A String",
              "secretVersionForApiKey": "A String",
            },
            "bearerTokenConfig": {
              "secretVersionForToken": "A String",
              "token": "A String",
            },
            "oauthConfig": {
              "clientId": "A String",
              "clientSecret": "A String",
              "oauthGrantType": "A String",
              "scopes": [
                "A String",
              ],
              "secretVersionForClientSecret": "A String",
              "tokenEndpoint": "A String",
            },
            "serviceAccountAuthConfig": {
              "serviceAccount": "A String",
            },
            "serviceAgentAuthConfig": {
              "serviceAgentAuth": "A String",
            },
          },
          "serviceDirectoryConfig": {
            "service": "A String",
          },
          "textSchema": "A String",
          "tlsConfig": {
            "caCerts": [
              {
                "cert": "A String",
                "displayName": "A String",
              },
            ],
          },
        },
        "toolType": "A String",
      },
      "updateTime": "A String",
    },
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.
        
restore(name, body=None, x__xgafv=None)

Args:
  name: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
}

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

Returns:
  An object of the form:

    {
  "tool": {
    "connectorSpec": {
      "actions": [
        {
          "connectionActionId": "A String",
          "entityOperation": {
            "entityId": "A String",
            "operation": "A String",
          },
          "inputFields": [
            "A String",
          ],
          "outputFields": [
            "A String",
          ],
        },
      ],
      "endUserAuthConfig": {
        "oauth2AuthCodeConfig": {
          "oauthToken": "A String",
        },
        "oauth2JwtBearerConfig": {
          "clientKey": "A String",
          "issuer": "A String",
          "subject": "A String",
        },
      },
      "name": "A String",
    },
    "dataStoreSpec": {
      "dataStoreConnections": [
        {
          "dataStore": "A String",
          "dataStoreType": "A String",
          "documentProcessingMode": "A String",
        },
      ],
      "fallbackPrompt": {
      },
    },
    "description": "A String",
    "displayName": "A String",
    "extensionSpec": {
      "name": "A String",
    },
    "functionSpec": {
      "inputSchema": {
        "a_key": "", # Properties of the object.
      },
      "outputSchema": {
        "a_key": "", # Properties of the object.
      },
    },
    "name": "A String",
    "openApiSpec": {
      "authentication": {
        "apiKeyConfig": {
          "apiKey": "A String",
          "keyName": "A String",
          "requestLocation": "A String",
          "secretVersionForApiKey": "A String",
        },
        "bearerTokenConfig": {
          "secretVersionForToken": "A String",
          "token": "A String",
        },
        "oauthConfig": {
          "clientId": "A String",
          "clientSecret": "A String",
          "oauthGrantType": "A String",
          "scopes": [
            "A String",
          ],
          "secretVersionForClientSecret": "A String",
          "tokenEndpoint": "A String",
        },
        "serviceAccountAuthConfig": {
          "serviceAccount": "A String",
        },
        "serviceAgentAuthConfig": {
          "serviceAgentAuth": "A String",
        },
      },
      "serviceDirectoryConfig": {
        "service": "A String",
      },
      "textSchema": "A String",
      "tlsConfig": {
        "caCerts": [
          {
            "cert": "A String",
            "displayName": "A String",
          },
        ],
      },
    },
    "toolType": "A String",
  },
}