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 session entity type. If the specified session entity type already exists, overrides the session entity type.
See: Dialogflow API Reference for dialogflow.projects.agent.sessions.entityTypes.create
.
Synopsis
- type ProjectsAgentSessionsEntityTypesCreateResource = "v2" :> (Capture "parent" Text :> ("entityTypes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2SessionEntityType :> Post '[JSON] GoogleCloudDialogflowV2SessionEntityType)))))))))
- projectsAgentSessionsEntityTypesCreate :: Text -> GoogleCloudDialogflowV2SessionEntityType -> ProjectsAgentSessionsEntityTypesCreate
- data ProjectsAgentSessionsEntityTypesCreate
- paSetcParent :: Lens' ProjectsAgentSessionsEntityTypesCreate Text
- paSetcXgafv :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Xgafv)
- paSetcUploadProtocol :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text)
- paSetcAccessToken :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text)
- paSetcUploadType :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text)
- paSetcPayload :: Lens' ProjectsAgentSessionsEntityTypesCreate GoogleCloudDialogflowV2SessionEntityType
- paSetcCallback :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text)
REST Resource
type ProjectsAgentSessionsEntityTypesCreateResource = "v2" :> (Capture "parent" Text :> ("entityTypes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2SessionEntityType :> Post '[JSON] GoogleCloudDialogflowV2SessionEntityType))))))))) Source #
A resource alias for dialogflow.projects.agent.sessions.entityTypes.create
method which the
ProjectsAgentSessionsEntityTypesCreate
request conforms to.
Creating a Request
projectsAgentSessionsEntityTypesCreate Source #
Creates a value of ProjectsAgentSessionsEntityTypesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentSessionsEntityTypesCreate Source #
Creates a session entity type. If the specified session entity type already exists, overrides the session entity type.
See: projectsAgentSessionsEntityTypesCreate
smart constructor.
Instances
Request Lenses
paSetcParent :: Lens' ProjectsAgentSessionsEntityTypesCreate Text Source #
Required. The session to create a session entity type for. Format: `projects//agent/sessions/`.
paSetcXgafv :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Xgafv) Source #
V1 error format.
paSetcUploadProtocol :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paSetcAccessToken :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text) Source #
OAuth access token.
paSetcUploadType :: Lens' ProjectsAgentSessionsEntityTypesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paSetcPayload :: Lens' ProjectsAgentSessionsEntityTypesCreate GoogleCloudDialogflowV2SessionEntityType Source #
Multipart request metadata.