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.notes.setIamPolicy
.
Synopsis
- type ProjectsNotesSetIAMPolicyResource = "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))))))))
- projectsNotesSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsNotesSetIAMPolicy
- data ProjectsNotesSetIAMPolicy
- pnsipXgafv :: Lens' ProjectsNotesSetIAMPolicy (Maybe Xgafv)
- pnsipUploadProtocol :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text)
- pnsipAccessToken :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text)
- pnsipUploadType :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text)
- pnsipPayload :: Lens' ProjectsNotesSetIAMPolicy SetIAMPolicyRequest
- pnsipResource :: Lens' ProjectsNotesSetIAMPolicy Text
- pnsipCallback :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsNotesSetIAMPolicyResource = "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.notes.setIamPolicy
method which the
ProjectsNotesSetIAMPolicy
request conforms to.
Creating a Request
projectsNotesSetIAMPolicy Source #
Creates a value of ProjectsNotesSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsNotesSetIAMPolicy 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: projectsNotesSetIAMPolicy
smart constructor.
Instances
Request Lenses
pnsipXgafv :: Lens' ProjectsNotesSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pnsipUploadProtocol :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pnsipAccessToken :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text) Source #
OAuth access token.
pnsipUploadType :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pnsipPayload :: Lens' ProjectsNotesSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
pnsipResource :: Lens' ProjectsNotesSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
pnsipCallback :: Lens' ProjectsNotesSetIAMPolicy (Maybe Text) Source #
JSONP