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 |
Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to List Sub-Collections.
See: Dialogflow API Reference for dialogflow.projects.agent.search
.
Synopsis
- type ProjectsAgentSearchResource = "v2" :> (Capture "parent" Text :> ("agent:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleCloudDialogflowV2SearchAgentsResponse))))))))))
- projectsAgentSearch :: Text -> ProjectsAgentSearch
- data ProjectsAgentSearch
- pasParent :: Lens' ProjectsAgentSearch Text
- pasXgafv :: Lens' ProjectsAgentSearch (Maybe Xgafv)
- pasUploadProtocol :: Lens' ProjectsAgentSearch (Maybe Text)
- pasAccessToken :: Lens' ProjectsAgentSearch (Maybe Text)
- pasUploadType :: Lens' ProjectsAgentSearch (Maybe Text)
- pasPageToken :: Lens' ProjectsAgentSearch (Maybe Text)
- pasPageSize :: Lens' ProjectsAgentSearch (Maybe Int32)
- pasCallback :: Lens' ProjectsAgentSearch (Maybe Text)
REST Resource
type ProjectsAgentSearchResource = "v2" :> (Capture "parent" Text :> ("agent:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleCloudDialogflowV2SearchAgentsResponse)))))))))) Source #
A resource alias for dialogflow.projects.agent.search
method which the
ProjectsAgentSearch
request conforms to.
Creating a Request
Creates a value of ProjectsAgentSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsAgentSearch Source #
Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to List Sub-Collections.
See: projectsAgentSearch
smart constructor.
Instances
Request Lenses
pasParent :: Lens' ProjectsAgentSearch Text Source #
Required. The project to list agents from. Format: `projects/`.
pasUploadProtocol :: Lens' ProjectsAgentSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pasAccessToken :: Lens' ProjectsAgentSearch (Maybe Text) Source #
OAuth access token.
pasUploadType :: Lens' ProjectsAgentSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pasPageToken :: Lens' ProjectsAgentSearch (Maybe Text) Source #
Optional. The next_page_token value returned from a previous list request.
pasPageSize :: Lens' ProjectsAgentSearch (Maybe Int32) Source #
Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
pasCallback :: Lens' ProjectsAgentSearch (Maybe Text) Source #
JSONP