# Dialogflow API . projects . locations . agents . environments

## Instance Methods

Returns the continuousTestResults Resource.

Returns the deployments Resource.

Returns the experiments Resource.

Returns the sessions Resource.

Close httplib2 connections.

Retrieves the next page of results.

Retrieves the next page of results.

### 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:

    {
      "description": "A String",
      "displayName": "A String",
      "name": "A String",
      "testCasesConfig": {
        "enableContinuousRun": True or False,
        "enablePredeploymentRun": True or False,
        "testCases": [
          "A String",
        ],
      },
      "updateTime": "A String",
      "versionConfigs": [
        {
          "version": "A String",
        },
      ],
      "webhookConfig": {
        "webhookOverrides": [
          {
            "disabled": True or False,
            "displayName": "A String",
            "genericWebService": {
              "allowedCaCerts": [
                "A String",
              ],
              "httpMethod": "A String",
              "oauthConfig": {
                "clientId": "A String",
                "clientSecret": "A String",
                "scopes": [
                  "A String",
                ],
                "secretVersionForClientSecret": "A String",
                "tokenEndpoint": "A String",
              },
              "parameterMapping": {
                "a_key": "A String",
              },
              "password": "A String",
              "requestBody": "A String",
              "requestHeaders": {
                "a_key": "A String",
              },
              "secretVersionForUsernamePassword": "A String",
              "secretVersionsForRequestHeaders": {
                "a_key": {
                  "secretVersion": "A String",
                },
              },
              "serviceAccountAuthConfig": {
                "serviceAccount": "A String",
              },
              "serviceAgentAuth": "A String",
              "uri": "A String",
              "username": "A String",
              "webhookType": "A String",
            },
            "name": "A String",
            "serviceDirectory": {
              "genericWebService": {
                "allowedCaCerts": [
                  "A String",
                ],
                "httpMethod": "A String",
                "oauthConfig": {
                  "clientId": "A String",
                  "clientSecret": "A String",
                  "scopes": [
                    "A String",
                  ],
                  "secretVersionForClientSecret": "A String",
                  "tokenEndpoint": "A String",
                },
                "parameterMapping": {
                  "a_key": "A String",
                },
                "password": "A String",
                "requestBody": "A String",
                "requestHeaders": {
                  "a_key": "A String",
                },
                "secretVersionForUsernamePassword": "A String",
                "secretVersionsForRequestHeaders": {
                  "a_key": {
                    "secretVersion": "A String",
                  },
                },
                "serviceAccountAuthConfig": {
                  "serviceAccount": "A String",
                },
                "serviceAgentAuth": "A String",
                "uri": "A String",
                "username": "A String",
                "webhookType": "A String",
              },
              "service": "A String",
            },
            "timeout": "A String",
          },
        ],
      },
    }

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

    Returns:
      An object of the form:

        {
      "done": True or False,
      "error": {
        "code": 42,
        "details": [
          {
            "a_key": "", # Properties of the object. Contains field @type with type URL.
          },
        ],
        "message": "A String",
      },
      "metadata": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
      "name": "A String",
      "response": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    }

