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 |
Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation
See: Dialogflow API Reference for dialogflow.projects.agent.restore
.
Synopsis
- type ProjectsAgentRestoreResource = "v2" :> (Capture "parent" Text :> ("agent:restore" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2RestoreAgentRequest :> Post '[JSON] GoogleLongrunningOperation)))))))))
- projectsAgentRestore :: Text -> GoogleCloudDialogflowV2RestoreAgentRequest -> ProjectsAgentRestore
- data ProjectsAgentRestore
- parParent :: Lens' ProjectsAgentRestore Text
- parXgafv :: Lens' ProjectsAgentRestore (Maybe Xgafv)
- parUploadProtocol :: Lens' ProjectsAgentRestore (Maybe Text)
- parAccessToken :: Lens' ProjectsAgentRestore (Maybe Text)
- parUploadType :: Lens' ProjectsAgentRestore (Maybe Text)
- parPayload :: Lens' ProjectsAgentRestore GoogleCloudDialogflowV2RestoreAgentRequest
- parCallback :: Lens' ProjectsAgentRestore (Maybe Text)
REST Resource
type ProjectsAgentRestoreResource = "v2" :> (Capture "parent" Text :> ("agent:restore" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2RestoreAgentRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #
A resource alias for dialogflow.projects.agent.restore
method which the
ProjectsAgentRestore
request conforms to.
Creating a Request
Creates a value of ProjectsAgentRestore
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentRestore Source #
Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation
See: projectsAgentRestore
smart constructor.
Instances
Request Lenses
parParent :: Lens' ProjectsAgentRestore Text Source #
Required. The project that the agent to restore is associated with. Format: `projects/`.
parUploadProtocol :: Lens' ProjectsAgentRestore (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
parAccessToken :: Lens' ProjectsAgentRestore (Maybe Text) Source #
OAuth access token.
parUploadType :: Lens' ProjectsAgentRestore (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
parPayload :: Lens' ProjectsAgentRestore GoogleCloudDialogflowV2RestoreAgentRequest Source #
Multipart request metadata.
parCallback :: Lens' ProjectsAgentRestore (Maybe Text) Source #
JSONP