gogol-dialogflow-0.4.0: Google Dialogflow SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.DialogFlow.Projects.Agent.Restore

Contents

Description

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

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

projectsAgentRestore Source #

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
Eq ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

Data ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsAgentRestore -> c ProjectsAgentRestore #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsAgentRestore #

toConstr :: ProjectsAgentRestore -> Constr #

dataTypeOf :: ProjectsAgentRestore -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsAgentRestore) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsAgentRestore) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsAgentRestore -> ProjectsAgentRestore #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAgentRestore -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsAgentRestore -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsAgentRestore -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsAgentRestore -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsAgentRestore -> m ProjectsAgentRestore #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAgentRestore -> m ProjectsAgentRestore #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsAgentRestore -> m ProjectsAgentRestore #

Show ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

Generic ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

Associated Types

type Rep ProjectsAgentRestore :: Type -> Type #

GoogleRequest ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

Associated Types

type Rs ProjectsAgentRestore :: Type #

type Scopes ProjectsAgentRestore :: [Symbol] #

type Rep ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

type Rep ProjectsAgentRestore = D1 (MetaData "ProjectsAgentRestore" "Network.Google.Resource.DialogFlow.Projects.Agent.Restore" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentRestore'" PrefixI True) ((S1 (MetaSel (Just "_parParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_parXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_parUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_parAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_parUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_parPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2RestoreAgentRequest) :*: S1 (MetaSel (Just "_parCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

type Scopes ProjectsAgentRestore = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/dialogflow" ': ([] :: [Symbol]))
type Rs ProjectsAgentRestore Source # 
Instance details

Defined in Network.Google.Resource.DialogFlow.Projects.Agent.Restore

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").

parUploadType :: Lens' ProjectsAgentRestore (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").