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