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 |
Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. 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.getIamPolicy
.
Synopsis
- type ProjectsNotesGetIAMPolicyResource = "v1beta1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- projectsNotesGetIAMPolicy :: GetIAMPolicyRequest -> Text -> ProjectsNotesGetIAMPolicy
- data ProjectsNotesGetIAMPolicy
- pngipXgafv :: Lens' ProjectsNotesGetIAMPolicy (Maybe Xgafv)
- pngipUploadProtocol :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
- pngipAccessToken :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
- pngipUploadType :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
- pngipPayload :: Lens' ProjectsNotesGetIAMPolicy GetIAMPolicyRequest
- pngipResource :: Lens' ProjectsNotesGetIAMPolicy Text
- pngipCallback :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
REST Resource
type ProjectsNotesGetIAMPolicyResource = "v1beta1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for containeranalysis.projects.notes.getIamPolicy
method which the
ProjectsNotesGetIAMPolicy
request conforms to.
Creating a Request
projectsNotesGetIAMPolicy Source #
Creates a value of ProjectsNotesGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsNotesGetIAMPolicy Source #
Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
See: projectsNotesGetIAMPolicy
smart constructor.
Instances
Request Lenses
pngipXgafv :: Lens' ProjectsNotesGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pngipUploadProtocol :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pngipAccessToken :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text) Source #
OAuth access token.
pngipUploadType :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pngipPayload :: Lens' ProjectsNotesGetIAMPolicy GetIAMPolicyRequest Source #
Multipart request metadata.
pngipResource :: Lens' ProjectsNotesGetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
pngipCallback :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text) Source #
JSONP