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.Import

Contents

Description

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

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

projectsAgentImport Source #

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

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

Data ProjectsAgentImport Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsAgentImport -> Constr #

dataTypeOf :: ProjectsAgentImport -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAgentImport Source # 
Instance details

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

Generic ProjectsAgentImport Source # 
Instance details

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

Associated Types

type Rep ProjectsAgentImport :: Type -> Type #

GoogleRequest ProjectsAgentImport Source # 
Instance details

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

Associated Types

type Rs ProjectsAgentImport :: Type #

type Scopes ProjectsAgentImport :: [Symbol] #

type Rep ProjectsAgentImport Source # 
Instance details

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

type Rep ProjectsAgentImport = D1 (MetaData "ProjectsAgentImport" "Network.Google.Resource.DialogFlow.Projects.Agent.Import" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentImport'" PrefixI True) ((S1 (MetaSel (Just "_paiParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_paiXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_paiUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_paiAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paiUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_paiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2ImportAgentRequest) :*: S1 (MetaSel (Just "_paiCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAgentImport Source # 
Instance details

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

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

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

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

paiUploadType :: Lens' ProjectsAgentImport (Maybe Text) Source #

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