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.occurrences.getIamPolicy
.
Synopsis
- type ProjectsOccurrencesGetIAMPolicyResource = "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))))))))
- projectsOccurrencesGetIAMPolicy :: GetIAMPolicyRequest -> Text -> ProjectsOccurrencesGetIAMPolicy
- data ProjectsOccurrencesGetIAMPolicy
- pogipXgafv :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Xgafv)
- pogipUploadProtocol :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text)
- pogipAccessToken :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text)
- pogipUploadType :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text)
- pogipPayload :: Lens' ProjectsOccurrencesGetIAMPolicy GetIAMPolicyRequest
- pogipResource :: Lens' ProjectsOccurrencesGetIAMPolicy Text
- pogipCallback :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text)
REST Resource
type ProjectsOccurrencesGetIAMPolicyResource = "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.occurrences.getIamPolicy
method which the
ProjectsOccurrencesGetIAMPolicy
request conforms to.
Creating a Request
projectsOccurrencesGetIAMPolicy Source #
Creates a value of ProjectsOccurrencesGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsOccurrencesGetIAMPolicy 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: projectsOccurrencesGetIAMPolicy
smart constructor.
Instances
Request Lenses
pogipXgafv :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pogipUploadProtocol :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pogipAccessToken :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text) Source #
OAuth access token.
pogipUploadType :: Lens' ProjectsOccurrencesGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pogipPayload :: Lens' ProjectsOccurrencesGetIAMPolicy GetIAMPolicyRequest Source #
Multipart request metadata.
pogipResource :: Lens' ProjectsOccurrencesGetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.