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// GetNamespaceMetadataRequest wrapper for the GetNamespaceMetadata operation 12type GetNamespaceMetadataRequest struct { 13 14 // The Object Storage namespace used for the request. 15 NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` 16 17 // The client request ID for tracing. 18 OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` 19 20 // Metadata about the request. This information will not be transmitted to the service, but 21 // represents information that the SDK will consume to drive retry behavior. 22 RequestMetadata common.RequestMetadata 23} 24 25func (request GetNamespaceMetadataRequest) String() string { 26 return common.PointerString(request) 27} 28 29// HTTPRequest implements the OCIRequest interface 30func (request GetNamespaceMetadataRequest) HTTPRequest(method, path string) (http.Request, error) { 31 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 32} 33 34// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 35func (request GetNamespaceMetadataRequest) RetryPolicy() *common.RetryPolicy { 36 return request.RequestMetadata.RetryPolicy 37} 38 39// GetNamespaceMetadataResponse wrapper for the GetNamespaceMetadata operation 40type GetNamespaceMetadataResponse struct { 41 42 // The underlying http response 43 RawResponse *http.Response 44 45 // The NamespaceMetadata instance 46 NamespaceMetadata `presentIn:"body"` 47 48 // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. 49 OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` 50 51 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular 52 // request, provide this request ID. 53 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 54} 55 56func (response GetNamespaceMetadataResponse) String() string { 57 return common.PointerString(response) 58} 59 60// HTTPResponse implements the OCIResponse interface 61func (response GetNamespaceMetadataResponse) HTTPResponse() *http.Response { 62 return response.RawResponse 63} 64