gogol-binaryauthorization-0.4.0: Google Binary Authorization SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Contents

Description

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

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

projectsGetPolicy Source #

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
Eq ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Data ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsGetPolicy -> c ProjectsGetPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsGetPolicy #

toConstr :: ProjectsGetPolicy -> Constr #

dataTypeOf :: ProjectsGetPolicy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsGetPolicy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsGetPolicy) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsGetPolicy -> ProjectsGetPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsGetPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsGetPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsGetPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsGetPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsGetPolicy -> m ProjectsGetPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsGetPolicy -> m ProjectsGetPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsGetPolicy -> m ProjectsGetPolicy #

Show ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Generic ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Associated Types

type Rep ProjectsGetPolicy :: Type -> Type #

GoogleRequest ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Associated Types

type Rs ProjectsGetPolicy :: Type #

type Scopes ProjectsGetPolicy :: [Symbol] #

type Rep ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

type Rep ProjectsGetPolicy = D1 (MetaData "ProjectsGetPolicy" "Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy" "gogol-binaryauthorization-0.4.0-BhgUYr1FlAtBUJGnGudaWV" False) (C1 (MetaCons "ProjectsGetPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pgpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pgpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pgpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pgpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pgpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pgpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

type Scopes ProjectsGetPolicy = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsGetPolicy Source # 
Instance details

Defined in Network.Google.Resource.BinaryAuthorization.Projects.GetPolicy

Request Lenses

pgpUploadProtocol :: Lens' ProjectsGetPolicy (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

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`.