gogol-accesscontextmanager-0.4.0: Google Access Context Manager 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.AccessContextManager.AccessPolicies.Create

Contents

Description

Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The longrunning Operation will have a successful status once the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.

See: Access Context Manager API Reference for accesscontextmanager.accessPolicies.create.

Synopsis

REST Resource

type AccessPoliciesCreateResource = "v1beta" :> ("accessPolicies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AccessPolicy :> Post '[JSON] Operation)))))))) Source #

A resource alias for accesscontextmanager.accessPolicies.create method which the AccessPoliciesCreate request conforms to.

Creating a Request

accessPoliciesCreate Source #

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

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

data AccessPoliciesCreate Source #

Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The longrunning Operation will have a successful status once the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.

See: accessPoliciesCreate smart constructor.

Instances
Eq AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

Data AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

Methods

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

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

toConstr :: AccessPoliciesCreate -> Constr #

dataTypeOf :: AccessPoliciesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

Generic AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

Associated Types

type Rep AccessPoliciesCreate :: Type -> Type #

GoogleRequest AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

Associated Types

type Rs AccessPoliciesCreate :: Type #

type Scopes AccessPoliciesCreate :: [Symbol] #

type Rep AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

type Rep AccessPoliciesCreate = D1 (MetaData "AccessPoliciesCreate" "Network.Google.Resource.AccessContextManager.AccessPolicies.Create" "gogol-accesscontextmanager-0.4.0-34HzU3tNZ3QCokPfddM6sJ" False) (C1 (MetaCons "AccessPoliciesCreate'" PrefixI True) ((S1 (MetaSel (Just "_apcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_apcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_apcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_apcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_apcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AccessPolicy) :*: S1 (MetaSel (Just "_apcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AccessPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

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

Defined in Network.Google.Resource.AccessContextManager.AccessPolicies.Create

Request Lenses

apcUploadProtocol :: Lens' AccessPoliciesCreate (Maybe Text) Source #

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

apcUploadType :: Lens' AccessPoliciesCreate (Maybe Text) Source #

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