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// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation
13type ListWorkRequestLogsRequest struct {
14
15	// The Log Analytics namespace used for the request.
16	NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"`
17
18	// Work Request Identifier OCID  (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.
19	WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"`
20
21	// The client request ID for tracing.
22	OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
23
24	// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
25	Page *string `mandatory:"false" contributesTo:"query" name:"page"`
26
27	// The maximum number of items to return.
28	Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
29
30	// Metadata about the request. This information will not be transmitted to the service, but
31	// represents information that the SDK will consume to drive retry behavior.
32	RequestMetadata common.RequestMetadata
33}
34
35func (request ListWorkRequestLogsRequest) String() string {
36	return common.PointerString(request)
37}
38
39// HTTPRequest implements the OCIRequest interface
40func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string) (http.Request, error) {
41	return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
42}
43
44// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
45func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy {
46	return request.RequestMetadata.RetryPolicy
47}
48
49// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation
50type ListWorkRequestLogsResponse struct {
51
52	// The underlying http response
53	RawResponse *http.Response
54
55	// A list of WorkRequestLogCollection instances
56	WorkRequestLogCollection `presentIn:"body"`
57
58	// For pagination of a list of items. When paging through a list, if this header appears in the response,
59	// then additional items may be available on the next page of the list. Include this value as the `page` parameter for the
60	// subsequent request to get the next batch of items.
61	OpcNextPage *string `presentIn:"header" name:"opc-next-page"`
62
63	// Unique Oracle-assigned identifier for the request. If you need to contact
64	// Oracle about a particular request, please provide the request ID.
65	OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
66}
67
68func (response ListWorkRequestLogsResponse) String() string {
69	return common.PointerString(response)
70}
71
72// HTTPResponse implements the OCIResponse interface
73func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response {
74	return response.RawResponse
75}
76