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// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation 12type ListWorkRequestLogsRequest struct { 13 14 // The ID of the asynchronous request. 15 WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` 16 17 // The page at which to start retrieving results. 18 Page *string `mandatory:"false" contributesTo:"query" name:"page"` 19 20 // The maximum number of items to return. 21 Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` 22 23 // The client request ID for tracing. 24 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 25 26 // Metadata about the request. This information will not be transmitted to the service, but 27 // represents information that the SDK will consume to drive retry behavior. 28 RequestMetadata common.RequestMetadata 29} 30 31func (request ListWorkRequestLogsRequest) String() string { 32 return common.PointerString(request) 33} 34 35// HTTPRequest implements the OCIRequest interface 36func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string) (http.Request, error) { 37 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 38} 39 40// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 41func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { 42 return request.RequestMetadata.RetryPolicy 43} 44 45// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation 46type ListWorkRequestLogsResponse struct { 47 48 // The underlying http response 49 RawResponse *http.Response 50 51 // A list of []WorkRequestLogEntry instances 52 Items []WorkRequestLogEntry `presentIn:"body"` 53 54 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular 55 // request, provide this request ID. 56 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 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 // Paginating a list of work request logs. 62 // In the GET request, set the limit to the number of compartment work requests that you want returned in the 63 // response. If the opc-next-page header appears in the response, then this is a partial list and there are 64 // additional work requests to get. Include the header's value as the `page` parameter in the subsequent 65 // GET request to get the next batch of work requests. Repeat this process to retrieve the entire list of work 66 // requests. 67 OpcNextPage *string `presentIn:"header" name:"opc-next-page"` 68} 69 70func (response ListWorkRequestLogsResponse) String() string { 71 return common.PointerString(response) 72} 73 74// HTTPResponse implements the OCIResponse interface 75func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { 76 return response.RawResponse 77} 78