1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package objectstorage 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// GetNamespaceRequest wrapper for the GetNamespace operation 12type GetNamespaceRequest struct { 13 14 // The client request ID for tracing. 15 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 16 17 // This is an optional field representing the tenancy OCID or the compartment OCID within the tenancy whose Object Storage namespace 18 // name has to be retrieved. 19 CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` 20 21 // Metadata about the request. This information will not be transmitted to the service, but 22 // represents information that the SDK will consume to drive retry behavior. 23 RequestMetadata common.RequestMetadata 24} 25 26func (request GetNamespaceRequest) String() string { 27 return common.PointerString(request) 28} 29 30// HTTPRequest implements the OCIRequest interface 31func (request GetNamespaceRequest) HTTPRequest(method, path string) (http.Request, error) { 32 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 33} 34 35// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 36func (request GetNamespaceRequest) RetryPolicy() *common.RetryPolicy { 37 return request.RequestMetadata.RetryPolicy 38} 39 40// GetNamespaceResponse wrapper for the GetNamespace operation 41type GetNamespaceResponse struct { 42 43 // The underlying http response 44 RawResponse *http.Response 45 46 // The string instance 47 Value *string `presentIn:"body"` 48} 49 50func (response GetNamespaceResponse) String() string { 51 return common.PointerString(response) 52} 53 54// HTTPResponse implements the OCIResponse interface 55func (response GetNamespaceResponse) HTTPResponse() *http.Response { 56 return response.RawResponse 57} 58