1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2// Code generated. DO NOT EDIT.
3
4// Audit API
5//
6// API for the Audit Service. Use this API for compliance monitoring in your tenancy.
7// For more information, see Overview of Audit (https://docs.cloud.oracle.com/iaas/Content/Audit/Concepts/auditoverview.htm).
8// **Tip**: This API is good for queries, but not bulk-export operations.
9//
10
11package audit
12
13import (
14	"github.com/oracle/oci-go-sdk/common"
15)
16
17// Response A container object for response attributes.
18// Example:
19//   -----
20//     {
21//       "status": "200",
22//       "responseTime": "2019-09-18T00:10:59.278Z",
23//       "headers": {
24//         "ETag": [
25//           "<unique_ID>"
26//         ],
27//         "Connection": [
28//           "close"
29//         ],
30//         "Content-Length": [
31//           "1828"
32//         ],
33//         "opc-request-id": [
34//           "<unique_ID>"
35//         ],
36//         "Date": [
37//           "Wed, 18 Sep 2019 00:10:59 GMT"
38//         ],
39//         "Content-Type": [
40//           "application/json"
41//         ]
42//       },
43//       "payload": {
44//         "resourceName": "my_instance",
45//         "id": "ocid1.instance.oc1.phx.<unique_ID>"
46//       },
47//       "message": null
48//     }
49//   -----
50type Response struct {
51
52	// The status code of the response.
53	// Example: `200`
54	Status *string `mandatory:"false" json:"status"`
55
56	// The time of the response to the audited request, expressed in
57	// RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
58	// Example: `2019-09-18T00:10:59.278Z`
59	ResponseTime *common.SDKTime `mandatory:"false" json:"responseTime"`
60
61	// The headers of the response.
62	// Example:
63	//   -----
64	//     {
65	//       "ETag": [
66	//         "<unique_ID>"
67	//       ],
68	//       "Connection": [
69	//         "close"
70	//       ],
71	//       "Content-Length": [
72	//         "1828"
73	//       ],
74	//       "opc-request-id": [
75	//         "<unique_ID>"
76	//       ],
77	//       "Date": [
78	//         "Wed, 18 Sep 2019 00:10:59 GMT"
79	//       ],
80	//       "Content-Type": [
81	//         "application/json"
82	//       ]
83	//     }
84	//   -----
85	Headers map[string][]string `mandatory:"false" json:"headers"`
86
87	// This value is included for backward compatibility with the Audit version 1 schema, where
88	// it contained metadata of interest from the response payload.
89	// Example:
90	//   -----
91	//     {
92	//       "resourceName": "my_instance",
93	//       "id": "ocid1.instance.oc1.phx.<unique_ID>"
94	//     }
95	//   -----
96	Payload map[string]interface{} `mandatory:"false" json:"payload"`
97
98	// A friendly description of what happened during the operation. Use this for troubleshooting.
99	Message *string `mandatory:"false" json:"message"`
100}
101
102func (m Response) String() string {
103	return common.PointerString(m)
104}
105