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

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

View File

@@ -0,0 +1,430 @@
/*
* 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.Es.V20180416
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Es.V20180416.Models;
public class EsClient : AbstractClient{
private const string endpoint = "es.tencentcloudapi.com";
private const string version = "2018-04-16";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public EsClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public EsClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 创建指定规格的ES集群实例
/// </summary>
/// <param name="req"><see cref="CreateInstanceRequest"/></param>
/// <returns><see cref="CreateInstanceResponse"/></returns>
public async Task<CreateInstanceResponse> CreateInstance(CreateInstanceRequest req)
{
JsonResponseModel<CreateInstanceResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 创建指定规格的ES集群实例
/// </summary>
/// <param name="req"><see cref="CreateInstanceRequest"/></param>
/// <returns><see cref="CreateInstanceResponse"/></returns>
public CreateInstanceResponse CreateInstanceSync(CreateInstanceRequest req)
{
JsonResponseModel<CreateInstanceResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 销毁集群实例
/// </summary>
/// <param name="req"><see cref="DeleteInstanceRequest"/></param>
/// <returns><see cref="DeleteInstanceResponse"/></returns>
public async Task<DeleteInstanceResponse> DeleteInstance(DeleteInstanceRequest req)
{
JsonResponseModel<DeleteInstanceResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 销毁集群实例
/// </summary>
/// <param name="req"><see cref="DeleteInstanceRequest"/></param>
/// <returns><see cref="DeleteInstanceResponse"/></returns>
public DeleteInstanceResponse DeleteInstanceSync(DeleteInstanceRequest req)
{
JsonResponseModel<DeleteInstanceResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询用户该地域下符合条件的ES集群的日志
/// </summary>
/// <param name="req"><see cref="DescribeInstanceLogsRequest"/></param>
/// <returns><see cref="DescribeInstanceLogsResponse"/></returns>
public async Task<DescribeInstanceLogsResponse> DescribeInstanceLogs(DescribeInstanceLogsRequest req)
{
JsonResponseModel<DescribeInstanceLogsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeInstanceLogs");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeInstanceLogsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询用户该地域下符合条件的ES集群的日志
/// </summary>
/// <param name="req"><see cref="DescribeInstanceLogsRequest"/></param>
/// <returns><see cref="DescribeInstanceLogsResponse"/></returns>
public DescribeInstanceLogsResponse DescribeInstanceLogsSync(DescribeInstanceLogsRequest req)
{
JsonResponseModel<DescribeInstanceLogsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeInstanceLogs");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeInstanceLogsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询实例指定条件下的操作记录
/// </summary>
/// <param name="req"><see cref="DescribeInstanceOperationsRequest"/></param>
/// <returns><see cref="DescribeInstanceOperationsResponse"/></returns>
public async Task<DescribeInstanceOperationsResponse> DescribeInstanceOperations(DescribeInstanceOperationsRequest req)
{
JsonResponseModel<DescribeInstanceOperationsResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeInstanceOperations");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeInstanceOperationsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询实例指定条件下的操作记录
/// </summary>
/// <param name="req"><see cref="DescribeInstanceOperationsRequest"/></param>
/// <returns><see cref="DescribeInstanceOperationsResponse"/></returns>
public DescribeInstanceOperationsResponse DescribeInstanceOperationsSync(DescribeInstanceOperationsRequest req)
{
JsonResponseModel<DescribeInstanceOperationsResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeInstanceOperations");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeInstanceOperationsResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询用户该地域下符合条件的所有实例
/// </summary>
/// <param name="req"><see cref="DescribeInstancesRequest"/></param>
/// <returns><see cref="DescribeInstancesResponse"/></returns>
public async Task<DescribeInstancesResponse> DescribeInstances(DescribeInstancesRequest req)
{
JsonResponseModel<DescribeInstancesResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeInstances");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeInstancesResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询用户该地域下符合条件的所有实例
/// </summary>
/// <param name="req"><see cref="DescribeInstancesRequest"/></param>
/// <returns><see cref="DescribeInstancesResponse"/></returns>
public DescribeInstancesResponse DescribeInstancesSync(DescribeInstancesRequest req)
{
JsonResponseModel<DescribeInstancesResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeInstances");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeInstancesResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 重启ES集群实例(用于系统版本更新等操作)
/// </summary>
/// <param name="req"><see cref="RestartInstanceRequest"/></param>
/// <returns><see cref="RestartInstanceResponse"/></returns>
public async Task<RestartInstanceResponse> RestartInstance(RestartInstanceRequest req)
{
JsonResponseModel<RestartInstanceResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "RestartInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<RestartInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 重启ES集群实例(用于系统版本更新等操作)
/// </summary>
/// <param name="req"><see cref="RestartInstanceRequest"/></param>
/// <returns><see cref="RestartInstanceResponse"/></returns>
public RestartInstanceResponse RestartInstanceSync(RestartInstanceRequest req)
{
JsonResponseModel<RestartInstanceResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "RestartInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<RestartInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 对集群进行节点规格变更,修改实例名称,修改配置,重置密码, 添加Kibana黑白名单等操作。参数中InstanceId为必传参数ForceRestart为选填参数剩余参数传递组合及含义如下
/// - InstanceName修改实例名称(仅用于标识实例)
/// - NodeInfoList: 修改节点配置(节点横向扩缩容,纵向扩缩容,增加主节点,增加冷节点等)
/// - EsConfig修改集群配置
/// - Password修改默认用户elastic的密码
/// - EsAcl修改访问控制列表
/// - CosBackUp: 设置集群COS自动备份信息
/// 以上参数组合只能传递一种,多传或少传均会导致请求失败
/// </summary>
/// <param name="req"><see cref="UpdateInstanceRequest"/></param>
/// <returns><see cref="UpdateInstanceResponse"/></returns>
public async Task<UpdateInstanceResponse> UpdateInstance(UpdateInstanceRequest req)
{
JsonResponseModel<UpdateInstanceResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "UpdateInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpdateInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 对集群进行节点规格变更,修改实例名称,修改配置,重置密码, 添加Kibana黑白名单等操作。参数中InstanceId为必传参数ForceRestart为选填参数剩余参数传递组合及含义如下
/// - InstanceName修改实例名称(仅用于标识实例)
/// - NodeInfoList: 修改节点配置(节点横向扩缩容,纵向扩缩容,增加主节点,增加冷节点等)
/// - EsConfig修改集群配置
/// - Password修改默认用户elastic的密码
/// - EsAcl修改访问控制列表
/// - CosBackUp: 设置集群COS自动备份信息
/// 以上参数组合只能传递一种,多传或少传均会导致请求失败
/// </summary>
/// <param name="req"><see cref="UpdateInstanceRequest"/></param>
/// <returns><see cref="UpdateInstanceResponse"/></returns>
public UpdateInstanceResponse UpdateInstanceSync(UpdateInstanceRequest req)
{
JsonResponseModel<UpdateInstanceResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "UpdateInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpdateInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 升级ES集群版本
/// </summary>
/// <param name="req"><see cref="UpgradeInstanceRequest"/></param>
/// <returns><see cref="UpgradeInstanceResponse"/></returns>
public async Task<UpgradeInstanceResponse> UpgradeInstance(UpgradeInstanceRequest req)
{
JsonResponseModel<UpgradeInstanceResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "UpgradeInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpgradeInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 升级ES集群版本
/// </summary>
/// <param name="req"><see cref="UpgradeInstanceRequest"/></param>
/// <returns><see cref="UpgradeInstanceResponse"/></returns>
public UpgradeInstanceResponse UpgradeInstanceSync(UpgradeInstanceRequest req)
{
JsonResponseModel<UpgradeInstanceResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "UpgradeInstance");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpgradeInstanceResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 升级ES商业特性
/// </summary>
/// <param name="req"><see cref="UpgradeLicenseRequest"/></param>
/// <returns><see cref="UpgradeLicenseResponse"/></returns>
public async Task<UpgradeLicenseResponse> UpgradeLicense(UpgradeLicenseRequest req)
{
JsonResponseModel<UpgradeLicenseResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "UpgradeLicense");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpgradeLicenseResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 升级ES商业特性
/// </summary>
/// <param name="req"><see cref="UpgradeLicenseRequest"/></param>
/// <returns><see cref="UpgradeLicenseResponse"/></returns>
public UpgradeLicenseResponse UpgradeLicenseSync(UpgradeLicenseRequest req)
{
JsonResponseModel<UpgradeLicenseResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "UpgradeLicense");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpgradeLicenseResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CosBackup : AbstractModel
{
/// <summary>
/// 是否开启cos自动备份
/// </summary>
[JsonProperty("IsAutoBackup")]
public bool? IsAutoBackup{ get; set; }
/// <summary>
/// 自动备份执行时间(精确到小时), e.g. "22:00"
/// </summary>
[JsonProperty("BackupTime")]
public string BackupTime{ 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 + "IsAutoBackup", this.IsAutoBackup);
this.SetParamSimple(map, prefix + "BackupTime", this.BackupTime);
}
}
}

View File

@@ -0,0 +1,233 @@
/*
* 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateInstanceRequest : AbstractModel
{
/// <summary>
/// 可用区
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 实例版本(支持"5.6.4"、"6.4.3"、"6.8.2"、"7.5.1"
/// </summary>
[JsonProperty("EsVersion")]
public string EsVersion{ get; set; }
/// <summary>
/// 私有网络ID
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 子网ID
/// </summary>
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
/// <summary>
/// 访问密码密码需8到16位至少包括两项[a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号)
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 实例名称1-50 个英文、汉字、数字、连接线-或下划线_
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 节点数量2-50个
/// </summary>
[JsonProperty("NodeNum")]
public ulong? NodeNum{ get; set; }
/// <summary>
/// 计费类型<li>PREPAID预付费即包年包月</li><li>POSTPAID_BY_HOUR按小时后付费</li>默认值POSTPAID_BY_HOUR
/// </summary>
[JsonProperty("ChargeType")]
public string ChargeType{ get; set; }
/// <summary>
/// 包年包月购买时长单位由参数TimeUnit决定
/// </summary>
[JsonProperty("ChargePeriod")]
public ulong? ChargePeriod{ get; set; }
/// <summary>
/// 自动续费标识<li>RENEW_FLAG_AUTO自动续费</li><li>RENEW_FLAG_MANUAL不自动续费用户手动续费</li>ChargeType为PREPAID时需要设置如不传递该参数普通用户默认不自动续费SVIP用户自动续费
/// </summary>
[JsonProperty("RenewFlag")]
public string RenewFlag{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("NodeType")]
public string NodeType{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 节点磁盘类型<li>CLOUD_SSDSSD云硬盘</li><li>CLOUD_PREMIUM高硬能云硬盘</li>默认值CLOUD_SSD
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 节点磁盘容量单位GB
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 计费时长单位ChargeType为PREPAID时需要设置默认值为“m”表示月当前只支持“m”
/// </summary>
[JsonProperty("TimeUnit")]
public string TimeUnit{ get; set; }
/// <summary>
/// 是否自动使用代金券<li>0不自动使用</li><li>1自动使用</li>默认值0
/// </summary>
[JsonProperty("AutoVoucher")]
public long? AutoVoucher{ get; set; }
/// <summary>
/// 代金券ID列表目前仅支持指定一张代金券
/// </summary>
[JsonProperty("VoucherIds")]
public string[] VoucherIds{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 是否创建专用主节点<li>true开启专用主节点</li><li>false不开启专用主节点</li>默认值false
/// </summary>
[JsonProperty("EnableDedicatedMaster")]
public bool? EnableDedicatedMaster{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 专用主节点个数只支持3个和5个EnableDedicatedMaster为true时该值必传
/// </summary>
[JsonProperty("MasterNodeNum")]
public ulong? MasterNodeNum{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 专用主节点类型EnableDedicatedMaster为true时必传<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("MasterNodeType")]
public string MasterNodeType{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 专用主节点磁盘大小单位GB非必传若传递则必须为50暂不支持自定义
/// </summary>
[JsonProperty("MasterNodeDiskSize")]
public ulong? MasterNodeDiskSize{ get; set; }
/// <summary>
/// 集群配置文件中的ClusterName系统默认配置为实例ID暂不支持自定义
/// </summary>
[JsonProperty("ClusterNameInConf")]
public string ClusterNameInConf{ get; set; }
/// <summary>
/// 集群部署方式<li>0单可用区部署</li><li>1多可用区部署</li>默认为0
/// </summary>
[JsonProperty("DeployMode")]
public ulong? DeployMode{ get; set; }
/// <summary>
/// 多可用区部署时可用区的详细信息(DeployMode为1时必传)
/// </summary>
[JsonProperty("MultiZoneInfo")]
public ZoneDetail[] MultiZoneInfo{ get; set; }
/// <summary>
/// License类型<li>oss开源版</li><li>basic基础版</li><li>platinum白金版</li>默认值platinum
/// </summary>
[JsonProperty("LicenseType")]
public string LicenseType{ get; set; }
/// <summary>
/// 节点信息列表, 用于描述集群各类节点的规格信息如节点类型,节点个数,节点规格,磁盘类型,磁盘大小等
/// </summary>
[JsonProperty("NodeInfoList")]
public NodeInfo[] NodeInfoList{ get; set; }
/// <summary>
/// 节点标签信息列表
/// </summary>
[JsonProperty("TagList")]
public TagInfo[] TagList{ get; set; }
/// <summary>
/// 6.8及以上版本基础版是否开启xpack security认证<li>1不开启</li><li>2开启</li>
/// </summary>
[JsonProperty("BasicSecurityType")]
public ulong? BasicSecurityType{ 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 + "EsVersion", this.EsVersion);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.SetParamSimple(map, prefix + "NodeNum", this.NodeNum);
this.SetParamSimple(map, prefix + "ChargeType", this.ChargeType);
this.SetParamSimple(map, prefix + "ChargePeriod", this.ChargePeriod);
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.SetParamSimple(map, prefix + "NodeType", this.NodeType);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "TimeUnit", this.TimeUnit);
this.SetParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher);
this.SetParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds);
this.SetParamSimple(map, prefix + "EnableDedicatedMaster", this.EnableDedicatedMaster);
this.SetParamSimple(map, prefix + "MasterNodeNum", this.MasterNodeNum);
this.SetParamSimple(map, prefix + "MasterNodeType", this.MasterNodeType);
this.SetParamSimple(map, prefix + "MasterNodeDiskSize", this.MasterNodeDiskSize);
this.SetParamSimple(map, prefix + "ClusterNameInConf", this.ClusterNameInConf);
this.SetParamSimple(map, prefix + "DeployMode", this.DeployMode);
this.SetParamArrayObj(map, prefix + "MultiZoneInfo.", this.MultiZoneInfo);
this.SetParamSimple(map, prefix + "LicenseType", this.LicenseType);
this.SetParamArrayObj(map, prefix + "NodeInfoList.", this.NodeInfoList);
this.SetParamArrayObj(map, prefix + "TagList.", this.TagList);
this.SetParamSimple(map, prefix + "BasicSecurityType", this.BasicSecurityType);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateInstanceResponse : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ 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 + "InstanceId", this.InstanceId);
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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteInstanceRequest : AbstractModel
{
/// <summary>
/// 实例ID
/// </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.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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteInstanceResponse : 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,98 @@
/*
* 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstanceLogsRequest : AbstractModel
{
/// <summary>
/// 集群实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 日志类型默认值为1
/// <li>1, 主日志</li>
/// <li>2, 搜索慢日志</li>
/// <li>3, 索引慢日志</li>
/// <li>4, GC日志</li>
/// </summary>
[JsonProperty("LogType")]
public ulong? LogType{ get; set; }
/// <summary>
/// 搜索词支持LUCENE语法如 level:WARN、ip:1.1.1.1、message:test-index等
/// </summary>
[JsonProperty("SearchKey")]
public string SearchKey{ get; set; }
/// <summary>
/// 日志开始时间格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 日志结束时间格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 分页起始值, 默认值为0
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页大小默认值为100最大值100
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 时间排序方式默认值为0
/// <li>0, 降序</li>
/// <li>1, 升序</li>
/// </summary>
[JsonProperty("OrderByType")]
public ulong? OrderByType{ 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 + "LogType", this.LogType);
this.SetParamSimple(map, prefix + "SearchKey", this.SearchKey);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "OrderByType", this.OrderByType);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstanceLogsResponse : AbstractModel
{
/// <summary>
/// 返回的日志条数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 日志详细信息列表
/// </summary>
[JsonProperty("InstanceLogList")]
public InstanceLog[] InstanceLogList{ 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 + "InstanceLogList.", this.InstanceLogList);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstanceOperationsRequest : AbstractModel
{
/// <summary>
/// 集群实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 起始时间, e.g. "2019-03-07 16:30:39"
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 结束时间, e.g. "2019-03-30 20:18:03"
/// </summary>
[JsonProperty("EndTime")]
public string EndTime{ get; set; }
/// <summary>
/// 分页起始值
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页大小
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstanceOperationsResponse : AbstractModel
{
/// <summary>
/// 操作记录总数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 操作记录
/// </summary>
[JsonProperty("Operations")]
public Operation[] Operations{ 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 + "Operations.", this.Operations);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,99 @@
/*
* 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstancesRequest : AbstractModel
{
/// <summary>
/// 集群实例所属可用区,不传则默认所有可用区
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 集群实例ID列表
/// </summary>
[JsonProperty("InstanceIds")]
public string[] InstanceIds{ get; set; }
/// <summary>
/// 集群实例名称列表
/// </summary>
[JsonProperty("InstanceNames")]
public string[] InstanceNames{ get; set; }
/// <summary>
/// 分页起始值, 默认值0
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页大小默认值20
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 排序字段<li>1实例ID</li><li>2实例名称</li><li>3可用区</li><li>4创建时间</li>若orderKey未传递则按创建时间降序排序
/// </summary>
[JsonProperty("OrderByKey")]
public ulong? OrderByKey{ get; set; }
/// <summary>
/// 排序方式<li>0升序</li><li>1降序</li>若传递了orderByKey未传递orderByType, 则默认升序
/// </summary>
[JsonProperty("OrderByType")]
public ulong? OrderByType{ get; set; }
/// <summary>
/// 节点标签信息列表
/// </summary>
[JsonProperty("TagList")]
public TagInfo[] TagList{ get; set; }
/// <summary>
/// 私有网络vip列表
/// </summary>
[JsonProperty("IpList")]
public string[] IpList{ 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.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
this.SetParamArraySimple(map, prefix + "InstanceNames.", this.InstanceNames);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "OrderByKey", this.OrderByKey);
this.SetParamSimple(map, prefix + "OrderByType", this.OrderByType);
this.SetParamArrayObj(map, prefix + "TagList.", this.TagList);
this.SetParamArraySimple(map, prefix + "IpList.", this.IpList);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeInstancesResponse : AbstractModel
{
/// <summary>
/// 返回的实例个数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 实例详细信息列表
/// </summary>
[JsonProperty("InstanceList")]
public InstanceInfo[] InstanceList{ 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 + "InstanceList.", this.InstanceList);
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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DictInfo : AbstractModel
{
/// <summary>
/// 词典键值
/// </summary>
[JsonProperty("Key")]
public string Key{ get; set; }
/// <summary>
/// 词典名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 词典大小单位B
/// </summary>
[JsonProperty("Size")]
public ulong? Size{ 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 + "Name", this.Name);
this.SetParamSimple(map, prefix + "Size", this.Size);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EsAcl : AbstractModel
{
/// <summary>
/// kibana访问黑名单
/// </summary>
[JsonProperty("BlackIpList")]
public string[] BlackIpList{ get; set; }
/// <summary>
/// kibana访问白名单
/// </summary>
[JsonProperty("WhiteIpList")]
public string[] WhiteIpList{ 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 + "BlackIpList.", this.BlackIpList);
this.SetParamArraySimple(map, prefix + "WhiteIpList.", this.WhiteIpList);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EsDictionaryInfo : AbstractModel
{
/// <summary>
/// 启用词词典列表
/// </summary>
[JsonProperty("MainDict")]
public DictInfo[] MainDict{ get; set; }
/// <summary>
/// 停用词词典列表
/// </summary>
[JsonProperty("Stopwords")]
public DictInfo[] Stopwords{ 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 + "MainDict.", this.MainDict);
this.SetParamArrayObj(map, prefix + "Stopwords.", this.Stopwords);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EsPublicAcl : AbstractModel
{
/// <summary>
/// 访问黑名单
/// </summary>
[JsonProperty("BlackIpList")]
public string[] BlackIpList{ get; set; }
/// <summary>
/// 访问白名单
/// </summary>
[JsonProperty("WhiteIpList")]
public string[] WhiteIpList{ 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 + "BlackIpList.", this.BlackIpList);
this.SetParamArraySimple(map, prefix + "WhiteIpList.", this.WhiteIpList);
}
}
}

View File

@@ -0,0 +1,416 @@
/*
* 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceInfo : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 实例名称
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 地域
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 可用区
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 用户ID
/// </summary>
[JsonProperty("AppId")]
public ulong? AppId{ get; set; }
/// <summary>
/// 用户UIN
/// </summary>
[JsonProperty("Uin")]
public string Uin{ get; set; }
/// <summary>
/// 实例所属VPC的UID
/// </summary>
[JsonProperty("VpcUid")]
public string VpcUid{ get; set; }
/// <summary>
/// 实例所属子网的UID
/// </summary>
[JsonProperty("SubnetUid")]
public string SubnetUid{ get; set; }
/// <summary>
/// 实例状态0:处理中,1:正常,-1停止,-2:销毁中,-3:已销毁
/// </summary>
[JsonProperty("Status")]
public long? Status{ get; set; }
/// <summary>
/// 实例计费模式。取值范围: PREPAID表示预付费即包年包月 POSTPAID_BY_HOUR表示后付费即按量计费 CDHPAIDCDH付费即只对CDH计费不对CDH上的实例计费。
/// </summary>
[JsonProperty("ChargeType")]
public string ChargeType{ get; set; }
/// <summary>
/// 包年包月购买时长,单位:月
/// </summary>
[JsonProperty("ChargePeriod")]
public ulong? ChargePeriod{ get; set; }
/// <summary>
/// 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW通知过期且自动续费 NOTIFY_AND_MANUAL_RENEW通知过期不自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW不通知过期不自动续费 默认取值NOTIFY_AND_AUTO_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW在账户余额充足的情况下实例到期后将按月自动续费。
/// </summary>
[JsonProperty("RenewFlag")]
public string RenewFlag{ get; set; }
/// <summary>
/// 节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("NodeType")]
public string NodeType{ get; set; }
/// <summary>
/// 节点个数
/// </summary>
[JsonProperty("NodeNum")]
public ulong? NodeNum{ get; set; }
/// <summary>
/// 节点CPU核数
/// </summary>
[JsonProperty("CpuNum")]
public ulong? CpuNum{ get; set; }
/// <summary>
/// 节点内存大小单位GB
/// </summary>
[JsonProperty("MemSize")]
public ulong? MemSize{ get; set; }
/// <summary>
/// 节点磁盘类型
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 节点磁盘大小单位GB
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// ES域名
/// </summary>
[JsonProperty("EsDomain")]
public string EsDomain{ get; set; }
/// <summary>
/// ES VIP
/// </summary>
[JsonProperty("EsVip")]
public string EsVip{ get; set; }
/// <summary>
/// ES端口
/// </summary>
[JsonProperty("EsPort")]
public ulong? EsPort{ get; set; }
/// <summary>
/// Kibana访问url
/// </summary>
[JsonProperty("KibanaUrl")]
public string KibanaUrl{ get; set; }
/// <summary>
/// ES版本号
/// </summary>
[JsonProperty("EsVersion")]
public string EsVersion{ get; set; }
/// <summary>
/// ES配置项
/// </summary>
[JsonProperty("EsConfig")]
public string EsConfig{ get; set; }
/// <summary>
/// Kibana访问控制配置
/// </summary>
[JsonProperty("EsAcl")]
public EsAcl EsAcl{ get; set; }
/// <summary>
/// 实例创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 实例最后修改操作时间
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
/// <summary>
/// 实例到期时间
/// </summary>
[JsonProperty("Deadline")]
public string Deadline{ get; set; }
/// <summary>
/// 实例类型实例类型标识当前只有1,2两种
/// </summary>
[JsonProperty("InstanceType")]
public ulong? InstanceType{ get; set; }
/// <summary>
/// Ik分词器配置
/// </summary>
[JsonProperty("IkConfig")]
public EsDictionaryInfo IkConfig{ get; set; }
/// <summary>
/// 专用主节点配置
/// </summary>
[JsonProperty("MasterNodeInfo")]
public MasterNodeInfo MasterNodeInfo{ get; set; }
/// <summary>
/// cos自动备份配置
/// </summary>
[JsonProperty("CosBackup")]
public CosBackup CosBackup{ get; set; }
/// <summary>
/// 是否允许cos自动备份
/// </summary>
[JsonProperty("AllowCosBackup")]
public bool? AllowCosBackup{ get; set; }
/// <summary>
/// 实例拥有的标签列表
/// </summary>
[JsonProperty("TagList")]
public TagInfo[] TagList{ get; set; }
/// <summary>
/// License类型<li>oss开源版</li><li>basic基础版</li><li>platinum白金版</li>默认值platinum
/// </summary>
[JsonProperty("LicenseType")]
public string LicenseType{ get; set; }
/// <summary>
/// 是否为冷热集群<li>true: 冷热集群</li><li>false: 非冷热集群</li>
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EnableHotWarmMode")]
public bool? EnableHotWarmMode{ get; set; }
/// <summary>
/// 冷节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("WarmNodeType")]
public string WarmNodeType{ get; set; }
/// <summary>
/// 冷节点个数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("WarmNodeNum")]
public ulong? WarmNodeNum{ get; set; }
/// <summary>
/// 冷节点CPU核数
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("WarmCpuNum")]
public ulong? WarmCpuNum{ get; set; }
/// <summary>
/// 冷节点内存内存大小单位GB
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("WarmMemSize")]
public ulong? WarmMemSize{ get; set; }
/// <summary>
/// 冷节点磁盘类型
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("WarmDiskType")]
public string WarmDiskType{ get; set; }
/// <summary>
/// 冷节点磁盘大小单位GB
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("WarmDiskSize")]
public ulong? WarmDiskSize{ get; set; }
/// <summary>
/// 集群节点信息列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("NodeInfoList")]
public NodeInfo[] NodeInfoList{ get; set; }
/// <summary>
/// Es公网地址
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EsPublicUrl")]
public string EsPublicUrl{ get; set; }
/// <summary>
/// 多可用区网络信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MultiZoneInfo")]
public ZoneDetail[] MultiZoneInfo{ get; set; }
/// <summary>
/// 部署模式<li>0单可用区</li><li>1多可用区</li>
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DeployMode")]
public ulong? DeployMode{ get; set; }
/// <summary>
/// ES公网访问状态<li>OPEN开启</li><li>CLOSE关闭
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PublicAccess")]
public string PublicAccess{ get; set; }
/// <summary>
/// ES公网访问控制配置
/// </summary>
[JsonProperty("EsPublicAcl")]
public EsAcl EsPublicAcl{ get; set; }
/// <summary>
/// Kibana内网地址
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("KibanaPrivateUrl")]
public string KibanaPrivateUrl{ get; set; }
/// <summary>
/// Kibana公网访问状态<li>OPEN开启</li><li>CLOSE关闭
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("KibanaPublicAccess")]
public string KibanaPublicAccess{ get; set; }
/// <summary>
/// Kibana内网访问状态<li>OPEN开启</li><li>CLOSE关闭
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("KibanaPrivateAccess")]
public string KibanaPrivateAccess{ get; set; }
/// <summary>
/// 6.8及以上版本基础版是否开启xpack security认证<li>1不开启</li><li>2开启</li>
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SecurityType")]
public ulong? SecurityType{ 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 + "InstanceName", this.InstanceName);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "Zone", this.Zone);
this.SetParamSimple(map, prefix + "AppId", this.AppId);
this.SetParamSimple(map, prefix + "Uin", this.Uin);
this.SetParamSimple(map, prefix + "VpcUid", this.VpcUid);
this.SetParamSimple(map, prefix + "SubnetUid", this.SubnetUid);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "ChargeType", this.ChargeType);
this.SetParamSimple(map, prefix + "ChargePeriod", this.ChargePeriod);
this.SetParamSimple(map, prefix + "RenewFlag", this.RenewFlag);
this.SetParamSimple(map, prefix + "NodeType", this.NodeType);
this.SetParamSimple(map, prefix + "NodeNum", this.NodeNum);
this.SetParamSimple(map, prefix + "CpuNum", this.CpuNum);
this.SetParamSimple(map, prefix + "MemSize", this.MemSize);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "EsDomain", this.EsDomain);
this.SetParamSimple(map, prefix + "EsVip", this.EsVip);
this.SetParamSimple(map, prefix + "EsPort", this.EsPort);
this.SetParamSimple(map, prefix + "KibanaUrl", this.KibanaUrl);
this.SetParamSimple(map, prefix + "EsVersion", this.EsVersion);
this.SetParamSimple(map, prefix + "EsConfig", this.EsConfig);
this.SetParamObj(map, prefix + "EsAcl.", this.EsAcl);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "Deadline", this.Deadline);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamObj(map, prefix + "IkConfig.", this.IkConfig);
this.SetParamObj(map, prefix + "MasterNodeInfo.", this.MasterNodeInfo);
this.SetParamObj(map, prefix + "CosBackup.", this.CosBackup);
this.SetParamSimple(map, prefix + "AllowCosBackup", this.AllowCosBackup);
this.SetParamArrayObj(map, prefix + "TagList.", this.TagList);
this.SetParamSimple(map, prefix + "LicenseType", this.LicenseType);
this.SetParamSimple(map, prefix + "EnableHotWarmMode", this.EnableHotWarmMode);
this.SetParamSimple(map, prefix + "WarmNodeType", this.WarmNodeType);
this.SetParamSimple(map, prefix + "WarmNodeNum", this.WarmNodeNum);
this.SetParamSimple(map, prefix + "WarmCpuNum", this.WarmCpuNum);
this.SetParamSimple(map, prefix + "WarmMemSize", this.WarmMemSize);
this.SetParamSimple(map, prefix + "WarmDiskType", this.WarmDiskType);
this.SetParamSimple(map, prefix + "WarmDiskSize", this.WarmDiskSize);
this.SetParamArrayObj(map, prefix + "NodeInfoList.", this.NodeInfoList);
this.SetParamSimple(map, prefix + "EsPublicUrl", this.EsPublicUrl);
this.SetParamArrayObj(map, prefix + "MultiZoneInfo.", this.MultiZoneInfo);
this.SetParamSimple(map, prefix + "DeployMode", this.DeployMode);
this.SetParamSimple(map, prefix + "PublicAccess", this.PublicAccess);
this.SetParamObj(map, prefix + "EsPublicAcl.", this.EsPublicAcl);
this.SetParamSimple(map, prefix + "KibanaPrivateUrl", this.KibanaPrivateUrl);
this.SetParamSimple(map, prefix + "KibanaPublicAccess", this.KibanaPublicAccess);
this.SetParamSimple(map, prefix + "KibanaPrivateAccess", this.KibanaPrivateAccess);
this.SetParamSimple(map, prefix + "SecurityType", this.SecurityType);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class InstanceLog : AbstractModel
{
/// <summary>
/// 日志时间
/// </summary>
[JsonProperty("Time")]
public string Time{ get; set; }
/// <summary>
/// 日志级别
/// </summary>
[JsonProperty("Level")]
public string Level{ get; set; }
/// <summary>
/// 集群节点ip
/// </summary>
[JsonProperty("Ip")]
public string Ip{ get; set; }
/// <summary>
/// 日志内容
/// </summary>
[JsonProperty("Message")]
public string Message{ 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 + "Time", this.Time);
this.SetParamSimple(map, prefix + "Level", this.Level);
this.SetParamSimple(map, prefix + "Ip", this.Ip);
this.SetParamSimple(map, prefix + "Message", this.Message);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class KeyValue : 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,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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class LocalDiskInfo : AbstractModel
{
/// <summary>
/// 本地盘类型<li>LOCAL_SATA大数据型</li><li>NVME_SSD高IO型</li>
/// </summary>
[JsonProperty("LocalDiskType")]
public string LocalDiskType{ get; set; }
/// <summary>
/// 本地盘单盘大小
/// </summary>
[JsonProperty("LocalDiskSize")]
public ulong? LocalDiskSize{ get; set; }
/// <summary>
/// 本地盘块数
/// </summary>
[JsonProperty("LocalDiskCount")]
public ulong? LocalDiskCount{ 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 + "LocalDiskType", this.LocalDiskType);
this.SetParamSimple(map, prefix + "LocalDiskSize", this.LocalDiskSize);
this.SetParamSimple(map, prefix + "LocalDiskCount", this.LocalDiskCount);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MasterNodeInfo : AbstractModel
{
/// <summary>
/// 是否启用了专用主节点
/// </summary>
[JsonProperty("EnableDedicatedMaster")]
public bool? EnableDedicatedMaster{ get; set; }
/// <summary>
/// 专用主节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("MasterNodeType")]
public string MasterNodeType{ get; set; }
/// <summary>
/// 专用主节点个数
/// </summary>
[JsonProperty("MasterNodeNum")]
public ulong? MasterNodeNum{ get; set; }
/// <summary>
/// 专用主节点CPU核数
/// </summary>
[JsonProperty("MasterNodeCpuNum")]
public ulong? MasterNodeCpuNum{ get; set; }
/// <summary>
/// 专用主节点内存大小单位GB
/// </summary>
[JsonProperty("MasterNodeMemSize")]
public ulong? MasterNodeMemSize{ get; set; }
/// <summary>
/// 专用主节点磁盘大小单位GB
/// </summary>
[JsonProperty("MasterNodeDiskSize")]
public ulong? MasterNodeDiskSize{ get; set; }
/// <summary>
/// 专用主节点磁盘类型
/// </summary>
[JsonProperty("MasterNodeDiskType")]
public string MasterNodeDiskType{ 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 + "EnableDedicatedMaster", this.EnableDedicatedMaster);
this.SetParamSimple(map, prefix + "MasterNodeType", this.MasterNodeType);
this.SetParamSimple(map, prefix + "MasterNodeNum", this.MasterNodeNum);
this.SetParamSimple(map, prefix + "MasterNodeCpuNum", this.MasterNodeCpuNum);
this.SetParamSimple(map, prefix + "MasterNodeMemSize", this.MasterNodeMemSize);
this.SetParamSimple(map, prefix + "MasterNodeDiskSize", this.MasterNodeDiskSize);
this.SetParamSimple(map, prefix + "MasterNodeDiskType", this.MasterNodeDiskType);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class NodeInfo : AbstractModel
{
/// <summary>
/// 节点数量
/// </summary>
[JsonProperty("NodeNum")]
public ulong? NodeNum{ get; set; }
/// <summary>
/// 节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("NodeType")]
public string NodeType{ get; set; }
/// <summary>
/// 节点类型<li>hotData: 热数据节点</li>
/// <li>warmData: 冷数据节点</li>
/// <li>dedicatedMaster: 专用主节点</li>
/// 默认值为hotData
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 节点磁盘类型<li>CLOUD_SSDSSD云硬盘</li><li>CLOUD_PREMIUM高硬能云硬盘</li>默认值CLOUD_SSD
/// </summary>
[JsonProperty("DiskType")]
public string DiskType{ get; set; }
/// <summary>
/// 节点磁盘容量单位GB
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 节点本地盘信息
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LocalDiskInfo")]
public LocalDiskInfo LocalDiskInfo{ get; set; }
/// <summary>
/// 节点磁盘块数
/// </summary>
[JsonProperty("DiskCount")]
public ulong? DiskCount{ 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 + "NodeNum", this.NodeNum);
this.SetParamSimple(map, prefix + "NodeType", this.NodeType);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "DiskType", this.DiskType);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamObj(map, prefix + "LocalDiskInfo.", this.LocalDiskInfo);
this.SetParamSimple(map, prefix + "DiskCount", this.DiskCount);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Operation : AbstractModel
{
/// <summary>
/// 操作唯一id
/// </summary>
[JsonProperty("Id")]
public ulong? Id{ get; set; }
/// <summary>
/// 操作开始时间
/// </summary>
[JsonProperty("StartTime")]
public string StartTime{ get; set; }
/// <summary>
/// 操作类型
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 操作详情
/// </summary>
[JsonProperty("Detail")]
public OperationDetail Detail{ get; set; }
/// <summary>
/// 操作结果
/// </summary>
[JsonProperty("Result")]
public string Result{ get; set; }
/// <summary>
/// 流程任务信息
/// </summary>
[JsonProperty("Tasks")]
public TaskDetail[] Tasks{ get; set; }
/// <summary>
/// 操作进度
/// </summary>
[JsonProperty("Progress")]
public float? Progress{ 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 + "Id", this.Id);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamObj(map, prefix + "Detail.", this.Detail);
this.SetParamSimple(map, prefix + "Result", this.Result);
this.SetParamArrayObj(map, prefix + "Tasks.", this.Tasks);
this.SetParamSimple(map, prefix + "Progress", this.Progress);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class OperationDetail : AbstractModel
{
/// <summary>
/// 实例原始配置信息
/// </summary>
[JsonProperty("OldInfo")]
public KeyValue[] OldInfo{ get; set; }
/// <summary>
/// 实例更新后配置信息
/// </summary>
[JsonProperty("NewInfo")]
public KeyValue[] NewInfo{ 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 + "OldInfo.", this.OldInfo);
this.SetParamArrayObj(map, prefix + "NewInfo.", this.NewInfo);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RestartInstanceRequest : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 是否强制重启<li>true强制重启</li><li>false不强制重启</li>默认false
/// </summary>
[JsonProperty("ForceRestart")]
public bool? ForceRestart{ 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 + "ForceRestart", this.ForceRestart);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class RestartInstanceResponse : 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,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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SubTaskDetail : AbstractModel
{
/// <summary>
/// 子任务名
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 子任务结果
/// </summary>
[JsonProperty("Result")]
public bool? Result{ get; set; }
/// <summary>
/// 子任务错误信息
/// </summary>
[JsonProperty("ErrMsg")]
public string ErrMsg{ get; set; }
/// <summary>
/// 子任务类型
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 子任务状态0处理中 1成功 -1失败
/// </summary>
[JsonProperty("Status")]
public long? Status{ get; set; }
/// <summary>
/// 升级检查失败的索引名
/// </summary>
[JsonProperty("FailedIndices")]
public string[] FailedIndices{ get; set; }
/// <summary>
/// 子任务结束时间
/// </summary>
[JsonProperty("FinishTime")]
public string FinishTime{ get; set; }
/// <summary>
/// 子任务等级1警告 2失败
/// </summary>
[JsonProperty("Level")]
public long? Level{ 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.SetParamSimple(map, prefix + "Result", this.Result);
this.SetParamSimple(map, prefix + "ErrMsg", this.ErrMsg);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamArraySimple(map, prefix + "FailedIndices.", this.FailedIndices);
this.SetParamSimple(map, prefix + "FinishTime", this.FinishTime);
this.SetParamSimple(map, prefix + "Level", this.Level);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TagInfo : AbstractModel
{
/// <summary>
/// 标签键
/// </summary>
[JsonProperty("TagKey")]
public string TagKey{ get; set; }
/// <summary>
/// 标签值
/// </summary>
[JsonProperty("TagValue")]
public string TagValue{ 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 + "TagKey", this.TagKey);
this.SetParamSimple(map, prefix + "TagValue", this.TagValue);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TaskDetail : AbstractModel
{
/// <summary>
/// 任务名
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 任务进度
/// </summary>
[JsonProperty("Progress")]
public float? Progress{ get; set; }
/// <summary>
/// 任务完成时间
/// </summary>
[JsonProperty("FinishTime")]
public string FinishTime{ get; set; }
/// <summary>
/// 子任务
/// </summary>
[JsonProperty("SubTasks")]
public SubTaskDetail[] SubTasks{ 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.SetParamSimple(map, prefix + "Progress", this.Progress);
this.SetParamSimple(map, prefix + "FinishTime", this.FinishTime);
this.SetParamArrayObj(map, prefix + "SubTasks.", this.SubTasks);
}
}
}

View File

@@ -0,0 +1,175 @@
/*
* 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateInstanceRequest : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 实例名称1-50 个英文、汉字、数字、连接线-或下划线_
/// </summary>
[JsonProperty("InstanceName")]
public string InstanceName{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 节点个数2-50个
/// </summary>
[JsonProperty("NodeNum")]
public ulong? NodeNum{ get; set; }
/// <summary>
/// 配置项JSON格式字符串。当前仅支持以下配置项<li>action.destructive_requires_name</li><li>indices.fielddata.cache.size</li><li>indices.query.bool.max_clause_count</li>
/// </summary>
[JsonProperty("EsConfig")]
public string EsConfig{ get; set; }
/// <summary>
/// 默认用户elastic的密码8到16位至少包括两项[a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号)
/// </summary>
[JsonProperty("Password")]
public string Password{ get; set; }
/// <summary>
/// 访问控制列表
/// </summary>
[JsonProperty("EsAcl")]
public EsAcl EsAcl{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 磁盘大小单位GB
/// </summary>
[JsonProperty("DiskSize")]
public ulong? DiskSize{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("NodeType")]
public string NodeType{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 专用主节点个数只支持3个或5个
/// </summary>
[JsonProperty("MasterNodeNum")]
public ulong? MasterNodeNum{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 专用主节点规格<li>ES.S1.SMALL21核2G</li><li>ES.S1.MEDIUM42核4G</li><li>ES.S1.MEDIUM82核8G</li><li>ES.S1.LARGE164核16G</li><li>ES.S1.2XLARGE328核32G</li><li>ES.S1.4XLARGE3216核32G</li><li>ES.S1.4XLARGE6416核64G</li>
/// </summary>
[JsonProperty("MasterNodeType")]
public string MasterNodeType{ get; set; }
/// <summary>
/// 已废弃请使用NodeInfoList
/// 专用主节点磁盘大小单位GB系统默认配置为50GB,暂不支持自定义)
/// </summary>
[JsonProperty("MasterNodeDiskSize")]
public ulong? MasterNodeDiskSize{ get; set; }
/// <summary>
/// 更新配置时是否强制重启<li>true强制重启</li><li>false不强制重启</li>当前仅更新EsConfig时需要设置默认值为false
/// </summary>
[JsonProperty("ForceRestart")]
public bool? ForceRestart{ get; set; }
/// <summary>
/// COS自动备份信息
/// </summary>
[JsonProperty("CosBackup")]
public CosBackup CosBackup{ get; set; }
/// <summary>
/// 节点信息列表,可以只传递要更新的节点及其对应的规格信息。支持的操作包括<li>修改一种节点的个数</li><li>修改一种节点的节点规格及磁盘大小</li><li>增加一种节点类型(需要同时指定该节点的类型,个数,规格,磁盘等信息)</li>上述操作一次只能进行一种,且磁盘类型不支持修改
/// </summary>
[JsonProperty("NodeInfoList")]
public NodeInfo[] NodeInfoList{ get; set; }
/// <summary>
/// 公网访问状态
/// </summary>
[JsonProperty("PublicAccess")]
public string PublicAccess{ get; set; }
/// <summary>
/// 公网访问控制列表
/// </summary>
[JsonProperty("EsPublicAcl")]
public EsPublicAcl EsPublicAcl{ get; set; }
/// <summary>
/// Kibana公网访问状态
/// </summary>
[JsonProperty("KibanaPublicAccess")]
public string KibanaPublicAccess{ get; set; }
/// <summary>
/// Kibana内网访问状态
/// </summary>
[JsonProperty("KibanaPrivateAccess")]
public string KibanaPrivateAccess{ get; set; }
/// <summary>
/// ES 6.8及以上版本基础版开启或关闭用户认证
/// </summary>
[JsonProperty("BasicSecurityType")]
public long? BasicSecurityType{ 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 + "InstanceName", this.InstanceName);
this.SetParamSimple(map, prefix + "NodeNum", this.NodeNum);
this.SetParamSimple(map, prefix + "EsConfig", this.EsConfig);
this.SetParamSimple(map, prefix + "Password", this.Password);
this.SetParamObj(map, prefix + "EsAcl.", this.EsAcl);
this.SetParamSimple(map, prefix + "DiskSize", this.DiskSize);
this.SetParamSimple(map, prefix + "NodeType", this.NodeType);
this.SetParamSimple(map, prefix + "MasterNodeNum", this.MasterNodeNum);
this.SetParamSimple(map, prefix + "MasterNodeType", this.MasterNodeType);
this.SetParamSimple(map, prefix + "MasterNodeDiskSize", this.MasterNodeDiskSize);
this.SetParamSimple(map, prefix + "ForceRestart", this.ForceRestart);
this.SetParamObj(map, prefix + "CosBackup.", this.CosBackup);
this.SetParamArrayObj(map, prefix + "NodeInfoList.", this.NodeInfoList);
this.SetParamSimple(map, prefix + "PublicAccess", this.PublicAccess);
this.SetParamObj(map, prefix + "EsPublicAcl.", this.EsPublicAcl);
this.SetParamSimple(map, prefix + "KibanaPublicAccess", this.KibanaPublicAccess);
this.SetParamSimple(map, prefix + "KibanaPrivateAccess", this.KibanaPrivateAccess);
this.SetParamSimple(map, prefix + "BasicSecurityType", this.BasicSecurityType);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateInstanceResponse : 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,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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpgradeInstanceRequest : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 目标ES版本支持”6.4.3“, "6.8.2""7.5.1"
/// </summary>
[JsonProperty("EsVersion")]
public string EsVersion{ get; set; }
/// <summary>
/// 是否只做升级检查默认值为false
/// </summary>
[JsonProperty("CheckOnly")]
public bool? CheckOnly{ get; set; }
/// <summary>
/// 目标商业特性版本:<li>oss 开源版</li><li>basic 基础版</li>当前仅在5.6.4升级6.x版本时使用默认值为basic
/// </summary>
[JsonProperty("LicenseType")]
public string LicenseType{ get; set; }
/// <summary>
/// 6.8及以上版本基础版是否开启xpack security认证<li>1不开启</li><li>2开启</li>
/// </summary>
[JsonProperty("BasicSecurityType")]
public ulong? BasicSecurityType{ 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 + "EsVersion", this.EsVersion);
this.SetParamSimple(map, prefix + "CheckOnly", this.CheckOnly);
this.SetParamSimple(map, prefix + "LicenseType", this.LicenseType);
this.SetParamSimple(map, prefix + "BasicSecurityType", this.BasicSecurityType);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpgradeInstanceResponse : 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpgradeLicenseRequest : AbstractModel
{
/// <summary>
/// 实例ID
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// License类型<li>oss开源版</li><li>basic基础版</li><li>platinum白金版</li>默认值platinum
/// </summary>
[JsonProperty("LicenseType")]
public string LicenseType{ get; set; }
/// <summary>
/// 是否自动使用代金券<li>0不自动使用</li><li>1自动使用</li>默认值0
/// </summary>
[JsonProperty("AutoVoucher")]
public long? AutoVoucher{ get; set; }
/// <summary>
/// 代金券ID列表目前仅支持指定一张代金券
/// </summary>
[JsonProperty("VoucherIds")]
public string[] VoucherIds{ get; set; }
/// <summary>
/// 6.8及以上版本基础版是否开启xpack security认证<li>1不开启</li><li>2开启</li>
/// </summary>
[JsonProperty("BasicSecurityType")]
public ulong? BasicSecurityType{ get; set; }
/// <summary>
/// 是否强制重启<li>true强制重启</li><li>false不强制重启</li> 默认值false
/// </summary>
[JsonProperty("ForceRestart")]
public bool? ForceRestart{ 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 + "LicenseType", this.LicenseType);
this.SetParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher);
this.SetParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds);
this.SetParamSimple(map, prefix + "BasicSecurityType", this.BasicSecurityType);
this.SetParamSimple(map, prefix + "ForceRestart", this.ForceRestart);
}
}
}

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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpgradeLicenseResponse : 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.Es.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ZoneDetail : AbstractModel
{
/// <summary>
/// 可用区
/// </summary>
[JsonProperty("Zone")]
public string Zone{ get; set; }
/// <summary>
/// 子网ID
/// </summary>
[JsonProperty("SubnetId")]
public string SubnetId{ 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 + "SubnetId", this.SubnetId);
}
}
}