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 the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
See: Container Analysis API Reference for containeranalysis.projects.occurrences.testIamPermissions
.
Synopsis
- type ProjectsOccurrencesTestIAMPermissionsResource = "v1beta1" :> (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))))))))
- projectsOccurrencesTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsOccurrencesTestIAMPermissions
- data ProjectsOccurrencesTestIAMPermissions
- potipXgafv :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Xgafv)
- potipUploadProtocol :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text)
- potipAccessToken :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text)
- potipUploadType :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text)
- potipPayload :: Lens' ProjectsOccurrencesTestIAMPermissions TestIAMPermissionsRequest
- potipResource :: Lens' ProjectsOccurrencesTestIAMPermissions Text
- potipCallback :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsOccurrencesTestIAMPermissionsResource = "v1beta1" :> (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 containeranalysis.projects.occurrences.testIamPermissions
method which the
ProjectsOccurrencesTestIAMPermissions
request conforms to.
Creating a Request
projectsOccurrencesTestIAMPermissions Source #
Creates a value of ProjectsOccurrencesTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsOccurrencesTestIAMPermissions Source #
Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
See: projectsOccurrencesTestIAMPermissions
smart constructor.
Instances
Request Lenses
potipXgafv :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
potipUploadProtocol :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
potipAccessToken :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text) Source #
OAuth access token.
potipUploadType :: Lens' ProjectsOccurrencesTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
potipPayload :: Lens' ProjectsOccurrencesTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
potipResource :: Lens' ProjectsOccurrencesTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.