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 Project.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.testIamPermissions
.
- type ProjectsTestIAMPermissionsResource = "v1" :> ("projects" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))))))
- projectsTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsTestIAMPermissions
- data ProjectsTestIAMPermissions
- ptipXgafv :: Lens' ProjectsTestIAMPermissions (Maybe Xgafv)
- ptipUploadProtocol :: Lens' ProjectsTestIAMPermissions (Maybe Text)
- ptipPp :: Lens' ProjectsTestIAMPermissions Bool
- ptipAccessToken :: Lens' ProjectsTestIAMPermissions (Maybe Text)
- ptipUploadType :: Lens' ProjectsTestIAMPermissions (Maybe Text)
- ptipPayload :: Lens' ProjectsTestIAMPermissions TestIAMPermissionsRequest
- ptipBearerToken :: Lens' ProjectsTestIAMPermissions (Maybe Text)
- ptipResource :: Lens' ProjectsTestIAMPermissions Text
- ptipCallback :: Lens' ProjectsTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsTestIAMPermissionsResource = "v1" :> ("projects" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse))))))))))) Source #
A resource alias for cloudresourcemanager.projects.testIamPermissions
method which the
ProjectsTestIAMPermissions
request conforms to.
Creating a Request
projectsTestIAMPermissions Source #
Creates a value of ProjectsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTestIAMPermissions Source #
Returns permissions that a caller has on the specified Project.
See: projectsTestIAMPermissions
smart constructor.
Request Lenses
ptipUploadProtocol :: Lens' ProjectsTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptipAccessToken :: Lens' ProjectsTestIAMPermissions (Maybe Text) Source #
OAuth access token.
ptipUploadType :: Lens' ProjectsTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptipPayload :: Lens' ProjectsTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
ptipBearerToken :: Lens' ProjectsTestIAMPermissions (Maybe Text) Source #
OAuth bearer token.
ptipResource :: Lens' ProjectsTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.
ptipCallback :: Lens' ProjectsTestIAMPermissions (Maybe Text) Source #
JSONP