Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudDialogflowV2Environment>
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>
ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource.PatchRequest
Implements
IClientServiceRequest<GoogleCloudDialogflowV2Environment>
IClientServiceRequest
Inherited Members
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.Xgafv
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.AccessToken
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.Alt
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.Callback
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.Fields
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.Key
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.OauthToken
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.PrettyPrint
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.QuotaUser
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.UploadType
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.UploadProtocol
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.Execute()
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ExecuteAsync()
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ETagAction
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ModifyRequest
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ValidateParameters
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.ApiVersion
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.RequestParameters
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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.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
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.MethodName

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
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.RestPath

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
ClientServiceRequest<GoogleCloudDialogflowV2Environment>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Environment>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX