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.



17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
# File 'lib/v20210820/models.rb', line 17705

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信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def DatabaseId
  @DatabaseId
end

#DatasourceIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def DatasourceId
  @DatasourceId
end

#ProjectIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def ProjectId
  @ProjectId
end

#ReceiversObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def Receivers
  @Receivers
end

#RuleGroupIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def RuleGroupId
  @RuleGroupId
end

#SubscribeTypeObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def SubscribeType
  @SubscribeType
end

#TableIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def TableId
  @TableId
end

#WebHooksObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



17703
17704
17705
# File 'lib/v20210820/models.rb', line 17703

def WebHooks
  @WebHooks
end

Instance Method Details

#deserialize(params) ⇒ Object



17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
# File 'lib/v20210820/models.rb', line 17716

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