Class: TencentCloud::Billing::V20180709::AllocationRuleExpression

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180709/models.rb

Overview

分账规则表达式

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulekey = nil, operator = nil, rulevalue = nil, connectors = nil, children = nil) ⇒ AllocationRuleExpression

Returns a new instance of AllocationRuleExpression.



824
825
826
827
828
829
830
# File 'lib/v20180709/models.rb', line 824

def initialize(rulekey=nil, operator=nil, rulevalue=nil, connectors=nil, children=nil)
  @RuleKey = rulekey
  @Operator = operator
  @RuleValue = rulevalue
  @Connectors = connectors
  @Children = children
end

Instance Attribute Details

#ChildrenObject

枚举值:ownerUin - 使用者UIN, operateUin - 操作者UIN, businessCode - 产品一层编码, productCode - 产品二层编码, itemCode - 产品四层编码, projectId - 项目ID, regionId - 地域ID, resourceId - 资源ID, tag - 标签键值对, payMode - 计费模式, instanceType - 实例类型, actionType - 交易类型枚举值:in - 是not in - 不是and - 且or - 或

Parameters:

  • RuleKey:

    RuleKey:分账维度

  • Operator:

    分账维度规则

  • RuleValue:

    分账维度值,例如当RuleKey为businessCode时,表示产品一层是“p_cbs”,“p_sqlserver”的费用

  • Connectors:

    分账逻辑连接词,枚举值如下:

  • Children:

    嵌套规则



822
823
824
# File 'lib/v20180709/models.rb', line 822

def Children
  @Children
end

#ConnectorsObject

枚举值:ownerUin - 使用者UIN, operateUin - 操作者UIN, businessCode - 产品一层编码, productCode - 产品二层编码, itemCode - 产品四层编码, projectId - 项目ID, regionId - 地域ID, resourceId - 资源ID, tag - 标签键值对, payMode - 计费模式, instanceType - 实例类型, actionType - 交易类型枚举值:in - 是not in - 不是and - 且or - 或

Parameters:

  • RuleKey:

    RuleKey:分账维度

  • Operator:

    分账维度规则

  • RuleValue:

    分账维度值,例如当RuleKey为businessCode时,表示产品一层是“p_cbs”,“p_sqlserver”的费用

  • Connectors:

    分账逻辑连接词,枚举值如下:

  • Children:

    嵌套规则



822
823
824
# File 'lib/v20180709/models.rb', line 822

def Connectors
  @Connectors
end

#OperatorObject

枚举值:ownerUin - 使用者UIN, operateUin - 操作者UIN, businessCode - 产品一层编码, productCode - 产品二层编码, itemCode - 产品四层编码, projectId - 项目ID, regionId - 地域ID, resourceId - 资源ID, tag - 标签键值对, payMode - 计费模式, instanceType - 实例类型, actionType - 交易类型枚举值:in - 是not in - 不是and - 且or - 或

Parameters:

  • RuleKey:

    RuleKey:分账维度

  • Operator:

    分账维度规则

  • RuleValue:

    分账维度值,例如当RuleKey为businessCode时,表示产品一层是“p_cbs”,“p_sqlserver”的费用

  • Connectors:

    分账逻辑连接词,枚举值如下:

  • Children:

    嵌套规则



822
823
824
# File 'lib/v20180709/models.rb', line 822

def Operator
  @Operator
end

#RuleKeyObject

枚举值:ownerUin - 使用者UIN, operateUin - 操作者UIN, businessCode - 产品一层编码, productCode - 产品二层编码, itemCode - 产品四层编码, projectId - 项目ID, regionId - 地域ID, resourceId - 资源ID, tag - 标签键值对, payMode - 计费模式, instanceType - 实例类型, actionType - 交易类型枚举值:in - 是not in - 不是and - 且or - 或

Parameters:

  • RuleKey:

    RuleKey:分账维度

  • Operator:

    分账维度规则

  • RuleValue:

    分账维度值,例如当RuleKey为businessCode时,表示产品一层是“p_cbs”,“p_sqlserver”的费用

  • Connectors:

    分账逻辑连接词,枚举值如下:

  • Children:

    嵌套规则



822
823
824
# File 'lib/v20180709/models.rb', line 822

def RuleKey
  @RuleKey
end

#RuleValueObject

枚举值:ownerUin - 使用者UIN, operateUin - 操作者UIN, businessCode - 产品一层编码, productCode - 产品二层编码, itemCode - 产品四层编码, projectId - 项目ID, regionId - 地域ID, resourceId - 资源ID, tag - 标签键值对, payMode - 计费模式, instanceType - 实例类型, actionType - 交易类型枚举值:in - 是not in - 不是and - 且or - 或

Parameters:

  • RuleKey:

    RuleKey:分账维度

  • Operator:

    分账维度规则

  • RuleValue:

    分账维度值,例如当RuleKey为businessCode时,表示产品一层是“p_cbs”,“p_sqlserver”的费用

  • Connectors:

    分账逻辑连接词,枚举值如下:

  • Children:

    嵌套规则



822
823
824
# File 'lib/v20180709/models.rb', line 822

def RuleValue
  @RuleValue
end

Instance Method Details

#deserialize(params) ⇒ Object



832
833
834
835
836
837
838
839
840
841
842
843
844
845
# File 'lib/v20180709/models.rb', line 832

def deserialize(params)
  @RuleKey = params['RuleKey']
  @Operator = params['Operator']
  @RuleValue = params['RuleValue']
  @Connectors = params['Connectors']
  unless params['Children'].nil?
    @Children = []
    params['Children'].each do |i|
      allocationruleexpression_tmp = AllocationRuleExpression.new
      allocationruleexpression_tmp.deserialize(i)
      @Children << allocationruleexpression_tmp
    end
  end
end