| 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.Update
Description
Creates or updates a sink.
See: Google Cloud Logging API Reference for logging.projects.sinks.update.
- type ProjectsSinksUpdateResource = "v2beta1" :> (Capture "sinkName" Text :> (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 :> Put '[JSON] LogSink))))))))))
- projectsSinksUpdate :: LogSink -> Text -> ProjectsSinksUpdate
- data ProjectsSinksUpdate
- psuXgafv :: Lens' ProjectsSinksUpdate (Maybe Text)
- 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 = "v2beta1" :> (Capture "sinkName" Text :> (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 :> Put '[JSON] LogSink)))))))))) Source #
A resource alias for logging.projects.sinks.update method which the
ProjectsSinksUpdate request conforms to.
Creating a Request
Arguments
| :: LogSink | |
| -> Text | |
| -> ProjectsSinksUpdate |
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 #
Creates or updates a sink.
See: projectsSinksUpdate smart constructor.
Instances
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 #
The resource name of the sink to update. Example: `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be provided in the request and have the same name that is specified in `sinkName`. If the sink does not exist, it is created.
psuCallback :: Lens' ProjectsSinksUpdate (Maybe Text) Source #
JSONP