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: 2 additions & 2 deletions .spec-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
spec: openapi-v241.25.0
generator: chat v241.25.0
spec: openapi-v241.25.1
generator: chat v241.25.1
2 changes: 1 addition & 1 deletion lib/getstream_ruby/generated/common_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def upsert_push_template(upsert_push_template_request)
)
end

# Get rate limits usage and quotas
# Get rate limits usage and quotas, and the query budget status of budgeted endpoints
#
# @param server_side [Boolean]
# @param android [Boolean]
Expand Down
56 changes: 56 additions & 0 deletions lib/getstream_ruby/generated/models/budget_status_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# frozen_string_literal: true

# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.

module GetStream
module Generated
module Models
#
class BudgetStatusResponse < GetStream::BaseModel

# Model attributes
# @!attribute enforced
# @return [Boolean] Whether exhausting the budget rejects requests with HTTP 429. False when the budget is only measured, or while enforcement is temporarily suspended
attr_accessor :enforced
# @!attribute limit_ms
# @return [Integer] Database time in milliseconds the endpoint may use per sliding window
attr_accessor :limit_ms
# @!attribute remaining_ms
# @return [Integer] Database time in milliseconds left in the current sliding window, never negative
attr_accessor :remaining_ms
# @!attribute reset
# @return [Integer] The Unix timestamp at which all usage currently in the window will have expired, if no new usage is added. The current time when no usage is recorded in the window. Can be in the future while used_ms is 0, when earlier usage was refunded
attr_accessor :reset
# @!attribute used_ms
# @return [Integer] Database time in milliseconds used in the current sliding window, including requests still in flight
attr_accessor :used_ms
# @!attribute window_seconds
# @return [Integer] Length of the sliding window in seconds
attr_accessor :window_seconds

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@enforced = attributes.fetch(:enforced) { attributes.fetch('enforced', nil) }
@limit_ms = attributes.fetch(:limit_ms) { attributes.fetch('limit_ms', nil) }
@remaining_ms = attributes.fetch(:remaining_ms) { attributes.fetch('remaining_ms', nil) }
@reset = attributes.fetch(:reset) { attributes.fetch('reset', nil) }
@used_ms = attributes.fetch(:used_ms) { attributes.fetch('used_ms', nil) }
@window_seconds = attributes.fetch(:window_seconds) { attributes.fetch('window_seconds', nil) }
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
enforced: 'enforced',
limit_ms: 'limit_ms',
remaining_ms: 'remaining_ms',
reset: 'reset',
used_ms: 'used_ms',
window_seconds: 'window_seconds'
}
end
end
end
end
end
66 changes: 66 additions & 0 deletions lib/getstream_ruby/generated/models/budgets_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# frozen_string_literal: true

# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.

module GetStream
module Generated
module Models
#
class BudgetsResponse < GetStream::BaseModel

# Model attributes
# @!attribute all
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets shared by all platforms. Set when budgets are not tracked per platform
attr_accessor :all
# @!attribute android
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the Android platform
attr_accessor :android
# @!attribute ios
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the iOS platform
attr_accessor :ios
# @!attribute server_side
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the server-side platform
attr_accessor :server_side
# @!attribute unity
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the Unity platform
attr_accessor :unity
# @!attribute unity_console
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the Unity console platform
attr_accessor :unity_console
# @!attribute unity_desktop
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the Unity desktop platform
attr_accessor :unity_desktop
# @!attribute web
# @return [Hash<String, BudgetStatusResponse>] Map of endpoint budgets for the web platform
attr_accessor :web

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@all = attributes.fetch(:all) { attributes.fetch('all', nil) }
@android = attributes.fetch(:android) { attributes.fetch('android', nil) }
@ios = attributes.fetch(:ios) { attributes.fetch('ios', nil) }
@server_side = attributes.fetch(:server_side) { attributes.fetch('server_side', nil) }
@unity = attributes.fetch(:unity) { attributes.fetch('unity', nil) }
@unity_console = attributes.fetch(:unity_console) { attributes.fetch('unity_console', nil) }
@unity_desktop = attributes.fetch(:unity_desktop) { attributes.fetch('unity_desktop', nil) }
@web = attributes.fetch(:web) { attributes.fetch('web', nil) }
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
all: 'all',
android: 'android',
ios: 'ios',
server_side: 'server_side',
unity: 'unity',
unity_console: 'unity_console',
unity_desktop: 'unity_desktop',
web: 'web'
}
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class GetRateLimitsResponse < GetStream::BaseModel
# @!attribute android
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the Android platform
attr_accessor :android
# @!attribute budgets
# @return [BudgetsResponse]
attr_accessor :budgets
# @!attribute ios
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the iOS platform
attr_accessor :ios
Expand All @@ -39,6 +42,7 @@ def initialize(attributes = {})
super(attributes)
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
@android = attributes.fetch(:android) { attributes.fetch('android', nil) }
@budgets = attributes.fetch(:budgets) { attributes.fetch('budgets', nil) }
@ios = attributes.fetch(:ios) { attributes.fetch('ios', nil) }
@server_side = attributes.fetch(:server_side) { attributes.fetch('server_side', nil) }
@unity = attributes.fetch(:unity) { attributes.fetch('unity', nil) }
Expand All @@ -52,6 +56,7 @@ def self.json_field_mappings
{
duration: 'duration',
android: 'android',
budgets: 'budgets',
ios: 'ios',
server_side: 'server_side',
unity: 'unity',
Expand Down
Loading