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 resource. Replaces any existing policy.
See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.setIamPolicy
.
Synopsis
- type ProjectsReposSetIAMPolicyResource = "v1" :> (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))))))))
- projectsReposSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsReposSetIAMPolicy
- data ProjectsReposSetIAMPolicy
- prsipXgafv :: Lens' ProjectsReposSetIAMPolicy (Maybe Xgafv)
- prsipUploadProtocol :: Lens' ProjectsReposSetIAMPolicy (Maybe Text)
- prsipAccessToken :: Lens' ProjectsReposSetIAMPolicy (Maybe Text)
- prsipUploadType :: Lens' ProjectsReposSetIAMPolicy (Maybe Text)
- prsipPayload :: Lens' ProjectsReposSetIAMPolicy SetIAMPolicyRequest
- prsipResource :: Lens' ProjectsReposSetIAMPolicy Text
- prsipCallback :: Lens' ProjectsReposSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsReposSetIAMPolicyResource = "v1" :> (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 sourcerepo.projects.repos.setIamPolicy
method which the
ProjectsReposSetIAMPolicy
request conforms to.
Creating a Request
projectsReposSetIAMPolicy Source #
Creates a value of ProjectsReposSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReposSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: projectsReposSetIAMPolicy
smart constructor.
Instances
Request Lenses
prsipXgafv :: Lens' ProjectsReposSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
prsipUploadProtocol :: Lens' ProjectsReposSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prsipAccessToken :: Lens' ProjectsReposSetIAMPolicy (Maybe Text) Source #
OAuth access token.
prsipUploadType :: Lens' ProjectsReposSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prsipPayload :: Lens' ProjectsReposSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
prsipResource :: Lens' ProjectsReposSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
prsipCallback :: Lens' ProjectsReposSetIAMPolicy (Maybe Text) Source #
JSONP