gogol-serviceusage-0.4.0: Google Service Usage 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.ServiceUsage.Services.Enable

Contents

Description

Enable a service so that it can be used with a project. Operation

See: Service Usage API Reference for serviceusage.services.enable.

Synopsis

REST Resource

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

A resource alias for serviceusage.services.enable method which the ServicesEnable request conforms to.

Creating a Request

servicesEnable Source #

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

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

data ServicesEnable Source #

Enable a service so that it can be used with a project. Operation

See: servicesEnable smart constructor.

Instances
Eq ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

Data ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

Methods

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

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

toConstr :: ServicesEnable -> Constr #

dataTypeOf :: ServicesEnable -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

Generic ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

Associated Types

type Rep ServicesEnable :: Type -> Type #

GoogleRequest ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

Associated Types

type Rs ServicesEnable :: Type #

type Scopes ServicesEnable :: [Symbol] #

type Rep ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

type Rep ServicesEnable = D1 (MetaData "ServicesEnable" "Network.Google.Resource.ServiceUsage.Services.Enable" "gogol-serviceusage-0.4.0-KCQGLbx3xOb2db308f4LnZ" False) (C1 (MetaCons "ServicesEnable'" PrefixI True) ((S1 (MetaSel (Just "_seXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_seUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_seAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_seUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sePayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EnableServiceRequest)) :*: (S1 (MetaSel (Just "_seName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_seCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesEnable Source # 
Instance details

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

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

Defined in Network.Google.Resource.ServiceUsage.Services.Enable

Request Lenses

seUploadProtocol :: Lens' ServicesEnable (Maybe Text) Source #

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

seUploadType :: Lens' ServicesEnable (Maybe Text) Source #

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

seName :: Lens' ServicesEnable Text Source #

Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).