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 a documentation version.
Synopsis
- data UpdateDocumentationVersion = UpdateDocumentationVersion' {}
- newUpdateDocumentationVersion :: Text -> Text -> UpdateDocumentationVersion
- updateDocumentationVersion_patchOperations :: Lens' UpdateDocumentationVersion (Maybe [PatchOperation])
- updateDocumentationVersion_restApiId :: Lens' UpdateDocumentationVersion Text
- updateDocumentationVersion_documentationVersion :: Lens' UpdateDocumentationVersion Text
- data DocumentationVersion = DocumentationVersion' {
- createdDate :: Maybe POSIX
- description :: Maybe Text
- version :: Maybe Text
- newDocumentationVersion :: DocumentationVersion
- documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime)
- documentationVersion_description :: Lens' DocumentationVersion (Maybe Text)
- documentationVersion_version :: Lens' DocumentationVersion (Maybe Text)
Creating a Request
data UpdateDocumentationVersion Source #
Updates an existing documentation version of an API.
See: newUpdateDocumentationVersion
smart constructor.
UpdateDocumentationVersion' | |
|
Instances
newUpdateDocumentationVersion Source #
Create a value of UpdateDocumentationVersion
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:patchOperations:UpdateDocumentationVersion'
, updateDocumentationVersion_patchOperations
- For more information about supported patch operations, see
Patch Operations.
UpdateDocumentationVersion
, updateDocumentationVersion_restApiId
- The string identifier of the associated RestApi..
UpdateDocumentationVersion
, updateDocumentationVersion_documentationVersion
- The version identifier of the to-be-updated documentation version.
Request Lenses
updateDocumentationVersion_patchOperations :: Lens' UpdateDocumentationVersion (Maybe [PatchOperation]) Source #
For more information about supported patch operations, see Patch Operations.
updateDocumentationVersion_restApiId :: Lens' UpdateDocumentationVersion Text Source #
The string identifier of the associated RestApi..
updateDocumentationVersion_documentationVersion :: Lens' UpdateDocumentationVersion Text Source #
The version identifier of the to-be-updated documentation version.
Destructuring the Response
data DocumentationVersion Source #
A snapshot of the documentation of an API.
See: newDocumentationVersion
smart constructor.
DocumentationVersion' | |
|
Instances
newDocumentationVersion :: DocumentationVersion Source #
Create a value of DocumentationVersion
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:createdDate:DocumentationVersion'
, documentationVersion_createdDate
- The date when the API documentation snapshot is created.
$sel:description:DocumentationVersion'
, documentationVersion_description
- The description of the API documentation snapshot.
$sel:version:DocumentationVersion'
, documentationVersion_version
- The version identifier of the API documentation snapshot.
Response Lenses
documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime) Source #
The date when the API documentation snapshot is created.
documentationVersion_description :: Lens' DocumentationVersion (Maybe Text) Source #
The description of the API documentation snapshot.
documentationVersion_version :: Lens' DocumentationVersion (Maybe Text) Source #
The version identifier of the API documentation snapshot.