gogol-logging-0.5.0: Google Stackdriver Logging 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.Logging.Projects.Sinks.Create

Contents

Description

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

See: Stackdriver Logging API Reference for logging.projects.sinks.create.

Synopsis

REST Resource

type ProjectsSinksCreateResource = "v2" :> (Capture "parent" Text :> ("sinks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "uniqueWriterIdentity" Bool :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogSink :> Post '[JSON] LogSink)))))))))) Source #

A resource alias for logging.projects.sinks.create method which the ProjectsSinksCreate request conforms to.

Creating a Request

projectsSinksCreate Source #

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

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

data ProjectsSinksCreate Source #

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

See: projectsSinksCreate smart constructor.

Instances
Eq ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

Data ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

Methods

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

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

toConstr :: ProjectsSinksCreate -> Constr #

dataTypeOf :: ProjectsSinksCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

Generic ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

Associated Types

type Rep ProjectsSinksCreate :: Type -> Type #

GoogleRequest ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

Associated Types

type Rs ProjectsSinksCreate :: Type #

type Scopes ProjectsSinksCreate :: [Symbol] #

type Rep ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

type Rep ProjectsSinksCreate = D1 (MetaData "ProjectsSinksCreate" "Network.Google.Resource.Logging.Projects.Sinks.Create" "gogol-logging-0.5.0-D7izZmzBhjyB83tPXbIfdB" False) (C1 (MetaCons "ProjectsSinksCreate'" PrefixI True) (((S1 (MetaSel (Just "_pscParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pscXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_pscUniqueWriterIdentity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_pscUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pscAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pscUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pscPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LogSink) :*: S1 (MetaSel (Just "_pscCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsSinksCreate Source # 
Instance details

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

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

Defined in Network.Google.Resource.Logging.Projects.Sinks.Create

Request Lenses

pscParent :: Lens' ProjectsSinksCreate Text Source #

Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789".

pscUniqueWriterIdentity :: Lens' ProjectsSinksCreate (Maybe Bool) Source #

Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.

pscUploadProtocol :: Lens' ProjectsSinksCreate (Maybe Text) Source #

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

pscUploadType :: Lens' ProjectsSinksCreate (Maybe Text) Source #

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

pscPayload :: Lens' ProjectsSinksCreate LogSink Source #

Multipart request metadata.