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// DetachServiceIdRequest wrapper for the DetachServiceId operation 12type DetachServiceIdRequest struct { 13 14 // The service gateway's OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). 15 ServiceGatewayId *string `mandatory:"true" contributesTo:"path" name:"serviceGatewayId"` 16 17 // ServiceId of Service to be detached from a service gateway. 18 DetachServiceDetails ServiceIdRequestDetails `contributesTo:"body"` 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 DetachServiceIdRequest) String() string { 35 return common.PointerString(request) 36} 37 38// HTTPRequest implements the OCIRequest interface 39func (request DetachServiceIdRequest) 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 DetachServiceIdRequest) RetryPolicy() *common.RetryPolicy { 45 return request.RequestMetadata.RetryPolicy 46} 47 48// DetachServiceIdResponse wrapper for the DetachServiceId operation 49type DetachServiceIdResponse struct { 50 51 // The underlying http response 52 RawResponse *http.Response 53 54 // The ServiceGateway instance 55 ServiceGateway `presentIn:"body"` 56 57 // Unique Oracle-assigned identifier for the request. If you need to contact 58 // Oracle about a particular request, please provide the request ID. 59 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 60} 61 62func (response DetachServiceIdResponse) String() string { 63 return common.PointerString(response) 64} 65 66// HTTPResponse implements the OCIResponse interface 67func (response DetachServiceIdResponse) HTTPResponse() *http.Response { 68 return response.RawResponse 69} 70