gogol-logging-0.2.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.Folders.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 current time is outside the sink's start and end times or 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.folders.sinks.create.

Synopsis

REST Resource

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

A resource alias for logging.folders.sinks.create method which the FoldersSinksCreate request conforms to.

Creating a Request

foldersSinksCreate Source #

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

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

data FoldersSinksCreate Source #

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or 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: foldersSinksCreate smart constructor.

Instances

Eq FoldersSinksCreate Source # 
Data FoldersSinksCreate Source # 

Methods

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

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

toConstr :: FoldersSinksCreate -> Constr #

dataTypeOf :: FoldersSinksCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FoldersSinksCreate Source # 
Generic FoldersSinksCreate Source # 
GoogleRequest FoldersSinksCreate Source # 
type Rep FoldersSinksCreate Source # 
type Scopes FoldersSinksCreate Source # 
type Scopes FoldersSinksCreate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/logging.admin" ([] Symbol))
type Rs FoldersSinksCreate Source # 

Request Lenses

fscParent :: Lens' FoldersSinksCreate Text Source #

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

fscUniqueWriterIdentity :: Lens' FoldersSinksCreate (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 cloud-logs'google.com, the same identity used 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.

fscUploadProtocol :: Lens' FoldersSinksCreate (Maybe Text) Source #

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

fscPp :: Lens' FoldersSinksCreate Bool Source #

Pretty-print response.

fscUploadType :: Lens' FoldersSinksCreate (Maybe Text) Source #

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

fscPayload :: Lens' FoldersSinksCreate LogSink Source #

Multipart request metadata.