aws_sdk_apigateway/client/update_documentation_part.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateDocumentationPart`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`rest_api_id(impl Into<String>)`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7 /// - [`documentation_part_id(impl Into<String>)`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::documentation_part_id) / [`set_documentation_part_id(Option<String>)`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::set_documentation_part_id):<br>required: **true**<br><p>The identifier of the to-be-updated documentation part.</p><br>
8 /// - [`patch_operations(PatchOperation)`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::patch_operations) / [`set_patch_operations(Option<Vec::<PatchOperation>>)`](crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::set_patch_operations):<br>required: **false**<br><p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p><br>
9 /// - On success, responds with [`UpdateDocumentationPartOutput`](crate::operation::update_documentation_part::UpdateDocumentationPartOutput) with field(s):
10 /// - [`id(Option<String>)`](crate::operation::update_documentation_part::UpdateDocumentationPartOutput::id): <p>The DocumentationPart identifier, generated by API Gateway when the <code>DocumentationPart</code> is created.</p>
11 /// - [`location(Option<DocumentationPartLocation>)`](crate::operation::update_documentation_part::UpdateDocumentationPartOutput::location): <p>The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.</p>
12 /// - [`properties(Option<String>)`](crate::operation::update_documentation_part::UpdateDocumentationPartOutput::properties): <p>A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., <code>"{ \"description\": \"The API does ...\" }"</code>. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of <code>x-amazon-apigateway-documentation</code>.</p>
13 /// - On failure, responds with [`SdkError<UpdateDocumentationPartError>`](crate::operation::update_documentation_part::UpdateDocumentationPartError)
14 pub fn update_documentation_part(&self) -> crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder {
15 crate::operation::update_documentation_part::builders::UpdateDocumentationPartFluentBuilder::new(self.handle.clone())
16 }
17}