« blib/lib/Paws/Glacier/UploadArchive.pm
↑ Summary
blib/lib/Paws/Glacier/UploadMultipartPartOutput.pm »
| 1 | |||
| 2 | package Paws::Glacier::UploadMultipartPart; | ||
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | has AccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'accountId', required => 1); | |
| 5 | 2 | has Body => (is => 'ro', isa => 'Str', traits => ['ParamInBody']); | |
| 6 | 2 | has Checksum => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-sha256-tree-hash'); | |
| 7 | 2 | has Range => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'Content-Range'); | |
| 8 | 2 | has UploadId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'uploadId', required => 1); | |
| 9 | 2 | has VaultName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'vaultName', required => 1); | |
| 10 | |||
| 11 | 2 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | class_has _stream_param => (is => 'ro', default => 'Body'); | |
| 13 | 2 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UploadMultipartPart'); | |
| 14 | 2 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}'); | |
| 15 | 2 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | |
| 16 | 2 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Glacier::UploadMultipartPartOutput'); | |
| 17 | 2 | 1; | |
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::Glacier::UploadMultipartPart - Arguments for method UploadMultipartPart on L<Paws::Glacier> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method UploadMultipartPart on the | ||
| 28 | L<Amazon Glacier|Paws::Glacier> service. Use the attributes of this class | ||
| 29 | as arguments to method UploadMultipartPart. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UploadMultipartPart. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $glacier = Paws->service('Glacier'); | ||
| 36 | # To upload the first part of an archive | ||
| 37 | # The example uploads the first 1 MiB (1024 x 1024 bytes) part of an archive. | ||
| 38 | my $UploadMultipartPartOutput = $glacier->UploadMultipartPart( | ||
| 39 | 'AccountId' => '-', | ||
| 40 | 'Body' => 'part1', | ||
| 41 | 'Checksum' => 'c06f7cd4baacb087002a99a5f48bf953', | ||
| 42 | 'Range' => 'bytes 0-1048575/*', | ||
| 43 | 'UploadId' => | ||
| 44 | '19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ', | ||
| 45 | 'VaultName' => 'examplevault' | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $checksum = $UploadMultipartPartOutput->checksum; | ||
| 50 | |||
| 51 | # Returns a L<Paws::Glacier::UploadMultipartPartOutput> object. | ||
| 52 | |||
| 53 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 54 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/glacier/UploadMultipartPart> | ||
| 55 | |||
| 56 | =head1 ATTRIBUTES | ||
| 57 | |||
| 58 | |||
| 59 | =head2 B<REQUIRED> AccountId => Str | ||
| 60 | |||
| 61 | The C<AccountId> value is the AWS account ID of the account that owns | ||
| 62 | the vault. You can either specify an AWS account ID or optionally a | ||
| 63 | single 'C<->' (hyphen), in which case Amazon S3 Glacier uses the AWS | ||
| 64 | account ID associated with the credentials used to sign the request. If | ||
| 65 | you use an account ID, do not include any hyphens ('-') in the ID. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 Body => Str | ||
| 70 | |||
| 71 | The data to upload. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 Checksum => Str | ||
| 76 | |||
| 77 | The SHA256 tree hash of the data being uploaded. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 Range => Str | ||
| 82 | |||
| 83 | Identifies the range of bytes in the assembled archive that will be | ||
| 84 | uploaded in this part. Amazon S3 Glacier uses this information to | ||
| 85 | assemble the archive in the proper sequence. The format of this header | ||
| 86 | follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 B<REQUIRED> UploadId => Str | ||
| 91 | |||
| 92 | The upload ID of the multipart upload. | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | =head2 B<REQUIRED> VaultName => Str | ||
| 97 | |||
| 98 | The name of the vault. | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head1 SEE ALSO | ||
| 104 | |||
| 105 | This class forms part of L<Paws>, documenting arguments for method UploadMultipartPart in L<Paws::Glacier> | ||
| 106 | |||
| 107 | =head1 BUGS and CONTRIBUTIONS | ||
| 108 | |||
| 109 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 110 | |||
| 111 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 112 | |||
| 113 | =cut | ||
| 114 | |||