|
| 1 | +// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Code generated. DO NOT EDIT. |
| 3 | + |
| 4 | +package datascience |
| 5 | + |
| 6 | +import ( |
| 7 | + "github.com/oracle/oci-go-sdk/common" |
| 8 | + "net/http" |
| 9 | +) |
| 10 | + |
| 11 | +// ActivateNotebookSessionRequest wrapper for the ActivateNotebookSession operation |
| 12 | +type ActivateNotebookSessionRequest struct { |
| 13 | + |
| 14 | + // The OCID (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the notebook session. |
| 15 | + NotebookSessionId *string `mandatory:"true" contributesTo:"path" name:"notebookSessionId"` |
| 16 | + |
| 17 | + // For optimistic concurrency control. In the PUT or DELETE call |
| 18 | + // for a resource, set the `if-match` parameter to the value of the |
| 19 | + // etag from a previous GET or POST response for that resource. |
| 20 | + // The resource will be updated or deleted only if the `etag` you |
| 21 | + // provide matches the resource's current `etag` value. |
| 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 a 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 | + |
| 32 | +func (request ActivateNotebookSessionRequest) String() string { |
| 33 | + return common.PointerString(request) |
| 34 | +} |
| 35 | + |
| 36 | +// HTTPRequest implements the OCIRequest interface |
| 37 | +func (request ActivateNotebookSessionRequest) 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. |
| 42 | +func (request ActivateNotebookSessionRequest) RetryPolicy() *common.RetryPolicy { |
| 43 | + return request.RequestMetadata.RetryPolicy |
| 44 | +} |
| 45 | + |
| 46 | +// ActivateNotebookSessionResponse wrapper for the ActivateNotebookSession operation |
| 47 | +type ActivateNotebookSessionResponse struct { |
| 48 | + |
| 49 | + // The underlying http response |
| 50 | + RawResponse *http.Response |
| 51 | + |
| 52 | + // The OCID (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) |
| 53 | + // with this ID to track the status of the request. |
| 54 | + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` |
| 55 | + |
| 56 | + // Unique Oracle-assigned identifier for the request. If you need to contact |
| 57 | + // Oracle about a particular request, please provide the request ID. |
| 58 | + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` |
| 59 | +} |
| 60 | + |
| 61 | +func (response ActivateNotebookSessionResponse) String() string { |
| 62 | + return common.PointerString(response) |
| 63 | +} |
| 64 | + |
| 65 | +// HTTPResponse implements the OCIResponse interface |
| 66 | +func (response ActivateNotebookSessionResponse) HTTPResponse() *http.Response { |
| 67 | + return response.RawResponse |
| 68 | +} |
0 commit comments