Container for the parameters to the ListParts operation.

This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for completed uploads. The list returned in the List Parts response is sorted by part range.

The List Parts operation supports pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null . To return a list of parts that begins at a specific part, set the marker request parameter to the value you obtained from a previous List Parts request. You can also limit the number of parts returned in the response by specifying the limit parameter in the request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .

For conceptual information and the underlying REST API, go to Working with Archives in Amazon Glacier and List Parts in the Amazon Glacier Developer Guide .

Inheritance: AmazonGlacierRequest
Example #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the ListParts operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ListParts operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        public Task<ListPartsResponse> ListPartsAsync(ListPartsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ListPartsRequestMarshaller();
            var unmarshaller = ListPartsResponseUnmarshaller.Instance;

            return InvokeAsync<ListPartsRequest,ListPartsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
Example #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the ListParts operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ListParts operation on AmazonGlacierClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        /// 
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListParts
        ///         operation.</returns>
        public IAsyncResult BeginListParts(ListPartsRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new ListPartsRequestMarshaller();
            var unmarshaller = ListPartsResponseUnmarshaller.Instance;

            return BeginInvoke<ListPartsRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
Example #3
0
        internal ListPartsResponse ListParts(ListPartsRequest request)
        {
            var marshaller = new ListPartsRequestMarshaller();
            var unmarshaller = ListPartsResponseUnmarshaller.Instance;

            return Invoke<ListPartsRequest,ListPartsResponse>(request, marshaller, unmarshaller);
        }
        /// <summary>
        /// <para>This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any
        /// time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for
        /// completed uploads. The list returned in the List Parts response is sorted by part range. </para> <para>The List Parts operation supports
        /// pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a
        /// <c>marker</c> at which to continue the list; if there are no more items the <c>marker</c> is <c>null</c> .
        /// To return a list of parts that begins at a specific part, set the <c>marker</c> request parameter to the value you obtained from a
        /// previous List Parts request. You can also limit the number of parts returned in the response by specifying the <c>limit</c> parameter in the
        /// request. </para> <para>An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management
        /// (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more
        /// information, see <a href="http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using AWS
        /// Identity and Access Management (IAM)</a> .</para> <para>For conceptual information and the underlying REST API, go to <a href="http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working with Archives in Amazon Glacier</a> and <a href="http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-parts.html">List Parts</a> in the <i>Amazon Glacier Developer
        /// Guide</i> .</para>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ListParts service method on AmazonGlacier.</param>
        /// 
        /// <returns>The response from the ListParts service method, as returned by AmazonGlacier.</returns>
        /// 
        /// <exception cref="T:Amazon.Glacier.Model.ResourceNotFoundException" />
        /// <exception cref="T:Amazon.Glacier.Model.MissingParameterValueException" />
        /// <exception cref="T:Amazon.Glacier.Model.ServiceUnavailableException" />
        /// <exception cref="T:Amazon.Glacier.Model.InvalidParameterValueException" />
		public ListPartsResponse ListParts(ListPartsRequest request)
        {
            var task = ListPartsAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return null;
            }
        }
        /// <summary>
        /// Initiates the asynchronous execution of the ListParts operation.
        /// <seealso cref="Amazon.Glacier.IAmazonGlacier.ListParts"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ListParts operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
		public Task<ListPartsResponse> ListPartsAsync(ListPartsRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ListPartsRequestMarshaller();
            var unmarshaller = ListPartsResponseUnmarshaller.GetInstance();
            return Invoke<IRequest, ListPartsRequest, ListPartsResponse>(request, marshaller, unmarshaller, signer, cancellationToken);
        }
 IAsyncResult invokeListParts(ListPartsRequest listPartsRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new ListPartsRequestMarshaller().Marshall(listPartsRequest);
     var unmarshaller = ListPartsResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
 /// <summary>
 /// Initiates the asynchronous execution of the ListParts operation.
 /// <seealso cref="Amazon.Glacier.AmazonGlacier.ListParts"/>
 /// </summary>
 /// 
 /// <param name="listPartsRequest">Container for the necessary parameters to execute the ListParts operation on AmazonGlacier.</param>
 /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
 /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
 ///          procedure using the AsyncState property.</param>
 /// 
 /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListParts
 ///         operation.</returns>
 public IAsyncResult BeginListParts(ListPartsRequest listPartsRequest, AsyncCallback callback, object state)
 {
     return invokeListParts(listPartsRequest, callback, state, false);
 }
 /// <summary>
 /// <para>This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any
 /// time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for
 /// completed uploads. The list returned in the List Parts response is sorted by part range. </para> <para>The List Parts operation supports
 /// pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a
 /// <c>marker</c> at which to continue the list; if there are no more items the <c>marker</c> is <c>null</c> .
 /// To return a list of parts that begins at a specific part, set the <c>marker</c> request parameter to the value you obtained from a
 /// previous List Parts request. You can also limit the number of parts returned in the response by specifying the <c>limit</c> parameter in the
 /// request. </para> <para>An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management
 /// (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more
 /// information, see Access Control Using AWS Identity and Access Management (IAM).</para> <para>For conceptual information and the underlying
 /// REST API, go to Working with Archives in Amazon Glacier and List Parts in the <i>Amazon Glacier Developer Guide</i> .</para>
 /// </summary>
 /// 
 /// <param name="listPartsRequest">Container for the necessary parameters to execute the ListParts service method on AmazonGlacier.</param>
 /// 
 /// <returns>The response from the ListParts service method, as returned by AmazonGlacier.</returns>
 /// 
 /// <exception cref="ResourceNotFoundException"/>
 /// <exception cref="MissingParameterValueException"/>
 /// <exception cref="ServiceUnavailableException"/>
 /// <exception cref="InvalidParameterValueException"/>
 public ListPartsResponse ListParts(ListPartsRequest listPartsRequest)
 {
     IAsyncResult asyncResult = invokeListParts(listPartsRequest, null, null, true);
     return EndListParts(asyncResult);
 }
        /// <summary>
        /// <para>This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any
        /// time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for
        /// completed uploads. The list returned in the List Parts response is sorted by part range. </para> <para>The List Parts operation supports
        /// pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a
        /// <c>marker</c> at which to continue the list; if there are no more items the <c>marker</c> is <c>null</c> .
        /// To return a list of parts that begins at a specific part, set the <c>marker</c> request parameter to the value you obtained from a
        /// previous List Parts request. You can also limit the number of parts returned in the response by specifying the <c>limit</c> parameter in the
        /// request. </para> <para>An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management
        /// (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more
        /// information, see <a href="http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using AWS
        /// Identity and Access Management (IAM)</a> .</para> <para>For conceptual information and the underlying REST API, go to <a href="http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working with Archives in Amazon Glacier</a> and <a href="http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-parts.html">List Parts</a> in the <i>Amazon Glacier Developer
        /// Guide</i> .</para>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ListParts service method on AmazonGlacier.</param>
        /// 
        /// <returns>The response from the ListParts service method, as returned by AmazonGlacier.</returns>
        /// 
        /// <exception cref="T:Amazon.Glacier.Model.ResourceNotFoundException" />
        /// <exception cref="T:Amazon.Glacier.Model.MissingParameterValueException" />
        /// <exception cref="T:Amazon.Glacier.Model.ServiceUnavailableException" />
        /// <exception cref="T:Amazon.Glacier.Model.InvalidParameterValueException" />
		public ListPartsResponse ListParts(ListPartsRequest request)
        {
            var task = ListPartsAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                throw e.InnerException;
            }
        }
        /// <summary>
        /// Initiates the asynchronous execution of the ListParts operation.
        /// <seealso cref="Amazon.Glacier.IAmazonGlacier.ListParts"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ListParts operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
		public async Task<ListPartsResponse> ListPartsAsync(ListPartsRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ListPartsRequestMarshaller();
            var unmarshaller = ListPartsResponseUnmarshaller.GetInstance();
            var response = await Invoke<IRequest, ListPartsRequest, ListPartsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)
                .ConfigureAwait(continueOnCapturedContext: false);
            return response;
        }
Example #11
0
 internal ListPartsPaginator(IAmazonGlacier client, ListPartsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 /// <summary>
 /// Paginator for ListParts operation
 ///</summary>
 public IListPartsPaginator ListParts(ListPartsRequest request)
 {
     return(new ListPartsPaginator(this.client, request));
 }