Class ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource
The "environments" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.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(GoogleCloudDialogflowV2beta1Environment, string)
Creates an agent environment.
Declaration
public virtual ProjectsResource.LocationsResource.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: - |
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: - |
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: - |
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: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.GetHistoryRequest |
List(string)
Returns the list of all non-draft 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: - |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.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: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest |