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 |
Updates the specified intent.
See: Dialogflow API Reference for dialogflow.projects.agent.intents.patch
.
Synopsis
- type ProjectsAgentIntentsPatchResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "intentView" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2Intent :> Patch '[JSON] GoogleCloudDialogflowV2Intent)))))))))))
- projectsAgentIntentsPatch :: GoogleCloudDialogflowV2Intent -> Text -> ProjectsAgentIntentsPatch
- data ProjectsAgentIntentsPatch
- paipXgafv :: Lens' ProjectsAgentIntentsPatch (Maybe Xgafv)
- paipLanguageCode :: Lens' ProjectsAgentIntentsPatch (Maybe Text)
- paipUploadProtocol :: Lens' ProjectsAgentIntentsPatch (Maybe Text)
- paipUpdateMask :: Lens' ProjectsAgentIntentsPatch (Maybe GFieldMask)
- paipAccessToken :: Lens' ProjectsAgentIntentsPatch (Maybe Text)
- paipUploadType :: Lens' ProjectsAgentIntentsPatch (Maybe Text)
- paipPayload :: Lens' ProjectsAgentIntentsPatch GoogleCloudDialogflowV2Intent
- paipIntentView :: Lens' ProjectsAgentIntentsPatch (Maybe Text)
- paipName :: Lens' ProjectsAgentIntentsPatch Text
- paipCallback :: Lens' ProjectsAgentIntentsPatch (Maybe Text)
REST Resource
type ProjectsAgentIntentsPatchResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "intentView" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2Intent :> Patch '[JSON] GoogleCloudDialogflowV2Intent))))))))))) Source #
A resource alias for dialogflow.projects.agent.intents.patch
method which the
ProjectsAgentIntentsPatch
request conforms to.
Creating a Request
projectsAgentIntentsPatch Source #
Creates a value of ProjectsAgentIntentsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentIntentsPatch Source #
Updates the specified intent.
See: projectsAgentIntentsPatch
smart constructor.
Instances
Request Lenses
paipLanguageCode :: Lens' ProjectsAgentIntentsPatch (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. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
paipUploadProtocol :: Lens' ProjectsAgentIntentsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paipUpdateMask :: Lens' ProjectsAgentIntentsPatch (Maybe GFieldMask) Source #
Optional. The mask to control which fields get updated.
paipAccessToken :: Lens' ProjectsAgentIntentsPatch (Maybe Text) Source #
OAuth access token.
paipUploadType :: Lens' ProjectsAgentIntentsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paipPayload :: Lens' ProjectsAgentIntentsPatch GoogleCloudDialogflowV2Intent Source #
Multipart request metadata.
paipIntentView :: Lens' ProjectsAgentIntentsPatch (Maybe Text) Source #
Optional. The resource view to apply to the returned intent.
paipName :: Lens' ProjectsAgentIntentsPatch Text Source #
The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/intents/`.
paipCallback :: Lens' ProjectsAgentIntentsPatch (Maybe Text) Source #
JSONP