1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package dts 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// ListShippingVendorsRequest wrapper for the ListShippingVendors operation 12type ListShippingVendorsRequest struct { 13 14 // Unique Oracle-assigned identifier for the request. 15 // If you need to contact Oracle about a particular request, please provide the request ID. 16 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 17 18 // Metadata about the request. This information will not be transmitted to the service, but 19 // represents information that the SDK will consume to drive retry behavior. 20 RequestMetadata common.RequestMetadata 21} 22 23func (request ListShippingVendorsRequest) String() string { 24 return common.PointerString(request) 25} 26 27// HTTPRequest implements the OCIRequest interface 28func (request ListShippingVendorsRequest) HTTPRequest(method, path string) (http.Request, error) { 29 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 30} 31 32// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 33func (request ListShippingVendorsRequest) RetryPolicy() *common.RetryPolicy { 34 return request.RequestMetadata.RetryPolicy 35} 36 37// ListShippingVendorsResponse wrapper for the ListShippingVendors operation 38type ListShippingVendorsResponse struct { 39 40 // The underlying http response 41 RawResponse *http.Response 42 43 // The ShippingVendors instance 44 ShippingVendors `presentIn:"body"` 45 46 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 47} 48 49func (response ListShippingVendorsResponse) String() string { 50 return common.PointerString(response) 51} 52 53// HTTPResponse implements the OCIResponse interface 54func (response ListShippingVendorsResponse) HTTPResponse() *http.Response { 55 return response.RawResponse 56} 57