Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates the metadata of a GameSparks snapshot.
Synopsis
- data UpdateSnapshot = UpdateSnapshot' {
- description :: Maybe Text
- gameName :: Text
- snapshotId :: Text
- newUpdateSnapshot :: Text -> Text -> UpdateSnapshot
- updateSnapshot_description :: Lens' UpdateSnapshot (Maybe Text)
- updateSnapshot_gameName :: Lens' UpdateSnapshot Text
- updateSnapshot_snapshotId :: Lens' UpdateSnapshot Text
- data UpdateSnapshotResponse = UpdateSnapshotResponse' {}
- newUpdateSnapshotResponse :: Int -> UpdateSnapshotResponse
- updateSnapshotResponse_snapshot :: Lens' UpdateSnapshotResponse (Maybe SnapshotDetails)
- updateSnapshotResponse_httpStatus :: Lens' UpdateSnapshotResponse Int
Creating a Request
data UpdateSnapshot Source #
See: newUpdateSnapshot
smart constructor.
UpdateSnapshot' | |
|
Instances
Create a value of UpdateSnapshot
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateSnapshot
, updateSnapshot_description
- The description of the snapshot.
$sel:gameName:UpdateSnapshot'
, updateSnapshot_gameName
- The name of the game.
UpdateSnapshot
, updateSnapshot_snapshotId
- The identifier of the snapshot.
Request Lenses
updateSnapshot_description :: Lens' UpdateSnapshot (Maybe Text) Source #
The description of the snapshot.
updateSnapshot_gameName :: Lens' UpdateSnapshot Text Source #
The name of the game.
updateSnapshot_snapshotId :: Lens' UpdateSnapshot Text Source #
The identifier of the snapshot.
Destructuring the Response
data UpdateSnapshotResponse Source #
See: newUpdateSnapshotResponse
smart constructor.
UpdateSnapshotResponse' | |
|
Instances
newUpdateSnapshotResponse Source #
Create a value of UpdateSnapshotResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:snapshot:UpdateSnapshotResponse'
, updateSnapshotResponse_snapshot
- Properties that provide details of the updated snapshot.
$sel:httpStatus:UpdateSnapshotResponse'
, updateSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
updateSnapshotResponse_snapshot :: Lens' UpdateSnapshotResponse (Maybe SnapshotDetails) Source #
Properties that provide details of the updated snapshot.
updateSnapshotResponse_httpStatus :: Lens' UpdateSnapshotResponse Int Source #
The response's http status code.