Class: TencentCloud::Cwp::V20180228::ModifyWebHookPolicyRequest

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

Overview

ModifyWebHookPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, events = nil, hostlabels = nil, receivers = nil, format = nil, customfields = nil, isdisabled = nil, quuids = nil, excludedquuids = nil, msglanguage = nil) ⇒ ModifyWebHookPolicyRequest

Returns a new instance of ModifyWebHookPolicyRequest.



34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
# File 'lib/v20180228/models.rb', line 34167

def initialize(id=nil, name=nil, events=nil, hostlabels=nil, receivers=nil, format=nil, customfields=nil, isdisabled=nil, quuids=nil, excludedquuids=nil, msglanguage=nil)
  @Id = id
  @Name = name
  @Events = events
  @HostLabels = hostlabels
  @Receivers = receivers
  @Format = format
  @CustomFields = customfields
  @IsDisabled = isdisabled
  @Quuids = quuids
  @ExcludedQuuids = excludedquuids
  @MsgLanguage = msglanguage
end

Instance Attribute Details

#CustomFieldsObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def CustomFields
  @CustomFields
end

#EventsObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def Events
  @Events
end

#ExcludedQuuidsObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def ExcludedQuuids
  @ExcludedQuuids
end

#FormatObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def Format
  @Format
end

#HostLabelsObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def HostLabels
  @HostLabels
end

#IdObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def Id
  @Id
end

#IsDisabledObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def IsDisabled
  @IsDisabled
end

#MsgLanguageObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def MsgLanguage
  @MsgLanguage
end

#NameObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def Name
  @Name
end

#QuuidsObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def Quuids
  @Quuids
end

#ReceiversObject

Parameters:

  • Id:

    id

  • Name:

    策略名称

  • Events:

    事件类型

  • HostLabels:

    主机范围

  • Receivers:

    接收人

  • Format:

    格式 0text 1json

  • CustomFields:

    自定义透传字段

  • IsDisabled:

    是否启用[1:禁用|0:启用]

  • Quuids:

    主机列表

  • ExcludedQuuids:

    需排除的机器列表

  • MsgLanguage:

    推送语言类型,中文zh,英文en



34165
34166
34167
# File 'lib/v20180228/models.rb', line 34165

def Receivers
  @Receivers
end

Instance Method Details

#deserialize(params) ⇒ Object



34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
# File 'lib/v20180228/models.rb', line 34181

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  unless params['Events'].nil?
    @Events = []
    params['Events'].each do |i|
      webhookeventkv_tmp = WebHookEventKv.new
      webhookeventkv_tmp.deserialize(i)
      @Events << webhookeventkv_tmp
    end
  end
  unless params['HostLabels'].nil?
    @HostLabels = []
    params['HostLabels'].each do |i|
      webhookhostlabel_tmp = WebHookHostLabel.new
      webhookhostlabel_tmp.deserialize(i)
      @HostLabels << webhookhostlabel_tmp
    end
  end
  unless params['Receivers'].nil?
    @Receivers = []
    params['Receivers'].each do |i|
      webhookreceiver_tmp = WebHookReceiver.new
      webhookreceiver_tmp.deserialize(i)
      @Receivers << webhookreceiver_tmp
    end
  end
  @Format = params['Format']
  unless params['CustomFields'].nil?
    @CustomFields = []
    params['CustomFields'].each do |i|
      webhookcustomfield_tmp = WebHookCustomField.new
      webhookcustomfield_tmp.deserialize(i)
      @CustomFields << webhookcustomfield_tmp
    end
  end
  @IsDisabled = params['IsDisabled']
  @Quuids = params['Quuids']
  @ExcludedQuuids = params['ExcludedQuuids']
  @MsgLanguage = params['MsgLanguage']
end