代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

View File

@@ -0,0 +1,552 @@
/*
* 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
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Cloudaudit.V20190319.Models;
public class CloudauditClient : AbstractClient{
private const string endpoint = "cloudaudit.tencentcloudapi.com";
private const string version = "2019-03-19";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public CloudauditClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public CloudauditClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 参数要求:
/// 1、如果IsCreateNewBucket的值存在的话cosRegion和cosBucketName都是必填参数。
/// 2、如果IsEnableCmqNotify的值是1的话IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
/// 3、如果IsEnableCmqNotify的值是0的话IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
/// 4、如果IsEnableKmsEncry的值是1的话KmsRegion和KeyId属于必填项
/// </summary>
/// <param name="req"><see cref="CreateAuditRequest"/></param>
/// <returns><see cref="CreateAuditResponse"/></returns>
public async Task<CreateAuditResponse> CreateAudit(CreateAuditRequest req)
{
JsonResponseModel<CreateAuditResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 参数要求:
/// 1、如果IsCreateNewBucket的值存在的话cosRegion和cosBucketName都是必填参数。
/// 2、如果IsEnableCmqNotify的值是1的话IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
/// 3、如果IsEnableCmqNotify的值是0的话IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
/// 4、如果IsEnableKmsEncry的值是1的话KmsRegion和KeyId属于必填项
/// </summary>
/// <param name="req"><see cref="CreateAuditRequest"/></param>
/// <returns><see cref="CreateAuditResponse"/></returns>
public CreateAuditResponse CreateAuditSync(CreateAuditRequest req)
{
JsonResponseModel<CreateAuditResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 删除跟踪集
/// </summary>
/// <param name="req"><see cref="DeleteAuditRequest"/></param>
/// <returns><see cref="DeleteAuditResponse"/></returns>
public async Task<DeleteAuditResponse> DeleteAudit(DeleteAuditRequest req)
{
JsonResponseModel<DeleteAuditResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 删除跟踪集
/// </summary>
/// <param name="req"><see cref="DeleteAuditRequest"/></param>
/// <returns><see cref="DeleteAuditResponse"/></returns>
public DeleteAuditResponse DeleteAuditSync(DeleteAuditRequest req)
{
JsonResponseModel<DeleteAuditResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询跟踪集详情
/// </summary>
/// <param name="req"><see cref="DescribeAuditRequest"/></param>
/// <returns><see cref="DescribeAuditResponse"/></returns>
public async Task<DescribeAuditResponse> DescribeAudit(DescribeAuditRequest req)
{
JsonResponseModel<DescribeAuditResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询跟踪集详情
/// </summary>
/// <param name="req"><see cref="DescribeAuditRequest"/></param>
/// <returns><see cref="DescribeAuditResponse"/></returns>
public DescribeAuditResponse DescribeAuditSync(DescribeAuditRequest req)
{
JsonResponseModel<DescribeAuditResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询AttributeKey的有效取值范围
/// </summary>
/// <param name="req"><see cref="GetAttributeKeyRequest"/></param>
/// <returns><see cref="GetAttributeKeyResponse"/></returns>
public async Task<GetAttributeKeyResponse> GetAttributeKey(GetAttributeKeyRequest req)
{
JsonResponseModel<GetAttributeKeyResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "GetAttributeKey");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetAttributeKeyResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询AttributeKey的有效取值范围
/// </summary>
/// <param name="req"><see cref="GetAttributeKeyRequest"/></param>
/// <returns><see cref="GetAttributeKeyResponse"/></returns>
public GetAttributeKeyResponse GetAttributeKeySync(GetAttributeKeyRequest req)
{
JsonResponseModel<GetAttributeKeyResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "GetAttributeKey");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<GetAttributeKeyResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询用户可创建跟踪集的数量
/// </summary>
/// <param name="req"><see cref="InquireAuditCreditRequest"/></param>
/// <returns><see cref="InquireAuditCreditResponse"/></returns>
public async Task<InquireAuditCreditResponse> InquireAuditCredit(InquireAuditCreditRequest req)
{
JsonResponseModel<InquireAuditCreditResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "InquireAuditCredit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<InquireAuditCreditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询用户可创建跟踪集的数量
/// </summary>
/// <param name="req"><see cref="InquireAuditCreditRequest"/></param>
/// <returns><see cref="InquireAuditCreditResponse"/></returns>
public InquireAuditCreditResponse InquireAuditCreditSync(InquireAuditCreditRequest req)
{
JsonResponseModel<InquireAuditCreditResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "InquireAuditCredit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<InquireAuditCreditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询跟踪集概要
/// </summary>
/// <param name="req"><see cref="ListAuditsRequest"/></param>
/// <returns><see cref="ListAuditsResponse"/></returns>
public async Task<ListAuditsResponse> ListAudits(ListAuditsRequest req)
{
JsonResponseModel<ListAuditsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ListAudits");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ListAuditsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询跟踪集概要
/// </summary>
/// <param name="req"><see cref="ListAuditsRequest"/></param>
/// <returns><see cref="ListAuditsResponse"/></returns>
public ListAuditsResponse ListAuditsSync(ListAuditsRequest req)
{
JsonResponseModel<ListAuditsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ListAudits");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ListAuditsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询云审计支持的cmq的可用区
/// </summary>
/// <param name="req"><see cref="ListCmqEnableRegionRequest"/></param>
/// <returns><see cref="ListCmqEnableRegionResponse"/></returns>
public async Task<ListCmqEnableRegionResponse> ListCmqEnableRegion(ListCmqEnableRegionRequest req)
{
JsonResponseModel<ListCmqEnableRegionResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ListCmqEnableRegion");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ListCmqEnableRegionResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询云审计支持的cmq的可用区
/// </summary>
/// <param name="req"><see cref="ListCmqEnableRegionRequest"/></param>
/// <returns><see cref="ListCmqEnableRegionResponse"/></returns>
public ListCmqEnableRegionResponse ListCmqEnableRegionSync(ListCmqEnableRegionRequest req)
{
JsonResponseModel<ListCmqEnableRegionResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ListCmqEnableRegion");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ListCmqEnableRegionResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询云审计支持的cos可用区
/// </summary>
/// <param name="req"><see cref="ListCosEnableRegionRequest"/></param>
/// <returns><see cref="ListCosEnableRegionResponse"/></returns>
public async Task<ListCosEnableRegionResponse> ListCosEnableRegion(ListCosEnableRegionRequest req)
{
JsonResponseModel<ListCosEnableRegionResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ListCosEnableRegion");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ListCosEnableRegionResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询云审计支持的cos可用区
/// </summary>
/// <param name="req"><see cref="ListCosEnableRegionRequest"/></param>
/// <returns><see cref="ListCosEnableRegionResponse"/></returns>
public ListCosEnableRegionResponse ListCosEnableRegionSync(ListCosEnableRegionRequest req)
{
JsonResponseModel<ListCosEnableRegionResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ListCosEnableRegion");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ListCosEnableRegionResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 用于对操作日志进行检索,便于用户进行查询相关的操作信息。
/// </summary>
/// <param name="req"><see cref="LookUpEventsRequest"/></param>
/// <returns><see cref="LookUpEventsResponse"/></returns>
public async Task<LookUpEventsResponse> LookUpEvents(LookUpEventsRequest req)
{
JsonResponseModel<LookUpEventsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "LookUpEvents");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<LookUpEventsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 用于对操作日志进行检索,便于用户进行查询相关的操作信息。
/// </summary>
/// <param name="req"><see cref="LookUpEventsRequest"/></param>
/// <returns><see cref="LookUpEventsResponse"/></returns>
public LookUpEventsResponse LookUpEventsSync(LookUpEventsRequest req)
{
JsonResponseModel<LookUpEventsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "LookUpEvents");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<LookUpEventsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 开启跟踪集
/// </summary>
/// <param name="req"><see cref="StartLoggingRequest"/></param>
/// <returns><see cref="StartLoggingResponse"/></returns>
public async Task<StartLoggingResponse> StartLogging(StartLoggingRequest req)
{
JsonResponseModel<StartLoggingResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "StartLogging");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartLoggingResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 开启跟踪集
/// </summary>
/// <param name="req"><see cref="StartLoggingRequest"/></param>
/// <returns><see cref="StartLoggingResponse"/></returns>
public StartLoggingResponse StartLoggingSync(StartLoggingRequest req)
{
JsonResponseModel<StartLoggingResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "StartLogging");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartLoggingResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 关闭跟踪集
/// </summary>
/// <param name="req"><see cref="StopLoggingRequest"/></param>
/// <returns><see cref="StopLoggingResponse"/></returns>
public async Task<StopLoggingResponse> StopLogging(StopLoggingRequest req)
{
JsonResponseModel<StopLoggingResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "StopLogging");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StopLoggingResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 关闭跟踪集
/// </summary>
/// <param name="req"><see cref="StopLoggingRequest"/></param>
/// <returns><see cref="StopLoggingResponse"/></returns>
public StopLoggingResponse StopLoggingSync(StopLoggingRequest req)
{
JsonResponseModel<StopLoggingResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "StopLogging");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StopLoggingResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 参数要求:
/// 1、如果IsCreateNewBucket的值存在的话cosRegion和cosBucketName都是必填参数。
/// 2、如果IsEnableCmqNotify的值是1的话IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
/// 3、如果IsEnableCmqNotify的值是0的话IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
/// 4、如果IsEnableKmsEncry的值是1的话KmsRegion和KeyId属于必填项
/// </summary>
/// <param name="req"><see cref="UpdateAuditRequest"/></param>
/// <returns><see cref="UpdateAuditResponse"/></returns>
public async Task<UpdateAuditResponse> UpdateAudit(UpdateAuditRequest req)
{
JsonResponseModel<UpdateAuditResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "UpdateAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpdateAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 参数要求:
/// 1、如果IsCreateNewBucket的值存在的话cosRegion和cosBucketName都是必填参数。
/// 2、如果IsEnableCmqNotify的值是1的话IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
/// 3、如果IsEnableCmqNotify的值是0的话IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
/// 4、如果IsEnableKmsEncry的值是1的话KmsRegion和KeyId属于必填项
/// </summary>
/// <param name="req"><see cref="UpdateAuditRequest"/></param>
/// <returns><see cref="UpdateAuditResponse"/></returns>
public UpdateAuditResponse UpdateAuditSync(UpdateAuditRequest req)
{
JsonResponseModel<UpdateAuditResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "UpdateAudit");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpdateAuditResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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 AttributeKeyDetail : AbstractModel
{
/// <summary>
/// 中文标签
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 输入框类型
/// </summary>
[JsonProperty("LabelType")]
public string LabelType{ get; set; }
/// <summary>
/// 展示排序
/// </summary>
[JsonProperty("Order")]
public long? Order{ get; set; }
/// <summary>
/// 初始化展示
/// </summary>
[JsonProperty("Starter")]
public string Starter{ get; set; }
/// <summary>
/// AttributeKey值
/// </summary>
[JsonProperty("Value")]
public string Value{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamSimple(map, prefix + "LabelType", this.LabelType);
this.SetParamSimple(map, prefix + "Order", this.Order);
this.SetParamSimple(map, prefix + "Starter", this.Starter);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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 AuditSummary : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// 跟踪集状态1开启0关闭
/// </summary>
[JsonProperty("AuditStatus")]
public long? AuditStatus{ get; set; }
/// <summary>
/// COS存储桶名称
/// </summary>
[JsonProperty("CosBucketName")]
public string CosBucketName{ get; set; }
/// <summary>
/// 日志前缀
/// </summary>
[JsonProperty("LogFilePrefix")]
public string LogFilePrefix{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
this.SetParamSimple(map, prefix + "AuditStatus", this.AuditStatus);
this.SetParamSimple(map, prefix + "CosBucketName", this.CosBucketName);
this.SetParamSimple(map, prefix + "LogFilePrefix", this.LogFilePrefix);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 CmqRegionInfo : AbstractModel
{
/// <summary>
/// cmq地域
/// </summary>
[JsonProperty("CmqRegion")]
public string CmqRegion{ get; set; }
/// <summary>
/// 地域描述
/// </summary>
[JsonProperty("CmqRegionName")]
public string CmqRegionName{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "CmqRegion", this.CmqRegion);
this.SetParamSimple(map, prefix + "CmqRegionName", this.CmqRegionName);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 CosRegionInfo : AbstractModel
{
/// <summary>
/// cos地域
/// </summary>
[JsonProperty("CosRegion")]
public string CosRegion{ get; set; }
/// <summary>
/// 地域描述
/// </summary>
[JsonProperty("CosRegionName")]
public string CosRegionName{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "CosRegion", this.CosRegion);
this.SetParamSimple(map, prefix + "CosRegionName", this.CosRegionName);
}
}
}

View File

@@ -0,0 +1,127 @@
/*
* 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 CreateAuditRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称。3-128字符只能包含 ASCII 编码字母 a-zA-Z数字 0-9下划线 _。
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// cos的存储桶名称。仅支持小写英文字母和数字即[a-z0-9]、中划线“-”及其组合。用户自定义的字符串支持1 - 40个字符。存储桶命名不能以“-”开头或结尾。如果不是新创建的存储桶,云审计不会去校验该存储桶是否真的存在,请谨慎填写,避免日志投递不成功,导致您的数据丢失。
/// </summary>
[JsonProperty("CosBucketName")]
public string CosBucketName{ get; set; }
/// <summary>
/// cos地域。目前支持的地域可以使用ListCosEnableRegion来获取。
/// </summary>
[JsonProperty("CosRegion")]
public string CosRegion{ get; set; }
/// <summary>
/// 是否创建新的cos存储桶。10否。
/// </summary>
[JsonProperty("IsCreateNewBucket")]
public long? IsCreateNewBucket{ get; set; }
/// <summary>
/// 是否开启cmq消息通知。10否。目前仅支持cmq的队列服务。如果开启cmq消息通知服务云审计会将您的日志内容实时投递到您指定地域的指定队列中。
/// </summary>
[JsonProperty("IsEnableCmqNotify")]
public long? IsEnableCmqNotify{ get; set; }
/// <summary>
/// 管理事件的读写属性。1只读2只写3全部。
/// </summary>
[JsonProperty("ReadWriteAttribute")]
public long? ReadWriteAttribute{ get; set; }
/// <summary>
/// 队列名称。队列名称是一个不超过64个字符的字符串必须以字母为首字符剩余部分可以包含字母、数字和横划线(-)。如果IsEnableCmqNotify值是1的话此值属于必填字段。如果不是新创建的队列云审计不会去校验该队列是否真的存在请谨慎填写避免日志通知不成功导致您的数据丢失。
/// </summary>
[JsonProperty("CmqQueueName")]
public string CmqQueueName{ get; set; }
/// <summary>
/// 队列所在的地域。可以通过ListCmqEnableRegion获取支持的cmq地域。如果IsEnableCmqNotify值是1的话此值属于必填字段。
/// </summary>
[JsonProperty("CmqRegion")]
public string CmqRegion{ get; set; }
/// <summary>
/// 是否创建新的队列。10否。如果IsEnableCmqNotify值是1的话此值属于必填字段。
/// </summary>
[JsonProperty("IsCreateNewQueue")]
public long? IsCreateNewQueue{ get; set; }
/// <summary>
/// 是否开启kms加密。10否。如果开启KMS加密数据在投递到cos时会将数据加密。
/// </summary>
[JsonProperty("IsEnableKmsEncry")]
public long? IsEnableKmsEncry{ get; set; }
/// <summary>
/// CMK的全局唯一标识符如果不是新创建的kms该值是必填值。可以通过ListKeyAliasByRegion来获取。云审计不会校验KeyId的合法性请您谨慎填写避免给您的数据造成损失。
/// </summary>
[JsonProperty("KeyId")]
public string KeyId{ get; set; }
/// <summary>
/// kms地域。目前支持的地域可以使用ListKmsEnableRegion来获取。必须要和cos的地域保持一致。
/// </summary>
[JsonProperty("KmsRegion")]
public string KmsRegion{ get; set; }
/// <summary>
/// 日志文件前缀。3-40个字符只能包含 ASCII 编码字母 a-zA-Z数字 0-9。可以不填默认以账号ID作为日志前缀。
/// </summary>
[JsonProperty("LogFilePrefix")]
public string LogFilePrefix{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
this.SetParamSimple(map, prefix + "CosBucketName", this.CosBucketName);
this.SetParamSimple(map, prefix + "CosRegion", this.CosRegion);
this.SetParamSimple(map, prefix + "IsCreateNewBucket", this.IsCreateNewBucket);
this.SetParamSimple(map, prefix + "IsEnableCmqNotify", this.IsEnableCmqNotify);
this.SetParamSimple(map, prefix + "ReadWriteAttribute", this.ReadWriteAttribute);
this.SetParamSimple(map, prefix + "CmqQueueName", this.CmqQueueName);
this.SetParamSimple(map, prefix + "CmqRegion", this.CmqRegion);
this.SetParamSimple(map, prefix + "IsCreateNewQueue", this.IsCreateNewQueue);
this.SetParamSimple(map, prefix + "IsEnableKmsEncry", this.IsEnableKmsEncry);
this.SetParamSimple(map, prefix + "KeyId", this.KeyId);
this.SetParamSimple(map, prefix + "KmsRegion", this.KmsRegion);
this.SetParamSimple(map, prefix + "LogFilePrefix", this.LogFilePrefix);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 CreateAuditResponse : AbstractModel
{
/// <summary>
/// 是否创建成功。
/// </summary>
[JsonProperty("IsSuccess")]
public long? IsSuccess{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "IsSuccess", this.IsSuccess);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 DeleteAuditRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 DeleteAuditResponse : AbstractModel
{
/// <summary>
/// 是否删除成功
/// </summary>
[JsonProperty("IsSuccess")]
public long? IsSuccess{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "IsSuccess", this.IsSuccess);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 DescribeAuditRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
}
}
}

View File

@@ -0,0 +1,134 @@
/*
* 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 DescribeAuditResponse : AbstractModel
{
/// <summary>
/// 跟踪集名称。
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// 跟踪集状态1开启0停止。
/// </summary>
[JsonProperty("AuditStatus")]
public long? AuditStatus{ get; set; }
/// <summary>
/// 队列名称。
/// </summary>
[JsonProperty("CmqQueueName")]
public string CmqQueueName{ get; set; }
/// <summary>
/// 队列所在地域。
/// </summary>
[JsonProperty("CmqRegion")]
public string CmqRegion{ get; set; }
/// <summary>
/// cos存储桶名称。
/// </summary>
[JsonProperty("CosBucketName")]
public string CosBucketName{ get; set; }
/// <summary>
/// cos存储桶所在地域。
/// </summary>
[JsonProperty("CosRegion")]
public string CosRegion{ get; set; }
/// <summary>
/// 是否开启cmq消息通知。10否。
/// </summary>
[JsonProperty("IsEnableCmqNotify")]
public long? IsEnableCmqNotify{ get; set; }
/// <summary>
/// 是否开启kms加密。10否。如果开启KMS加密数据在投递到cos时会将数据加密。
/// </summary>
[JsonProperty("IsEnableKmsEncry")]
public long? IsEnableKmsEncry{ get; set; }
/// <summary>
/// CMK的全局唯一标识符。
/// </summary>
[JsonProperty("KeyId")]
public string KeyId{ get; set; }
/// <summary>
/// CMK别名。
/// </summary>
[JsonProperty("KmsAlias")]
public string KmsAlias{ get; set; }
/// <summary>
/// kms地域。
/// </summary>
[JsonProperty("KmsRegion")]
public string KmsRegion{ get; set; }
/// <summary>
/// 日志前缀。
/// </summary>
[JsonProperty("LogFilePrefix")]
public string LogFilePrefix{ get; set; }
/// <summary>
/// 管理事件读写属性1只读2只写3全部
/// </summary>
[JsonProperty("ReadWriteAttribute")]
public long? ReadWriteAttribute{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
this.SetParamSimple(map, prefix + "AuditStatus", this.AuditStatus);
this.SetParamSimple(map, prefix + "CmqQueueName", this.CmqQueueName);
this.SetParamSimple(map, prefix + "CmqRegion", this.CmqRegion);
this.SetParamSimple(map, prefix + "CosBucketName", this.CosBucketName);
this.SetParamSimple(map, prefix + "CosRegion", this.CosRegion);
this.SetParamSimple(map, prefix + "IsEnableCmqNotify", this.IsEnableCmqNotify);
this.SetParamSimple(map, prefix + "IsEnableKmsEncry", this.IsEnableKmsEncry);
this.SetParamSimple(map, prefix + "KeyId", this.KeyId);
this.SetParamSimple(map, prefix + "KmsAlias", this.KmsAlias);
this.SetParamSimple(map, prefix + "KmsRegion", this.KmsRegion);
this.SetParamSimple(map, prefix + "LogFilePrefix", this.LogFilePrefix);
this.SetParamSimple(map, prefix + "ReadWriteAttribute", this.ReadWriteAttribute);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,148 @@
/*
* 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
{
/// <summary>
/// 资源对
/// </summary>
[JsonProperty("Resources")]
public Resource Resources{ get; set; }
/// <summary>
/// 主账号ID
/// </summary>
[JsonProperty("AccountID")]
public long? AccountID{ get; set; }
/// <summary>
/// 日志详情
/// </summary>
[JsonProperty("CloudAuditEvent")]
public string CloudAuditEvent{ get; set; }
/// <summary>
/// 鉴权错误码
/// </summary>
[JsonProperty("ErrorCode")]
public long? ErrorCode{ get; set; }
/// <summary>
/// 日志ID
/// </summary>
[JsonProperty("EventId")]
public string EventId{ get; set; }
/// <summary>
/// 事件名称
/// </summary>
[JsonProperty("EventName")]
public string EventName{ get; set; }
/// <summary>
/// 事件名称中文描述(此字段请按需使用,如果您是其他语言使用者,可以忽略该字段描述)
/// </summary>
[JsonProperty("EventNameCn")]
public string EventNameCn{ get; set; }
/// <summary>
/// 事件地域
/// </summary>
[JsonProperty("EventRegion")]
public string EventRegion{ get; set; }
/// <summary>
/// 请求来源
/// </summary>
[JsonProperty("EventSource")]
public string EventSource{ get; set; }
/// <summary>
/// 事件时间
/// </summary>
[JsonProperty("EventTime")]
public string EventTime{ get; set; }
/// <summary>
/// 请求ID
/// </summary>
[JsonProperty("RequestID")]
public string RequestID{ get; set; }
/// <summary>
/// 资源地域
/// </summary>
[JsonProperty("ResourceRegion")]
public string ResourceRegion{ get; set; }
/// <summary>
/// 资源类型中文描述(此字段请按需使用,如果您是其他语言使用者,可以忽略该字段描述)
/// </summary>
[JsonProperty("ResourceTypeCn")]
public string ResourceTypeCn{ get; set; }
/// <summary>
/// 证书ID
/// </summary>
[JsonProperty("SecretId")]
public string SecretId{ get; set; }
/// <summary>
/// 源IP
/// </summary>
[JsonProperty("SourceIPAddress")]
public string SourceIPAddress{ get; set; }
/// <summary>
/// 用户名
/// </summary>
[JsonProperty("Username")]
public string Username{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> 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);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 GetAttributeKeyRequest : AbstractModel
{
/// <summary>
/// 网站类型取值范围是zh和en。如果不传值默认zh
/// </summary>
[JsonProperty("WebsiteType")]
public string WebsiteType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "WebsiteType", this.WebsiteType);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 GetAttributeKeyResponse : AbstractModel
{
/// <summary>
/// AttributeKey的有效取值范围
/// </summary>
[JsonProperty("AttributeKeyDetails")]
public AttributeKeyDetail[] AttributeKeyDetails{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "AttributeKeyDetails.", this.AttributeKeyDetails);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,36 @@
/*
* 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 InquireAuditCreditRequest : AbstractModel
{
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 InquireAuditCreditResponse : AbstractModel
{
/// <summary>
/// 可创建跟踪集的数量
/// </summary>
[JsonProperty("AuditAmount")]
public long? AuditAmount{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditAmount", this.AuditAmount);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,36 @@
/*
* 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 ListAuditsRequest : AbstractModel
{
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 ListAuditsResponse : AbstractModel
{
/// <summary>
/// 查询跟踪集概要集合
/// </summary>
[JsonProperty("AuditSummarys")]
public AuditSummary[] AuditSummarys{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "AuditSummarys.", this.AuditSummarys);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 ListCmqEnableRegionRequest : AbstractModel
{
/// <summary>
/// 站点类型。zh表示中国区en表示国际区。默认中国区。
/// </summary>
[JsonProperty("WebsiteType")]
public string WebsiteType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "WebsiteType", this.WebsiteType);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 ListCmqEnableRegionResponse : AbstractModel
{
/// <summary>
/// 云审计支持的cmq的可用区
/// </summary>
[JsonProperty("EnableRegions")]
public CmqRegionInfo[] EnableRegions{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "EnableRegions.", this.EnableRegions);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 ListCosEnableRegionRequest : AbstractModel
{
/// <summary>
/// 站点类型。zh表示中国区en表示国际区。默认中国区。
/// </summary>
[JsonProperty("WebsiteType")]
public string WebsiteType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "WebsiteType", this.WebsiteType);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 ListCosEnableRegionResponse : AbstractModel
{
/// <summary>
/// 云审计支持的cos可用区
/// </summary>
[JsonProperty("EnableRegions")]
public CosRegionInfo[] EnableRegions{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "EnableRegions.", this.EnableRegions);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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 LookUpEventsRequest : AbstractModel
{
/// <summary>
/// 结束时间
/// </summary>
[JsonProperty("EndTime")]
public long? EndTime{ get; set; }
/// <summary>
/// 开始时间
/// </summary>
[JsonProperty("StartTime")]
public long? StartTime{ get; set; }
/// <summary>
/// 检索条件
/// </summary>
[JsonProperty("LookupAttributes")]
public LookupAttribute[] LookupAttributes{ get; set; }
/// <summary>
/// 返回日志的最大条数
/// </summary>
[JsonProperty("MaxResults")]
public long? MaxResults{ get; set; }
/// <summary>
/// 云审计模式有效值standard | quick其中standard是标准模式quick是极速模式。默认为标准模式
/// </summary>
[JsonProperty("Mode")]
public string Mode{ get; set; }
/// <summary>
/// 查看更多日志的凭证
/// </summary>
[JsonProperty("NextToken")]
public string NextToken{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamArrayObj(map, prefix + "LookupAttributes.", this.LookupAttributes);
this.SetParamSimple(map, prefix + "MaxResults", this.MaxResults);
this.SetParamSimple(map, prefix + "Mode", this.Mode);
this.SetParamSimple(map, prefix + "NextToken", this.NextToken);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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 LookUpEventsResponse : AbstractModel
{
/// <summary>
/// 日志集合
/// </summary>
[JsonProperty("Events")]
public Event[] Events{ get; set; }
/// <summary>
/// 日志集合是否结束
/// </summary>
[JsonProperty("ListOver")]
public bool? ListOver{ get; set; }
/// <summary>
/// 查看更多日志的凭证
/// </summary>
[JsonProperty("NextToken")]
public string NextToken{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Events.", this.Events);
this.SetParamSimple(map, prefix + "ListOver", this.ListOver);
this.SetParamSimple(map, prefix + "NextToken", this.NextToken);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 LookupAttribute : AbstractModel
{
/// <summary>
/// AttributeKey的有效取值范围是:RequestId、EventName、ReadOnly、Username、ResourceType、ResourceName和AccessKeyIdEventId
/// </summary>
[JsonProperty("AttributeKey")]
public string AttributeKey{ get; set; }
/// <summary>
/// AttributeValue
/// </summary>
[JsonProperty("AttributeValue")]
public string AttributeValue{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AttributeKey", this.AttributeKey);
this.SetParamSimple(map, prefix + "AttributeValue", this.AttributeValue);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 Resource : AbstractModel
{
/// <summary>
/// 资源名称
/// </summary>
[JsonProperty("ResourceName")]
public string ResourceName{ get; set; }
/// <summary>
/// 资源类型
/// </summary>
[JsonProperty("ResourceType")]
public string ResourceType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "ResourceName", this.ResourceName);
this.SetParamSimple(map, prefix + "ResourceType", this.ResourceType);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 StartLoggingRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 StartLoggingResponse : AbstractModel
{
/// <summary>
/// 是否开启成功
/// </summary>
[JsonProperty("IsSuccess")]
public long? IsSuccess{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "IsSuccess", this.IsSuccess);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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 StopLoggingRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 StopLoggingResponse : AbstractModel
{
/// <summary>
/// 是否关闭成功
/// </summary>
[JsonProperty("IsSuccess")]
public long? IsSuccess{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "IsSuccess", this.IsSuccess);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,127 @@
/*
* 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 UpdateAuditRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// 队列名称。队列名称是一个不超过64个字符的字符串必须以字母为首字符剩余部分可以包含字母、数字和横划线(-)。如果IsEnableCmqNotify值是1的话此值属于必填字段。如果不是新创建的队列云审计不会去校验该队列是否真的存在请谨慎填写避免日志通知不成功导致您的数据丢失。
/// </summary>
[JsonProperty("CmqQueueName")]
public string CmqQueueName{ get; set; }
/// <summary>
/// 队列所在的地域。可以通过ListCmqEnableRegion获取支持的cmq地域。如果IsEnableCmqNotify值是1的话此值属于必填字段。
/// </summary>
[JsonProperty("CmqRegion")]
public string CmqRegion{ get; set; }
/// <summary>
/// cos的存储桶名称。仅支持小写英文字母和数字即[a-z0-9]、中划线“-”及其组合。用户自定义的字符串支持1 - 40个字符。存储桶命名不能以“-”开头或结尾。如果不是新创建的存储桶,云审计不会去校验该存储桶是否真的存在,请谨慎填写,避免日志投递不成功,导致您的数据丢失。
/// </summary>
[JsonProperty("CosBucketName")]
public string CosBucketName{ get; set; }
/// <summary>
/// cos地域。目前支持的地域可以使用ListCosEnableRegion来获取。
/// </summary>
[JsonProperty("CosRegion")]
public string CosRegion{ get; set; }
/// <summary>
/// 是否创建新的cos存储桶。10否。
/// </summary>
[JsonProperty("IsCreateNewBucket")]
public long? IsCreateNewBucket{ get; set; }
/// <summary>
/// 是否创建新的队列。10否。如果IsEnableCmqNotify值是1的话此值属于必填字段。
/// </summary>
[JsonProperty("IsCreateNewQueue")]
public long? IsCreateNewQueue{ get; set; }
/// <summary>
/// 是否开启cmq消息通知。10否。目前仅支持cmq的队列服务。如果开启cmq消息通知服务云审计会将您的日志内容实时投递到您指定地域的指定队列中。
/// </summary>
[JsonProperty("IsEnableCmqNotify")]
public long? IsEnableCmqNotify{ get; set; }
/// <summary>
/// 是否开启kms加密。10否。如果开启KMS加密数据在投递到cos时会将数据加密。
/// </summary>
[JsonProperty("IsEnableKmsEncry")]
public long? IsEnableKmsEncry{ get; set; }
/// <summary>
/// CMK的全局唯一标识符如果不是新创建的kms该值是必填值。可以通过ListKeyAliasByRegion来获取。云审计不会校验KeyId的合法性请您谨慎填写避免给您的数据造成损失。
/// </summary>
[JsonProperty("KeyId")]
public string KeyId{ get; set; }
/// <summary>
/// kms地域。目前支持的地域可以使用ListKmsEnableRegion来获取。必须要和cos的地域保持一致。
/// </summary>
[JsonProperty("KmsRegion")]
public string KmsRegion{ get; set; }
/// <summary>
/// 日志文件前缀。3-40个字符只能包含 ASCII 编码字母 a-zA-Z数字 0-9。
/// </summary>
[JsonProperty("LogFilePrefix")]
public string LogFilePrefix{ get; set; }
/// <summary>
/// 管理事件的读写属性。1只读2只写3全部。
/// </summary>
[JsonProperty("ReadWriteAttribute")]
public long? ReadWriteAttribute{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
this.SetParamSimple(map, prefix + "CmqQueueName", this.CmqQueueName);
this.SetParamSimple(map, prefix + "CmqRegion", this.CmqRegion);
this.SetParamSimple(map, prefix + "CosBucketName", this.CosBucketName);
this.SetParamSimple(map, prefix + "CosRegion", this.CosRegion);
this.SetParamSimple(map, prefix + "IsCreateNewBucket", this.IsCreateNewBucket);
this.SetParamSimple(map, prefix + "IsCreateNewQueue", this.IsCreateNewQueue);
this.SetParamSimple(map, prefix + "IsEnableCmqNotify", this.IsEnableCmqNotify);
this.SetParamSimple(map, prefix + "IsEnableKmsEncry", this.IsEnableKmsEncry);
this.SetParamSimple(map, prefix + "KeyId", this.KeyId);
this.SetParamSimple(map, prefix + "KmsRegion", this.KmsRegion);
this.SetParamSimple(map, prefix + "LogFilePrefix", this.LogFilePrefix);
this.SetParamSimple(map, prefix + "ReadWriteAttribute", this.ReadWriteAttribute);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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 UpdateAuditResponse : AbstractModel
{
/// <summary>
/// 是否更新成功
/// </summary>
[JsonProperty("IsSuccess")]
public long? IsSuccess{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "IsSuccess", this.IsSuccess);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}