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 intent in the specified agent.
See: Dialogflow API Reference for dialogflow.projects.agent.intents.create
.
Synopsis
- type ProjectsAgentIntentsCreateResource = "v2" :> (Capture "parent" Text :> ("intents" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "intentView" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2Intent :> Post '[JSON] GoogleCloudDialogflowV2Intent)))))))))))
- projectsAgentIntentsCreate :: Text -> GoogleCloudDialogflowV2Intent -> ProjectsAgentIntentsCreate
- data ProjectsAgentIntentsCreate
- paicParent :: Lens' ProjectsAgentIntentsCreate Text
- paicXgafv :: Lens' ProjectsAgentIntentsCreate (Maybe Xgafv)
- paicLanguageCode :: Lens' ProjectsAgentIntentsCreate (Maybe Text)
- paicUploadProtocol :: Lens' ProjectsAgentIntentsCreate (Maybe Text)
- paicAccessToken :: Lens' ProjectsAgentIntentsCreate (Maybe Text)
- paicUploadType :: Lens' ProjectsAgentIntentsCreate (Maybe Text)
- paicPayload :: Lens' ProjectsAgentIntentsCreate GoogleCloudDialogflowV2Intent
- paicIntentView :: Lens' ProjectsAgentIntentsCreate (Maybe Text)
- paicCallback :: Lens' ProjectsAgentIntentsCreate (Maybe Text)
REST Resource
type ProjectsAgentIntentsCreateResource = "v2" :> (Capture "parent" Text :> ("intents" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "intentView" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2Intent :> Post '[JSON] GoogleCloudDialogflowV2Intent))))))))))) Source #
A resource alias for dialogflow.projects.agent.intents.create
method which the
ProjectsAgentIntentsCreate
request conforms to.
Creating a Request
projectsAgentIntentsCreate Source #
Creates a value of ProjectsAgentIntentsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentIntentsCreate Source #
Creates an intent in the specified agent.
See: projectsAgentIntentsCreate
smart constructor.
Instances
Request Lenses
paicParent :: Lens' ProjectsAgentIntentsCreate Text Source #
Required. The agent to create a intent for. Format: `projects//agent`.
paicLanguageCode :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #
Optional. The language of training phrases, parameters and rich messages defined in `intent`. 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.
paicUploadProtocol :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paicAccessToken :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #
OAuth access token.
paicUploadType :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paicPayload :: Lens' ProjectsAgentIntentsCreate GoogleCloudDialogflowV2Intent Source #
Multipart request metadata.
paicIntentView :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #
Optional. The resource view to apply to the returned intent.
paicCallback :: Lens' ProjectsAgentIntentsCreate (Maybe Text) Source #
JSONP