lib/fn_ruby/models/route.rb in fn_ruby-0.1.32 vs lib/fn_ruby/models/route.rb in fn_ruby-0.2.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
-#IronFunctions
+#fn
#The open source serverless platform.
-OpenAPI spec version: 0.1.29
+OpenAPI spec version: 0.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3
=end
@@ -31,13 +31,10 @@
attr_accessor :type
# Payload format sent into function.
attr_accessor :format
- # Maximum number of hot functions concurrency
- attr_accessor :max_concurrency
-
# Route configuration - overrides application configuration
attr_accessor :config
# Timeout for executions of this route. Value in Seconds
attr_accessor :timeout
@@ -74,11 +71,10 @@
:'image' => :'image',
:'headers' => :'headers',
:'memory' => :'memory',
:'type' => :'type',
:'format' => :'format',
- :'max_concurrency' => :'max_concurrency',
:'config' => :'config',
:'timeout' => :'timeout',
:'idle_timeout' => :'idle_timeout'
}
end
@@ -90,11 +86,10 @@
:'image' => :'String',
:'headers' => :'Hash<String, Array<String>>',
:'memory' => :'Integer',
:'type' => :'String',
:'format' => :'String',
- :'max_concurrency' => :'Integer',
:'config' => :'Hash<String, String>',
:'timeout' => :'Integer',
:'idle_timeout' => :'Integer'
}
end
@@ -131,26 +126,26 @@
if attributes.has_key?(:'format')
self.format = attributes[:'format']
end
- if attributes.has_key?(:'max_concurrency')
- self.max_concurrency = attributes[:'max_concurrency']
- end
-
if attributes.has_key?(:'config')
if (value = attributes[:'config']).is_a?(Array)
self.config = value
end
end
if attributes.has_key?(:'timeout')
self.timeout = attributes[:'timeout']
+ else
+ self.timeout = 30
end
if attributes.has_key?(:'idle_timeout')
self.idle_timeout = attributes[:'idle_timeout']
+ else
+ self.idle_timeout = 30
end
end
# Show invalid properties with the reasons. Usually used together with valid?
@@ -199,11 +194,10 @@
image == o.image &&
headers == o.headers &&
memory == o.memory &&
type == o.type &&
format == o.format &&
- max_concurrency == o.max_concurrency &&
config == o.config &&
timeout == o.timeout &&
idle_timeout == o.idle_timeout
end
@@ -214,10 +208,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [path, image, headers, memory, type, format, max_concurrency, config, timeout, idle_timeout].hash
+ [path, image, headers, memory, type, format, config, timeout, idle_timeout].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself