gogol-dialogflow-0.4.0: Google Dialogflow SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

Contents

Description

Updates the specified context.

See: Dialogflow API Reference for dialogflow.projects.agent.sessions.contexts.patch.

Synopsis

REST Resource

type ProjectsAgentSessionsContextsPatchResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2Context :> Patch '[JSON] GoogleCloudDialogflowV2Context))))))))) Source #

A resource alias for dialogflow.projects.agent.sessions.contexts.patch method which the ProjectsAgentSessionsContextsPatch request conforms to.

Creating a Request

data ProjectsAgentSessionsContextsPatch Source #

Updates the specified context.

See: projectsAgentSessionsContextsPatch smart constructor.

Instances
Eq ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

Data ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsAgentSessionsContextsPatch -> c ProjectsAgentSessionsContextsPatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsAgentSessionsContextsPatch #

toConstr :: ProjectsAgentSessionsContextsPatch -> Constr #

dataTypeOf :: ProjectsAgentSessionsContextsPatch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsAgentSessionsContextsPatch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsAgentSessionsContextsPatch) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsAgentSessionsContextsPatch -> ProjectsAgentSessionsContextsPatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAgentSessionsContextsPatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAgentSessionsContextsPatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsAgentSessionsContextsPatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsAgentSessionsContextsPatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsAgentSessionsContextsPatch -> m ProjectsAgentSessionsContextsPatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAgentSessionsContextsPatch -> m ProjectsAgentSessionsContextsPatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAgentSessionsContextsPatch -> m ProjectsAgentSessionsContextsPatch #

Show ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

Generic ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

Associated Types

type Rep ProjectsAgentSessionsContextsPatch :: Type -> Type #

GoogleRequest ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

type Rep ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

type Rep ProjectsAgentSessionsContextsPatch = D1 (MetaData "ProjectsAgentSessionsContextsPatch" "Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentSessionsContextsPatch'" PrefixI True) (((S1 (MetaSel (Just "_pascpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pascpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pascpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_pascpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pascpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pascpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2Context)) :*: (S1 (MetaSel (Just "_pascpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pascpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

type Scopes ProjectsAgentSessionsContextsPatch = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/dialogflow" ': ([] :: [Symbol]))
type Rs ProjectsAgentSessionsContextsPatch Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Sessions.Contexts.Patch

Request Lenses

pascpUploadProtocol :: Lens' ProjectsAgentSessionsContextsPatch (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pascpUpdateMask :: Lens' ProjectsAgentSessionsContextsPatch (Maybe GFieldMask) Source #

Optional. The mask to control which fields get updated.

pascpUploadType :: Lens' ProjectsAgentSessionsContextsPatch (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pascpName :: Lens' ProjectsAgentSessionsContextsPatch Text Source #

Required. The unique identifier of the context. Format: `projects//agent/sessions//contexts/`. The `Context ID` is always converted to lowercase, may only contain characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.