1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 3// Code generated. DO NOT EDIT. 4 5package core 6 7import ( 8 "github.com/oracle/oci-go-sdk/common" 9 "net/http" 10) 11 12// DeleteDhcpOptionsRequest wrapper for the DeleteDhcpOptions operation 13type DeleteDhcpOptionsRequest struct { 14 15 // The OCID for the set of DHCP options. 16 DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` 17 18 // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` 19 // parameter to the value of the etag from a previous GET or POST response for that resource. The resource 20 // will be updated or deleted only if the etag you provide matches the resource's current etag value. 21 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 22 23 // Unique Oracle-assigned identifier for the request. 24 // If you need to contact Oracle about a particular request, please provide the request ID. 25 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 26 27 // Metadata about the request. This information will not be transmitted to the service, but 28 // represents information that the SDK will consume to drive retry behavior. 29 RequestMetadata common.RequestMetadata 30} 31 32func (request DeleteDhcpOptionsRequest) String() string { 33 return common.PointerString(request) 34} 35 36// HTTPRequest implements the OCIRequest interface 37func (request DeleteDhcpOptionsRequest) HTTPRequest(method, path string) (http.Request, error) { 38 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 39} 40 41// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 42func (request DeleteDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { 43 return request.RequestMetadata.RetryPolicy 44} 45 46// DeleteDhcpOptionsResponse wrapper for the DeleteDhcpOptions operation 47type DeleteDhcpOptionsResponse struct { 48 49 // The underlying http response 50 RawResponse *http.Response 51 52 // Unique Oracle-assigned identifier for the request. If you need to contact 53 // Oracle about a particular request, please provide the request ID. 54 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 55} 56 57func (response DeleteDhcpOptionsResponse) String() string { 58 return common.PointerString(response) 59} 60 61// HTTPResponse implements the OCIResponse interface 62func (response DeleteDhcpOptionsResponse) HTTPResponse() *http.Response { 63 return response.RawResponse 64} 65