1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package objectstorage 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// ListMultipartUploadsRequest wrapper for the ListMultipartUploads operation 12type ListMultipartUploadsRequest struct { 13 14 // The Object Storage namespace used for the request. 15 NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` 16 17 // The name of the bucket. Avoid entering confidential information. 18 // Example: `my-new-bucket1` 19 BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` 20 21 // The maximum number of items to return. 22 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` 23 24 // The page at which to start retrieving results. 25 Page *string `mandatory:"false" contributesTo:"query" name:"page"` 26 27 // The client request ID for tracing. 28 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 29 30 // Metadata about the request. This information will not be transmitted to the service, but 31 // represents information that the SDK will consume to drive retry behavior. 32 RequestMetadata common.RequestMetadata 33} 34 35func (request ListMultipartUploadsRequest) String() string { 36 return common.PointerString(request) 37} 38 39// HTTPRequest implements the OCIRequest interface 40func (request ListMultipartUploadsRequest) HTTPRequest(method, path string) (http.Request, error) { 41 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 42} 43 44// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 45func (request ListMultipartUploadsRequest) RetryPolicy() *common.RetryPolicy { 46 return request.RequestMetadata.RetryPolicy 47} 48 49// ListMultipartUploadsResponse wrapper for the ListMultipartUploads operation 50type ListMultipartUploadsResponse struct { 51 52 // The underlying http response 53 RawResponse *http.Response 54 55 // A list of []MultipartUpload instances 56 Items []MultipartUpload `presentIn:"body"` 57 58 // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. 59 OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` 60 61 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular 62 // request, provide this request ID. 63 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 64 65 // Paginating a list of multipart uploads. 66 // In the GET request, set the limit to the number of multipart uploads that you want returned in the response. 67 // If the opc-next-page header appears in the response, then this is a partial list and there are 68 // additional multipart uploads to get. Include the header's value as the `page` parameter in the subsequent 69 // GET request to get the next batch of objects. Repeat this process to retrieve the entire list of 70 // multipart uploads. 71 OpcNextPage *string `presentIn:"header" name:"opc-next-page"` 72} 73 74func (response ListMultipartUploadsResponse) String() string { 75 return common.PointerString(response) 76} 77 78// HTTPResponse implements the OCIResponse interface 79func (response ListMultipartUploadsResponse) HTTPResponse() *http.Response { 80 return response.RawResponse 81} 82