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// ListMultipartUploadPartsRequest wrapper for the ListMultipartUploadParts operation
12type ListMultipartUploadPartsRequest 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 name of the object. Avoid entering confidential information.
22	// Example: `test/object1.log`
23	ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"`
24
25	// The upload ID for a multipart upload.
26	UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"`
27
28	// The maximum number of items to return.
29	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
30
31	// The page at which to start retrieving results.
32	Page *string `mandatory:"false" contributesTo:"query" name:"page"`
33
34	// The client request ID for tracing.
35	OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"`
36
37	// Metadata about the request. This information will not be transmitted to the service, but
38	// represents information that the SDK will consume to drive retry behavior.
39	RequestMetadata common.RequestMetadata
40}
41
42func (request ListMultipartUploadPartsRequest) String() string {
43	return common.PointerString(request)
44}
45
46// HTTPRequest implements the OCIRequest interface
47func (request ListMultipartUploadPartsRequest) HTTPRequest(method, path string) (http.Request, error) {
48	return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
49}
50
51// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
52func (request ListMultipartUploadPartsRequest) RetryPolicy() *common.RetryPolicy {
53	return request.RequestMetadata.RetryPolicy
54}
55
56// ListMultipartUploadPartsResponse wrapper for the ListMultipartUploadParts operation
57type ListMultipartUploadPartsResponse struct {
58
59	// The underlying http response
60	RawResponse *http.Response
61
62	// A list of []MultipartUploadPartSummary instances
63	Items []MultipartUploadPartSummary `presentIn:"body"`
64
65	// Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.
66	OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"`
67
68	// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular
69	// request, provide this request ID.
70	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
71
72	// Paginating a list of multipart upload parts.
73	// In the GET request, set the limit to the number of multipart upload parts that you want returned in the
74	// response. If the opc-next-page header appears in the response, then this is a partial list and there are
75	// additional multipart upload parts to get. Include the header's value as the `page` parameter in the subsequent
76	// GET request to get the next batch of multipart upload parts. Repeat this process to retrieve the entire list
77	// of multipart upload parts.
78	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
79}
80
81func (response ListMultipartUploadPartsResponse) String() string {
82	return common.PointerString(response)
83}
84
85// HTTPResponse implements the OCIResponse interface
86func (response ListMultipartUploadPartsResponse) HTTPResponse() *http.Response {
87	return response.RawResponse
88}
89