|
| 1 | +// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +package core |
| 5 | + |
| 6 | +import ( |
| 7 | + "github.com/oracle/oci-go-sdk/common" |
| 8 | + "net/http" |
| 9 | +) |
| 10 | + |
| 11 | +// ChangeServiceGatewayCompartmentRequest wrapper for the ChangeServiceGatewayCompartment operation |
| 12 | +type ChangeServiceGatewayCompartmentRequest 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 | + // Request to change the compartment of a given Service Gateway. |
| 18 | + ChangeServiceGatewayCompartmentDetails `contributesTo:"body"` |
| 19 | + |
| 20 | + // Unique identifier for the request. |
| 21 | + // If you need to contact Oracle about a particular request, please provide the request ID. |
| 22 | + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` |
| 23 | + |
| 24 | + // A token that uniquely identifies a request so it can be retried in case of a timeout or |
| 25 | + // server error without risk of executing that same action again. Retry tokens expire after 24 |
| 26 | + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource |
| 27 | + // has been deleted and purged from the system, then a retry of the original creation request |
| 28 | + // may be rejected). |
| 29 | + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` |
| 30 | + |
| 31 | + // Metadata about the request. This information will not be transmitted to the service, but |
| 32 | + // represents information that the SDK will consume to drive retry behavior. |
| 33 | + RequestMetadata common.RequestMetadata |
| 34 | +} |
| 35 | + |
| 36 | +func (request ChangeServiceGatewayCompartmentRequest) String() string { |
| 37 | + return common.PointerString(request) |
| 38 | +} |
| 39 | + |
| 40 | +// HTTPRequest implements the OCIRequest interface |
| 41 | +func (request ChangeServiceGatewayCompartmentRequest) HTTPRequest(method, path string) (http.Request, error) { |
| 42 | + return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) |
| 43 | +} |
| 44 | + |
| 45 | +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. |
| 46 | +func (request ChangeServiceGatewayCompartmentRequest) RetryPolicy() *common.RetryPolicy { |
| 47 | + return request.RequestMetadata.RetryPolicy |
| 48 | +} |
| 49 | + |
| 50 | +// ChangeServiceGatewayCompartmentResponse wrapper for the ChangeServiceGatewayCompartment operation |
| 51 | +type ChangeServiceGatewayCompartmentResponse struct { |
| 52 | + |
| 53 | + // The underlying http response |
| 54 | + RawResponse *http.Response |
| 55 | + |
| 56 | + // For optimistic concurrency control. See `if-match`. |
| 57 | + Etag *string `presentIn:"header" name:"etag"` |
| 58 | + |
| 59 | + // Unique Oracle-assigned identifier for the request. If you need to contact |
| 60 | + // Oracle about a particular request, please provide the request ID. |
| 61 | + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` |
| 62 | +} |
| 63 | + |
| 64 | +func (response ChangeServiceGatewayCompartmentResponse) String() string { |
| 65 | + return common.PointerString(response) |
| 66 | +} |
| 67 | + |
| 68 | +// HTTPResponse implements the OCIResponse interface |
| 69 | +func (response ChangeServiceGatewayCompartmentResponse) HTTPResponse() *http.Response { |
| 70 | + return response.RawResponse |
| 71 | +} |
0 commit comments