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// GetWorkRequestRequest wrapper for the GetWorkRequest operation 12type GetWorkRequestRequest struct { 13 14 // The ID of the asynchronous request. 15 WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` 16 17 // The client request ID for tracing. 18 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 19 20 // Metadata about the request. This information will not be transmitted to the service, but 21 // represents information that the SDK will consume to drive retry behavior. 22 RequestMetadata common.RequestMetadata 23} 24 25func (request GetWorkRequestRequest) String() string { 26 return common.PointerString(request) 27} 28 29// HTTPRequest implements the OCIRequest interface 30func (request GetWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error) { 31 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 32} 33 34// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 35func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { 36 return request.RequestMetadata.RetryPolicy 37} 38 39// GetWorkRequestResponse wrapper for the GetWorkRequest operation 40type GetWorkRequestResponse struct { 41 42 // The underlying http response 43 RawResponse *http.Response 44 45 // The WorkRequest instance 46 WorkRequest `presentIn:"body"` 47 48 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular 49 // request, provide this request ID. 50 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 51 52 // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. 53 OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` 54 55 // A decimal number representing the number of seconds the client should wait before polling this endpoint again. 56 RetryAfter *float32 `presentIn:"header" name:"retry-after"` 57} 58 59func (response GetWorkRequestResponse) String() string { 60 return common.PointerString(response) 61} 62 63// HTTPResponse implements the OCIResponse interface 64func (response GetWorkRequestResponse) HTTPResponse() *http.Response { 65 return response.RawResponse 66} 67