Show / Hide Table of Contents

Class ProjectsResource.AgentResource.EnvironmentsResource

The "environments" collection of methods.

Inheritance
object
ProjectsResource.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.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.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.AgentResource.EnvironmentsResource.IntentsResource Intents { get; }
Property Value
Type Description
ProjectsResource.AgentResource.EnvironmentsResource.IntentsResource

Users

Gets the Users resource.

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

Methods

Create(GoogleCloudDialogflowV2beta1Environment, string)

Creates an agent environment.

Declaration
public virtual ProjectsResource.AgentResource.EnvironmentsResource.CreateRequest Create(GoogleCloudDialogflowV2beta1Environment body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1Environment 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.AgentResource.EnvironmentsResource.CreateRequest

Delete(string)

Deletes the specified agent environment.

Declaration
public virtual ProjectsResource.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/

Returns
Type Description
ProjectsResource.AgentResource.EnvironmentsResource.DeleteRequest

Get(string)

Retrieves the specified agent environment.

Declaration
public virtual ProjectsResource.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/

Returns
Type Description
ProjectsResource.AgentResource.EnvironmentsResource.GetRequest

GetHistory(string)

Gets the history of the specified environment.

Declaration
public virtual ProjectsResource.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/

Returns
Type Description
ProjectsResource.AgentResource.EnvironmentsResource.GetHistoryRequest

List(string)

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

Declaration
public virtual ProjectsResource.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.AgentResource.EnvironmentsResource.ListRequest

Patch(GoogleCloudDialogflowV2beta1Environment, 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 keeps on 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 version in "draft" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.

Declaration
public virtual ProjectsResource.AgentResource.EnvironmentsResource.PatchRequest Patch(GoogleCloudDialogflowV2beta1Environment body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1Environment 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/

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