Class: TencentCloud::Config::V20220802::Annotation

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

Overview

合规详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration = nil, desiredvalue = nil, operator = nil, property = nil) ⇒ Annotation

Returns a new instance of Annotation.



100
101
102
103
104
105
# File 'lib/v20220802/models.rb', line 100

def initialize(configuration=nil, desiredvalue=nil, operator=nil, property=nil)
  @Configuration = configuration
  @DesiredValue = desiredvalue
  @Operator = operator
  @Property = property
end

Instance Attribute Details

#ConfigurationObject

Parameters:

  • Configuration:

    资源当前实际配置。长度为0~256位字符,即资源不合规配置

  • DesiredValue:

    资源期望配置。长度为0~256位字符,即资源合规配置

  • Operator:

    资源当前配置和期望配置之间的比较运算符。长度为0~16位字符,自定义规则上报评估结果此字段可能为空

  • Property:

    当前配置在资源属性结构体中的JSON路径。长度为0~256位字符,自定义规则上报评估结果此字段可能为空



98
99
100
# File 'lib/v20220802/models.rb', line 98

def Configuration
  @Configuration
end

#DesiredValueObject

Parameters:

  • Configuration:

    资源当前实际配置。长度为0~256位字符,即资源不合规配置

  • DesiredValue:

    资源期望配置。长度为0~256位字符,即资源合规配置

  • Operator:

    资源当前配置和期望配置之间的比较运算符。长度为0~16位字符,自定义规则上报评估结果此字段可能为空

  • Property:

    当前配置在资源属性结构体中的JSON路径。长度为0~256位字符,自定义规则上报评估结果此字段可能为空



98
99
100
# File 'lib/v20220802/models.rb', line 98

def DesiredValue
  @DesiredValue
end

#OperatorObject

Parameters:

  • Configuration:

    资源当前实际配置。长度为0~256位字符,即资源不合规配置

  • DesiredValue:

    资源期望配置。长度为0~256位字符,即资源合规配置

  • Operator:

    资源当前配置和期望配置之间的比较运算符。长度为0~16位字符,自定义规则上报评估结果此字段可能为空

  • Property:

    当前配置在资源属性结构体中的JSON路径。长度为0~256位字符,自定义规则上报评估结果此字段可能为空



98
99
100
# File 'lib/v20220802/models.rb', line 98

def Operator
  @Operator
end

#PropertyObject

Parameters:

  • Configuration:

    资源当前实际配置。长度为0~256位字符,即资源不合规配置

  • DesiredValue:

    资源期望配置。长度为0~256位字符,即资源合规配置

  • Operator:

    资源当前配置和期望配置之间的比较运算符。长度为0~16位字符,自定义规则上报评估结果此字段可能为空

  • Property:

    当前配置在资源属性结构体中的JSON路径。长度为0~256位字符,自定义规则上报评估结果此字段可能为空



98
99
100
# File 'lib/v20220802/models.rb', line 98

def Property
  @Property
end

Instance Method Details

#deserialize(params) ⇒ Object



107
108
109
110
111
112
# File 'lib/v20220802/models.rb', line 107

def deserialize(params)
  @Configuration = params['Configuration']
  @DesiredValue = params['DesiredValue']
  @Operator = params['Operator']
  @Property = params['Property']
end