`delete(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:

        {
    }

`deployFlow(environment, body=None, x__xgafv=None)`

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

    {
      "flowVersion": "A String",
    }

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

    Returns:
      An object of the form:

        {
      "done": True or False,
      "error": {
        "code": 42,
        "details": [
          {
            "a_key": "", # Properties of the object. Contains field @type with type URL.
          },
        ],
        "message": "A String",
      },
      "metadata": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
      "name": "A String",
      "response": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    }

`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:

        {
      "description": "A String",
      "displayName": "A String",
      "name": "A String",
      "testCasesConfig": {
        "enableContinuousRun": True or False,
        "enablePredeploymentRun": True or False,
        "testCases": [
          "A String",
        ],
      },
      "updateTime": "A String",
      "versionConfigs": [
        {
          "version": "A String",
        },
      ],
      "webhookConfig": {
        "webhookOverrides": [
          {
            "disabled": True or False,
            "displayName": "A String",
            "genericWebService": {
              "allowedCaCerts": [
                "A String",
              ],
              "httpMethod": "A String",
              "oauthConfig": {
                "clientId": "A String",
                "clientSecret": "A String",
                "scopes": [
                  "A String",
                ],
                "secretVersionForClientSecret": "A String",
                "tokenEndpoint": "A String",
              },
              "parameterMapping": {
                "a_key": "A String",
              },
              "password": "A String",
              "requestBody": "A String",
              "requestHeaders": {
                "a_key": "A String",
              },
              "secretVersionForUsernamePassword": "A String",
              "secretVersionsForRequestHeaders": {
                "a_key": {
                  "secretVersion": "A String",
                },
              },
              "serviceAccountAuthConfig": {
                "serviceAccount": "A String",
              },
              "serviceAgentAuth": "A String",
              "uri": "A String",
              "username": "A String",
              "webhookType": "A String",
            },
            "name": "A String",
            "serviceDirectory": {
              "genericWebService": {
                "allowedCaCerts": [
                  "A String",
                ],
                "httpMethod": "A String",
                "oauthConfig": {
                  "clientId": "A String",
                  "clientSecret": "A String",
                  "scopes": [
                    "A String",
                  ],
                  "secretVersionForClientSecret": "A String",
                  "tokenEndpoint": "A String",
                },
                "parameterMapping": {
                  "a_key": "A String",
                },
                "password": "A String",
                "requestBody": "A String",
                "requestHeaders": {
                  "a_key": "A String",
                },
                "secretVersionForUsernamePassword": "A String",
                "secretVersionsForRequestHeaders": {
                  "a_key": {
                    "secretVersion": "A String",
                  },
                },
                "serviceAccountAuthConfig": {
                  "serviceAccount": "A String",
                },
                "serviceAgentAuth": "A String",
                "uri": "A String",
                "username": "A String",
                "webhookType": "A String",
              },
              "service": "A String",
            },
            "timeout": "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:

        {
      "environments": [
        {
          "description": "A String",
          "displayName": "A String",
          "name": "A String",
          "testCasesConfig": {
            "enableContinuousRun": True or False,
            "enablePredeploymentRun": True or False,
            "testCases": [
              "A String",
            ],
          },
          "updateTime": "A String",
          "versionConfigs": [
            {
              "version": "A String",
            },
          ],
          "webhookConfig": {
            "webhookOverrides": [
              {
                "disabled": True or False,
                "displayName": "A String",
                "genericWebService": {
                  "allowedCaCerts": [
                    "A String",
                  ],
                  "httpMethod": "A String",
                  "oauthConfig": {
                    "clientId": "A String",
                    "clientSecret": "A String",
                    "scopes": [
                      "A String",
                    ],
                    "secretVersionForClientSecret": "A String",
                    "tokenEndpoint": "A String",
                  },
                  "parameterMapping": {
                    "a_key": "A String",
                  },
                  "password": "A String",
                  "requestBody": "A String",
                  "requestHeaders": {
                    "a_key": "A String",
                  },
                  "secretVersionForUsernamePassword": "A String",
                  "secretVersionsForRequestHeaders": {
                    "a_key": {
                      "secretVersion": "A String",
                    },
                  },
                  "serviceAccountAuthConfig": {
                    "serviceAccount": "A String",
                  },
                  "serviceAgentAuth": "A String",
                  "uri": "A String",
                  "username": "A String",
                  "webhookType": "A String",
                },
                "name": "A String",
                "serviceDirectory": {
                  "genericWebService": {
                    "allowedCaCerts": [
                      "A String",
                    ],
                    "httpMethod": "A String",
                    "oauthConfig": {
                      "clientId": "A String",
                      "clientSecret": "A String",
                      "scopes": [
                        "A String",
                      ],
                      "secretVersionForClientSecret": "A String",
                      "tokenEndpoint": "A String",
                    },
                    "parameterMapping": {
                      "a_key": "A String",
                    },
                    "password": "A String",
                    "requestBody": "A String",
                    "requestHeaders": {
                      "a_key": "A String",
                    },
                    "secretVersionForUsernamePassword": "A String",
                    "secretVersionsForRequestHeaders": {
                      "a_key": {
                        "secretVersion": "A String",
                      },
                    },
                    "serviceAccountAuthConfig": {
                      "serviceAccount": "A String",
                    },
                    "serviceAgentAuth": "A String",
                    "uri": "A String",
                    "username": "A String",
                    "webhookType": "A String",
                  },
                  "service": "A String",
                },
                "timeout": "A String",
              },
            ],
          },
        },
      ],
      "nextPageToken": "A String",
    }

`list_next(previous_request, previous_response)`

    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.

`lookupEnvironmentHistory(name, pageSize=None, pageToken=None, x__xgafv=None)`

    Args:
      name: 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:

        {
      "environments": [
        {
          "description": "A String",
          "displayName": "A String",
          "name": "A String",
          "testCasesConfig": {
            "enableContinuousRun": True or False,
            "enablePredeploymentRun": True or False,
            "testCases": [
              "A String",
            ],
          },
          "updateTime": "A String",
          "versionConfigs": [
            {
              "version": "A String",
            },
          ],
          "webhookConfig": {
            "webhookOverrides": [
              {
                "disabled": True or False,
                "displayName": "A String",
                "genericWebService": {
                  "allowedCaCerts": [
                    "A String",
                  ],
                  "httpMethod": "A String",
                  "oauthConfig": {
                    "clientId": "A String",
                    "clientSecret": "A String",
                    "scopes": [
                      "A String",
                    ],
                    "secretVersionForClientSecret": "A String",
                    "tokenEndpoint": "A String",
                  },
                  "parameterMapping": {
                    "a_key": "A String",
                  },
                  "password": "A String",
                  "requestBody": "A String",
                  "requestHeaders": {
                    "a_key": "A String",
                  },
                  "secretVersionForUsernamePassword": "A String",
                  "secretVersionsForRequestHeaders": {
                    "a_key": {
                      "secretVersion": "A String",
                    },
                  },
                  "serviceAccountAuthConfig": {
                    "serviceAccount": "A String",
                  },
                  "serviceAgentAuth": "A String",
                  "uri": "A String",
                  "username": "A String",
                  "webhookType": "A String",
                },
                "name": "A String",
                "serviceDirectory": {
                  "genericWebService": {
                    "allowedCaCerts": [
                      "A String",
                    ],
                    "httpMethod": "A String",
                    "oauthConfig": {
                      "clientId": "A String",
                      "clientSecret": "A String",
                      "scopes": [
                        "A String",
                      ],
                      "secretVersionForClientSecret": "A String",
                      "tokenEndpoint": "A String",
                    },
                    "parameterMapping": {
                      "a_key": "A String",
                    },
                    "password": "A String",
                    "requestBody": "A String",
                    "requestHeaders": {
                      "a_key": "A String",
                    },
                    "secretVersionForUsernamePassword": "A String",
                    "secretVersionsForRequestHeaders": {
                      "a_key": {
                        "secretVersion": "A String",
                      },
                    },
                    "serviceAccountAuthConfig": {
                      "serviceAccount": "A String",
                    },
                    "serviceAgentAuth": "A String",
                    "uri": "A String",
                    "username": "A String",
                    "webhookType": "A String",
                  },
                  "service": "A String",
                },
                "timeout": "A String",
              },
            ],
          },
        },
      ],
      "nextPageToken": "A String",
    }

`lookupEnvironmentHistory_next(previous_request, previous_response)`

    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.

`patch(name, body=None, updateMask=None, x__xgafv=None)`

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

    {
      "description": "A String",
      "displayName": "A String",
      "name": "A String",
      "testCasesConfig": {
        "enableContinuousRun": True or False,
        "enablePredeploymentRun": True or False,
        "testCases": [
          "A String",
        ],
      },
      "updateTime": "A String",
      "versionConfigs": [
        {
          "version": "A String",
        },
      ],
      "webhookConfig": {
        "webhookOverrides": [
          {
            "disabled": True or False,
            "displayName": "A String",
            "genericWebService": {
              "allowedCaCerts": [
                "A String",
              ],
              "httpMethod": "A String",
              "oauthConfig": {
                "clientId": "A String",
                "clientSecret": "A String",
                "scopes": [
                  "A String",
                ],
                "secretVersionForClientSecret": "A String",
                "tokenEndpoint": "A String",
              },
              "parameterMapping": {
                "a_key": "A String",
              },
              "password": "A String",
              "requestBody": "A String",
              "requestHeaders": {
                "a_key": "A String",
              },
              "secretVersionForUsernamePassword": "A String",
              "secretVersionsForRequestHeaders": {
                "a_key": {
                  "secretVersion": "A String",
                },
              },
              "serviceAccountAuthConfig": {
                "serviceAccount": "A String",
              },
              "serviceAgentAuth": "A String",
              "uri": "A String",
              "username": "A String",
              "webhookType": "A String",
            },
            "name": "A String",
            "serviceDirectory": {
              "genericWebService": {
                "allowedCaCerts": [
                  "A String",
                ],
                "httpMethod": "A String",
                "oauthConfig": {
                  "clientId": "A String",
                  "clientSecret": "A String",
                  "scopes": [
                    "A String",
                  ],
                  "secretVersionForClientSecret": "A String",
                  "tokenEndpoint": "A String",
                },
                "parameterMapping": {
                  "a_key": "A String",
                },
                "password": "A String",
                "requestBody": "A String",
                "requestHeaders": {
                  "a_key": "A String",
                },
                "secretVersionForUsernamePassword": "A String",
                "secretVersionsForRequestHeaders": {
                  "a_key": {
                    "secretVersion": "A String",
                  },
                },
                "serviceAccountAuthConfig": {
                  "serviceAccount": "A String",
                },
                "serviceAgentAuth": "A String",
                "uri": "A String",
                "username": "A String",
                "webhookType": "A String",
              },
              "service": "A String",
            },
            "timeout": "A String",
          },
        ],
      },
    }

      updateMask: 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:

        {
      "done": True or False,
      "error": {
        "code": 42,
        "details": [
          {
            "a_key": "", # Properties of the object. Contains field @type with type URL.
          },
        ],
        "message": "A String",
      },
      "metadata": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
      "name": "A String",
      "response": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    }

`runContinuousTest(environment, body=None, x__xgafv=None)`

    Args:
      environment: 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:

        {
      "done": True or False,
      "error": {
        "code": 42,
        "details": [
          {
            "a_key": "", # Properties of the object. Contains field @type with type URL.
          },
        ],
        "message": "A String",
      },
      "metadata": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
      "name": "A String",
      "response": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    }