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 |
Exports the specified agent to a ZIP file. Operation
See: Dialogflow API Reference for dialogflow.projects.agent.export
.
Synopsis
- type ProjectsAgentExportResource = "v2" :> (Capture "parent" Text :> ("agent:export" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2ExportAgentRequest :> Post '[JSON] GoogleLongrunningOperation)))))))))
- projectsAgentExport :: Text -> GoogleCloudDialogflowV2ExportAgentRequest -> ProjectsAgentExport
- data ProjectsAgentExport
- paeParent :: Lens' ProjectsAgentExport Text
- paeXgafv :: Lens' ProjectsAgentExport (Maybe Xgafv)
- paeUploadProtocol :: Lens' ProjectsAgentExport (Maybe Text)
- paeAccessToken :: Lens' ProjectsAgentExport (Maybe Text)
- paeUploadType :: Lens' ProjectsAgentExport (Maybe Text)
- paePayload :: Lens' ProjectsAgentExport GoogleCloudDialogflowV2ExportAgentRequest
- paeCallback :: Lens' ProjectsAgentExport (Maybe Text)
REST Resource
type ProjectsAgentExportResource = "v2" :> (Capture "parent" Text :> ("agent:export" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2ExportAgentRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #
A resource alias for dialogflow.projects.agent.export
method which the
ProjectsAgentExport
request conforms to.
Creating a Request
Creates a value of ProjectsAgentExport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentExport Source #
Exports the specified agent to a ZIP file. Operation
See: projectsAgentExport
smart constructor.
Instances
Request Lenses
paeParent :: Lens' ProjectsAgentExport Text Source #
Required. The project that the agent to export is associated with. Format: `projects/`.
paeUploadProtocol :: Lens' ProjectsAgentExport (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
paeAccessToken :: Lens' ProjectsAgentExport (Maybe Text) Source #
OAuth access token.
paeUploadType :: Lens' ProjectsAgentExport (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
paePayload :: Lens' ProjectsAgentExport GoogleCloudDialogflowV2ExportAgentRequest Source #
Multipart request metadata.
paeCallback :: Lens' ProjectsAgentExport (Maybe Text) Source #
JSONP