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

Contents

Description

Attach an existing project to the tenancy unit as a new tenant resource. The project could be either the tenant project reserved by calling AddTenantProject under tenancy unit for the producer project of service, or from outside. Caller will be checked against the permission as if calling AddTenantProject on the same consumer. To trigger the attachement, the targeted tenant project must be in a folder. Please also make sure ServiceConsumerManagement service account is the owner of that project. Note that these two requirements are already met if the project is reserved through AddTenantProject. Operation.

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

Synopsis

REST Resource

type ServicesTenancyUnitsAttachProjectResource = "v1" :> (CaptureMode "name" "attachProject" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AttachTenantProjectRequest :> Post '[JSON] Operation)))))))) Source #

A resource alias for serviceconsumermanagement.services.tenancyUnits.attachProject method which the ServicesTenancyUnitsAttachProject request conforms to.

Creating a Request

data ServicesTenancyUnitsAttachProject Source #

Attach an existing project to the tenancy unit as a new tenant resource. The project could be either the tenant project reserved by calling AddTenantProject under tenancy unit for the producer project of service, or from outside. Caller will be checked against the permission as if calling AddTenantProject on the same consumer. To trigger the attachement, the targeted tenant project must be in a folder. Please also make sure ServiceConsumerManagement service account is the owner of that project. Note that these two requirements are already met if the project is reserved through AddTenantProject. Operation.

See: servicesTenancyUnitsAttachProject smart constructor.

Instances
Eq ServicesTenancyUnitsAttachProject Source # 
Instance details

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

Data ServicesTenancyUnitsAttachProject Source # 
Instance details

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

Methods

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

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

toConstr :: ServicesTenancyUnitsAttachProject -> Constr #

dataTypeOf :: ServicesTenancyUnitsAttachProject -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ServicesTenancyUnitsAttachProject Source # 
Instance details

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

Generic ServicesTenancyUnitsAttachProject Source # 
Instance details

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

Associated Types

type Rep ServicesTenancyUnitsAttachProject :: Type -> Type #

GoogleRequest ServicesTenancyUnitsAttachProject Source # 
Instance details

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

type Rep ServicesTenancyUnitsAttachProject Source # 
Instance details

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

type Rep ServicesTenancyUnitsAttachProject = D1 (MetaData "ServicesTenancyUnitsAttachProject" "Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.AttachProject" "gogol-serviceconsumermanagement-0.4.0-L37508lUfigB9J4lm5vuW3" False) (C1 (MetaCons "ServicesTenancyUnitsAttachProject'" PrefixI True) ((S1 (MetaSel (Just "_stuapXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_stuapUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_stuapAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_stuapUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_stuapPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AttachTenantProjectRequest)) :*: (S1 (MetaSel (Just "_stuapName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_stuapCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesTenancyUnitsAttachProject Source # 
Instance details

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

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

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

Request Lenses

stuapUploadProtocol :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text) Source #

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

stuapUploadType :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text) Source #

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

stuapName :: Lens' ServicesTenancyUnitsAttachProject Text Source #

Name of the tenancy unit that project will be attached to.