Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions generated/activitysmith_openapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
require 'activitysmith_openapi/models/live_activity_update_response'
require 'activitysmith_openapi/models/live_activity_webhook_method'
require 'activitysmith_openapi/models/metric_error'
require 'activitysmith_openapi/models/metric_format'
require 'activitysmith_openapi/models/metric_unit_spacing'
require 'activitysmith_openapi/models/metric_value_update_request'
require 'activitysmith_openapi/models/metric_value_update_request_value'
require 'activitysmith_openapi/models/metric_value_update_response'
Expand All @@ -55,8 +53,6 @@
require 'activitysmith_openapi/models/rate_limit_error'
require 'activitysmith_openapi/models/send_push_notification429_response'
require 'activitysmith_openapi/models/stream_content_state'
require 'activitysmith_openapi/models/widget_metric'
require 'activitysmith_openapi/models/widget_metric_latest_value'

# APIs
require 'activitysmith_openapi/api/live_activities_api'
Expand Down
4 changes: 2 additions & 2 deletions generated/activitysmith_openapi/api/metrics_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Update a widget metric value
# Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
# Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
# @param key [String] Metric key configured in the web app. Lowercase letters, numbers, dots, underscores, and dashes are allowed.
# @param metric_value_update_request [MetricValueUpdateRequest]
# @param [Hash] opts the optional parameters
Expand All @@ -31,7 +31,7 @@ def update_metric_value(key, metric_value_update_request, opts = {})
end

# Update a widget metric value
# Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters.
# Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
# @param key [String] Metric key configured in the web app. Lowercase letters, numbers, dots, underscores, and dashes are allowed.
# @param metric_value_update_request [MetricValueUpdateRequest]
# @param [Hash] opts the optional parameters
Expand Down
43 changes: 0 additions & 43 deletions generated/activitysmith_openapi/models/metric_format.rb

This file was deleted.

40 changes: 0 additions & 40 deletions generated/activitysmith_openapi/models/metric_unit_spacing.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

module OpenapiClient
class MetricValueUpdateResponse
attr_accessor :metric
attr_accessor :success

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

Expand All @@ -32,7 +32,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'metric' => :'WidgetMetric'
:'success' => :'Boolean'
}
end

Expand All @@ -57,10 +57,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'metric')
self.metric = attributes[:'metric']
if attributes.key?(:'success')
self.success = attributes[:'success']
else
self.metric = nil
self.success = nil
end
end

Expand All @@ -69,8 +69,8 @@ def initialize(attributes = {})
def list_invalid_properties
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
invalid_properties = Array.new
if @metric.nil?
invalid_properties.push('invalid value for "metric", metric cannot be nil.')
if @success.nil?
invalid_properties.push('invalid value for "success", success cannot be nil.')
end

invalid_properties
Expand All @@ -80,7 +80,7 @@ def list_invalid_properties
# @return true if the model is valid
def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @metric.nil?
return false if @success.nil?
true
end

Expand All @@ -89,7 +89,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
metric == o.metric
success == o.success
end

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

# Builds the object from hash
Expand Down
Loading