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 an entity type in the specified agent.
See: Dialogflow API Reference for dialogflow.projects.agent.entityTypes.create
.
Synopsis
- type ProjectsAgentEntityTypesCreateResource = "v2" :> (Capture "parent" Text :> ("entityTypes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2EntityType :> Post '[JSON] GoogleCloudDialogflowV2EntityType))))))))))
- projectsAgentEntityTypesCreate :: Text -> GoogleCloudDialogflowV2EntityType -> ProjectsAgentEntityTypesCreate
- data ProjectsAgentEntityTypesCreate
- paetcParent :: Lens' ProjectsAgentEntityTypesCreate Text
- paetcXgafv :: Lens' ProjectsAgentEntityTypesCreate (Maybe Xgafv)
- paetcLanguageCode :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text)
- paetcUploadProtocol :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text)
- paetcAccessToken :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text)
- paetcUploadType :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text)
- paetcPayload :: Lens' ProjectsAgentEntityTypesCreate GoogleCloudDialogflowV2EntityType
- paetcCallback :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text)
REST Resource
type ProjectsAgentEntityTypesCreateResource = "v2" :> (Capture "parent" Text :> ("entityTypes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2EntityType :> Post '[JSON] GoogleCloudDialogflowV2EntityType)))))))))) Source #
A resource alias for dialogflow.projects.agent.entityTypes.create
method which the
ProjectsAgentEntityTypesCreate
request conforms to.
Creating a Request
projectsAgentEntityTypesCreate Source #
Creates a value of ProjectsAgentEntityTypesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentEntityTypesCreate Source #
Creates an entity type in the specified agent.
See: projectsAgentEntityTypesCreate
smart constructor.
Instances
Request Lenses
paetcParent :: Lens' ProjectsAgentEntityTypesCreate Text Source #
Required. The agent to create a entity type for. Format: `projects//agent`.
paetcXgafv :: Lens' ProjectsAgentEntityTypesCreate (Maybe Xgafv) Source #
V1 error format.
paetcLanguageCode :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #
Optional. The language of entity synonyms defined in `entity_type`. If not specified, the agent's default language is used. More than a dozen languages are supported. Note: languages must be enabled in the agent, before they can be used.
paetcUploadProtocol :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paetcAccessToken :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #
OAuth access token.
paetcUploadType :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paetcPayload :: Lens' ProjectsAgentEntityTypesCreate GoogleCloudDialogflowV2EntityType Source #
Multipart request metadata.
paetcCallback :: Lens' ProjectsAgentEntityTypesCreate (Maybe Text) Source #
JSONP