/* * 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.Emr.V20190103.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class InquiryPriceCreateInstanceRequest : AbstractModel { /// /// 购买实例的时间单位。取值范围: ///
  • s:表示秒。PayMode取值为0时,TimeUnit只能取值为s。
  • ///
  • m:表示月份。PayMode取值为1时,TimeUnit只能取值为m。
  • ///
    [JsonProperty("TimeUnit")] public string TimeUnit{ get; set; } /// /// 购买实例的时长。结合TimeUnit一起使用。 ///
  • TimeUnit为s时,该参数只能填写3600,表示按量计费实例。
  • ///
  • TimeUnit为m时,该参数填写的数字表示包年包月实例的购买时长,如1表示购买一个月
  • ///
    [JsonProperty("TimeSpan")] public ulong? TimeSpan{ get; set; } /// /// 询价的节点规格。 /// [JsonProperty("ResourceSpec")] public NewResourceSpec ResourceSpec{ get; set; } /// /// 货币种类。取值范围: ///
  • CNY:表示人民币。
  • ///
    [JsonProperty("Currency")] public string Currency{ get; set; } /// /// 实例计费模式。取值范围: ///
  • 0:表示按量计费。
  • ///
  • 1:表示包年包月。
  • ///
    [JsonProperty("PayMode")] public ulong? PayMode{ get; set; } /// /// 是否开启节点高可用。取值范围: ///
  • 0:表示不开启节点高可用。
  • ///
  • 1:表示开启节点高可用。
  • ///
    [JsonProperty("SupportHA")] public ulong? SupportHA{ get; set; } /// /// 部署的组件列表。不同的EMR产品ID(ProductId:具体含义参考入参ProductId字段)需要选择不同的必选组件: ///
  • ProductId为1的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
  • ///
  • ProductId为2的时候,必选组件包括:hadoop-2.7.3、knox-1.2.0、zookeeper-3.4.9
  • ///
  • ProductId为4的时候,必选组件包括:hadoop-2.8.4、knox-1.2.0、zookeeper-3.4.9
  • ///
  • ProductId为7的时候,必选组件包括:hadoop-3.1.2、knox-1.2.0、zookeeper-3.4.9
  • ///
    [JsonProperty("Software")] public string[] Software{ get; set; } /// /// 实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。 /// [JsonProperty("Placement")] public Placement Placement{ get; set; } /// /// 私有网络相关信息配置。通过该参数可以指定私有网络的ID,子网ID等信息。 /// [JsonProperty("VPCSettings")] public VPCSettings VPCSettings{ get; set; } /// /// hive共享元数据库类型。取值范围: ///
  • EMR_NEW_META:表示集群默认创建
  • ///
  • EMR_EXIT_METE:表示集群使用指定EMR-MetaDB。
  • ///
  • USER_CUSTOM_META:表示集群使用自定义MetaDB。
  • ///
    [JsonProperty("MetaType")] public string MetaType{ get; set; } /// /// EMR-MetaDB实例 /// [JsonProperty("UnifyMetaInstanceId")] public string UnifyMetaInstanceId{ get; set; } /// /// 自定义MetaDB信息 /// [JsonProperty("MetaDBInfo")] public CustomMetaInfo MetaDBInfo{ get; set; } /// /// 产品ID,不同产品ID表示不同的EMR产品版本。取值范围: ///
  • 1:表示EMR-V1.3.1。
  • ///
  • 2:表示EMR-V2.0.1。
  • ///
  • 4:表示EMR-V2.1.0。
  • ///
  • 7:表示EMR-V3.0.0。
  • ///
    [JsonProperty("ProductId")] public ulong? ProductId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TimeUnit", this.TimeUnit); this.SetParamSimple(map, prefix + "TimeSpan", this.TimeSpan); this.SetParamObj(map, prefix + "ResourceSpec.", this.ResourceSpec); this.SetParamSimple(map, prefix + "Currency", this.Currency); this.SetParamSimple(map, prefix + "PayMode", this.PayMode); this.SetParamSimple(map, prefix + "SupportHA", this.SupportHA); this.SetParamArraySimple(map, prefix + "Software.", this.Software); this.SetParamObj(map, prefix + "Placement.", this.Placement); this.SetParamObj(map, prefix + "VPCSettings.", this.VPCSettings); this.SetParamSimple(map, prefix + "MetaType", this.MetaType); this.SetParamSimple(map, prefix + "UnifyMetaInstanceId", this.UnifyMetaInstanceId); this.SetParamObj(map, prefix + "MetaDBInfo.", this.MetaDBInfo); this.SetParamSimple(map, prefix + "ProductId", this.ProductId); } } }