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