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.notes.testIamPermissions
.
Synopsis
- type ProjectsNotesTestIAMPermissionsResource = "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))))))))
- projectsNotesTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> ProjectsNotesTestIAMPermissions
- data ProjectsNotesTestIAMPermissions
- pntipXgafv :: Lens' ProjectsNotesTestIAMPermissions (Maybe Xgafv)
- pntipUploadProtocol :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
- pntipAccessToken :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
- pntipUploadType :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
- pntipPayload :: Lens' ProjectsNotesTestIAMPermissions TestIAMPermissionsRequest
- pntipResource :: Lens' ProjectsNotesTestIAMPermissions Text
- pntipCallback :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
REST Resource
type ProjectsNotesTestIAMPermissionsResource = "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.notes.testIamPermissions
method which the
ProjectsNotesTestIAMPermissions
request conforms to.
Creating a Request
projectsNotesTestIAMPermissions Source #
Creates a value of ProjectsNotesTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsNotesTestIAMPermissions 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: projectsNotesTestIAMPermissions
smart constructor.
Instances
Request Lenses
pntipXgafv :: Lens' ProjectsNotesTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
pntipUploadProtocol :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pntipAccessToken :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text) Source #
OAuth access token.
pntipUploadType :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pntipPayload :: Lens' ProjectsNotesTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
pntipResource :: Lens' ProjectsNotesTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.