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 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.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2beta1Environment>, IClientServiceRequest<GoogleCloudDialogflowV2beta1Environment>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudDialogflowV2beta1Environment, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudDialogflowV2beta1Environment body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDialogflowV2beta1Environment | body | |
string | name |
Properties
AllowLoadToDraftAndDiscardChanges
Optional. This field is used to prevent accidental overwrite of the draft 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 draft 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/
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()