gogol-serviceconsumermanagement-0.4.0: Google Service Consumer Management 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.ServiceConsumerManagement.Services.TenancyUnits.Create

Contents

Description

Creates a tenancy unit with no tenant resources.

See: Service Consumer Management API Reference for serviceconsumermanagement.services.tenancyUnits.create.

Synopsis

REST Resource

type ServicesTenancyUnitsCreateResource = "v1" :> (Capture "parent" Text :> ("tenancyUnits" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateTenancyUnitRequest :> Post '[JSON] TenancyUnit))))))))) Source #

A resource alias for serviceconsumermanagement.services.tenancyUnits.create method which the ServicesTenancyUnitsCreate request conforms to.

Creating a Request

servicesTenancyUnitsCreate Source #

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

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

data ServicesTenancyUnitsCreate Source #

Creates a tenancy unit with no tenant resources.

See: servicesTenancyUnitsCreate smart constructor.

Instances
Eq ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

Data ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

Methods

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

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

toConstr :: ServicesTenancyUnitsCreate -> Constr #

dataTypeOf :: ServicesTenancyUnitsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

Generic ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

Associated Types

type Rep ServicesTenancyUnitsCreate :: Type -> Type #

GoogleRequest ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

type Rep ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

type Rep ServicesTenancyUnitsCreate = D1 (MetaData "ServicesTenancyUnitsCreate" "Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create" "gogol-serviceconsumermanagement-0.4.0-L37508lUfigB9J4lm5vuW3" False) (C1 (MetaCons "ServicesTenancyUnitsCreate'" PrefixI True) ((S1 (MetaSel (Just "_stucParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_stucXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_stucUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_stucAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_stucUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_stucPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateTenancyUnitRequest) :*: S1 (MetaSel (Just "_stucCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesTenancyUnitsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

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

Defined in Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.Create

Request Lenses

stucParent :: Lens' ServicesTenancyUnitsCreate Text Source #

services/{service}/{collection id}/{resource id} {collection id} is the cloud resource collection type representing the service consumer, for example 'projects', or 'organizations'. {resource id} is the consumer numeric id, such as project number: '123456'. {service} the name of a service, for example 'service.googleapis.com'. Enabled service binding using the new tenancy unit.

stucUploadProtocol :: Lens' ServicesTenancyUnitsCreate (Maybe Text) Source #

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

stucUploadType :: Lens' ServicesTenancyUnitsCreate (Maybe Text) Source #

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