Class ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>, IClientServiceRequest<GoogleCloudDialogflowV2Environment>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudDialogflowV2Environment, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudDialogflowV2Environment body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowV2Environment | body | |
string | name |
Properties
AllowLoadToDraftAndDiscardChanges
Optional. This field is used to prevent accidental overwrite of the default environment,
which is an operation that cannot be undone. To confirm that the caller desires this
overwrite, this field must be explicitly set to true when updating the default environment
(environment ID = -
).
Declaration
[RequestParameter("allowLoadToDraftAndDiscardChanges", RequestParameterType.Query)]
public virtual bool? AllowLoadToDraftAndDiscardChanges { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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 -
.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Required. The mask to control which fields get updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()