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 |
Retrieves the specified agent.
See: Dialogflow API Reference for dialogflow.projects.getAgent
.
Synopsis
- type ProjectsGetAgentResource = "v2" :> (Capture "parent" Text :> ("agent" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleCloudDialogflowV2Agent))))))))
- projectsGetAgent :: Text -> ProjectsGetAgent
- data ProjectsGetAgent
- pgaParent :: Lens' ProjectsGetAgent Text
- pgaXgafv :: Lens' ProjectsGetAgent (Maybe Xgafv)
- pgaUploadProtocol :: Lens' ProjectsGetAgent (Maybe Text)
- pgaAccessToken :: Lens' ProjectsGetAgent (Maybe Text)
- pgaUploadType :: Lens' ProjectsGetAgent (Maybe Text)
- pgaCallback :: Lens' ProjectsGetAgent (Maybe Text)
REST Resource
type ProjectsGetAgentResource = "v2" :> (Capture "parent" Text :> ("agent" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleCloudDialogflowV2Agent)))))))) Source #
A resource alias for dialogflow.projects.getAgent
method which the
ProjectsGetAgent
request conforms to.
Creating a Request
Creates a value of ProjectsGetAgent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsGetAgent Source #
Retrieves the specified agent.
See: projectsGetAgent
smart constructor.
Instances
Request Lenses
pgaParent :: Lens' ProjectsGetAgent Text Source #
Required. The project that the agent to fetch is associated with. Format: `projects/`.
pgaUploadProtocol :: Lens' ProjectsGetAgent (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgaAccessToken :: Lens' ProjectsGetAgent (Maybe Text) Source #
OAuth access token.
pgaUploadType :: Lens' ProjectsGetAgent (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pgaCallback :: Lens' ProjectsGetAgent (Maybe Text) Source #
JSONP