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 |
Imports documentation parts
Synopsis
- data ImportDocumentationParts = ImportDocumentationParts' {
- failOnWarnings :: Maybe Bool
- mode :: Maybe PutMode
- restApiId :: Text
- body :: ByteString
- newImportDocumentationParts :: Text -> ByteString -> ImportDocumentationParts
- importDocumentationParts_failOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool)
- importDocumentationParts_mode :: Lens' ImportDocumentationParts (Maybe PutMode)
- importDocumentationParts_restApiId :: Lens' ImportDocumentationParts Text
- importDocumentationParts_body :: Lens' ImportDocumentationParts ByteString
- data ImportDocumentationPartsResponse = ImportDocumentationPartsResponse' {}
- newImportDocumentationPartsResponse :: Int -> ImportDocumentationPartsResponse
- importDocumentationPartsResponse_ids :: Lens' ImportDocumentationPartsResponse (Maybe [Text])
- importDocumentationPartsResponse_warnings :: Lens' ImportDocumentationPartsResponse (Maybe [Text])
- importDocumentationPartsResponse_httpStatus :: Lens' ImportDocumentationPartsResponse Int
Creating a Request
data ImportDocumentationParts Source #
Import documentation parts from an external (e.g., OpenAPI) definition file.
See: newImportDocumentationParts
smart constructor.
ImportDocumentationParts' | |
|
Instances
newImportDocumentationParts Source #
Create a value of ImportDocumentationParts
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:failOnWarnings:ImportDocumentationParts'
, importDocumentationParts_failOnWarnings
- A query parameter to specify whether to rollback the documentation
importation (true
) or not (false
) when a warning is encountered. The
default value is false
.
$sel:mode:ImportDocumentationParts'
, importDocumentationParts_mode
- A query parameter to indicate whether to overwrite (OVERWRITE
) any
existing DocumentationParts definition or to merge (MERGE
) the new
definition into the existing one. The default value is MERGE
.
ImportDocumentationParts
, importDocumentationParts_restApiId
- The string identifier of the associated RestApi.
$sel:body:ImportDocumentationParts'
, importDocumentationParts_body
- Raw byte array representing the to-be-imported documentation parts. To
import from an OpenAPI file, this is a JSON object.
Request Lenses
importDocumentationParts_failOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool) Source #
A query parameter to specify whether to rollback the documentation
importation (true
) or not (false
) when a warning is encountered. The
default value is false
.
importDocumentationParts_mode :: Lens' ImportDocumentationParts (Maybe PutMode) Source #
A query parameter to indicate whether to overwrite (OVERWRITE
) any
existing DocumentationParts definition or to merge (MERGE
) the new
definition into the existing one. The default value is MERGE
.
importDocumentationParts_restApiId :: Lens' ImportDocumentationParts Text Source #
The string identifier of the associated RestApi.
importDocumentationParts_body :: Lens' ImportDocumentationParts ByteString Source #
Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
Destructuring the Response
data ImportDocumentationPartsResponse Source #
A collection of the imported DocumentationPart identifiers.
See: newImportDocumentationPartsResponse
smart constructor.
Instances
newImportDocumentationPartsResponse Source #
Create a value of ImportDocumentationPartsResponse
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:ids:ImportDocumentationPartsResponse'
, importDocumentationPartsResponse_ids
- A list of the returned documentation part identifiers.
ImportDocumentationPartsResponse
, importDocumentationPartsResponse_warnings
- A list of warning messages reported during import of documentation
parts.
$sel:httpStatus:ImportDocumentationPartsResponse'
, importDocumentationPartsResponse_httpStatus
- The response's http status code.
Response Lenses
importDocumentationPartsResponse_ids :: Lens' ImportDocumentationPartsResponse (Maybe [Text]) Source #
A list of the returned documentation part identifiers.
importDocumentationPartsResponse_warnings :: Lens' ImportDocumentationPartsResponse (Maybe [Text]) Source #
A list of warning messages reported during import of documentation parts.
importDocumentationPartsResponse_httpStatus :: Lens' ImportDocumentationPartsResponse Int Source #
The response's http status code.