| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Logging.Projects.Sinks.Create
Description
Creates a sink.
See: Google Cloud Logging API Reference for logging.projects.sinks.create.
- type ProjectsSinksCreateResource = "v2beta1" :> (Capture "projectName" Text :> ("sinks" :> (QueryParam "$.xgafv" Text :> (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)))))))))))
- projectsSinksCreate :: LogSink -> Text -> ProjectsSinksCreate
- data ProjectsSinksCreate
- pscXgafv :: Lens' ProjectsSinksCreate (Maybe Text)
- pscUploadProtocol :: Lens' ProjectsSinksCreate (Maybe Text)
- pscPp :: Lens' ProjectsSinksCreate Bool
- pscAccessToken :: Lens' ProjectsSinksCreate (Maybe Text)
- pscUploadType :: Lens' ProjectsSinksCreate (Maybe Text)
- pscPayload :: Lens' ProjectsSinksCreate LogSink
- pscBearerToken :: Lens' ProjectsSinksCreate (Maybe Text)
- pscProjectName :: Lens' ProjectsSinksCreate Text
- pscCallback :: Lens' ProjectsSinksCreate (Maybe Text)
REST Resource
type ProjectsSinksCreateResource = "v2beta1" :> (Capture "projectName" Text :> ("sinks" :> (QueryParam "$.xgafv" Text :> (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.projects.sinks.create method which the
ProjectsSinksCreate request conforms to.
Creating a Request
Arguments
| :: LogSink | |
| -> Text | |
| -> ProjectsSinksCreate |
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.
See: projectsSinksCreate smart constructor.
Instances
Request Lenses
pscUploadProtocol :: Lens' ProjectsSinksCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pscAccessToken :: Lens' ProjectsSinksCreate (Maybe Text) Source #
OAuth access token.
pscUploadType :: Lens' ProjectsSinksCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pscPayload :: Lens' ProjectsSinksCreate LogSink Source #
Multipart request metadata.
pscBearerToken :: Lens' ProjectsSinksCreate (Maybe Text) Source #
OAuth bearer token.
pscProjectName :: Lens' ProjectsSinksCreate Text Source #
The resource name of the project in which to create the sink. Example: `"projects/my-project-id"`. The new sink must be provided in the request.
pscCallback :: Lens' ProjectsSinksCreate (Maybe Text) Source #
JSONP