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 policy for this project. Returns a default policy if the project does not have one.
See: Binary Authorization API Reference for binaryauthorization.projects.getPolicy
.
Synopsis
- type ProjectsGetPolicyResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy)))))))
- projectsGetPolicy :: Text -> ProjectsGetPolicy
- data ProjectsGetPolicy
- pgpXgafv :: Lens' ProjectsGetPolicy (Maybe Xgafv)
- pgpUploadProtocol :: Lens' ProjectsGetPolicy (Maybe Text)
- pgpAccessToken :: Lens' ProjectsGetPolicy (Maybe Text)
- pgpUploadType :: Lens' ProjectsGetPolicy (Maybe Text)
- pgpName :: Lens' ProjectsGetPolicy Text
- pgpCallback :: Lens' ProjectsGetPolicy (Maybe Text)
REST Resource
type ProjectsGetPolicyResource = "v1beta1" :> (Capture "name" 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 binaryauthorization.projects.getPolicy
method which the
ProjectsGetPolicy
request conforms to.
Creating a Request
Creates a value of ProjectsGetPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsGetPolicy Source #
Gets the policy for this project. Returns a default policy if the project does not have one.
See: projectsGetPolicy
smart constructor.
Instances
Request Lenses
pgpUploadProtocol :: Lens' ProjectsGetPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgpAccessToken :: Lens' ProjectsGetPolicy (Maybe Text) Source #
OAuth access token.
pgpUploadType :: Lens' ProjectsGetPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pgpName :: Lens' ProjectsGetPolicy Text Source #
Required. The resource name of the policy to retrieve, in the format `projects/*/policy`.
pgpCallback :: Lens' ProjectsGetPolicy (Maybe Text) Source #
JSONP