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 resource. Returns an empty policy if the resource exists and does not have a policy set.
See: Cloud Source Repositories API Reference for sourcerepo.projects.repos.getIamPolicy
.
Synopsis
- type ProjectsReposGetIAMPolicyResource = "v1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy)))))))
- projectsReposGetIAMPolicy :: Text -> ProjectsReposGetIAMPolicy
- data ProjectsReposGetIAMPolicy
- prgipXgafv :: Lens' ProjectsReposGetIAMPolicy (Maybe Xgafv)
- prgipUploadProtocol :: Lens' ProjectsReposGetIAMPolicy (Maybe Text)
- prgipAccessToken :: Lens' ProjectsReposGetIAMPolicy (Maybe Text)
- prgipUploadType :: Lens' ProjectsReposGetIAMPolicy (Maybe Text)
- prgipResource :: Lens' ProjectsReposGetIAMPolicy Text
- prgipCallback :: Lens' ProjectsReposGetIAMPolicy (Maybe Text)
REST Resource
type ProjectsReposGetIAMPolicyResource = "v1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy))))))) Source #
A resource alias for sourcerepo.projects.repos.getIamPolicy
method which the
ProjectsReposGetIAMPolicy
request conforms to.
Creating a Request
projectsReposGetIAMPolicy Source #
Creates a value of ProjectsReposGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsReposGetIAMPolicy Source #
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
See: projectsReposGetIAMPolicy
smart constructor.
Instances
Request Lenses
prgipXgafv :: Lens' ProjectsReposGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
prgipUploadProtocol :: Lens' ProjectsReposGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prgipAccessToken :: Lens' ProjectsReposGetIAMPolicy (Maybe Text) Source #
OAuth access token.
prgipUploadType :: Lens' ProjectsReposGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prgipResource :: Lens' ProjectsReposGetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
prgipCallback :: Lens' ProjectsReposGetIAMPolicy (Maybe Text) Source #
JSONP