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. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
See: Cloud Machine Learning Engine Reference for ml.projects.jobs.testIamPermissions
.
Synopsis
- type ProjectsJobsTestIAMPermissionsResource = "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] GoogleIAMV1__TestIAMPermissionsRequest :> Post '[JSON] GoogleIAMV1__TestIAMPermissionsResponse))))))))
- projectsJobsTestIAMPermissions :: GoogleIAMV1__TestIAMPermissionsRequest -> Text -> ProjectsJobsTestIAMPermissions
- data ProjectsJobsTestIAMPermissions
- pjtipXgafv :: Lens' ProjectsJobsTestIAMPermissions (Maybe Xgafv)
- pjtipUploadProtocol :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
- pjtipAccessToken :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
- pjtipUploadType :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
- pjtipPayload :: Lens' ProjectsJobsTestIAMPermissions GoogleIAMV1__TestIAMPermissionsRequest
- pjtipResource :: Lens' ProjectsJobsTestIAMPermissions Text
- pjtipCallback :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsJobsTestIAMPermissionsResource = "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] GoogleIAMV1__TestIAMPermissionsRequest :> Post '[JSON] GoogleIAMV1__TestIAMPermissionsResponse)))))))) Source #
A resource alias for ml.projects.jobs.testIamPermissions
method which the
ProjectsJobsTestIAMPermissions
request conforms to.
Creating a Request
projectsJobsTestIAMPermissions Source #
Creates a value of ProjectsJobsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsJobsTestIAMPermissions 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. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
See: projectsJobsTestIAMPermissions
smart constructor.
Instances
Request Lenses
pjtipXgafv :: Lens' ProjectsJobsTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
pjtipUploadProtocol :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pjtipAccessToken :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text) Source #
OAuth access token.
pjtipUploadType :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pjtipPayload :: Lens' ProjectsJobsTestIAMPermissions GoogleIAMV1__TestIAMPermissionsRequest Source #
Multipart request metadata.
pjtipResource :: Lens' ProjectsJobsTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
pjtipCallback :: Lens' ProjectsJobsTestIAMPermissions (Maybe Text) Source #
JSONP