Class: TencentCloud::Wedata::V20210820::ModifyRuleGroupSubscriptionRequest

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

Overview

ModifyRuleGroupSubscription请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulegroupid = nil, receivers = nil, subscribetype = nil, projectid = nil, databaseid = nil, datasourceid = nil, tableid = nil, webhooks = nil) ⇒ ModifyRuleGroupSubscriptionRequest

Returns a new instance of ModifyRuleGroupSubscriptionRequest.



17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
# File 'lib/v20210820/models.rb', line 17522

def initialize(rulegroupid=nil, receivers=nil, subscribetype=nil, projectid=nil, databaseid=nil, datasourceid=nil, tableid=nil, webhooks=nil)
  @RuleGroupId = rulegroupid
  @Receivers = receivers
  @SubscribeType = subscribetype
  @ProjectId = projectid
  @DatabaseId = databaseid
  @DatasourceId = datasourceid
  @TableId = tableid
  @WebHooks = webhooks
end

Instance Attribute Details

#DatabaseIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def DatabaseId
  @DatabaseId
end

#DatasourceIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def DatasourceId
  @DatasourceId
end

#ProjectIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def ProjectId
  @ProjectId
end

#ReceiversObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def Receivers
  @Receivers
end

#RuleGroupIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def RuleGroupId
  @RuleGroupId
end

#SubscribeTypeObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def SubscribeType
  @SubscribeType
end

#TableIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def TableId
  @TableId
end

#WebHooksObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17520
17521
17522
# File 'lib/v20210820/models.rb', line 17520

def WebHooks
  @WebHooks
end

Instance Method Details

#deserialize(params) ⇒ Object



17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
# File 'lib/v20210820/models.rb', line 17533

def deserialize(params)
  @RuleGroupId = params['RuleGroupId']
  unless params['Receivers'].nil?
    @Receivers = []
    params['Receivers'].each do |i|
      subscribereceiver_tmp = SubscribeReceiver.new
      subscribereceiver_tmp.deserialize(i)
      @Receivers << subscribereceiver_tmp
    end
  end
  @SubscribeType = params['SubscribeType']
  @ProjectId = params['ProjectId']
  @DatabaseId = params['DatabaseId']
  @DatasourceId = params['DatasourceId']
  @TableId = params['TableId']
  unless params['WebHooks'].nil?
    @WebHooks = []
    params['WebHooks'].each do |i|
      subscribewebhook_tmp = SubscribeWebHook.new
      subscribewebhook_tmp.deserialize(i)
      @WebHooks << subscribewebhook_tmp
    end
  end
end