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 |
Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
See: Access Approval API Reference for accessapproval.organizations.approvalRequests.dismiss
.
Synopsis
- type OrganizationsApprovalRequestsDismissResource = "v1beta1" :> (CaptureMode "name" "dismiss" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DismissApprovalRequestMessage :> Post '[JSON] ApprovalRequest))))))))
- organizationsApprovalRequestsDismiss :: DismissApprovalRequestMessage -> Text -> OrganizationsApprovalRequestsDismiss
- data OrganizationsApprovalRequestsDismiss
- oardXgafv :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Xgafv)
- oardUploadProtocol :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text)
- oardAccessToken :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text)
- oardUploadType :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text)
- oardPayload :: Lens' OrganizationsApprovalRequestsDismiss DismissApprovalRequestMessage
- oardName :: Lens' OrganizationsApprovalRequestsDismiss Text
- oardCallback :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text)
REST Resource
type OrganizationsApprovalRequestsDismissResource = "v1beta1" :> (CaptureMode "name" "dismiss" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DismissApprovalRequestMessage :> Post '[JSON] ApprovalRequest)))))))) Source #
A resource alias for accessapproval.organizations.approvalRequests.dismiss
method which the
OrganizationsApprovalRequestsDismiss
request conforms to.
Creating a Request
organizationsApprovalRequestsDismiss Source #
Creates a value of OrganizationsApprovalRequestsDismiss
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsApprovalRequestsDismiss Source #
Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
See: organizationsApprovalRequestsDismiss
smart constructor.
Instances
Request Lenses
oardUploadProtocol :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
oardAccessToken :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text) Source #
OAuth access token.
oardUploadType :: Lens' OrganizationsApprovalRequestsDismiss (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
oardPayload :: Lens' OrganizationsApprovalRequestsDismiss DismissApprovalRequestMessage Source #
Multipart request metadata.