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.



27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
# File 'lib/v20210820/models.rb', line 27470

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



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def DatabaseId
  @DatabaseId
end

#DatasourceIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def DatasourceId
  @DatasourceId
end

#ProjectIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def ProjectId
  @ProjectId
end

#ReceiversObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def Receivers
  @Receivers
end

#RuleGroupIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def RuleGroupId
  @RuleGroupId
end

#SubscribeTypeObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def SubscribeType
  @SubscribeType
end

#TableIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def TableId
  @TableId
end

#WebHooksObject

Parameters:

  • RuleGroupId:

    规则组ID

  • Receivers:

    订阅人信息

  • SubscribeType:

    订阅类型

  • ProjectId:

    项目ID

  • DatabaseId:

    数据库Id

  • DatasourceId:

    数据源Id

  • TableId:

    数据表Id

  • WebHooks:

    群机器人webhook信息



27468
27469
27470
# File 'lib/v20210820/models.rb', line 27468

def WebHooks
  @WebHooks
end

Instance Method Details

#deserialize(params) ⇒ Object



27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
# File 'lib/v20210820/models.rb', line 27481

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