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 permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.testIamPermissions
.
Synopsis
- type ProjectsReposTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse))))))))
- projectsReposTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsReposTestIAMPermissions
- data ProjectsReposTestIAMPermissions
- prtipXgafv :: Lens' ProjectsReposTestIAMPermissions (Maybe Xgafv)
- prtipUploadProtocol :: Lens' ProjectsReposTestIAMPermissions (Maybe Text)
- prtipAccessToken :: Lens' ProjectsReposTestIAMPermissions (Maybe Text)
- prtipUploadType :: Lens' ProjectsReposTestIAMPermissions (Maybe Text)
- prtipPayload :: Lens' ProjectsReposTestIAMPermissions TestIAMPermissionsRequest
- prtipResource :: Lens' ProjectsReposTestIAMPermissions Text
- prtipCallback :: Lens' ProjectsReposTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsReposTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))) Source #
A resource alias for sourcerepo.projects.repos.testIamPermissions
method which the
ProjectsReposTestIAMPermissions
request conforms to.
Creating a Request
projectsReposTestIAMPermissions Source #
Creates a value of ProjectsReposTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReposTestIAMPermissions Source #
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
See: projectsReposTestIAMPermissions
smart constructor.
Instances
Request Lenses
prtipXgafv :: Lens' ProjectsReposTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
prtipUploadProtocol :: Lens' ProjectsReposTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prtipAccessToken :: Lens' ProjectsReposTestIAMPermissions (Maybe Text) Source #
OAuth access token.
prtipUploadType :: Lens' ProjectsReposTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prtipPayload :: Lens' ProjectsReposTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
prtipResource :: Lens' ProjectsReposTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.