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

Contents

Description

Creates or updates a project's policy, and returns a copy of the new policy. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.

See: Binary Authorization API Reference for binaryauthorization.projects.updatePolicy.

Synopsis

REST Resource

type ProjectsUpdatePolicyResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy)))))))) Source #

A resource alias for binaryauthorization.projects.updatePolicy method which the ProjectsUpdatePolicy request conforms to.

Creating a Request

projectsUpdatePolicy Source #

Creates a value of ProjectsUpdatePolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsUpdatePolicy Source #

Creates or updates a project's policy, and returns a copy of the new policy. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.

See: projectsUpdatePolicy smart constructor.

Instances
Eq ProjectsUpdatePolicy Source # 
Instance details

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

Data ProjectsUpdatePolicy Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsUpdatePolicy -> Constr #

dataTypeOf :: ProjectsUpdatePolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsUpdatePolicy Source # 
Instance details

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

Generic ProjectsUpdatePolicy Source # 
Instance details

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

Associated Types

type Rep ProjectsUpdatePolicy :: Type -> Type #

GoogleRequest ProjectsUpdatePolicy Source # 
Instance details

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

Associated Types

type Rs ProjectsUpdatePolicy :: Type #

type Scopes ProjectsUpdatePolicy :: [Symbol] #

type Rep ProjectsUpdatePolicy Source # 
Instance details

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

type Rep ProjectsUpdatePolicy = D1 (MetaData "ProjectsUpdatePolicy" "Network.Google.Resource.BinaryAuthorization.Projects.UpdatePolicy" "gogol-binaryauthorization-0.4.0-BhgUYr1FlAtBUJGnGudaWV" False) (C1 (MetaCons "ProjectsUpdatePolicy'" PrefixI True) ((S1 (MetaSel (Just "_pupXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pupUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pupAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pupUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pupPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Policy)) :*: (S1 (MetaSel (Just "_pupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pupCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsUpdatePolicy Source # 
Instance details

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

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

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

Request Lenses

pupUploadProtocol :: Lens' ProjectsUpdatePolicy (Maybe Text) Source #

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

pupUploadType :: Lens' ProjectsUpdatePolicy (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pupPayload :: Lens' ProjectsUpdatePolicy Policy Source #

Multipart request metadata.

pupName :: Lens' ProjectsUpdatePolicy Text Source #

Output only. The resource name, in the format `projects/*/policy`. There is at most one policy per project.