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// Identity A container object for identity attributes. 18// Example: 19// ----- 20// { 21// "principalName": "ExampleName", 22// "principalId": "ocid1.user.oc1..<unique_ID>", 23// "authType": "natv", 24// "callerName": null, 25// "callerId": null, 26// "tenantId": "ocid1.tenancy.oc1..<unique_ID>", 27// "ipAddress": "172.24.80.88", 28// "credentials": null, 29// "userAgent": "Jersey/2.23 (HttpUrlConnection 1.8.0_212)", 30// "consoleSessionId": null 31// } 32// ----- 33type Identity struct { 34 35 // The name of the user or service. This value is the friendly name associated with `principalId`. 36 // Example: `ExampleName` 37 PrincipalName *string `mandatory:"false" json:"principalName"` 38 39 // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the principal. 40 PrincipalId *string `mandatory:"false" json:"principalId"` 41 42 // The type of authentication used. 43 // Example: `natv` 44 AuthType *string `mandatory:"false" json:"authType"` 45 46 // The name of the user or service. This value is the friendly name associated with `callerId`. 47 CallerName *string `mandatory:"false" json:"callerName"` 48 49 // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the caller. The caller that made a 50 // request on behalf of the prinicpal. 51 CallerId *string `mandatory:"false" json:"callerId"` 52 53 // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the tenant. 54 TenantId *string `mandatory:"false" json:"tenantId"` 55 56 // The IP address of the source of the request. 57 // Example: `172.24.80.88` 58 IpAddress *string `mandatory:"false" json:"ipAddress"` 59 60 // The credential ID of the user. This value is extracted from the HTTP 'Authorization' request 61 // header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/). 62 Credentials *string `mandatory:"false" json:"credentials"` 63 64 // The user agent of the client that made the request. 65 // Example: `Jersey/2.23 (HttpUrlConnection 1.8.0_212)` 66 UserAgent *string `mandatory:"false" json:"userAgent"` 67 68 // This value identifies any Console session associated with this request. 69 ConsoleSessionId *string `mandatory:"false" json:"consoleSessionId"` 70} 71 72func (m Identity) String() string { 73 return common.PointerString(m) 74} 75