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 |
Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
See: Access Approval API Reference for accessapproval.folders.approvalRequests.list
.
Synopsis
- type FoldersApprovalRequestsListResource = "v1beta1" :> (Capture "parent" Text :> ("approvalRequests" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListApprovalRequestsResponse)))))))))))
- foldersApprovalRequestsList :: Text -> FoldersApprovalRequestsList
- data FoldersApprovalRequestsList
- farlParent :: Lens' FoldersApprovalRequestsList Text
- farlXgafv :: Lens' FoldersApprovalRequestsList (Maybe Xgafv)
- farlUploadProtocol :: Lens' FoldersApprovalRequestsList (Maybe Text)
- farlAccessToken :: Lens' FoldersApprovalRequestsList (Maybe Text)
- farlUploadType :: Lens' FoldersApprovalRequestsList (Maybe Text)
- farlFilter :: Lens' FoldersApprovalRequestsList (Maybe Text)
- farlPageToken :: Lens' FoldersApprovalRequestsList (Maybe Text)
- farlPageSize :: Lens' FoldersApprovalRequestsList (Maybe Int32)
- farlCallback :: Lens' FoldersApprovalRequestsList (Maybe Text)
REST Resource
type FoldersApprovalRequestsListResource = "v1beta1" :> (Capture "parent" Text :> ("approvalRequests" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListApprovalRequestsResponse))))))))))) Source #
A resource alias for accessapproval.folders.approvalRequests.list
method which the
FoldersApprovalRequestsList
request conforms to.
Creating a Request
foldersApprovalRequestsList Source #
Creates a value of FoldersApprovalRequestsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersApprovalRequestsList Source #
Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
See: foldersApprovalRequestsList
smart constructor.
Instances
Request Lenses
farlParent :: Lens' FoldersApprovalRequestsList Text Source #
The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".
farlUploadProtocol :: Lens' FoldersApprovalRequestsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
farlAccessToken :: Lens' FoldersApprovalRequestsList (Maybe Text) Source #
OAuth access token.
farlUploadType :: Lens' FoldersApprovalRequestsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
farlFilter :: Lens' FoldersApprovalRequestsList (Maybe Text) Source #
A filter on the type of approval requests to retrieve. Must be one of the following values:
- [not set]: Requests that are pending or have active approvals.
- ALL: All requests.
- PENDING: Only pending requests.
- ACTIVE: Only active (i.e. currently approved) requests.
- DISMISSED: Only dismissed (including expired) requests.
farlPageToken :: Lens' FoldersApprovalRequestsList (Maybe Text) Source #
A token identifying the page of results to return.
farlPageSize :: Lens' FoldersApprovalRequestsList (Maybe Int32) Source #
Requested page size.
farlCallback :: Lens' FoldersApprovalRequestsList (Maybe Text) Source #
JSONP