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 |
Creates a context. If the specified context already exists, overrides the context.
See: Dialogflow API Reference for dialogflow.projects.agent.sessions.contexts.create
.
Synopsis
- type ProjectsAgentSessionsContextsCreateResource = "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 :> (ReqBody '[JSON] GoogleCloudDialogflowV2Context :> Post '[JSON] GoogleCloudDialogflowV2Context)))))))))
- projectsAgentSessionsContextsCreate :: Text -> GoogleCloudDialogflowV2Context -> ProjectsAgentSessionsContextsCreate
- data ProjectsAgentSessionsContextsCreate
- pasccParent :: Lens' ProjectsAgentSessionsContextsCreate Text
- pasccXgafv :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Xgafv)
- pasccUploadProtocol :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text)
- pasccAccessToken :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text)
- pasccUploadType :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text)
- pasccPayload :: Lens' ProjectsAgentSessionsContextsCreate GoogleCloudDialogflowV2Context
- pasccCallback :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text)
REST Resource
type ProjectsAgentSessionsContextsCreateResource = "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 :> (ReqBody '[JSON] GoogleCloudDialogflowV2Context :> Post '[JSON] GoogleCloudDialogflowV2Context))))))))) Source #
A resource alias for dialogflow.projects.agent.sessions.contexts.create
method which the
ProjectsAgentSessionsContextsCreate
request conforms to.
Creating a Request
projectsAgentSessionsContextsCreate Source #
Creates a value of ProjectsAgentSessionsContextsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentSessionsContextsCreate Source #
Creates a context. If the specified context already exists, overrides the context.
See: projectsAgentSessionsContextsCreate
smart constructor.
Instances
Request Lenses
pasccParent :: Lens' ProjectsAgentSessionsContextsCreate Text Source #
Required. The session to create a context for. Format: `projects//agent/sessions/`.
pasccXgafv :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Xgafv) Source #
V1 error format.
pasccUploadProtocol :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pasccAccessToken :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text) Source #
OAuth access token.
pasccUploadType :: Lens' ProjectsAgentSessionsContextsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pasccPayload :: Lens' ProjectsAgentSessionsContextsCreate GoogleCloudDialogflowV2Context Source #
Multipart request metadata.