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