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

Contents

Description

Trains the specified agent. Operation

See: Dialogflow API Reference for dialogflow.projects.agent.train.

Synopsis

REST Resource

type ProjectsAgentTrainResource = "v2" :> (Capture "parent" Text :> ("agent:train" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudDialogflowV2TrainAgentRequest :> Post '[JSON] GoogleLongrunningOperation))))))))) Source #

A resource alias for dialogflow.projects.agent.train method which the ProjectsAgentTrain request conforms to.

Creating a Request

projectsAgentTrain Source #

Creates a value of ProjectsAgentTrain with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsAgentTrain Source #

Trains the specified agent. Operation

See: projectsAgentTrain smart constructor.

Instances
Eq ProjectsAgentTrain Source # 
Instance details

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

Data ProjectsAgentTrain Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsAgentTrain -> Constr #

dataTypeOf :: ProjectsAgentTrain -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAgentTrain Source # 
Instance details

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

Generic ProjectsAgentTrain Source # 
Instance details

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

Associated Types

type Rep ProjectsAgentTrain :: Type -> Type #

GoogleRequest ProjectsAgentTrain Source # 
Instance details

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

Associated Types

type Rs ProjectsAgentTrain :: Type #

type Scopes ProjectsAgentTrain :: [Symbol] #

type Rep ProjectsAgentTrain Source # 
Instance details

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

type Rep ProjectsAgentTrain = D1 (MetaData "ProjectsAgentTrain" "Network.Google.Resource.DialogFlow.Projects.Agent.Train" "gogol-dialogflow-0.4.0-LhfWFPNiwlPEL3P0xqpEYp" False) (C1 (MetaCons "ProjectsAgentTrain'" PrefixI True) ((S1 (MetaSel (Just "_patParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_patXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_patUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_patAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_patUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_patPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GoogleCloudDialogflowV2TrainAgentRequest) :*: S1 (MetaSel (Just "_patCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAgentTrain Source # 
Instance details

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

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

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

Request Lenses

patParent :: Lens' ProjectsAgentTrain Text Source #

Required. The project that the agent to train is associated with. Format: `projects/`.

patUploadProtocol :: Lens' ProjectsAgentTrain (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

patUploadType :: Lens' ProjectsAgentTrain (Maybe Text) Source #

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