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// CancelWorkRequestRequest wrapper for the CancelWorkRequest operation 12type CancelWorkRequestRequest 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 CancelWorkRequestRequest) String() string { 26 return common.PointerString(request) 27} 28 29// HTTPRequest implements the OCIRequest interface 30func (request CancelWorkRequestRequest) 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 CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy { 36 return request.RequestMetadata.RetryPolicy 37} 38 39// CancelWorkRequestResponse wrapper for the CancelWorkRequest operation 40type CancelWorkRequestResponse struct { 41 42 // The underlying http response 43 RawResponse *http.Response 44 45 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, 46 // provide this request ID. 47 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 48 49 // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. 50 OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` 51} 52 53func (response CancelWorkRequestResponse) String() string { 54 return common.PointerString(response) 55} 56 57// HTTPResponse implements the OCIResponse interface 58func (response CancelWorkRequestResponse) HTTPResponse() *http.Response { 59 return response.RawResponse 60} 61