lib/phrase/models/webhook_create_parameters.rb in phrase-1.0.8 vs lib/phrase/models/webhook_create_parameters.rb in phrase-1.0.9
- old
+ new
@@ -15,29 +15,34 @@
attr_accessor :events
# Whether webhook is active or inactive
attr_accessor :active
+ # If enabled, webhook will also be triggered for events from branches of the project specified.
+ attr_accessor :include_branches
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'callback_url' => :'callback_url',
:'secret' => :'secret',
:'description' => :'description',
:'events' => :'events',
- :'active' => :'active'
+ :'active' => :'active',
+ :'include_branches' => :'include_branches'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'callback_url' => :'String',
:'secret' => :'String',
:'description' => :'String',
:'events' => :'String',
- :'active' => :'Boolean'
+ :'active' => :'Boolean',
+ :'include_branches' => :'Boolean'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -77,10 +82,14 @@
end
if attributes.key?(:'active')
self.active = attributes[:'active']
end
+
+ if attributes.key?(:'include_branches')
+ self.include_branches = attributes[:'include_branches']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -101,11 +110,12 @@
self.class == o.class &&
callback_url == o.callback_url &&
secret == o.secret &&
description == o.description &&
events == o.events &&
- active == o.active
+ active == o.active &&
+ include_branches == o.include_branches
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -113,10 +123,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [callback_url, secret, description, events, active].hash
+ [callback_url, secret, description, events, active, include_branches].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself