Class: TencentCloud::Eb::V20210416::CreateRuleRequest

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

Overview

CreateRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eventpattern = nil, eventbusid = nil, rulename = nil, enable = nil, description = nil) ⇒ CreateRuleRequest

Returns a new instance of CreateRuleRequest.



437
438
439
440
441
442
443
# File 'lib/v20210416/models.rb', line 437

def initialize(eventpattern=nil, eventbusid=nil, rulename=nil, enable=nil, description=nil)
  @EventPattern = eventpattern
  @EventBusId = eventbusid
  @RuleName = rulename
  @Enable = enable
  @Description = description
end

Instance Attribute Details

#DescriptionObject

Parameters:

  • EventPattern:
  • EventBusId:

    事件集ID

  • RuleName:

    事件规则名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符

  • Enable:

    使能开关。

  • Description:

    事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符



435
436
437
# File 'lib/v20210416/models.rb', line 435

def Description
  @Description
end

#EnableObject

Parameters:

  • EventPattern:
  • EventBusId:

    事件集ID

  • RuleName:

    事件规则名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符

  • Enable:

    使能开关。

  • Description:

    事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符



435
436
437
# File 'lib/v20210416/models.rb', line 435

def Enable
  @Enable
end

#EventBusIdObject

Parameters:

  • EventPattern:
  • EventBusId:

    事件集ID

  • RuleName:

    事件规则名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符

  • Enable:

    使能开关。

  • Description:

    事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符



435
436
437
# File 'lib/v20210416/models.rb', line 435

def EventBusId
  @EventBusId
end

#EventPatternObject

Parameters:

  • EventPattern:
  • EventBusId:

    事件集ID

  • RuleName:

    事件规则名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符

  • Enable:

    使能开关。

  • Description:

    事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符



435
436
437
# File 'lib/v20210416/models.rb', line 435

def EventPattern
  @EventPattern
end

#RuleNameObject

Parameters:

  • EventPattern:
  • EventBusId:

    事件集ID

  • RuleName:

    事件规则名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符

  • Enable:

    使能开关。

  • Description:

    事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符



435
436
437
# File 'lib/v20210416/models.rb', line 435

def RuleName
  @RuleName
end

Instance Method Details

#deserialize(params) ⇒ Object



445
446
447
448
449
450
451
# File 'lib/v20210416/models.rb', line 445

def deserialize(params)
  @EventPattern = params['EventPattern']
  @EventBusId = params['EventBusId']
  @RuleName = params['RuleName']
  @Enable = params['Enable']
  @Description = params['Description']
end