Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes all active contexts in the specified session.
See: Dialogflow API Reference for dialogflow.projects.agent.sessions.deleteContexts
.
Synopsis
- type ProjectsAgentSessionsDeleteContextsResource = "v2" :> (Capture "parent" Text :> ("contexts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] GoogleProtobufEmpty))))))))
- projectsAgentSessionsDeleteContexts :: Text -> ProjectsAgentSessionsDeleteContexts
- data ProjectsAgentSessionsDeleteContexts
- pasdcParent :: Lens' ProjectsAgentSessionsDeleteContexts Text
- pasdcXgafv :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Xgafv)
- pasdcUploadProtocol :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
- pasdcAccessToken :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
- pasdcUploadType :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
- pasdcCallback :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text)
REST Resource
type ProjectsAgentSessionsDeleteContextsResource = "v2" :> (Capture "parent" Text :> ("contexts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] GoogleProtobufEmpty)))))))) Source #
A resource alias for dialogflow.projects.agent.sessions.deleteContexts
method which the
ProjectsAgentSessionsDeleteContexts
request conforms to.
Creating a Request
projectsAgentSessionsDeleteContexts Source #
Creates a value of ProjectsAgentSessionsDeleteContexts
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentSessionsDeleteContexts Source #
Deletes all active contexts in the specified session.
See: projectsAgentSessionsDeleteContexts
smart constructor.
Instances
Request Lenses
pasdcParent :: Lens' ProjectsAgentSessionsDeleteContexts Text Source #
Required. The name of the session to delete all contexts from. Format: `projects//agent/sessions/`.
pasdcXgafv :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Xgafv) Source #
V1 error format.
pasdcUploadProtocol :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pasdcAccessToken :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text) Source #
OAuth access token.
pasdcUploadType :: Lens' ProjectsAgentSessionsDeleteContexts (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").