/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Cloudaudit.V20190319.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Event : AbstractModel { /// /// 资源对 /// [JsonProperty("Resources")] public Resource Resources{ get; set; } /// /// 主账号ID /// [JsonProperty("AccountID")] public long? AccountID{ get; set; } /// /// 日志详情 /// [JsonProperty("CloudAuditEvent")] public string CloudAuditEvent{ get; set; } /// /// 鉴权错误码 /// [JsonProperty("ErrorCode")] public long? ErrorCode{ get; set; } /// /// 日志ID /// [JsonProperty("EventId")] public string EventId{ get; set; } /// /// 事件名称 /// [JsonProperty("EventName")] public string EventName{ get; set; } /// /// 事件名称中文描述(此字段请按需使用,如果您是其他语言使用者,可以忽略该字段描述) /// [JsonProperty("EventNameCn")] public string EventNameCn{ get; set; } /// /// 事件地域 /// [JsonProperty("EventRegion")] public string EventRegion{ get; set; } /// /// 请求来源 /// [JsonProperty("EventSource")] public string EventSource{ get; set; } /// /// 事件时间 /// [JsonProperty("EventTime")] public string EventTime{ get; set; } /// /// 请求ID /// [JsonProperty("RequestID")] public string RequestID{ get; set; } /// /// 资源地域 /// [JsonProperty("ResourceRegion")] public string ResourceRegion{ get; set; } /// /// 资源类型中文描述(此字段请按需使用,如果您是其他语言使用者,可以忽略该字段描述) /// [JsonProperty("ResourceTypeCn")] public string ResourceTypeCn{ get; set; } /// /// 证书ID /// [JsonProperty("SecretId")] public string SecretId{ get; set; } /// /// 源IP /// [JsonProperty("SourceIPAddress")] public string SourceIPAddress{ get; set; } /// /// 用户名 /// [JsonProperty("Username")] public string Username{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamObj(map, prefix + "Resources.", this.Resources); this.SetParamSimple(map, prefix + "AccountID", this.AccountID); this.SetParamSimple(map, prefix + "CloudAuditEvent", this.CloudAuditEvent); this.SetParamSimple(map, prefix + "ErrorCode", this.ErrorCode); this.SetParamSimple(map, prefix + "EventId", this.EventId); this.SetParamSimple(map, prefix + "EventName", this.EventName); this.SetParamSimple(map, prefix + "EventNameCn", this.EventNameCn); this.SetParamSimple(map, prefix + "EventRegion", this.EventRegion); this.SetParamSimple(map, prefix + "EventSource", this.EventSource); this.SetParamSimple(map, prefix + "EventTime", this.EventTime); this.SetParamSimple(map, prefix + "RequestID", this.RequestID); this.SetParamSimple(map, prefix + "ResourceRegion", this.ResourceRegion); this.SetParamSimple(map, prefix + "ResourceTypeCn", this.ResourceTypeCn); this.SetParamSimple(map, prefix + "SecretId", this.SecretId); this.SetParamSimple(map, prefix + "SourceIPAddress", this.SourceIPAddress); this.SetParamSimple(map, prefix + "Username", this.Username); } } }