Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ module OpenapiClient
class MetricValueUpdateRequest
attr_accessor :value

# Optional ISO timestamp for when the metric value was measured. Defaults to the server receive time.
attr_accessor :timestamp

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'value' => :'value',
:'timestamp' => :'timestamp'
:'value' => :'value'
}
end

Expand All @@ -37,8 +33,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'value' => :'MetricValueUpdateRequestValue',
:'timestamp' => :'Time'
:'value' => :'MetricValueUpdateRequestValue'
}
end

Expand Down Expand Up @@ -68,10 +63,6 @@ def initialize(attributes = {})
else
self.value = nil
end

if attributes.key?(:'timestamp')
self.timestamp = attributes[:'timestamp']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -99,8 +90,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
value == o.value &&
timestamp == o.timestamp
value == o.value
end

# @see the `==` method
Expand All @@ -112,7 +102,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[value, timestamp].hash
[value].hash
end

# Builds the object from hash
Expand Down