| 1 | package Paws::MediaStoreData; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'data.mediastore' } | ||
| 4 | sub signing_name { 'mediastore' } | ||
| 5 | sub version { '2017-09-01' } | ||
| 6 | sub flattened_arrays { 0 } | ||
| 7 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 8 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 9 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 10 | }); | ||
| 11 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 12 | ] }); | ||
| 13 | |||
| 14 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; | ||
| 15 | |||
| 16 | |||
| 17 | sub DeleteObject { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::MediaStoreData::DeleteObject', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | sub DescribeObject { | ||
| 23 | my $self = shift; | ||
| 24 | my $call_object = $self->new_with_coercions('Paws::MediaStoreData::DescribeObject', @_); | ||
| 25 | return $self->caller->do_call($self, $call_object); | ||
| 26 | } | ||
| 27 | sub GetObject { | ||
| 28 | my $self = shift; | ||
| 29 | my $call_object = $self->new_with_coercions('Paws::MediaStoreData::GetObject', @_); | ||
| 30 | return $self->caller->do_call($self, $call_object); | ||
| 31 | } | ||
| 32 | sub ListItems { | ||
| 33 | my $self = shift; | ||
| 34 | my $call_object = $self->new_with_coercions('Paws::MediaStoreData::ListItems', @_); | ||
| 35 | return $self->caller->do_call($self, $call_object); | ||
| 36 | } | ||
| 37 | sub PutObject { | ||
| 38 | my $self = shift; | ||
| 39 | my $call_object = $self->new_with_coercions('Paws::MediaStoreData::PutObject', @_); | ||
| 40 | return $self->caller->do_call($self, $call_object); | ||
| 41 | } | ||
| 42 | |||
| 43 | sub ListAllItems { | ||
| 44 | my $self = shift; | ||
| 45 | |||
| 46 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 47 | my $result = $self->ListItems(@_); | ||
| 48 | my $next_result = $result; | ||
| 49 | |||
| 50 | if (not defined $callback) { | ||
| 51 | while ($next_result->NextToken) { | ||
| 52 | $next_result = $self->ListItems(@_, NextToken => $next_result->NextToken); | ||
| 53 | push @{ $result->Items }, @{ $next_result->Items }; | ||
| 54 | } | ||
| 55 | return $result; | ||
| 56 | } else { | ||
| 57 | while ($result->NextToken) { | ||
| 58 | $callback->($_ => 'Items') foreach (@{ $result->Items }); | ||
| 59 | $result = $self->ListItems(@_, NextToken => $result->NextToken); | ||
| 60 | } | ||
| 61 | $callback->($_ => 'Items') foreach (@{ $result->Items }); | ||
| 62 | } | ||
| 63 | |||
| 64 | return undef | ||
| 65 | } | ||
| 66 | |||
| 67 | |||
| 68 | sub operations { qw/DeleteObject DescribeObject GetObject ListItems PutObject / } | ||
| 69 | |||
| 70 | 1; | ||
| 71 | |||
| 72 | ### main pod documentation begin ### | ||
| 73 | |||
| 74 | =head1 NAME | ||
| 75 | |||
| 76 | Paws::MediaStoreData - Perl Interface to AWS AWS Elemental MediaStore Data Plane | ||
| 77 | |||
| 78 | =head1 SYNOPSIS | ||
| 79 | |||
| 80 | use Paws; | ||
| 81 | |||
| 82 | my $obj = Paws->service('MediaStoreData'); | ||
| 83 | my $res = $obj->Method( | ||
| 84 | Arg1 => $val1, | ||
| 85 | Arg2 => [ 'V1', 'V2' ], | ||
| 86 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 87 | # of the arguments type | ||
| 88 | Arg3 => { Att1 => 'Val1' }, | ||
| 89 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 90 | # the constructor of the arguments type | ||
| 91 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 92 | ); | ||
| 93 | |||
| 94 | =head1 DESCRIPTION | ||
| 95 | |||
| 96 | An AWS Elemental MediaStore asset is an object, similar to an object in | ||
| 97 | the Amazon S3 service. Objects are the fundamental entities that are | ||
| 98 | stored in AWS Elemental MediaStore. | ||
| 99 | |||
| 100 | For the AWS API documentation, see L<https://docs.aws.amazon.com/mediastore/> | ||
| 101 | |||
| 102 | |||
| 103 | =head1 METHODS | ||
| 104 | |||
| 105 | =head2 DeleteObject | ||
| 106 | |||
| 107 | =over | ||
| 108 | |||
| 109 | =item Path => Str | ||
| 110 | |||
| 111 | |||
| 112 | =back | ||
| 113 | |||
| 114 | Each argument is described in detail in: L<Paws::MediaStoreData::DeleteObject> | ||
| 115 | |||
| 116 | Returns: a L<Paws::MediaStoreData::DeleteObjectResponse> instance | ||
| 117 | |||
| 118 | Deletes an object at the specified path. | ||
| 119 | |||
| 120 | |||
| 121 | =head2 DescribeObject | ||
| 122 | |||
| 123 | =over | ||
| 124 | |||
| 125 | =item Path => Str | ||
| 126 | |||
| 127 | |||
| 128 | =back | ||
| 129 | |||
| 130 | Each argument is described in detail in: L<Paws::MediaStoreData::DescribeObject> | ||
| 131 | |||
| 132 | Returns: a L<Paws::MediaStoreData::DescribeObjectResponse> instance | ||
| 133 | |||
| 134 | Gets the headers for an object at the specified path. | ||
| 135 | |||
| 136 | |||
| 137 | =head2 GetObject | ||
| 138 | |||
| 139 | =over | ||
| 140 | |||
| 141 | =item Path => Str | ||
| 142 | |||
| 143 | =item [Range => Str] | ||
| 144 | |||
| 145 | |||
| 146 | =back | ||
| 147 | |||
| 148 | Each argument is described in detail in: L<Paws::MediaStoreData::GetObject> | ||
| 149 | |||
| 150 | Returns: a L<Paws::MediaStoreData::GetObjectResponse> instance | ||
| 151 | |||
| 152 | Downloads the object at the specified path. If the objectE<rsquo>s | ||
| 153 | upload availability is set to C<streaming>, AWS Elemental MediaStore | ||
| 154 | downloads the object even if itE<rsquo>s still uploading the object. | ||
| 155 | |||
| 156 | |||
| 157 | =head2 ListItems | ||
| 158 | |||
| 159 | =over | ||
| 160 | |||
| 161 | =item [MaxResults => Int] | ||
| 162 | |||
| 163 | =item [NextToken => Str] | ||
| 164 | |||
| 165 | =item [Path => Str] | ||
| 166 | |||
| 167 | |||
| 168 | =back | ||
| 169 | |||
| 170 | Each argument is described in detail in: L<Paws::MediaStoreData::ListItems> | ||
| 171 | |||
| 172 | Returns: a L<Paws::MediaStoreData::ListItemsResponse> instance | ||
| 173 | |||
| 174 | Provides a list of metadata entries about folders and objects in the | ||
| 175 | specified folder. | ||
| 176 | |||
| 177 | |||
| 178 | =head2 PutObject | ||
| 179 | |||
| 180 | =over | ||
| 181 | |||
| 182 | =item Body => Str | ||
| 183 | |||
| 184 | =item Path => Str | ||
| 185 | |||
| 186 | =item [CacheControl => Str] | ||
| 187 | |||
| 188 | =item [ContentType => Str] | ||
| 189 | |||
| 190 | =item [StorageClass => Str] | ||
| 191 | |||
| 192 | =item [UploadAvailability => Str] | ||
| 193 | |||
| 194 | |||
| 195 | =back | ||
| 196 | |||
| 197 | Each argument is described in detail in: L<Paws::MediaStoreData::PutObject> | ||
| 198 | |||
| 199 | Returns: a L<Paws::MediaStoreData::PutObjectResponse> instance | ||
| 200 | |||
| 201 | Uploads an object to the specified path. Object sizes are limited to 25 | ||
| 202 | MB for standard upload availability and 10 MB for streaming upload | ||
| 203 | availability. | ||
| 204 | |||
| 205 | |||
| 206 | |||
| 207 | |||
| 208 | =head1 PAGINATORS | ||
| 209 | |||
| 210 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 211 | |||
| 212 | =head2 ListAllItems(sub { },[MaxResults => Int, NextToken => Str, Path => Str]) | ||
| 213 | |||
| 214 | =head2 ListAllItems([MaxResults => Int, NextToken => Str, Path => Str]) | ||
| 215 | |||
| 216 | |||
| 217 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 218 | |||
| 219 | - Items, passing the object as the first parameter, and the string 'Items' as the second parameter | ||
| 220 | |||
| 221 | If not, it will return a a L<Paws::MediaStoreData::ListItemsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 222 | |||
| 223 | |||
| 224 | |||
| 225 | |||
| 226 | |||
| 227 | =head1 SEE ALSO | ||
| 228 | |||
| 229 | This service class forms part of L<Paws> | ||
| 230 | |||
| 231 | =head1 BUGS and CONTRIBUTIONS | ||
| 232 | |||
| 233 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 234 | |||
| 235 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 236 | |||
| 237 | =cut | ||
| 238 |