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 |
Creates a sink.
See: Stackdriver Logging API Reference for logging.organizations.sinks.create
.
- type OrganizationsSinksCreateResource = "v2" :> (Capture "parent" Text :> ("sinks" :> (QueryParam "$.xgafv" Xgafv :> (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)))))))))))
- organizationsSinksCreate :: Text -> LogSink -> OrganizationsSinksCreate
- data OrganizationsSinksCreate
- oscParent :: Lens' OrganizationsSinksCreate Text
- oscXgafv :: Lens' OrganizationsSinksCreate (Maybe Xgafv)
- oscUploadProtocol :: Lens' OrganizationsSinksCreate (Maybe Text)
- oscPp :: Lens' OrganizationsSinksCreate Bool
- oscAccessToken :: Lens' OrganizationsSinksCreate (Maybe Text)
- oscUploadType :: Lens' OrganizationsSinksCreate (Maybe Text)
- oscPayload :: Lens' OrganizationsSinksCreate LogSink
- oscBearerToken :: Lens' OrganizationsSinksCreate (Maybe Text)
- oscCallback :: Lens' OrganizationsSinksCreate (Maybe Text)
REST Resource
type OrganizationsSinksCreateResource = "v2" :> (Capture "parent" Text :> ("sinks" :> (QueryParam "$.xgafv" Xgafv :> (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.organizations.sinks.create
method which the
OrganizationsSinksCreate
request conforms to.
Creating a Request
organizationsSinksCreate Source #
Creates a value of OrganizationsSinksCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSinksCreate Source #
Creates a sink.
See: organizationsSinksCreate
smart constructor.
Request Lenses
oscParent :: Lens' OrganizationsSinksCreate Text Source #
Required. The resource in which to create the sink. Example: `"projects/my-project-id"`. The new sink must be provided in the request.
oscUploadProtocol :: Lens' OrganizationsSinksCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
oscAccessToken :: Lens' OrganizationsSinksCreate (Maybe Text) Source #
OAuth access token.
oscUploadType :: Lens' OrganizationsSinksCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
oscPayload :: Lens' OrganizationsSinksCreate LogSink Source #
Multipart request metadata.
oscBearerToken :: Lens' OrganizationsSinksCreate (Maybe Text) Source #
OAuth bearer token.
oscCallback :: Lens' OrganizationsSinksCreate (Maybe Text) Source #
JSONP