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// Request A container object for request attributes. 18// Example: 19// ----- 20// { 21// "id": "<unique_ID>", 22// "path": "/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>", 23// "action": "GET", 24// "parameters": {}, 25// "headers": { 26// "opc-principal": [ 27// "{\"tenantId\":\"ocid1.tenancy.oc1..<unique_ID>\",\"subjectId\":\"ocid1.user.oc1..<unique_ID>\",\"claims\":[{\"key\":\"pstype\",\"value\":\"natv\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_host\",\"value\":\"iaas.r2.oracleiaas.com\",\"issuer\":\"h\"},{\"key\":\"h_opc-request-id\",\"value\":\"<unique_ID>\",\"issuer\":\"h\"},{\"key\":\"ptype\",\"value\":\"user\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_date\",\"value\":\"Wed, 18 Sep 2019 00:10:58 UTC\",\"issuer\":\"h\"},{\"key\":\"h_accept\",\"value\":\"application/json\",\"issuer\":\"h\"},{\"key\":\"authorization\",\"value\":\"Signature headers=\\\"date (request-target) host accept opc-request-id\\\",keyId=\\\"ocid1.tenancy.oc1..<unique_ID>/ocid1.user.oc1..<unique_ID>/8c:b4:5f:18:e7:ec:db:08:b8:fa:d2:2a:7d:11:76:ac\\\",algorithm=\\\"rsa-pss-sha256\\\",signature=\\\"<unique_ID>\\\",version=\\\"1\\\"\",\"issuer\":\"h\"},{\"key\":\"h_(request-target)\",\"value\":\"get /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>\",\"issuer\":\"h\"}]}" 28// ], 29// "Accept": [ 30// "application/json" 31// ], 32// "X-Oracle-Auth-Client-CN": [ 33// "splat-proxy-se-02302.node.ad2.r2" 34// ], 35// "X-Forwarded-Host": [ 36// "compute-api.svc.ad1.r2" 37// ], 38// "Connection": [ 39// "close" 40// ], 41// "User-Agent": [ 42// "Jersey/2.23 (HttpUrlConnection 1.8.0_212)" 43// ], 44// "X-Forwarded-For": [ 45// "172.24.80.88" 46// ], 47// "X-Real-IP": [ 48// "172.24.80.88" 49// ], 50// "oci-original-url": [ 51// "https://iaas.r2.oracleiaas.com/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>" 52// ], 53// "opc-request-id": [ 54// "<unique_ID>" 55// ], 56// "Date": [ 57// "Wed, 18 Sep 2019 00:10:58 UTC" 58// ] 59// } 60// } 61// ----- 62type Request struct { 63 64 // The opc-request-id of the request. 65 Id *string `mandatory:"false" json:"id"` 66 67 // The full path of the API request. 68 // Example: `/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>` 69 Path *string `mandatory:"false" json:"path"` 70 71 // The HTTP method of the request. 72 // Example: `GET` 73 Action *string `mandatory:"false" json:"action"` 74 75 // The parameters supplied by the caller during this operation. 76 Parameters map[string][]string `mandatory:"false" json:"parameters"` 77 78 // The HTTP header fields and values in the request. 79 // Example: 80 // ----- 81 // { 82 // "opc-principal": [ 83 // "{\"tenantId\":\"ocid1.tenancy.oc1..<unique_ID>\",\"subjectId\":\"ocid1.user.oc1..<unique_ID>\",\"claims\":[{\"key\":\"pstype\",\"value\":\"natv\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_host\",\"value\":\"iaas.r2.oracleiaas.com\",\"issuer\":\"h\"},{\"key\":\"h_opc-request-id\",\"value\":\"<unique_ID>\",\"issuer\":\"h\"},{\"key\":\"ptype\",\"value\":\"user\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_date\",\"value\":\"Wed, 18 Sep 2019 00:10:58 UTC\",\"issuer\":\"h\"},{\"key\":\"h_accept\",\"value\":\"application/json\",\"issuer\":\"h\"},{\"key\":\"authorization\",\"value\":\"Signature headers=\\\"date (request-target) host accept opc-request-id\\\",keyId=\\\"ocid1.tenancy.oc1..<unique_ID>/ocid1.user.oc1..<unique_ID>/8c:b4:5f:18:e7:ec:db:08:b8:fa:d2:2a:7d:11:76:ac\\\",algorithm=\\\"rsa-pss-sha256\\\",signature=\\\"<unique_ID>\\\",version=\\\"1\\\"\",\"issuer\":\"h\"},{\"key\":\"h_(request-target)\",\"value\":\"get /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>\",\"issuer\":\"h\"}]}" 84 // ], 85 // "Accept": [ 86 // "application/json" 87 // ], 88 // "X-Oracle-Auth-Client-CN": [ 89 // "splat-proxy-se-02302.node.ad2.r2" 90 // ], 91 // "X-Forwarded-Host": [ 92 // "compute-api.svc.ad1.r2" 93 // ], 94 // "Connection": [ 95 // "close" 96 // ], 97 // "User-Agent": [ 98 // "Jersey/2.23 (HttpUrlConnection 1.8.0_212)" 99 // ], 100 // "X-Forwarded-For": [ 101 // "172.24.80.88" 102 // ], 103 // "X-Real-IP": [ 104 // "172.24.80.88" 105 // ], 106 // "oci-original-url": [ 107 // "https://iaas.r2.oracleiaas.com/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>" 108 // ], 109 // "opc-request-id": [ 110 // "<unique_ID>" 111 // ], 112 // "Date": [ 113 // "Wed, 18 Sep 2019 00:10:58 UTC" 114 // ] 115 // } 116 // ----- 117 Headers map[string][]string `mandatory:"false" json:"headers"` 118} 119 120func (m Request) String() string { 121 return common.PointerString(m) 122} 123