首次推送

This commit is contained in:
lym
2026-03-09 00:13:46 +08:00
commit b19613bb31
13974 changed files with 2767735 additions and 0 deletions

File diff suppressed because it is too large Load Diff

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ApplySnapshotRequest : AbstractModel
{
/// <summary>
/// 快照ID, 可通过[DescribeSnapshots](/document/product/362/15647)查询。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ get; set; }
/// <summary>
/// 快照原云硬盘ID可通过[DescribeDisks](/document/product/362/16315)接口查询。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ 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 + "SnapshotId", this.SnapshotId);
this.SetParamSimple(map, prefix + "DiskId", this.DiskId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ApplySnapshotResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AttachDetail : AbstractModel
{
/// <summary>
/// 实例ID。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 实例已挂载数据盘的数量。
/// </summary>
[JsonProperty("AttachedDiskCount")]
public ulong? AttachedDiskCount{ get; set; }
/// <summary>
/// 实例最大可挂载数据盘的数量。
/// </summary>
[JsonProperty("MaxAttachCount")]
public ulong? MaxAttachCount{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "AttachedDiskCount", this.AttachedDiskCount);
this.SetParamSimple(map, prefix + "MaxAttachCount", this.MaxAttachCount);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AttachDisksRequest : AbstractModel
{
/// <summary>
/// 将要被挂载的弹性云盘ID。通过[DescribeDisks](/document/product/362/16315)接口查询。单次最多可挂载10块弹性云盘。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 云服务器实例ID。云盘将被挂载到此云服务器上通过[DescribeInstances](/document/product/213/15728)接口查询。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 可选参数,不传该参数则仅执行挂载操作。传入`True`时,会在挂载成功后将云硬盘设置为随云主机销毁模式,仅对按量计费云硬盘有效。
/// </summary>
[JsonProperty("DeleteWithInstance")]
public bool? DeleteWithInstance{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AttachDisksResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,106 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AutoSnapshotPolicy : AbstractModel
{
/// <summary>
/// 定期快照策略ID。
/// </summary>
[JsonProperty("AutoSnapshotPolicyId")]
public string AutoSnapshotPolicyId{ get; set; }
/// <summary>
/// 定期快照策略名称。
/// </summary>
[JsonProperty("AutoSnapshotPolicyName")]
public string AutoSnapshotPolicyName{ get; set; }
/// <summary>
/// 定期快照策略的状态。取值范围:<br><li>NORMAL正常<br><li>ISOLATED已隔离。
/// </summary>
[JsonProperty("AutoSnapshotPolicyState")]
public string AutoSnapshotPolicyState{ get; set; }
/// <summary>
/// 定期快照策略是否激活。
/// </summary>
[JsonProperty("IsActivated")]
public bool? IsActivated{ get; set; }
/// <summary>
/// 使用该定期快照策略创建出来的快照是否永久保留。
/// </summary>
[JsonProperty("IsPermanent")]
public bool? IsPermanent{ get; set; }
/// <summary>
/// 使用该定期快照策略创建出来的快照保留天数。
/// </summary>
[JsonProperty("RetentionDays")]
public ulong? RetentionDays{ get; set; }
/// <summary>
/// 定期快照策略的创建时间。
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 定期快照下次触发的时间。
/// </summary>
[JsonProperty("NextTriggerTime")]
public string NextTriggerTime{ get; set; }
/// <summary>
/// 定期快照的执行策略。
/// </summary>
[JsonProperty("Policy")]
public Policy[] Policy{ get; set; }
/// <summary>
/// 已绑定当前定期快照策略的云盘ID列表。
/// </summary>
[JsonProperty("DiskIdSet")]
public string[] DiskIdSet{ 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 + "AutoSnapshotPolicyId", this.AutoSnapshotPolicyId);
this.SetParamSimple(map, prefix + "AutoSnapshotPolicyName", this.AutoSnapshotPolicyName);
this.SetParamSimple(map, prefix + "AutoSnapshotPolicyState", this.AutoSnapshotPolicyState);
this.SetParamSimple(map, prefix + "IsActivated", this.IsActivated);
this.SetParamSimple(map, prefix + "IsPermanent", this.IsPermanent);
this.SetParamSimple(map, prefix + "RetentionDays", this.RetentionDays);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "NextTriggerTime", this.NextTriggerTime);
this.SetParamArrayObj(map, prefix + "Policy.", this.Policy);
this.SetParamArraySimple(map, prefix + "DiskIdSet.", this.DiskIdSet);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindAutoSnapshotPolicyRequest : AbstractModel
{
/// <summary>
/// 要绑定的定期快照策略ID。
/// </summary>
[JsonProperty("AutoSnapshotPolicyId")]
public string AutoSnapshotPolicyId{ get; set; }
/// <summary>
/// 要绑定的云硬盘ID列表一次请求最多绑定80块云盘。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ 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 + "AutoSnapshotPolicyId", this.AutoSnapshotPolicyId);
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindAutoSnapshotPolicyResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateAutoSnapshotPolicyRequest : AbstractModel
{
/// <summary>
/// 定期快照的执行策略。
/// </summary>
[JsonProperty("Policy")]
public Policy[] Policy{ get; set; }
/// <summary>
/// 要创建的定期快照策略名。不传则默认为“未命名”。最大长度不能超60个字节。
/// </summary>
[JsonProperty("AutoSnapshotPolicyName")]
public string AutoSnapshotPolicyName{ get; set; }
/// <summary>
/// 是否激活定期快照策略FALSE表示未激活TRUE表示激活默认为TRUE。
/// </summary>
[JsonProperty("IsActivated")]
public bool? IsActivated{ get; set; }
/// <summary>
/// 通过该定期快照策略创建的快照是否永久保留。FALSE表示非永久保留TRUE表示永久保留默认为FALSE。
/// </summary>
[JsonProperty("IsPermanent")]
public bool? IsPermanent{ get; set; }
/// <summary>
/// 通过该定期快照策略创建的快照保留天数默认保留7天。如果指定本参数则IsPermanent入参不可指定为TRUE否则会产生冲突。
/// </summary>
[JsonProperty("RetentionDays")]
public ulong? RetentionDays{ get; set; }
/// <summary>
/// 是否创建定期快照的执行策略。TRUE表示只需获取首次开始备份的时间不实际创建定期快照策略FALSE表示创建默认为FALSE。
/// </summary>
[JsonProperty("DryRun")]
public bool? DryRun{ 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 + "Policy.", this.Policy);
this.SetParamSimple(map, prefix + "AutoSnapshotPolicyName", this.AutoSnapshotPolicyName);
this.SetParamSimple(map, prefix + "IsActivated", this.IsActivated);
this.SetParamSimple(map, prefix + "IsPermanent", this.IsPermanent);
this.SetParamSimple(map, prefix + "RetentionDays", this.RetentionDays);
this.SetParamSimple(map, prefix + "DryRun", this.DryRun);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateAutoSnapshotPolicyResponse : AbstractModel
{
/// <summary>
/// 新创建的定期快照策略ID。
/// </summary>
[JsonProperty("AutoSnapshotPolicyId")]
public string AutoSnapshotPolicyId{ get; set; }
/// <summary>
/// 首次开始备份的时间。
/// </summary>
[JsonProperty("NextTriggerTime")]
public string NextTriggerTime{ 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 + "AutoSnapshotPolicyId", this.AutoSnapshotPolicyId);
this.SetParamSimple(map, prefix + "NextTriggerTime", this.NextTriggerTime);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,120 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateDisksRequest : AbstractModel
{
/// <summary>
/// 硬盘介质类型。取值范围:<br><li>CLOUD_BASIC表示普通云硬盘<br><li>CLOUD_PREMIUM表示高性能云硬盘<br><li>CLOUD_SSD表示SSD云硬盘。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 云硬盘计费类型。<br><li>PREPAID预付费即包年包月<br><li>POSTPAID_BY_HOUR按小时后付费<br><li>CDCPAID独享集群付费<br>各类型价格请参考云硬盘[价格总览](/document/product/362/2413)。
/// </summary>
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
/// <summary>
/// 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目。若不指定项目,将在默认项目下进行创建。
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 云盘显示名称。不传则默认为“未命名”。最大长度不能超60个字节。
/// </summary>
[JsonProperty("DiskName")]
public string DiskName{ get; set; }
/// <summary>
/// 创建云硬盘数量不传则默认为1。单次请求最多可创建的云盘数有限制具体参见[云硬盘使用限制](https://cloud.tencent.com/doc/product/362/5145)。
/// </summary>
[JsonProperty("DiskCount")]
public ulong? DiskCount{ get; set; }
/// <summary>
/// 预付费模式,即包年包月相关参数设置。通过该参数指定包年包月云盘的购买时长、是否设置自动续费等属性。<br>创建预付费云盘该参数必传,创建按小时后付费云盘无需传该参数。
/// </summary>
[JsonProperty("DiskChargePrepaid")]
public DiskChargePrepaid DiskChargePrepaid{ get; set; }
/// <summary>
/// 云硬盘大小单位为GB。<br><li>如果传入`SnapshotId`则可不传`DiskSize`,此时新建云盘的大小为快照大小<br><li>如果传入`SnapshotId`同时传入`DiskSize`,则云盘大小必须大于或等于快照大小<br><li>云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 快照ID如果传入则根据此快照创建云硬盘快照类型必须为数据盘快照可通过[DescribeSnapshots](/document/product/362/15647)接口查询快照见输出参数DiskUsage解释。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ get; set; }
/// <summary>
/// 用于保证请求幂等性的字符串。该字符串由客户生成需保证不同请求之间唯一最大值不超过64个ASCII字符。若不指定该参数则无法保证请求的幂等性。
/// </summary>
[JsonProperty("ClientToken")]
public string ClientToken{ get; set; }
/// <summary>
/// 传入该参数用于创建加密云盘取值固定为ENCRYPT。
/// </summary>
[JsonProperty("Encrypt")]
public string Encrypt{ get; set; }
/// <summary>
/// 云盘绑定的标签。
/// </summary>
[JsonProperty("Tags")]
public Tag[] Tags{ get; set; }
/// <summary>
/// 可选参数默认为False。传入True时云盘将创建为共享型云盘。
/// </summary>
[JsonProperty("Shareable")]
public bool? Shareable{ 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 + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "DiskName", this.DiskName);
this.SetParamSimple(map, prefix + "DiskCount", this.DiskCount);
this.SetParamObj(map, prefix + "DiskChargePrepaid.", this.DiskChargePrepaid);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "SnapshotId", this.SnapshotId);
this.SetParamSimple(map, prefix + "ClientToken", this.ClientToken);
this.SetParamSimple(map, prefix + "Encrypt", this.Encrypt);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "Shareable", this.Shareable);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateDisksResponse : AbstractModel
{
/// <summary>
/// 创建的云硬盘ID列表。
/// </summary>
[JsonProperty("DiskIdSet")]
public string[] DiskIdSet{ 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.SetParamArraySimple(map, prefix + "DiskIdSet.", this.DiskIdSet);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateSnapshotRequest : AbstractModel
{
/// <summary>
/// 需要创建快照的云硬盘ID可通过[DescribeDisks](/document/product/362/16315)接口查询。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 快照名称,不传则新快照名称默认为“未命名”。
/// </summary>
[JsonProperty("SnapshotName")]
public string SnapshotName{ 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 + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "SnapshotName", this.SnapshotName);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateSnapshotResponse : AbstractModel
{
/// <summary>
/// 新创建的快照ID。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ 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 + "SnapshotId", this.SnapshotId);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteAutoSnapshotPoliciesRequest : AbstractModel
{
/// <summary>
/// 要删除的定期快照策略ID列表。
/// </summary>
[JsonProperty("AutoSnapshotPolicyIds")]
public string[] AutoSnapshotPolicyIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "AutoSnapshotPolicyIds.", this.AutoSnapshotPolicyIds);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteAutoSnapshotPoliciesResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSnapshotsRequest : AbstractModel
{
/// <summary>
/// 要删除的快照ID列表可通过[DescribeSnapshots](/document/product/362/15647)查询。
/// </summary>
[JsonProperty("SnapshotIds")]
public string[] SnapshotIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "SnapshotIds.", this.SnapshotIds);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteSnapshotsResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAutoSnapshotPoliciesRequest : AbstractModel
{
/// <summary>
/// 要查询的定期快照策略ID列表。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。
/// </summary>
[JsonProperty("AutoSnapshotPolicyIds")]
public string[] AutoSnapshotPolicyIds{ get; set; }
/// <summary>
/// 过滤条件。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。<br><li>auto-snapshot-policy-id - Array of String - 是否必填:否 -过滤条件按定期快照策略ID进行过滤。定期快照策略ID形如`asp-11112222`。<br><li>auto-snapshot-policy-state - Array of String - 是否必填:否 -过滤条件按定期快照策略的状态进行过滤。定期快照策略ID形如`asp-11112222`。(NORMAL正常 | ISOLATED已隔离。)<br><li>auto-snapshot-policy-name - Array of String - 是否必填:否 -(过滤条件)按定期快照策略名称进行过滤。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 返回数量默认为20最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 偏移量默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/product/362/15633)中的相关小节。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 输出定期快照列表的排列顺序。取值范围:<br><li>ASC升序排列<br><li>DESC降序排列。
/// </summary>
[JsonProperty("Order")]
public string Order{ get; set; }
/// <summary>
/// 定期快照列表排序的依据字段。取值范围:<br><li>CREATETIME依据定期快照的创建时间排序<br>默认按创建时间排序。
/// </summary>
[JsonProperty("OrderField")]
public string OrderField{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "AutoSnapshotPolicyIds.", this.AutoSnapshotPolicyIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Order", this.Order);
this.SetParamSimple(map, prefix + "OrderField", this.OrderField);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeAutoSnapshotPoliciesResponse : AbstractModel
{
/// <summary>
/// 有效的定期快照策略数量。
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 定期快照策略列表。
/// </summary>
[JsonProperty("AutoSnapshotPolicySet")]
public AutoSnapshotPolicy[] AutoSnapshotPolicySet{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "AutoSnapshotPolicySet.", this.AutoSnapshotPolicySet);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDiskAssociatedAutoSnapshotPolicyRequest : AbstractModel
{
/// <summary>
/// 要查询的云硬盘ID。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ 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 + "DiskId", this.DiskId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDiskAssociatedAutoSnapshotPolicyResponse : AbstractModel
{
/// <summary>
/// 云盘绑定的定期快照数量。
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 云盘绑定的定期快照列表。
/// </summary>
[JsonProperty("AutoSnapshotPolicySet")]
public AutoSnapshotPolicy[] AutoSnapshotPolicySet{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "AutoSnapshotPolicySet.", this.AutoSnapshotPolicySet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDiskConfigQuotaRequest : AbstractModel
{
/// <summary>
/// 查询类别,取值范围。<br><li>INQUIRY_CBS_CONFIG查询云盘配置列表<br><li>INQUIRY_CVM_CONFIG查询云盘与实例搭配的配置列表。
/// </summary>
[JsonProperty("InquiryType")]
public string InquiryType{ get; set; }
/// <summary>
/// 查询一个或多个[可用区](/document/product/213/15753#ZoneInfo)下的配置。
/// </summary>
[JsonProperty("Zones")]
public string[] Zones{ get; set; }
/// <summary>
/// 付费模式。取值范围:<br><li>PREPAID预付费<br><li>POSTPAID_BY_HOUR后付费。
/// </summary>
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
/// <summary>
/// 硬盘介质类型。取值范围:<br><li>CLOUD_BASIC表示普通云硬盘<br><li>CLOUD_PREMIUM表示高性能云硬盘<br><li>CLOUD_SSD表示SSD云硬盘。
/// </summary>
[JsonProperty("DiskTypes")]
public string[] DiskTypes{ get; set; }
/// <summary>
/// 系统盘或数据盘。取值范围:<br><li>SYSTEM_DISK表示系统盘<br><li>DATA_DISK表示数据盘。
/// </summary>
[JsonProperty("DiskUsage")]
public string DiskUsage{ get; set; }
/// <summary>
/// 按照实例机型系列过滤。实例机型系列形如S1、I1、M1等。详见[实例类型](https://cloud.tencent.com/document/product/213/11518)
/// </summary>
[JsonProperty("InstanceFamilies")]
public string[] InstanceFamilies{ get; set; }
/// <summary>
/// 实例CPU核数。
/// </summary>
[JsonProperty("CPU")]
public ulong? CPU{ get; set; }
/// <summary>
/// 实例内存大小。
/// </summary>
[JsonProperty("Memory")]
public ulong? Memory{ 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 + "InquiryType", this.InquiryType);
this.SetParamArraySimple(map, prefix + "Zones.", this.Zones);
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.SetParamArraySimple(map, prefix + "DiskTypes.", this.DiskTypes);
this.SetParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
this.SetParamArraySimple(map, prefix + "InstanceFamilies.", this.InstanceFamilies);
this.SetParamSimple(map, prefix + "CPU", this.CPU);
this.SetParamSimple(map, prefix + "Memory", this.Memory);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDiskConfigQuotaResponse : AbstractModel
{
/// <summary>
/// 云盘配置列表。
/// </summary>
[JsonProperty("DiskConfigSet")]
public DiskConfig[] DiskConfigSet{ 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 + "DiskConfigSet.", this.DiskConfigSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDiskOperationLogsRequest : AbstractModel
{
/// <summary>
/// 过滤条件。支持以下条件:
/// <li>disk-id - Array of String - 是否必填:是 - 按云盘ID过滤每个请求最多可指定10个云盘ID。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 要查询的操作日志的起始时间例如“2019-11-22 00:00:00"
/// </summary>
[JsonProperty("BeginTime")]
public string BeginTime{ get; set; }
/// <summary>
/// 要查询的操作日志的截止时间例如“2019-11-22 23:59:59"
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ 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 + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "BeginTime", this.BeginTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDiskOperationLogsResponse : AbstractModel
{
/// <summary>
/// 云盘的操作日志列表。
/// </summary>
[JsonProperty("DiskOperationLogSet")]
public DiskOperationLog[] DiskOperationLogSet{ 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 + "DiskOperationLogSet.", this.DiskOperationLogSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDisksRequest : AbstractModel
{
/// <summary>
/// 按照一个或者多个云硬盘ID查询。云硬盘ID形如`disk-11112222`此参数的具体格式可参考API[简介](/document/product/362/15633)的ids.N一节。参数不支持同时指定`DiskIds`和`Filters`。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 过滤条件。参数不支持同时指定`DiskIds`和`Filters`。<br><li>disk-usage - Array of String - 是否必填:否 -(过滤条件)按云盘类型过滤。 (SYSTEM_DISK表示系统盘 | DATA_DISK表示数据盘)<br><li>disk-charge-type - Array of String - 是否必填:否 -(过滤条件)按照云硬盘计费模式过滤。 (PREPAID表示预付费即包年包月 | POSTPAID_BY_HOUR表示后付费即按量计费。)<br><li>portable - Array of String - 是否必填:否 -(过滤条件)按是否为弹性云盘过滤。 (TRUE表示弹性云盘 | FALSE表示非弹性云盘。)<br><li>project-id - Array of Integer - 是否必填:否 -过滤条件按云硬盘所属项目ID过滤。<br><li>disk-id - Array of String - 是否必填:否 -过滤条件按照云硬盘ID过滤。云盘ID形如`disk-11112222`。<br><li>disk-name - Array of String - 是否必填:否 -(过滤条件)按照云盘名称过滤。<br><li>disk-type - Array of String - 是否必填:否 -(过滤条件)按照云盘介质类型过滤。(CLOUD_BASIC表示普通云硬盘 | CLOUD_PREMIUM表示高性能云硬盘。| CLOUD_SSDSSD表示SSD云硬盘。)<br><li>disk-state - Array of String - 是否必填:否 -(过滤条件)按照云盘状态过滤。(UNATTACHED未挂载 | ATTACHING挂载中 | ATTACHED已挂载 | DETACHING解挂中 | EXPANDING扩容中 | ROLLBACKING回滚中 | TORECYCLE待回收。)<br><li>instance-id - Array of String - 是否必填:否 -过滤条件按照云盘挂载的云主机实例ID过滤。可根据此参数查询挂载在指定云主机下的云硬盘。<br><li>zone - Array of String - 是否必填:否 -(过滤条件)按照[可用区](/document/product/213/15753#ZoneInfo)过滤。<br><li>instance-ip-address - Array of String - 是否必填:否 -过滤条件按云盘所挂载云主机的内网或外网IP过滤。<br><li>instance-name - Array of String - 是否必填:否 -(过滤条件)按云盘所挂载的实例名称过滤。<br><li>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。<br><li>tag-value - Array of String - 是否必填:否 -(过滤条件)照标签值进行过滤。<br><li>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 偏移量默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/product/362/15633)中的相关小节。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认为20最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 输出云盘列表的排列顺序。取值范围:<br><li>ASC升序排列<br><li>DESC降序排列。
/// </summary>
[JsonProperty("Order")]
public string Order{ get; set; }
/// <summary>
/// 云盘列表排序的依据字段。取值范围:<br><li>CREATE_TIME依据云盘的创建时间排序<br><li>DEADLINE依据云盘的到期时间排序<br>默认按云盘创建时间排序。
/// </summary>
[JsonProperty("OrderField")]
public string OrderField{ get; set; }
/// <summary>
/// 云盘详情中是否需要返回云盘绑定的定期快照策略IDTRUE表示需要返回FALSE表示不返回。
/// </summary>
[JsonProperty("ReturnBindAutoSnapshotPolicy")]
public bool? ReturnBindAutoSnapshotPolicy{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Order", this.Order);
this.SetParamSimple(map, prefix + "OrderField", this.OrderField);
this.SetParamSimple(map, prefix + "ReturnBindAutoSnapshotPolicy", this.ReturnBindAutoSnapshotPolicy);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDisksResponse : AbstractModel
{
/// <summary>
/// 符合条件的云硬盘数量。
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 云硬盘的详细信息列表。
/// </summary>
[JsonProperty("DiskSet")]
public Disk[] DiskSet{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "DiskSet.", this.DiskSet);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstancesDiskNumRequest : AbstractModel
{
/// <summary>
/// 云服务器实例ID通过[DescribeInstances](/document/product/213/15728)接口查询。
/// </summary>
[JsonProperty("InstanceIds")]
public string[] InstanceIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstancesDiskNumResponse : AbstractModel
{
/// <summary>
/// 各个云服务器已挂载和可挂载弹性云盘的数量。
/// </summary>
[JsonProperty("AttachDetail")]
public AttachDetail[] AttachDetail{ 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 + "AttachDetail.", this.AttachDetail);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSnapshotOperationLogsRequest : AbstractModel
{
/// <summary>
/// 过滤条件。支持以下条件:
/// <li>snapshot-id - Array of String - 是否必填:是 - 按快照ID过滤每个请求最多可指定10个快照ID。
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 要查询的操作日志的起始时间例如“2019-11-22 00:00:00"
/// </summary>
[JsonProperty("BeginTime")]
public string BeginTime{ get; set; }
/// <summary>
/// 要查询的操作日志的截止时间例如“2019-11-22 23:59:59"
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ 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 + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "BeginTime", this.BeginTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSnapshotOperationLogsResponse : AbstractModel
{
/// <summary>
/// 快照操作日志列表。
/// </summary>
[JsonProperty("SnapshotOperationLogSet")]
public SnapshotOperationLog[] SnapshotOperationLogSet{ 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 + "SnapshotOperationLogSet.", this.SnapshotOperationLogSet);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSnapshotSharePermissionRequest : AbstractModel
{
/// <summary>
/// 要查询快照的ID。可通过[DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647)查询获取。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ 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 + "SnapshotId", this.SnapshotId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSnapshotSharePermissionResponse : AbstractModel
{
/// <summary>
/// 快照的分享信息的集合
/// </summary>
[JsonProperty("SharePermissionSet")]
public SharePermission[] SharePermissionSet{ 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 + "SharePermissionSet.", this.SharePermissionSet);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSnapshotsRequest : AbstractModel
{
/// <summary>
/// 要查询快照的ID列表。参数不支持同时指定`SnapshotIds`和`Filters`。
/// </summary>
[JsonProperty("SnapshotIds")]
public string[] SnapshotIds{ get; set; }
/// <summary>
/// 过滤条件。参数不支持同时指定`SnapshotIds`和`Filters`。<br><li>snapshot-id - Array of String - 是否必填:否 -过滤条件按照快照的ID过滤。快照ID形如`snap-11112222`。<br><li>snapshot-name - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。<br><li>snapshot-state - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤。 (NORMAL正常 | CREATING创建中 | ROLLBACKING回滚中。)<br><li>disk-usage - Array of String - 是否必填:否 -(过滤条件)按创建快照的云盘类型过滤。 (SYSTEM_DISK代表系统盘 | DATA_DISK代表数据盘。)<br><li>project-id - Array of String - 是否必填:否 -过滤条件按云硬盘所属项目ID过滤。<br><li>disk-id - Array of String - 是否必填:否 -过滤条件按照创建快照的云硬盘ID过滤。<br><li>zone - Array of String - 是否必填:否 -(过滤条件)按照[可用区](/document/product/213/15753#ZoneInfo)过滤。<br><li>encrypt - Array of String - 是否必填:否 -(过滤条件)按是否加密盘快照过滤。 (TRUE表示加密盘快照 | FALSE表示非加密盘快照。)
/// </summary>
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
/// <summary>
/// 偏移量默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/product/362/15633)中的相关小节。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认为20最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 输出云盘列表的排列顺序。取值范围:<br><li>ASC升序排列<br><li>DESC降序排列。
/// </summary>
[JsonProperty("Order")]
public string Order{ get; set; }
/// <summary>
/// 快照列表排序的依据字段。取值范围:<br><li>CREATE_TIME依据快照的创建时间排序<br>默认按创建时间排序。
/// </summary>
[JsonProperty("OrderField")]
public string OrderField{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "SnapshotIds.", this.SnapshotIds);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Order", this.Order);
this.SetParamSimple(map, prefix + "OrderField", this.OrderField);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeSnapshotsResponse : AbstractModel
{
/// <summary>
/// 快照的数量。
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 快照的详情列表。
/// </summary>
[JsonProperty("SnapshotSet")]
public Snapshot[] SnapshotSet{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "SnapshotSet.", this.SnapshotSet);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetachDisksRequest : AbstractModel
{
/// <summary>
/// 将要解挂的云硬盘ID 通过[DescribeDisks](/document/product/362/16315)接口查询单次请求最多可解挂10块弹性云盘。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 对于非共享型云盘会忽略该参数对于共享型云盘该参数表示要从哪个CVM实例上解挂云盘。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetachDisksResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,278 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Disk : AbstractModel
{
/// <summary>
/// 云硬盘ID。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 云硬盘类型。取值范围:<br><li>SYSTEM_DISK系统盘<br><li>DATA_DISK数据盘。
/// </summary>
[JsonProperty("DiskUsage")]
public string DiskUsage{ get; set; }
/// <summary>
/// 付费模式。取值范围:<br><li>PREPAID预付费即包年包月<br><li>POSTPAID_BY_HOUR后付费即按量计费。
/// </summary>
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
/// <summary>
/// 是否为弹性云盘false表示非弹性云盘true表示弹性云盘。
/// </summary>
[JsonProperty("Portable")]
public bool? Portable{ get; set; }
/// <summary>
/// 云硬盘所在的位置。
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 云盘是否具备创建快照的能力。取值范围:<br><li>false表示不具备<br><li>true表示具备。
/// </summary>
[JsonProperty("SnapshotAbility")]
public bool? SnapshotAbility{ get; set; }
/// <summary>
/// 云硬盘名称。
/// </summary>
[JsonProperty("DiskName")]
public string DiskName{ get; set; }
/// <summary>
/// 云硬盘大小单位GB。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 云盘状态。取值范围:<br><li>UNATTACHED未挂载<br><li>ATTACHING挂载中<br><li>ATTACHED已挂载<br><li>DETACHING解挂中<br><li>EXPANDING扩容中<br><li>ROLLBACKING回滚中<br><li>TORECYCLE待回收<br><li>DUMPING拷贝硬盘中。
/// </summary>
[JsonProperty("DiskState")]
public string DiskState{ get; set; }
/// <summary>
/// 云盘介质类型。取值范围:<br><li>CLOUD_BASIC表示普通云硬盘<br><li>CLOUD_PREMIUM表示高性能云硬盘<br><li>CLOUD_SSDSSD表示SSD云硬盘。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 云盘是否挂载到云主机上。取值范围:<br><li>false:表示未挂载<br><li>true:表示已挂载。
/// </summary>
[JsonProperty("Attached")]
public bool? Attached{ get; set; }
/// <summary>
/// 云硬盘挂载的云主机ID。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 云硬盘的创建时间。
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 云硬盘的到期时间。
/// </summary>
[JsonProperty("DeadlineTime")]
public string DeadlineTime{ get; set; }
/// <summary>
/// 云盘是否处于快照回滚状态。取值范围:<br><li>false:表示不处于快照回滚状态<br><li>true:表示处于快照回滚状态。
/// </summary>
[JsonProperty("Rollbacking")]
public bool? Rollbacking{ get; set; }
/// <summary>
/// 云盘快照回滚的进度。
/// </summary>
[JsonProperty("RollbackPercent")]
public ulong? RollbackPercent{ get; set; }
/// <summary>
/// 云盘是否为加密盘。取值范围:<br><li>false:表示非加密盘<br><li>true:表示加密盘。
/// </summary>
[JsonProperty("Encrypt")]
public bool? Encrypt{ get; set; }
/// <summary>
/// 云盘已挂载到子机,且子机与云盘都是包年包月。<br><li>true子机设置了自动续费标识但云盘未设置<br><li>false云盘自动续费标识正常。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AutoRenewFlagError")]
public bool? AutoRenewFlagError{ get; set; }
/// <summary>
/// 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW不通知过期不自动续费。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RenewFlag")]
public string RenewFlag{ get; set; }
/// <summary>
/// 在云盘已挂载到实例,且实例与云盘都是包年包月的条件下,此字段才有意义。<br><li>true:云盘到期时间早于实例。<br><li>false云盘到期时间晚于实例。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DeadlineError")]
public bool? DeadlineError{ get; set; }
/// <summary>
/// 判断预付费的云盘是否支持主动退还。<br><li>true:支持主动退还<br><li>false:不支持主动退还。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("IsReturnable")]
public bool? IsReturnable{ get; set; }
/// <summary>
/// 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:<br><li>1云硬盘已经退还<br><li>2云硬盘已过期<br><li>3云盘不支持退还<br><li>8超过可退还数量的限制。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ReturnFailCode")]
public long? ReturnFailCode{ get; set; }
/// <summary>
/// 云盘关联的定期快照ID。只有在调用DescribeDisks接口时入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AutoSnapshotPolicyIds")]
public string[] AutoSnapshotPolicyIds{ get; set; }
/// <summary>
/// 与云盘绑定的标签,云盘未绑定标签则取值为空。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Tags")]
public Tag[] Tags{ get; set; }
/// <summary>
/// 云盘是否与挂载的实例一起销毁。<br><li>true:销毁实例时会同时销毁云盘,只支持按小时后付费云盘。<br><li>false销毁实例时不销毁云盘。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DeleteWithInstance")]
public bool? DeleteWithInstance{ get; set; }
/// <summary>
/// 当前时间距离盘到期的天数(仅对预付费盘有意义)。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DifferDaysOfDeadline")]
public long? DifferDaysOfDeadline{ get; set; }
/// <summary>
/// 云盘是否处于类型变更中。取值范围:<br><li>false:表示云盘不处于类型变更中<br><li>true:表示云盘已发起类型变更,正处于迁移中。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Migrating")]
public bool? Migrating{ get; set; }
/// <summary>
/// 云盘类型变更的迁移进度取值0到100。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MigratePercent")]
public ulong? MigratePercent{ get; set; }
/// <summary>
/// 云盘是否为共享型云盘。
/// </summary>
[JsonProperty("Shareable")]
public bool? Shareable{ get; set; }
/// <summary>
/// 对于非共享型云盘该参数为空数组。对于共享型云盘则表示该云盘当前被挂载到的CVM实例InstanceId
/// </summary>
[JsonProperty("InstanceIdList")]
public string[] InstanceIdList{ get; set; }
/// <summary>
/// 云盘拥有的快照总数。
/// </summary>
[JsonProperty("SnapshotCount")]
public long? SnapshotCount{ get; set; }
/// <summary>
/// 云盘拥有的快照总容量单位为MB。
/// </summary>
[JsonProperty("SnapshotSize")]
public ulong? SnapshotSize{ get; set; }
/// <summary>
/// 云盘因欠费销毁或者期销毁时, 是否使用快照备份数据的标识。True 销毁时创建快照进行数据备份。False 表示直接销毁,不进行数据备份。
/// </summary>
[JsonProperty("BackupDisk")]
public bool? BackupDisk{ 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 + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.SetParamSimple(map, prefix + "Portable", this.Portable);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "SnapshotAbility", this.SnapshotAbility);
this.SetParamSimple(map, prefix + "DiskName", this.DiskName);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "DiskState", this.DiskState);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "Attached", this.Attached);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "DeadlineTime", this.DeadlineTime);
this.SetParamSimple(map, prefix + "Rollbacking", this.Rollbacking);
this.SetParamSimple(map, prefix + "RollbackPercent", this.RollbackPercent);
this.SetParamSimple(map, prefix + "Encrypt", this.Encrypt);
this.SetParamSimple(map, prefix + "AutoRenewFlagError", this.AutoRenewFlagError);
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.SetParamSimple(map, prefix + "DeadlineError", this.DeadlineError);
this.SetParamSimple(map, prefix + "IsReturnable", this.IsReturnable);
this.SetParamSimple(map, prefix + "ReturnFailCode", this.ReturnFailCode);
this.SetParamArraySimple(map, prefix + "AutoSnapshotPolicyIds.", this.AutoSnapshotPolicyIds);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance);
this.SetParamSimple(map, prefix + "DifferDaysOfDeadline", this.DifferDaysOfDeadline);
this.SetParamSimple(map, prefix + "Migrating", this.Migrating);
this.SetParamSimple(map, prefix + "MigratePercent", this.MigratePercent);
this.SetParamSimple(map, prefix + "Shareable", this.Shareable);
this.SetParamArraySimple(map, prefix + "InstanceIdList.", this.InstanceIdList);
this.SetParamSimple(map, prefix + "SnapshotCount", this.SnapshotCount);
this.SetParamSimple(map, prefix + "SnapshotSize", this.SnapshotSize);
this.SetParamSimple(map, prefix + "BackupDisk", this.BackupDisk);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DiskChargePrepaid : AbstractModel
{
/// <summary>
/// 购买云盘的时长默认单位为月取值范围1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
/// </summary>
[JsonProperty("Period")]
public ulong? Period{ get; set; }
/// <summary>
/// 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW不通知过期不自动续费<br><br>默认取值NOTIFY_AND_MANUAL_RENEW通知过期不自动续费。
/// </summary>
[JsonProperty("RenewFlag")]
public string RenewFlag{ get; set; }
/// <summary>
/// 需要将云盘的到期时间与挂载的子机对齐时可传入该参数。该参数表示子机当前的到期时间此时Period如果传入则表示子机需要续费的时长云盘会自动按对齐到子机续费后的到期时间续费示例取值2018-03-30 20:15:03。
/// </summary>
[JsonProperty("CurInstanceDeadline")]
public string CurInstanceDeadline{ 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 + "Period", this.Period);
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.SetParamSimple(map, prefix + "CurInstanceDeadline", this.CurInstanceDeadline);
}
}
}

View File

@@ -0,0 +1,101 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DiskConfig : AbstractModel
{
/// <summary>
/// 配置是否可用。
/// </summary>
[JsonProperty("Available")]
public bool? Available{ get; set; }
/// <summary>
/// 云盘介质类型。取值范围:<br><li>CLOUD_BASIC表示普通云硬盘<br><li>CLOUD_PREMIUM表示高性能云硬盘<br><li>CLOUD_SSDSSD表示SSD云硬盘。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 云盘类型。取值范围:<br><li>SYSTEM_DISK表示系统盘<br><li>DATA_DISK表示数据盘。
/// </summary>
[JsonProperty("DiskUsage")]
public string DiskUsage{ get; set; }
/// <summary>
/// 付费模式。取值范围:<br><li>PREPAID表示预付费即包年包月<br><li>POSTPAID_BY_HOUR表示后付费即按量计费。
/// </summary>
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
/// <summary>
/// 最大可配置云盘大小单位GB。
/// </summary>
[JsonProperty("MaxDiskSize")]
public ulong? MaxDiskSize{ get; set; }
/// <summary>
/// 最小可配置云盘大小单位GB。
/// </summary>
[JsonProperty("MinDiskSize")]
public ulong? MinDiskSize{ get; set; }
/// <summary>
/// 云硬盘所属的[可用区](/document/product/213/15753#ZoneInfo)。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例机型。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DeviceClass")]
public string DeviceClass{ get; set; }
/// <summary>
/// 实例机型系列。详见[实例类型](https://cloud.tencent.com/document/product/213/11518)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("InstanceFamily")]
public string InstanceFamily{ 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 + "Available", this.Available);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.SetParamSimple(map, prefix + "MaxDiskSize", this.MaxDiskSize);
this.SetParamSimple(map, prefix + "MinDiskSize", this.MinDiskSize);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "DeviceClass", this.DeviceClass);
this.SetParamSimple(map, prefix + "InstanceFamily", this.InstanceFamily);
}
}
}

View File

@@ -0,0 +1,90 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DiskOperationLog : AbstractModel
{
/// <summary>
/// 操作者的UIN。
/// </summary>
[JsonProperty("Operator")]
public string Operator{ get; set; }
/// <summary>
/// 操作类型。取值范围:
/// CBS_OPERATION_ATTACH挂载云硬盘
/// CBS_OPERATION_DETACH解挂云硬盘
/// CBS_OPERATION_RENEW续费
/// CBS_OPERATION_EXPAND扩容
/// CBS_OPERATION_CREATE创建
/// CBS_OPERATION_ISOLATE隔离
/// CBS_OPERATION_MODIFY修改云硬盘属性
/// ASP_OPERATION_BIND关联定期快照策略
/// ASP_OPERATION_UNBIND取消关联定期快照策略
/// </summary>
[JsonProperty("Operation")]
public string Operation{ get; set; }
/// <summary>
/// 操作的云盘ID。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 操作的状态。取值范围:
/// SUCCESS :表示操作成功
/// FAILED :表示操作失败
/// PROCESSING :表示操作中。
/// </summary>
[JsonProperty("OperationState")]
public string OperationState{ get; set; }
/// <summary>
/// 开始时间。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 结束时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ 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 + "Operator", this.Operator);
this.SetParamSimple(map, prefix + "Operation", this.Operation);
this.SetParamSimple(map, prefix + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "OperationState", this.OperationState);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Filter : AbstractModel
{
/// <summary>
/// 过滤键的名称。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 一个或者多个过滤值。
/// </summary>
[JsonProperty("Values")]
public string[] Values{ 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 + "Name", this.Name);
this.SetParamArraySimple(map, prefix + "Values.", this.Values);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetSnapOverviewRequest : 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,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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetSnapOverviewResponse : AbstractModel
{
/// <summary>
/// 用户快照总大小
/// </summary>
[JsonProperty("TotalSize")]
public float? TotalSize{ get; set; }
/// <summary>
/// 用户快照总大小(用于计费)
/// </summary>
[JsonProperty("RealTradeSize")]
public float? RealTradeSize{ get; set; }
/// <summary>
/// 快照免费额度
/// </summary>
[JsonProperty("FreeQuota")]
public float? FreeQuota{ get; set; }
/// <summary>
/// 快照总个数
/// </summary>
[JsonProperty("TotalNums")]
public long? TotalNums{ 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 + "TotalSize", this.TotalSize);
this.SetParamSimple(map, prefix + "RealTradeSize", this.RealTradeSize);
this.SetParamSimple(map, prefix + "FreeQuota", this.FreeQuota);
this.SetParamSimple(map, prefix + "TotalNums", this.TotalNums);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Image : AbstractModel
{
/// <summary>
/// 镜像实例ID。
/// </summary>
[JsonProperty("ImageId")]
public string ImageId{ get; set; }
/// <summary>
/// 镜像名称。
/// </summary>
[JsonProperty("ImageName")]
public string ImageName{ 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 + "ImageId", this.ImageId);
this.SetParamSimple(map, prefix + "ImageName", this.ImageName);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InquiryPriceCreateDisksRequest : AbstractModel
{
/// <summary>
/// 云硬盘类型。取值范围:<br><li>普通云硬盘CLOUD_BASIC<br><li>高性能云硬盘CLOUD_PREMIUM<br><li>SSD云硬盘CLOUD_SSD。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 云硬盘大小单位为GB。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 云硬盘计费类型。<br><li>PREPAID预付费即包年包月<br><li>POSTPAID_BY_HOUR按小时后付费
/// </summary>
[JsonProperty("DiskChargeType")]
public string DiskChargeType{ get; set; }
/// <summary>
/// 预付费模式,即包年包月相关参数设置。通过该参数指定包年包月云盘的购买时长、是否设置自动续费等属性。<br>创建预付费云盘该参数必传,创建按小时后付费云盘无需传该参数。
/// </summary>
[JsonProperty("DiskChargePrepaid")]
public DiskChargePrepaid DiskChargePrepaid{ get; set; }
/// <summary>
/// 购买云盘的数量。不填则默认为1。
/// </summary>
[JsonProperty("DiskCount")]
public ulong? DiskCount{ get; set; }
/// <summary>
/// 云盘所属项目ID。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ 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 + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "DiskChargeType", this.DiskChargeType);
this.SetParamObj(map, prefix + "DiskChargePrepaid.", this.DiskChargePrepaid);
this.SetParamSimple(map, prefix + "DiskCount", this.DiskCount);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InquiryPriceCreateDisksResponse : AbstractModel
{
/// <summary>
/// 描述了新购云盘的价格。
/// </summary>
[JsonProperty("DiskPrice")]
public Price DiskPrice{ 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.SetParamObj(map, prefix + "DiskPrice.", this.DiskPrice);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InquiryPriceRenewDisksRequest : AbstractModel
{
/// <summary>
/// 云硬盘ID 通过[DescribeDisks](/document/product/362/16315)接口查询。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 预付费模式即包年包月相关参数设置。通过该参数可以指定包年包月云盘的购买时长。如果在该参数中指定CurInstanceDeadline则会按对齐到子机到期时间来续费。如果是批量续费询价该参数与Disks参数一一对应元素数量需保持一致。
/// </summary>
[JsonProperty("DiskChargePrepaids")]
public DiskChargePrepaid[] DiskChargePrepaids{ get; set; }
/// <summary>
/// 指定云盘新的到期时间形式如2017-12-17 00:00:00。参数`NewDeadline`和`DiskChargePrepaids`是两种指定询价时长的方式,两者必传一个。
/// </summary>
[JsonProperty("NewDeadline")]
public string NewDeadline{ get; set; }
/// <summary>
/// 云盘所属项目ID。 如传入则仅用于鉴权。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamArrayObj(map, prefix + "DiskChargePrepaids.", this.DiskChargePrepaids);
this.SetParamSimple(map, prefix + "NewDeadline", this.NewDeadline);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InquiryPriceRenewDisksResponse : AbstractModel
{
/// <summary>
/// 描述了续费云盘的价格。
/// </summary>
[JsonProperty("DiskPrice")]
public PrepayPrice DiskPrice{ 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.SetParamObj(map, prefix + "DiskPrice.", this.DiskPrice);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InquiryPriceResizeDiskRequest : AbstractModel
{
/// <summary>
/// 云硬盘ID 通过[DescribeDisks](/document/product/362/16315)接口查询。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 云硬盘扩容后的大小单位为GB不得小于当前云硬盘大小。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 云盘所属项目ID。 如传入则仅用于鉴权。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ 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 + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InquiryPriceResizeDiskResponse : AbstractModel
{
/// <summary>
/// 描述了扩容云盘的价格。
/// </summary>
[JsonProperty("DiskPrice")]
public PrepayPrice DiskPrice{ 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.SetParamObj(map, prefix + "DiskPrice.", this.DiskPrice);
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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyAutoSnapshotPolicyAttributeRequest : AbstractModel
{
/// <summary>
/// 定期快照策略ID。
/// </summary>
[JsonProperty("AutoSnapshotPolicyId")]
public string AutoSnapshotPolicyId{ get; set; }
/// <summary>
/// 定期快照的执行策略。
/// </summary>
[JsonProperty("Policy")]
public Policy[] Policy{ get; set; }
/// <summary>
/// 要创建的定期快照策略名。不传则默认为“未命名”。最大长度不能超60个字节。
/// </summary>
[JsonProperty("AutoSnapshotPolicyName")]
public string AutoSnapshotPolicyName{ get; set; }
/// <summary>
/// 是否激活定期快照策略FALSE表示未激活TRUE表示激活默认为TRUE。
/// </summary>
[JsonProperty("IsActivated")]
public bool? IsActivated{ get; set; }
/// <summary>
/// 通过该定期快照策略创建的快照是否永久保留。FALSE表示非永久保留TRUE表示永久保留默认为FALSE。
/// </summary>
[JsonProperty("IsPermanent")]
public bool? IsPermanent{ get; set; }
/// <summary>
/// 通过该定期快照策略创建的快照保留天数,该参数不可与`IsPermanent`参数冲突,即若定期快照策略设置为永久保留,`RetentionDays`应置0。
/// </summary>
[JsonProperty("RetentionDays")]
public ulong? RetentionDays{ 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 + "AutoSnapshotPolicyId", this.AutoSnapshotPolicyId);
this.SetParamArrayObj(map, prefix + "Policy.", this.Policy);
this.SetParamSimple(map, prefix + "AutoSnapshotPolicyName", this.AutoSnapshotPolicyName);
this.SetParamSimple(map, prefix + "IsActivated", this.IsActivated);
this.SetParamSimple(map, prefix + "IsPermanent", this.IsPermanent);
this.SetParamSimple(map, prefix + "RetentionDays", this.RetentionDays);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyAutoSnapshotPolicyAttributeResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyDiskAttributesRequest : AbstractModel
{
/// <summary>
/// 一个或多个待操作的云硬盘ID。如果传入多个云盘ID仅支持所有云盘修改为同一属性。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 新的云硬盘项目ID只支持修改弹性云盘的项目ID。通过[DescribeProject](/document/api/378/4400)接口查询可用项目及其ID。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 新的云硬盘名称。
/// </summary>
[JsonProperty("DiskName")]
public string DiskName{ get; set; }
/// <summary>
/// 是否为弹性云盘FALSE表示非弹性云盘TRUE表示弹性云盘。仅支持非弹性云盘修改为弹性云盘。
/// </summary>
[JsonProperty("Portable")]
public bool? Portable{ get; set; }
/// <summary>
/// 成功挂载到云主机后该云硬盘是否随云主机销毁TRUE表示随云主机销毁FALSE表示不随云主机销毁。仅支持按量计费云硬盘数据盘。
/// </summary>
[JsonProperty("DeleteWithInstance")]
public bool? DeleteWithInstance{ get; set; }
/// <summary>
/// 变更云盘类型时,可传入该参数,表示变更的目标类型,取值范围:<br><li>CLOUD_PREMIUM表示高性能云硬盘<br><li>CLOUD_SSD表示SSD云硬盘。<br>当前不支持批量变更类型即传入DiskType时DiskIds仅支持传入一块云盘<br>变更云盘类型时不支持同时变更其他属性。
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "DiskName", this.DiskName);
this.SetParamSimple(map, prefix + "Portable", this.Portable);
this.SetParamSimple(map, prefix + "DeleteWithInstance", this.DeleteWithInstance);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyDiskAttributesResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyDisksChargeTypeRequest : AbstractModel
{
/// <summary>
/// 一个或多个待操作的云硬盘ID。每次请求批量云盘上限为100。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。
/// </summary>
[JsonProperty("DiskChargePrepaid")]
public DiskChargePrepaid DiskChargePrepaid{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamObj(map, prefix + "DiskChargePrepaid.", this.DiskChargePrepaid);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyDisksChargeTypeResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyDisksRenewFlagRequest : AbstractModel
{
/// <summary>
/// 一个或多个待操作的云硬盘ID。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 云盘的续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW不通知过期不自动续费。
/// </summary>
[JsonProperty("RenewFlag")]
public string RenewFlag{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyDisksRenewFlagResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySnapshotAttributeRequest : AbstractModel
{
/// <summary>
/// 快照ID, 可通过[DescribeSnapshots](/document/product/362/15647)查询。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ get; set; }
/// <summary>
/// 新的快照名称。最长为60个字符。
/// </summary>
[JsonProperty("SnapshotName")]
public string SnapshotName{ get; set; }
/// <summary>
/// 快照的保留时间FALSE表示非永久保留TRUE表示永久保留。仅支持将非永久快照修改为永久快照。
/// </summary>
[JsonProperty("IsPermanent")]
public bool? IsPermanent{ 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 + "SnapshotId", this.SnapshotId);
this.SetParamSimple(map, prefix + "SnapshotName", this.SnapshotName);
this.SetParamSimple(map, prefix + "IsPermanent", this.IsPermanent);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySnapshotAttributeResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySnapshotsSharePermissionRequest : AbstractModel
{
/// <summary>
/// 接收分享快照的账号Id列表array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/568)。帐号ID不同于QQ号查询用户帐号ID请查看[帐号信息](https://console.cloud.tencent.com/developer)中的帐号ID栏。
/// </summary>
[JsonProperty("AccountIds")]
public string[] AccountIds{ get; set; }
/// <summary>
/// 操作,包括 SHARECANCEL。其中SHARE代表分享操作CANCEL代表取消分享操作。
/// </summary>
[JsonProperty("Permission")]
public string Permission{ get; set; }
/// <summary>
/// 快照ID, 可通过[DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647)查询获取。
/// </summary>
[JsonProperty("SnapshotIds")]
public string[] SnapshotIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "AccountIds.", this.AccountIds);
this.SetParamSimple(map, prefix + "Permission", this.Permission);
this.SetParamArraySimple(map, prefix + "SnapshotIds.", this.SnapshotIds);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifySnapshotsSharePermissionResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,74 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Placement : AbstractModel
{
/// <summary>
/// 云硬盘所属的[可用区](/document/product/213/15753#ZoneInfo)。该参数也可以通过调用 [DescribeZones](/document/product/213/15707) 的返回值中的Zone字段来获取。
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例所属项目ID。该参数可以通过调用 [DescribeProject](/document/api/378/4400) 的返回值中的 projectId 字段来获取。不填为默认项目。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 实例所属的独享集群ID。作为入参时表示对指定的CdcId独享集群的资源进行操作可为空。 作为出参时表示资源所属的独享集群的ID可为空。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CdcId")]
public string CdcId{ get; set; }
/// <summary>
/// 围笼Id。作为入参时表示对指定的CageId的资源进行操作可为空。 作为出参时表示资源所属围笼ID可为空。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CageId")]
public string CageId{ get; set; }
/// <summary>
/// 独享集群名字。作为入参时,忽略。作为出参时,表示云硬盘所属的独享集群名,可为空。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CdcName")]
public string CdcName{ 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 + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "CdcId", this.CdcId);
this.SetParamSimple(map, prefix + "CageId", this.CageId);
this.SetParamSimple(map, prefix + "CdcName", this.CdcName);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Policy : AbstractModel
{
/// <summary>
/// 指定每周从周一到周日需要触发定期快照的日期,取值范围:[0, 6]。0表示周日触发1-6分别表示周一至周六。
/// </summary>
[JsonProperty("DayOfWeek")]
public ulong?[] DayOfWeek{ get; set; }
/// <summary>
/// 指定定期快照策略的触发时间。单位为小时,取值范围:[0, 23]。00:00 ~ 23:00 共 24 个时间点可选1表示 01:00依此类推。
/// </summary>
[JsonProperty("Hour")]
public ulong?[] Hour{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DayOfWeek.", this.DayOfWeek);
this.SetParamArraySimple(map, prefix + "Hour.", this.Hour);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PrepayPrice : AbstractModel
{
/// <summary>
/// 预付费云盘或快照预支费用的原价,单位:元。
/// </summary>
[JsonProperty("OriginalPrice")]
public float? OriginalPrice{ get; set; }
/// <summary>
/// 预付费云盘或快照预支费用的折扣价,单位:元。
/// </summary>
[JsonProperty("DiscountPrice")]
public float? DiscountPrice{ 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 + "OriginalPrice", this.OriginalPrice);
this.SetParamSimple(map, prefix + "DiscountPrice", this.DiscountPrice);
}
}
}

View File

@@ -0,0 +1,76 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Price : AbstractModel
{
/// <summary>
/// 预付费云盘预支费用的原价,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginalPrice")]
public float? OriginalPrice{ get; set; }
/// <summary>
/// 预付费云盘预支费用的折扣价,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DiscountPrice")]
public float? DiscountPrice{ get; set; }
/// <summary>
/// 后付费云盘原单价,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPrice")]
public float? UnitPrice{ get; set; }
/// <summary>
/// 后付费云盘的计价单元,取值范围:<br><li>HOUR表示后付费云盘的计价单元是按小时计算。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ChargeUnit")]
public string ChargeUnit{ get; set; }
/// <summary>
/// 后付费云盘折扣单价,单位:元。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("UnitPriceDiscount")]
public float? UnitPriceDiscount{ 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 + "OriginalPrice", this.OriginalPrice);
this.SetParamSimple(map, prefix + "DiscountPrice", this.DiscountPrice);
this.SetParamSimple(map, prefix + "UnitPrice", this.UnitPrice);
this.SetParamSimple(map, prefix + "ChargeUnit", this.ChargeUnit);
this.SetParamSimple(map, prefix + "UnitPriceDiscount", this.UnitPriceDiscount);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RenewDiskRequest : AbstractModel
{
/// <summary>
/// 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云盘的续费时长。<br>在云盘与挂载的实例一起续费的场景下可以指定参数CurInstanceDeadline此时云盘会按对齐到实例续费后的到期时间来续费。
/// </summary>
[JsonProperty("DiskChargePrepaid")]
public DiskChargePrepaid DiskChargePrepaid{ get; set; }
/// <summary>
/// 云硬盘ID 通过[DescribeDisks](/document/product/362/16315)接口查询。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ 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 + "DiskChargePrepaid.", this.DiskChargePrepaid);
this.SetParamSimple(map, prefix + "DiskId", this.DiskId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RenewDiskResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResizeDiskRequest : AbstractModel
{
/// <summary>
/// 云硬盘ID 通过[DescribeDisks](/document/product/362/16315)接口查询。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 云硬盘扩容后的大小单位为GB必须大于当前云硬盘大小。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ 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 + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResizeDiskResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SharePermission : AbstractModel
{
/// <summary>
/// 快照分享的时间
/// </summary>
[JsonProperty("CreatedTime")]
public string CreatedTime{ get; set; }
/// <summary>
/// 分享的账号Id
/// </summary>
[JsonProperty("AccountId")]
public string AccountId{ 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 + "CreatedTime", this.CreatedTime);
this.SetParamSimple(map, prefix + "AccountId", this.AccountId);
}
}
}

View File

@@ -0,0 +1,162 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Snapshot : AbstractModel
{
/// <summary>
/// 快照ID。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ get; set; }
/// <summary>
/// 快照所在的位置。
/// </summary>
[JsonProperty("Placement")]
public Placement Placement{ get; set; }
/// <summary>
/// 创建此快照的云硬盘类型。取值范围:<br><li>SYSTEM_DISK系统盘<br><li>DATA_DISK数据盘。
/// </summary>
[JsonProperty("DiskUsage")]
public string DiskUsage{ get; set; }
/// <summary>
/// 创建此快照的云硬盘ID。
/// </summary>
[JsonProperty("DiskId")]
public string DiskId{ get; set; }
/// <summary>
/// 创建此快照的云硬盘大小单位GB。
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 快照的状态。取值范围:<br><li>NORMAL正常<br><li>CREATING创建中<br><li>ROLLBACKING回滚中<br><li>COPYING_FROM_REMOTE跨地域复制快照拷贝中。
/// </summary>
[JsonProperty("SnapshotState")]
public string SnapshotState{ get; set; }
/// <summary>
/// 快照名称,用户自定义的快照别名。调用[ModifySnapshotAttribute](/document/product/362/15650)可修改此字段。
/// </summary>
[JsonProperty("SnapshotName")]
public string SnapshotName{ get; set; }
/// <summary>
/// 快照创建进度百分比快照创建成功后此字段恒为100。
/// </summary>
[JsonProperty("Percent")]
public ulong? Percent{ get; set; }
/// <summary>
/// 快照的创建时间。
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 快照到期时间。如果快照为永久保留,此字段为空。
/// </summary>
[JsonProperty("DeadlineTime")]
public string DeadlineTime{ get; set; }
/// <summary>
/// 是否为加密盘创建的快照。取值范围:<br><li>true该快照为加密盘创建的<br><li>false:非加密盘创建的快照。
/// </summary>
[JsonProperty("Encrypt")]
public bool? Encrypt{ get; set; }
/// <summary>
/// 是否为永久快照。取值范围:<br><li>true永久快照<br><li>false非永久快照。
/// </summary>
[JsonProperty("IsPermanent")]
public bool? IsPermanent{ get; set; }
/// <summary>
/// 快照正在跨地域复制的目的地域,默认取值为[]。
/// </summary>
[JsonProperty("CopyingToRegions")]
public string[] CopyingToRegions{ get; set; }
/// <summary>
/// 是否为跨地域复制的快照。取值范围:<br><li>true表示为跨地域复制的快照。<br><li>false:本地域的快照。
/// </summary>
[JsonProperty("CopyFromRemote")]
public bool? CopyFromRemote{ get; set; }
/// <summary>
/// 快照关联的镜像列表。
/// </summary>
[JsonProperty("Images")]
public Image[] Images{ get; set; }
/// <summary>
/// 快照关联的镜像个数。
/// </summary>
[JsonProperty("ImageCount")]
public ulong? ImageCount{ get; set; }
/// <summary>
/// 快照类型目前该项取值可以为PRIVATE_SNAPSHOT或者SHARED_SNAPSHOT
/// </summary>
[JsonProperty("SnapshotType")]
public string SnapshotType{ get; set; }
/// <summary>
/// 快照当前被共享数
/// </summary>
[JsonProperty("ShareReference")]
public ulong? ShareReference{ 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 + "SnapshotId", this.SnapshotId);
this.SetParamObj(map, prefix + "Placement.", this.Placement);
this.SetParamSimple(map, prefix + "DiskUsage", this.DiskUsage);
this.SetParamSimple(map, prefix + "DiskId", this.DiskId);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "SnapshotState", this.SnapshotState);
this.SetParamSimple(map, prefix + "SnapshotName", this.SnapshotName);
this.SetParamSimple(map, prefix + "Percent", this.Percent);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "DeadlineTime", this.DeadlineTime);
this.SetParamSimple(map, prefix + "Encrypt", this.Encrypt);
this.SetParamSimple(map, prefix + "IsPermanent", this.IsPermanent);
this.SetParamArraySimple(map, prefix + "CopyingToRegions.", this.CopyingToRegions);
this.SetParamSimple(map, prefix + "CopyFromRemote", this.CopyFromRemote);
this.SetParamArrayObj(map, prefix + "Images.", this.Images);
this.SetParamSimple(map, prefix + "ImageCount", this.ImageCount);
this.SetParamSimple(map, prefix + "SnapshotType", this.SnapshotType);
this.SetParamSimple(map, prefix + "ShareReference", this.ShareReference);
}
}
}

View File

@@ -0,0 +1,89 @@
/*
* 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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SnapshotOperationLog : AbstractModel
{
/// <summary>
/// 操作者的UIN。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Operator")]
public string Operator{ get; set; }
/// <summary>
/// 操作类型。取值范围:
/// SNAP_OPERATION_DELETE删除快照
/// SNAP_OPERATION_ROLLBACK回滚快照
/// SNAP_OPERATION_MODIFY修改快照属性
/// SNAP_OPERATION_CREATE创建快照
/// SNAP_OPERATION_COPY跨地域复制快照
/// ASP_OPERATION_CREATE_SNAP由定期快照策略创建快照
/// ASP_OPERATION_DELETE_SNAP由定期快照策略删除快照
/// </summary>
[JsonProperty("Operation")]
public string Operation{ get; set; }
/// <summary>
/// 操作的快照ID。
/// </summary>
[JsonProperty("SnapshotId")]
public string SnapshotId{ get; set; }
/// <summary>
/// 操作的状态。取值范围:
/// SUCCESS :表示操作成功
/// FAILED :表示操作失败
/// PROCESSING :表示操作中。
/// </summary>
[JsonProperty("OperationState")]
public string OperationState{ get; set; }
/// <summary>
/// 开始时间。
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 结束时间。
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ 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 + "Operator", this.Operator);
this.SetParamSimple(map, prefix + "Operation", this.Operation);
this.SetParamSimple(map, prefix + "SnapshotId", this.SnapshotId);
this.SetParamSimple(map, prefix + "OperationState", this.OperationState);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Tag : AbstractModel
{
/// <summary>
/// 标签健。
/// </summary>
[JsonProperty("Key")]
public string Key{ get; set; }
/// <summary>
/// 标签值。
/// </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 + "Key", this.Key);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TerminateDisksRequest : AbstractModel
{
/// <summary>
/// 需退还的云盘ID列表。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TerminateDisksResponse : AbstractModel
{
/// <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 + "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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnbindAutoSnapshotPolicyRequest : AbstractModel
{
/// <summary>
/// 要解绑定期快照策略的云盘ID列表。
/// </summary>
[JsonProperty("DiskIds")]
public string[] DiskIds{ get; set; }
/// <summary>
/// 要解绑的定期快照策略ID。
/// </summary>
[JsonProperty("AutoSnapshotPolicyId")]
public string AutoSnapshotPolicyId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "DiskIds.", this.DiskIds);
this.SetParamSimple(map, prefix + "AutoSnapshotPolicyId", this.AutoSnapshotPolicyId);
}
}
}

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.Cbs.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnbindAutoSnapshotPolicyResponse : AbstractModel
{
/// <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 + "RequestId", this.RequestId);
}
}
}