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 |
Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. Operation
See: Dialogflow API Reference for dialogflow.projects.agent.import
.
Synopsis
- type ProjectsAgentImportResource = "v2" :> (Capture "parent" Text :> ("agent:import" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2ImportAgentRequest :> Post '[JSON] GoogleLongrunningOperation)))))))))
- projectsAgentImport :: Text -> GoogleCloudDialogflowV2ImportAgentRequest -> ProjectsAgentImport
- data ProjectsAgentImport
- paiParent :: Lens' ProjectsAgentImport Text
- paiXgafv :: Lens' ProjectsAgentImport (Maybe Xgafv)
- paiUploadProtocol :: Lens' ProjectsAgentImport (Maybe Text)
- paiAccessToken :: Lens' ProjectsAgentImport (Maybe Text)
- paiUploadType :: Lens' ProjectsAgentImport (Maybe Text)
- paiPayload :: Lens' ProjectsAgentImport GoogleCloudDialogflowV2ImportAgentRequest
- paiCallback :: Lens' ProjectsAgentImport (Maybe Text)
REST Resource
type ProjectsAgentImportResource = "v2" :> (Capture "parent" Text :> ("agent:import" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2ImportAgentRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #
A resource alias for dialogflow.projects.agent.import
method which the
ProjectsAgentImport
request conforms to.
Creating a Request
Creates a value of ProjectsAgentImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentImport Source #
Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. Operation
See: projectsAgentImport
smart constructor.
Instances
Request Lenses
paiParent :: Lens' ProjectsAgentImport Text Source #
Required. The project that the agent to import is associated with. Format: `projects/`.
paiUploadProtocol :: Lens' ProjectsAgentImport (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paiAccessToken :: Lens' ProjectsAgentImport (Maybe Text) Source #
OAuth access token.
paiUploadType :: Lens' ProjectsAgentImport (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paiPayload :: Lens' ProjectsAgentImport GoogleCloudDialogflowV2ImportAgentRequest Source #
Multipart request metadata.
paiCallback :: Lens' ProjectsAgentImport (Maybe Text) Source #
JSONP