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

Contents

Description

Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation

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

Synopsis

REST Resource

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

A resource alias for serviceusage.services.disable method which the ServicesDisable request conforms to.

Creating a Request

servicesDisable Source #

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

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

data ServicesDisable Source #

Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation

See: servicesDisable smart constructor.

Instances
Eq ServicesDisable Source # 
Instance details

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

Data ServicesDisable Source # 
Instance details

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

Methods

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

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

toConstr :: ServicesDisable -> Constr #

dataTypeOf :: ServicesDisable -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ServicesDisable Source # 
Instance details

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

Generic ServicesDisable Source # 
Instance details

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

Associated Types

type Rep ServicesDisable :: Type -> Type #

GoogleRequest ServicesDisable Source # 
Instance details

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

Associated Types

type Rs ServicesDisable :: Type #

type Scopes ServicesDisable :: [Symbol] #

type Rep ServicesDisable Source # 
Instance details

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

type Rep ServicesDisable = D1 (MetaData "ServicesDisable" "Network.Google.Resource.ServiceUsage.Services.Disable" "gogol-serviceusage-0.4.0-KCQGLbx3xOb2db308f4LnZ" False) (C1 (MetaCons "ServicesDisable'" PrefixI True) ((S1 (MetaSel (Just "_sdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_sdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_sdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sdPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DisableServiceRequest)) :*: (S1 (MetaSel (Just "_sdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_sdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesDisable Source # 
Instance details

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

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

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

Request Lenses

sdUploadProtocol :: Lens' ServicesDisable (Maybe Text) Source #

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

sdUploadType :: Lens' ServicesDisable (Maybe Text) Source #

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

sdName :: Lens' ServicesDisable Text Source #

Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).