aws_sdk_ecr/client/upload_layer_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 [`UploadLayerPart`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`registry_id(impl Into<String>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry to which you are uploading layer parts. If you do not specify a registry, the default registry is assumed.</p><br>
7 /// - [`repository_name(impl Into<String>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository to which you are uploading layer parts.</p><br>
8 /// - [`upload_id(impl Into<String>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::upload_id) / [`set_upload_id(Option<String>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::set_upload_id):<br>required: **true**<br><p>The upload ID from a previous <code>InitiateLayerUpload</code> operation to associate with the layer part upload.</p><br>
9 /// - [`part_first_byte(i64)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::part_first_byte) / [`set_part_first_byte(Option<i64>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::set_part_first_byte):<br>required: **true**<br><p>The position of the first byte of the layer part witin the overall image layer.</p><br>
10 /// - [`part_last_byte(i64)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::part_last_byte) / [`set_part_last_byte(Option<i64>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::set_part_last_byte):<br>required: **true**<br><p>The position of the last byte of the layer part within the overall image layer.</p><br>
11 /// - [`layer_part_blob(Blob)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::layer_part_blob) / [`set_layer_part_blob(Option<Blob>)`](crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::set_layer_part_blob):<br>required: **true**<br><p>The base64-encoded layer part payload.</p><br>
12 /// - On success, responds with [`UploadLayerPartOutput`](crate::operation::upload_layer_part::UploadLayerPartOutput) with field(s):
13 /// - [`registry_id(Option<String>)`](crate::operation::upload_layer_part::UploadLayerPartOutput::registry_id): <p>The registry ID associated with the request.</p>
14 /// - [`repository_name(Option<String>)`](crate::operation::upload_layer_part::UploadLayerPartOutput::repository_name): <p>The repository name associated with the request.</p>
15 /// - [`upload_id(Option<String>)`](crate::operation::upload_layer_part::UploadLayerPartOutput::upload_id): <p>The upload ID associated with the request.</p>
16 /// - [`last_byte_received(Option<i64>)`](crate::operation::upload_layer_part::UploadLayerPartOutput::last_byte_received): <p>The integer value of the last byte received in the request.</p>
17 /// - On failure, responds with [`SdkError<UploadLayerPartError>`](crate::operation::upload_layer_part::UploadLayerPartError)
18 pub fn upload_layer_part(&self) -> crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder {
19 crate::operation::upload_layer_part::builders::UploadLayerPartFluentBuilder::new(self.handle.clone())
20 }
21}