1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 3// Code generated. DO NOT EDIT. 4 5package loganalytics 6 7import ( 8 "github.com/oracle/oci-go-sdk/common" 9 "net/http" 10) 11 12// GetSourceSummaryRequest wrapper for the GetSourceSummary operation 13type GetSourceSummaryRequest struct { 14 15 // The Log Analytics namespace used for the request. 16 NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` 17 18 // The client request ID for tracing. 19 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 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 GetSourceSummaryRequest) String() string { 27 return common.PointerString(request) 28} 29 30// HTTPRequest implements the OCIRequest interface 31func (request GetSourceSummaryRequest) 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 GetSourceSummaryRequest) RetryPolicy() *common.RetryPolicy { 37 return request.RequestMetadata.RetryPolicy 38} 39 40// GetSourceSummaryResponse wrapper for the GetSourceSummary operation 41type GetSourceSummaryResponse struct { 42 43 // The underlying http response 44 RawResponse *http.Response 45 46 // The SourceSummaryReport instance 47 SourceSummaryReport `presentIn:"body"` 48 49 // Unique Oracle-assigned identifier for the request. If you need to contact 50 // Oracle about a particular request, please provide the request ID. 51 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 52} 53 54func (response GetSourceSummaryResponse) String() string { 55 return common.PointerString(response) 56} 57 58// HTTPResponse implements the OCIResponse interface 59func (response GetSourceSummaryResponse) HTTPResponse() *http.Response { 60 return response.RawResponse 61} 62