Class: TencentCloud::Cwp::V20180228::ModifyWebHookPolicyRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::ModifyWebHookPolicyRequest
- Defined in:
- lib/v20180228/models.rb
Overview
ModifyWebHookPolicy请求参数结构体
Instance Attribute Summary collapse
- #CustomFields ⇒ Object
- #Events ⇒ Object
- #ExcludedQuuids ⇒ Object
- #Format ⇒ Object
- #HostLabels ⇒ Object
- #Id ⇒ Object
- #IsDisabled ⇒ Object
- #Name ⇒ Object
- #Quuids ⇒ Object
- #Receivers ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, events = nil, hostlabels = nil, receivers = nil, format = nil, customfields = nil, isdisabled = nil, quuids = nil, excludedquuids = nil) ⇒ ModifyWebHookPolicyRequest
constructor
A new instance of ModifyWebHookPolicyRequest.
Constructor Details
#initialize(id = nil, name = nil, events = nil, hostlabels = nil, receivers = nil, format = nil, customfields = nil, isdisabled = nil, quuids = nil, excludedquuids = nil) ⇒ ModifyWebHookPolicyRequest
Returns a new instance of ModifyWebHookPolicyRequest.
34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 34616 |
# File 'lib/v20180228/models.rb', line 34605 def initialize(id=nil, name=nil, events=nil, hostlabels=nil, receivers=nil, format=nil, customfields=nil, isdisabled=nil, quuids=nil, excludedquuids=nil) @Id = id @Name = name @Events = events @HostLabels = hostlabels @Receivers = receivers @Format = format @CustomFields = customfields @IsDisabled = isdisabled @Quuids = quuids @ExcludedQuuids = excludedquuids end |
Instance Attribute Details
#CustomFields ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def CustomFields @CustomFields end |
#Events ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def Events @Events end |
#ExcludedQuuids ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def ExcludedQuuids @ExcludedQuuids end |
#Format ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def Format @Format end |
#HostLabels ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def HostLabels @HostLabels end |
#Id ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def Id @Id end |
#IsDisabled ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def IsDisabled @IsDisabled end |
#Name ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def Name @Name end |
#Quuids ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def Quuids @Quuids end |
#Receivers ⇒ Object
34603 34604 34605 |
# File 'lib/v20180228/models.rb', line 34603 def Receivers @Receivers end |
Instance Method Details
#deserialize(params) ⇒ Object
34618 34619 34620 34621 34622 34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 |
# File 'lib/v20180228/models.rb', line 34618 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'] end |