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 a notification channel. Fields not specified in the field mask remain unchanged.
See: Stackdriver Monitoring API Reference for monitoring.projects.notificationChannels.patch
.
Synopsis
- type ProjectsNotificationChannelsPatchResource = "v3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] NotificationChannel :> Patch '[JSON] NotificationChannel)))))))))
- projectsNotificationChannelsPatch :: NotificationChannel -> Text -> ProjectsNotificationChannelsPatch
- data ProjectsNotificationChannelsPatch
- pncpXgafv :: Lens' ProjectsNotificationChannelsPatch (Maybe Xgafv)
- pncpUploadProtocol :: Lens' ProjectsNotificationChannelsPatch (Maybe Text)
- pncpUpdateMask :: Lens' ProjectsNotificationChannelsPatch (Maybe GFieldMask)
- pncpAccessToken :: Lens' ProjectsNotificationChannelsPatch (Maybe Text)
- pncpUploadType :: Lens' ProjectsNotificationChannelsPatch (Maybe Text)
- pncpPayload :: Lens' ProjectsNotificationChannelsPatch NotificationChannel
- pncpName :: Lens' ProjectsNotificationChannelsPatch Text
- pncpCallback :: Lens' ProjectsNotificationChannelsPatch (Maybe Text)
REST Resource
type ProjectsNotificationChannelsPatchResource = "v3" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] NotificationChannel :> Patch '[JSON] NotificationChannel))))))))) Source #
A resource alias for monitoring.projects.notificationChannels.patch
method which the
ProjectsNotificationChannelsPatch
request conforms to.
Creating a Request
projectsNotificationChannelsPatch Source #
Creates a value of ProjectsNotificationChannelsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsNotificationChannelsPatch Source #
Updates a notification channel. Fields not specified in the field mask remain unchanged.
See: projectsNotificationChannelsPatch
smart constructor.
Instances
Request Lenses
pncpUploadProtocol :: Lens' ProjectsNotificationChannelsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pncpUpdateMask :: Lens' ProjectsNotificationChannelsPatch (Maybe GFieldMask) Source #
The fields to update.
pncpAccessToken :: Lens' ProjectsNotificationChannelsPatch (Maybe Text) Source #
OAuth access token.
pncpUploadType :: Lens' ProjectsNotificationChannelsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pncpPayload :: Lens' ProjectsNotificationChannelsPatch NotificationChannel Source #
Multipart request metadata.