1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package core 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// DeleteSecurityListRequest wrapper for the DeleteSecurityList operation 12type DeleteSecurityListRequest struct { 13 14 // The OCID of the security list. 15 SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` 16 17 // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` 18 // parameter to the value of the etag from a previous GET or POST response for that resource. The resource 19 // will be updated or deleted only if the etag you provide matches the resource's current etag value. 20 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 21 22 // Unique Oracle-assigned identifier for the request. 23 // If you need to contact Oracle about a particular request, please provide the request ID. 24 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-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 DeleteSecurityListRequest) String() string { 32 return common.PointerString(request) 33} 34 35// HTTPRequest implements the OCIRequest interface 36func (request DeleteSecurityListRequest) 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 DeleteSecurityListRequest) RetryPolicy() *common.RetryPolicy { 42 return request.RequestMetadata.RetryPolicy 43} 44 45// DeleteSecurityListResponse wrapper for the DeleteSecurityList operation 46type DeleteSecurityListResponse struct { 47 48 // The underlying http response 49 RawResponse *http.Response 50 51 // Unique Oracle-assigned identifier for the request. If you need to contact 52 // Oracle about a particular request, please provide the request ID. 53 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 54} 55 56func (response DeleteSecurityListResponse) String() string { 57 return common.PointerString(response) 58} 59 60// HTTPResponse implements the OCIResponse interface 61func (response DeleteSecurityListResponse) HTTPResponse() *http.Response { 62 return response.RawResponse 63} 64