Class: TencentCloud::Tcr::V20190924::WebhookTrigger
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tcr::V20190924::WebhookTrigger
- Defined in:
- lib/v20190924/models.rb
Overview
Webhook 触发器
Instance Attribute Summary collapse
- #Condition ⇒ Object
- #Description ⇒ Object
- #Enabled ⇒ Object
- #EventTypes ⇒ Object
- #Id ⇒ Object
- #Name ⇒ Object
- #NamespaceId ⇒ Object
- #NamespaceName ⇒ Object
- #Targets ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, targets = nil, eventtypes = nil, condition = nil, enabled = nil, id = nil, description = nil, namespaceid = nil, namespacename = nil) ⇒ WebhookTrigger
constructor
A new instance of WebhookTrigger.
Constructor Details
#initialize(name = nil, targets = nil, eventtypes = nil, condition = nil, enabled = nil, id = nil, description = nil, namespaceid = nil, namespacename = nil) ⇒ WebhookTrigger
Returns a new instance of WebhookTrigger.
7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 |
# File 'lib/v20190924/models.rb', line 7756 def initialize(name=nil, targets=nil, eventtypes=nil, condition=nil, enabled=nil, id=nil, description=nil, namespaceid=nil, namespacename=nil) @Name = name @Targets = targets @EventTypes = eventtypes @Condition = condition @Enabled = enabled @Id = id @Description = description @NamespaceId = namespaceid @NamespaceName = namespacename end |
Instance Attribute Details
#Condition ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def Condition @Condition end |
#Description ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def Description @Description end |
#Enabled ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def Enabled @Enabled end |
#EventTypes ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def EventTypes @EventTypes end |
#Id ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def Id @Id end |
#Name ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def Name @Name end |
#NamespaceId ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def NamespaceId @NamespaceId end |
#NamespaceName ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def NamespaceName @NamespaceName end |
#Targets ⇒ Object
7754 7755 7756 |
# File 'lib/v20190924/models.rb', line 7754 def Targets @Targets end |
Instance Method Details
#deserialize(params) ⇒ Object
7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 |
# File 'lib/v20190924/models.rb', line 7768 def deserialize(params) @Name = params['Name'] unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| webhooktarget_tmp = WebhookTarget.new webhooktarget_tmp.deserialize(i) @Targets << webhooktarget_tmp end end @EventTypes = params['EventTypes'] @Condition = params['Condition'] @Enabled = params['Enabled'] @Id = params['Id'] @Description = params['Description'] @NamespaceId = params['NamespaceId'] @NamespaceName = params['NamespaceName'] end |