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 events 6 7import ( 8 "github.com/oracle/oci-go-sdk/common" 9 "net/http" 10) 11 12// DeleteRuleRequest wrapper for the DeleteRule operation 13type DeleteRuleRequest struct { 14 15 // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule. 16 RuleId *string `mandatory:"true" contributesTo:"path" name:"ruleId"` 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 // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a 24 // 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 DeleteRuleRequest) String() string { 33 return common.PointerString(request) 34} 35 36// HTTPRequest implements the OCIRequest interface 37func (request DeleteRuleRequest) 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 DeleteRuleRequest) RetryPolicy() *common.RetryPolicy { 43 return request.RequestMetadata.RetryPolicy 44} 45 46// DeleteRuleResponse wrapper for the DeleteRule operation 47type DeleteRuleResponse 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 Oracle 53 // about a particular request, please provide the request ID. 54 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 55} 56 57func (response DeleteRuleResponse) String() string { 58 return common.PointerString(response) 59} 60 61// HTTPResponse implements the OCIResponse interface 62func (response DeleteRuleResponse) HTTPResponse() *http.Response { 63 return response.RawResponse 64} 65