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 |
Updates or creates a sink.
See: Stackdriver Logging API Reference for logging.projects.sinks.update
.
- type ProjectsSinksUpdateResource = "v2" :> (Capture "sinkName" Text :> (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 :> Put '[JSON] LogSink))))))))))
- projectsSinksUpdate :: LogSink -> Text -> ProjectsSinksUpdate
- data ProjectsSinksUpdate
- psuXgafv :: Lens' ProjectsSinksUpdate (Maybe Xgafv)
- psuUploadProtocol :: Lens' ProjectsSinksUpdate (Maybe Text)
- psuPp :: Lens' ProjectsSinksUpdate Bool
- psuAccessToken :: Lens' ProjectsSinksUpdate (Maybe Text)
- psuUploadType :: Lens' ProjectsSinksUpdate (Maybe Text)
- psuPayload :: Lens' ProjectsSinksUpdate LogSink
- psuBearerToken :: Lens' ProjectsSinksUpdate (Maybe Text)
- psuSinkName :: Lens' ProjectsSinksUpdate Text
- psuCallback :: Lens' ProjectsSinksUpdate (Maybe Text)
REST Resource
type ProjectsSinksUpdateResource = "v2" :> (Capture "sinkName" Text :> (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 :> Put '[JSON] LogSink)))))))))) Source #
A resource alias for logging.projects.sinks.update
method which the
ProjectsSinksUpdate
request conforms to.
Creating a Request
Creates a value of ProjectsSinksUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSinksUpdate Source #
Updates or creates a sink.
See: projectsSinksUpdate
smart constructor.
Request Lenses
psuUploadProtocol :: Lens' ProjectsSinksUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psuAccessToken :: Lens' ProjectsSinksUpdate (Maybe Text) Source #
OAuth access token.
psuUploadType :: Lens' ProjectsSinksUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psuPayload :: Lens' ProjectsSinksUpdate LogSink Source #
Multipart request metadata.
psuBearerToken :: Lens' ProjectsSinksUpdate (Maybe Text) Source #
OAuth bearer token.
psuSinkName :: Lens' ProjectsSinksUpdate Text Source #
Required. The resource name of the sink to update, including the parent resource and the sink identifier. If the sink does not exist, this method creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`.
psuCallback :: Lens' ProjectsSinksUpdate (Maybe Text) Source #
JSONP