aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload')
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransfer.php270
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransferState.php164
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadBuilder.php148
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadId.php89
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadPart.php101
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferInterface.php66
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferStateInterface.php92
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadIdInterface.php39
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadPartInterface.php46
9 files changed, 0 insertions, 1015 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransfer.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransfer.php
deleted file mode 100644
index 751b558d595..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransfer.php
+++ /dev/null
@@ -1,270 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Aws\Common\Client\AwsClientInterface;
-use Aws\Common\Exception\MultipartUploadException;
-use Aws\Common\Exception\RuntimeException;
-use Guzzle\Common\AbstractHasDispatcher;
-use Guzzle\Http\EntityBody;
-use Guzzle\Http\EntityBodyInterface;
-use Guzzle\Service\Command\OperationCommand;
-use Guzzle\Service\Resource\Model;
-
-/**
- * Abstract class for transfer commonalities
- */
-abstract class AbstractTransfer extends AbstractHasDispatcher implements TransferInterface
-{
- const BEFORE_UPLOAD = 'multipart_upload.before_upload';
- const AFTER_UPLOAD = 'multipart_upload.after_upload';
- const BEFORE_PART_UPLOAD = 'multipart_upload.before_part_upload';
- const AFTER_PART_UPLOAD = 'multipart_upload.after_part_upload';
- const AFTER_ABORT = 'multipart_upload.after_abort';
- const AFTER_COMPLETE = 'multipart_upload.after_complete';
-
- /**
- * @var AwsClientInterface Client used for the transfers
- */
- protected $client;
-
- /**
- * @var TransferStateInterface State of the transfer
- */
- protected $state;
-
- /**
- * @var EntityBody Data source of the transfer
- */
- protected $source;
-
- /**
- * @var array Associative array of options
- */
- protected $options;
-
- /**
- * @var int Size of each part to upload
- */
- protected $partSize;
-
- /**
- * @var bool Whether or not the transfer has been stopped
- */
- protected $stopped = false;
-
- /**
- * Construct a new transfer object
- *
- * @param AwsClientInterface $client Client used for the transfers
- * @param TransferStateInterface $state State used to track transfer
- * @param EntityBody $source Data source of the transfer
- * @param array $options Array of options to apply
- */
- public function __construct(
- AwsClientInterface $client,
- TransferStateInterface $state,
- EntityBody $source,
- array $options = array()
- ) {
- $this->client = $client;
- $this->state = $state;
- $this->source = $source;
- $this->options = $options;
-
- $this->init();
-
- $this->partSize = $this->calculatePartSize();
- }
-
- public function __invoke()
- {
- return $this->upload();
- }
-
- /**
- * {@inheritdoc}
- */
- public static function getAllEvents()
- {
- return array(
- self::BEFORE_PART_UPLOAD,
- self::AFTER_UPLOAD,
- self::BEFORE_PART_UPLOAD,
- self::AFTER_PART_UPLOAD,
- self::AFTER_ABORT,
- self::AFTER_COMPLETE
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function abort()
- {
- $command = $this->getAbortCommand();
- $result = $command->getResult();
-
- $this->state->setAborted(true);
- $this->stop();
- $this->dispatch(self::AFTER_ABORT, $this->getEventData($command));
-
- return $result;
- }
-
- /**
- * {@inheritdoc}
- */
- public function stop()
- {
- $this->stopped = true;
-
- return $this->state;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Get the array of options associated with the transfer
- *
- * @return array
- */
- public function getOptions()
- {
- return $this->options;
- }
-
- /**
- * Set an option on the transfer
- *
- * @param string $option Name of the option
- * @param mixed $value Value to set
- *
- * @return self
- */
- public function setOption($option, $value)
- {
- $this->options[$option] = $value;
-
- return $this;
- }
-
- /**
- * Get the source body of the upload
- *
- * @return EntityBodyInterface
- */
- public function getSource()
- {
- return $this->source;
- }
-
- /**
- * {@inheritdoc}
- * @throws MultipartUploadException when an error is encountered. Use getLastException() to get more information.
- * @throws RuntimeException when attempting to upload an aborted transfer
- */
- public function upload()
- {
- if ($this->state->isAborted()) {
- throw new RuntimeException('The transfer has been aborted and cannot be uploaded');
- }
-
- $this->stopped = false;
- $eventData = $this->getEventData();
- $this->dispatch(self::BEFORE_UPLOAD, $eventData);
-
- try {
- $this->transfer();
- $this->dispatch(self::AFTER_UPLOAD, $eventData);
-
- if ($this->stopped) {
- return null;
- } else {
- $result = $this->complete();
- $this->dispatch(self::AFTER_COMPLETE, $eventData);
- }
- } catch (\Exception $e) {
- throw new MultipartUploadException($this->state, $e);
- }
-
- return $result;
- }
-
- /**
- * Get an array used for event notifications
- *
- * @param OperationCommand $command Command to include in event data
- *
- * @return array
- */
- protected function getEventData(OperationCommand $command = null)
- {
- $data = array(
- 'transfer' => $this,
- 'source' => $this->source,
- 'options' => $this->options,
- 'client' => $this->client,
- 'part_size' => $this->partSize,
- 'state' => $this->state
- );
-
- if ($command) {
- $data['command'] = $command;
- }
-
- return $data;
- }
-
- /**
- * Hook to initialize the transfer
- */
- protected function init() {}
-
- /**
- * Determine the upload part size based on the size of the source data and
- * taking into account the acceptable minimum and maximum part sizes.
- *
- * @return int The part size
- */
- abstract protected function calculatePartSize();
-
- /**
- * Complete the multipart upload
- *
- * @return Model Returns the result of the complete multipart upload command
- */
- abstract protected function complete();
-
- /**
- * Hook to implement in subclasses to perform the actual transfer
- */
- abstract protected function transfer();
-
- /**
- * Fetches the abort command fom the concrete implementation
- *
- * @return OperationCommand
- */
- abstract protected function getAbortCommand();
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransferState.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransferState.php
deleted file mode 100644
index 06d6c840167..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractTransferState.php
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Aws\Common\Exception\RuntimeException;
-
-/**
- * State of a multipart upload
- */
-abstract class AbstractTransferState implements TransferStateInterface
-{
- /**
- * @var UploadIdInterface Object holding params used to identity the upload part
- */
- protected $uploadId;
-
- /**
- * @var array Array of parts where the part number is the index
- */
- protected $parts = array();
-
- /**
- * @var bool Whether or not the transfer was aborted
- */
- protected $aborted = false;
-
- /**
- * Construct a new transfer state object
- *
- * @param UploadIdInterface $uploadId Upload identifier object
- */
- public function __construct(UploadIdInterface $uploadId)
- {
- $this->uploadId = $uploadId;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getUploadId()
- {
- return $this->uploadId;
- }
-
- /**
- * Get a data value from the transfer state's uploadId
- *
- * @param string $key Key to retrieve (e.g. Bucket, Key, UploadId, etc)
- *
- * @return string|null
- */
- public function getFromId($key)
- {
- $params = $this->uploadId->toParams();
-
- return isset($params[$key]) ? $params[$key] : null;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getPart($partNumber)
- {
- return isset($this->parts[$partNumber]) ? $this->parts[$partNumber] : null;
- }
-
- /**
- * {@inheritdoc}
- */
- public function addPart(UploadPartInterface $part)
- {
- $partNumber = $part->getPartNumber();
- $this->parts[$partNumber] = $part;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasPart($partNumber)
- {
- return isset($this->parts[$partNumber]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getPartNumbers()
- {
- return array_keys($this->parts);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setAborted($aborted)
- {
- $this->aborted = (bool) $aborted;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isAborted()
- {
- return $this->aborted;
- }
-
- /**
- * {@inheritdoc}
- */
- public function count()
- {
- return count($this->parts);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getIterator()
- {
- return new \ArrayIterator($this->parts);
- }
-
- /**
- * {@inheritdoc}
- */
- public function serialize()
- {
- return serialize(get_object_vars($this));
- }
-
- /**
- * {@inheritdoc}
- */
- public function unserialize($serialized)
- {
- $data = unserialize($serialized);
- foreach (get_object_vars($this) as $property => $oldValue) {
- if (array_key_exists($property, $data)) {
- $this->{$property} = $data[$property];
- } else {
- throw new RuntimeException("The {$property} property could be restored during unserialization.");
- }
- }
- }
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadBuilder.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadBuilder.php
deleted file mode 100644
index 8690d5cb562..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadBuilder.php
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Aws\Common\Client\AwsClientInterface;
-use Aws\Common\Exception\InvalidArgumentException;
-use Guzzle\Http\EntityBody;
-
-/**
- * Easily create a multipart uploader used to quickly and reliably upload a
- * large file or data stream to Amazon S3 using multipart uploads
- */
-abstract class AbstractUploadBuilder
-{
- /**
- * @var AwsClientInterface Client used to transfer requests
- */
- protected $client;
-
- /**
- * @var TransferStateInterface State of the transfer
- */
- protected $state;
-
- /**
- * @var EntityBody Source of the data
- */
- protected $source;
-
- /**
- * @var array Array of headers to set on the object
- */
- protected $headers = array();
-
- /**
- * Return a new instance of the UploadBuilder
- *
- * @return static
- */
- public static function newInstance()
- {
- return new static;
- }
-
- /**
- * Set the client used to connect to the AWS service
- *
- * @param AwsClientInterface $client Client to use
- *
- * @return $this
- */
- public function setClient(AwsClientInterface $client)
- {
- $this->client = $client;
-
- return $this;
- }
-
- /**
- * Set the state of the upload. This is useful for resuming from a previously started multipart upload.
- * You must use a local file stream as the data source if you wish to resume from a previous upload.
- *
- * @param TransferStateInterface|string $state Pass a TransferStateInterface object or the ID of the initiated
- * multipart upload. When an ID is passed, the builder will create a
- * state object using the data from a ListParts API response.
- *
- * @return $this
- */
- public function resumeFrom($state)
- {
- $this->state = $state;
-
- return $this;
- }
-
- /**
- * Set the data source of the transfer
- *
- * @param resource|string|EntityBody $source Source of the transfer. Pass a string to transfer from a file on disk.
- * You can also stream from a resource returned from fopen or a Guzzle
- * {@see EntityBody} object.
- *
- * @return $this
- * @throws InvalidArgumentException when the source cannot be found or opened
- */
- public function setSource($source)
- {
- // Use the contents of a file as the data source
- if (is_string($source)) {
- if (!file_exists($source)) {
- throw new InvalidArgumentException("File does not exist: {$source}");
- }
- // Clear the cache so that we send accurate file sizes
- clearstatcache(true, $source);
- $source = fopen($source, 'r');
- }
-
- $this->source = EntityBody::factory($source);
-
- if ($this->source->isSeekable() && $this->source->getSize() == 0) {
- throw new InvalidArgumentException('Empty body provided to upload builder');
- }
-
- return $this;
- }
-
- /**
- * Specify the headers to set on the upload
- *
- * @param array $headers Headers to add to the uploaded object
- *
- * @return $this
- */
- public function setHeaders(array $headers)
- {
- $this->headers = $headers;
-
- return $this;
- }
-
- /**
- * Build the appropriate uploader based on the builder options
- *
- * @return TransferInterface
- */
- abstract public function build();
-
- /**
- * Initiate the multipart upload
- *
- * @return TransferStateInterface
- */
- abstract protected function initiateMultipartUpload();
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadId.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadId.php
deleted file mode 100644
index da7952164cb..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadId.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Aws\Common\Exception\InvalidArgumentException;
-
-/**
- * An object that encapsulates the data identifying an upload
- */
-abstract class AbstractUploadId implements UploadIdInterface
-{
- /**
- * @var array Expected values (with defaults)
- */
- protected static $expectedValues = array();
-
- /**
- * @var array Params representing the identifying information
- */
- protected $data = array();
-
- /**
- * {@inheritdoc}
- */
- public static function fromParams($data)
- {
- $uploadId = new static();
- $uploadId->loadData($data);
-
- return $uploadId;
- }
-
- /**
- * {@inheritdoc}
- */
- public function toParams()
- {
- return $this->data;
- }
-
- /**
- * {@inheritdoc}
- */
- public function serialize()
- {
- return serialize($this->data);
- }
-
- /**
- * {@inheritdoc}
- */
- public function unserialize($serialized)
- {
- $this->loadData(unserialize($serialized));
- }
-
- /**
- * Loads an array of data into the UploadId by extracting only the needed keys
- *
- * @param array $data Data to load
- *
- * @throws InvalidArgumentException if a required key is missing
- */
- protected function loadData($data)
- {
- $data = array_replace(static::$expectedValues, array_intersect_key($data, static::$expectedValues));
- foreach ($data as $key => $value) {
- if (isset($data[$key])) {
- $this->data[$key] = $data[$key];
- } else {
- throw new InvalidArgumentException("A required key [$key] was missing from the UploadId.");
- }
- }
- }
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadPart.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadPart.php
deleted file mode 100644
index 1cf4c6d4fa3..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/AbstractUploadPart.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Aws\Common\Exception\InvalidArgumentException;
-
-/**
- * An object that encapsulates the data for an upload part
- */
-abstract class AbstractUploadPart implements UploadPartInterface
-{
- /**
- * @var array A map of external array keys to internal property names
- */
- protected static $keyMap = array();
-
- /**
- * @var int The number of the upload part representing its order in the overall upload
- */
- protected $partNumber;
-
- /**
- * {@inheritdoc}
- */
- public static function fromArray($data)
- {
- $part = new static();
- $part->loadData($data);
-
- return $part;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getPartNumber()
- {
- return $this->partNumber;
- }
-
- /**
- * {@inheritdoc}
- */
- public function toArray()
- {
- $array = array();
- foreach (static::$keyMap as $key => $property) {
- $array[$key] = $this->{$property};
- }
-
- return $array;
- }
-
- /**
- * {@inheritdoc}
- */
- public function serialize()
- {
- return serialize($this->toArray());
- }
-
- /**
- * {@inheritdoc}
- */
- public function unserialize($serialized)
- {
- $this->loadData(unserialize($serialized));
- }
-
- /**
- * Loads an array of data into the upload part by extracting only the needed keys
- *
- * @param array|\Traversable $data Data to load into the upload part value object
- *
- * @throws InvalidArgumentException if a required key is missing
- */
- protected function loadData($data)
- {
- foreach (static::$keyMap as $key => $property) {
- if (isset($data[$key])) {
- $this->{$property} = $data[$key];
- } else {
- throw new InvalidArgumentException("A required key [$key] was missing from the upload part.");
- }
- }
- }
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferInterface.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferInterface.php
deleted file mode 100644
index 1fc1ae9bb9b..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferInterface.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Guzzle\Common\HasDispatcherInterface;
-use Guzzle\Service\Resource\Model;
-
-/**
- * Interface for transferring the contents of a data source to an AWS service via a multipart upload interface
- */
-interface TransferInterface extends HasDispatcherInterface
-{
- /**
- * Upload the source to using a multipart upload
- *
- * @return Model|null Result of the complete multipart upload command or null if uploading was stopped
- */
- public function upload();
-
- /**
- * Abort the upload
- *
- * @return Model Returns the result of the abort multipart upload command
- */
- public function abort();
-
- /**
- * Get the current state of the upload
- *
- * @return TransferStateInterface
- */
- public function getState();
-
- /**
- * Stop the transfer and retrieve the current state.
- *
- * This allows you to stop and later resume a long running transfer if needed.
- *
- * @return TransferStateInterface
- */
- public function stop();
-
- /**
- * Set an option on the transfer object
- *
- * @param string $option Option to set
- * @param mixed $value The value to set
- *
- * @return self
- */
- public function setOption($option, $value);
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferStateInterface.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferStateInterface.php
deleted file mode 100644
index 7f5c0e50dfd..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/TransferStateInterface.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-use Aws\Common\Client\AwsClientInterface;
-
-/**
- * State of a multipart upload
- */
-interface TransferStateInterface extends \Countable, \IteratorAggregate, \Serializable
-{
- /**
- * Create the transfer state from the results of list parts request
- *
- * @param AwsClientInterface $client Client used to send the request
- * @param UploadIdInterface $uploadId Params needed to identify the upload and form the request
- *
- * @return self
- */
- public static function fromUploadId(AwsClientInterface $client, UploadIdInterface $uploadId);
-
- /**
- * Get the params used to identify an upload part
- *
- * @return UploadIdInterface
- */
- public function getUploadId();
-
- /**
- * Get the part information of a specific part
- *
- * @param int $partNumber Part to retrieve
- *
- * @return UploadPartInterface
- */
- public function getPart($partNumber);
-
- /**
- * Add a part to the transfer state
- *
- * @param UploadPartInterface $part The part to add
- *
- * @return self
- */
- public function addPart(UploadPartInterface $part);
-
- /**
- * Check if a specific part has been uploaded
- *
- * @param int $partNumber Part to check
- *
- * @return bool
- */
- public function hasPart($partNumber);
-
- /**
- * Get a list of all of the uploaded part numbers
- *
- * @return array
- */
- public function getPartNumbers();
-
- /**
- * Set whether or not the transfer has been aborted
- *
- * @param bool $aborted Set to true to mark the transfer as aborted
- *
- * @return self
- */
- public function setAborted($aborted);
-
- /**
- * Check if the transfer has been marked as aborted
- *
- * @return bool
- */
- public function isAborted();
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadIdInterface.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadIdInterface.php
deleted file mode 100644
index dd14b17790f..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadIdInterface.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-/**
- * An object that encapsulates the data identifying an upload
- */
-interface UploadIdInterface extends \Serializable
-{
- /**
- * Create an UploadId from an array
- *
- * @param array $data Data representing the upload identification
- *
- * @return self
- */
- public static function fromParams($data);
-
- /**
- * Returns the array form of the upload identification for use as command params
- *
- * @return array
- */
- public function toParams();
-}
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadPartInterface.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadPartInterface.php
deleted file mode 100644
index 6d446d4f08c..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/Common/Model/MultipartUpload/UploadPartInterface.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/**
- * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-namespace Aws\Common\Model\MultipartUpload;
-
-/**
- * An object that encapsulates the data for an upload part
- */
-interface UploadPartInterface extends \Serializable
-{
- /**
- * Create an upload part from an array
- *
- * @param array|\Traversable $data Data representing the upload part
- *
- * @return self
- */
- public static function fromArray($data);
-
- /**
- * Returns the part number of the upload part which is used as an identifier
- *
- * @return int
- */
- public function getPartNumber();
-
- /**
- * Returns the array form of the upload part
- *
- * @return array
- */
- public function toArray();
-}