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 |
Trains the specified agent. Operation
See: Dialogflow API Reference for dialogflow.projects.agent.train
.
Synopsis
- 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)))))))))
- projectsAgentTrain :: Text -> GoogleCloudDialogflowV2TrainAgentRequest -> ProjectsAgentTrain
- data ProjectsAgentTrain
- patParent :: Lens' ProjectsAgentTrain Text
- patXgafv :: Lens' ProjectsAgentTrain (Maybe Xgafv)
- patUploadProtocol :: Lens' ProjectsAgentTrain (Maybe Text)
- patAccessToken :: Lens' ProjectsAgentTrain (Maybe Text)
- patUploadType :: Lens' ProjectsAgentTrain (Maybe Text)
- patPayload :: Lens' ProjectsAgentTrain GoogleCloudDialogflowV2TrainAgentRequest
- patCallback :: Lens' ProjectsAgentTrain (Maybe Text)
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
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
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").
patAccessToken :: Lens' ProjectsAgentTrain (Maybe Text) Source #
OAuth access token.
patUploadType :: Lens' ProjectsAgentTrain (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
patPayload :: Lens' ProjectsAgentTrain GoogleCloudDialogflowV2TrainAgentRequest Source #
Multipart request metadata.
patCallback :: Lens' ProjectsAgentTrain (Maybe Text) Source #
JSONP