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