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 |
Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an 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.setIamPolicy
.
Synopsis
- type ProjectsOccurrencesSetIAMPolicyResource = "v1beta1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- projectsOccurrencesSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsOccurrencesSetIAMPolicy
- data ProjectsOccurrencesSetIAMPolicy
- posipXgafv :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Xgafv)
- posipUploadProtocol :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text)
- posipAccessToken :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text)
- posipUploadType :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text)
- posipPayload :: Lens' ProjectsOccurrencesSetIAMPolicy SetIAMPolicyRequest
- posipResource :: Lens' ProjectsOccurrencesSetIAMPolicy Text
- posipCallback :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsOccurrencesSetIAMPolicyResource = "v1beta1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for containeranalysis.projects.occurrences.setIamPolicy
method which the
ProjectsOccurrencesSetIAMPolicy
request conforms to.
Creating a Request
projectsOccurrencesSetIAMPolicy Source #
Creates a value of ProjectsOccurrencesSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsOccurrencesSetIAMPolicy Source #
Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an 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: projectsOccurrencesSetIAMPolicy
smart constructor.
Instances
Request Lenses
posipXgafv :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
posipUploadProtocol :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
posipAccessToken :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text) Source #
OAuth access token.
posipUploadType :: Lens' ProjectsOccurrencesSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
posipPayload :: Lens' ProjectsOccurrencesSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
posipResource :: Lens' ProjectsOccurrencesSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.