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 entity type.
See: Dialogflow API Reference for dialogflow.projects.agent.entityTypes.patch
.
Synopsis
- type ProjectsAgentEntityTypesPatchResource = "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 "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2EntityType :> Patch '[JSON] GoogleCloudDialogflowV2EntityType))))))))))
- projectsAgentEntityTypesPatch :: GoogleCloudDialogflowV2EntityType -> Text -> ProjectsAgentEntityTypesPatch
- data ProjectsAgentEntityTypesPatch
- paetpXgafv :: Lens' ProjectsAgentEntityTypesPatch (Maybe Xgafv)
- paetpLanguageCode :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text)
- paetpUploadProtocol :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text)
- paetpUpdateMask :: Lens' ProjectsAgentEntityTypesPatch (Maybe GFieldMask)
- paetpAccessToken :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text)
- paetpUploadType :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text)
- paetpPayload :: Lens' ProjectsAgentEntityTypesPatch GoogleCloudDialogflowV2EntityType
- paetpName :: Lens' ProjectsAgentEntityTypesPatch Text
- paetpCallback :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text)
REST Resource
type ProjectsAgentEntityTypesPatchResource = "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 "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2EntityType :> Patch '[JSON] GoogleCloudDialogflowV2EntityType)))))))))) Source #
A resource alias for dialogflow.projects.agent.entityTypes.patch
method which the
ProjectsAgentEntityTypesPatch
request conforms to.
Creating a Request
projectsAgentEntityTypesPatch Source #
Creates a value of ProjectsAgentEntityTypesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentEntityTypesPatch Source #
Updates the specified entity type.
See: projectsAgentEntityTypesPatch
smart constructor.
Instances
Request Lenses
paetpXgafv :: Lens' ProjectsAgentEntityTypesPatch (Maybe Xgafv) Source #
V1 error format.
paetpLanguageCode :: Lens' ProjectsAgentEntityTypesPatch (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.
paetpUploadProtocol :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paetpUpdateMask :: Lens' ProjectsAgentEntityTypesPatch (Maybe GFieldMask) Source #
Optional. The mask to control which fields get updated.
paetpAccessToken :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text) Source #
OAuth access token.
paetpUploadType :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paetpPayload :: Lens' ProjectsAgentEntityTypesPatch GoogleCloudDialogflowV2EntityType Source #
Multipart request metadata.
paetpName :: Lens' ProjectsAgentEntityTypesPatch Text Source #
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of the entity type. Format: `projects//agent/entityTypes/`.
paetpCallback :: Lens' ProjectsAgentEntityTypesPatch (Maybe Text) Source #
JSONP