Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource

The "environments" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource

Constructors

EnvironmentsResource(IClientService)

Constructs a new resource.

Declaration
public EnvironmentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Intents

Gets the Intents resource.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.IntentsResource Intents { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.IntentsResource

Users

Gets the Users resource.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.UsersResource Users { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.UsersResource

Methods

Create(GoogleCloudDialogflowV2Environment, string)

Creates an agent environment.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.CreateRequest Create(GoogleCloudDialogflowV2Environment body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2Environment body

The body of the request.

string parent

Required. The agent to create an environment for. Supported formats: - projects//agent - projects//locations//agent

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.CreateRequest

Delete(string)

Deletes the specified agent environment.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the environment to delete. / Format: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.DeleteRequest

Get(string)

Retrieves the specified agent environment.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the environment. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.GetRequest

GetHistory(string)

Gets the history of the specified environment.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.GetHistoryRequest GetHistory(string parent)
Parameters
Type Name Description
string parent

Required. The name of the environment to retrieve history for. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.GetHistoryRequest

List(string)

Returns the list of all non-default environments of the specified agent.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The agent to list all environments from. Format: - projects//agent - projects//locations//agent

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.ListRequest

Patch(GoogleCloudDialogflowV2Environment, string)

Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting environment.agent_version, the environment is temporarily set to the LOADING state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the RUNNING state. You can use "-" as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can't be undone. You may want to save the draft agent to a version before calling this method.

Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest Patch(GoogleCloudDialogflowV2Environment body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2Environment body

The body of the request.

string name

Output only. The unique identifier of this agent environment. Supported formats: - projects//agent/environments/ - projects//locations//agent/environments/ The environment ID for the default environment is -.

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest
In this article
Back to top Generated by DocFX