You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @param system_key [String] The key of the points system to create boosts for.
25
-
# @param boosts [Array<Hash>] Array of boosts to create. Maximum 1,000 boosts per request.Request of type Array<TrophyApiClient::Admin::Points::Boosts::CreatePointsBoostsRequestBoostsItem>, as a Hash
25
+
# @param boosts [Array<Hash>] Array of boosts to create. Maximum 100 boosts per request.Request of type Array<TrophyApiClient::Admin::Points::Boosts::CreatePointsBoostsRequestBoostsItem>, as a Hash
# @param system_key [String] The key of the points system to create boosts for.
139
-
# @param boosts [Array<Hash>] Array of boosts to create. Maximum 1,000 boosts per request.Request of type Array<TrophyApiClient::Admin::Points::Boosts::CreatePointsBoostsRequestBoostsItem>, as a Hash
140
+
# @param boosts [Array<Hash>] Array of boosts to create. Maximum 100 boosts per request.Request of type Array<TrophyApiClient::Admin::Points::Boosts::CreatePointsBoostsRequestBoostsItem>, as a Hash
# Restore streaks for multiple users to the maximum length in the last 90 days (in
21
-
# the case of daily streaks), one year (in the case of weekly streaks), or two
22
-
# years (in the case of monthly streaks).
20
+
# Restore streaks for multiple users to the maximum previously achieved streak
21
+
# length found within the current restore window: the last 90 days for daily
22
+
# streaks, weekly periods starting with the week containing the start of the
23
+
# current calendar year for weekly streaks, and monthly periods starting at the
24
+
# beginning of the previous calendar year for monthly streaks.
23
25
#
24
26
# @param users [Array<Hash>] Array of users to restore streaks for. Maximum 100 users per request.Request of type Array<TrophyApiClient::Admin::Streaks::RestoreStreaksRequestUsersItem>, as a Hash
# Restore streaks for multiple users to the maximum length in the last 90 days (in
65
-
# the case of daily streaks), one year (in the case of weekly streaks), or two
66
-
# years (in the case of monthly streaks).
66
+
# Restore streaks for multiple users to the maximum previously achieved streak
67
+
# length found within the current restore window: the last 90 days for daily
68
+
# streaks, weekly periods starting with the week containing the start of the
69
+
# current calendar year for weekly streaks, and monthly periods starting at the
70
+
# beginning of the previous calendar year for monthly streaks.
67
71
#
68
72
# @param users [Array<Hash>] Array of users to restore streaks for. Maximum 100 users per request.Request of type Array<TrophyApiClient::Admin::Streaks::RestoreStreaksRequestUsersItem>, as a Hash
Copy file name to clipboardExpand all lines: lib/trophy_api_client/admin/streaks/freezes/client.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ def initialize(request_client:)
20
20
21
21
# Create streak freezes for multiple users.
22
22
#
23
-
# @param freezes [Array<Hash>] Array of freezes to create. Maximum 1,000 freezes per request.Request of type Array<TrophyApiClient::Admin::Streaks::Freezes::CreateStreakFreezesRequestFreezesItem>, as a Hash
23
+
# @param freezes [Array<Hash>] Array of freezes to create. Maximum 100 freezes per request.Request of type Array<TrophyApiClient::Admin::Streaks::Freezes::CreateStreakFreezesRequestFreezesItem>, as a Hash
# @param freezes [Array<Hash>] Array of freezes to create. Maximum 1,000 freezes per request.Request of type Array<TrophyApiClient::Admin::Streaks::Freezes::CreateStreakFreezesRequestFreezesItem>, as a Hash
65
+
# @param freezes [Array<Hash>] Array of freezes to create. Maximum 100 freezes per request.Request of type Array<TrophyApiClient::Admin::Streaks::Freezes::CreateStreakFreezesRequestFreezesItem>, as a Hash
# Serialize an instance of AdminIssue to a JSON object
78
+
#
79
+
# @return [String]
80
+
defto_json(*_args)
81
+
@_field_set&.to_json
82
+
end
83
+
84
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
85
+
# hash and check each fields type against the current object's property
86
+
# definitions.
87
+
#
88
+
# @param obj [Object]
89
+
# @return [Void]
90
+
defself.validate_raw(obj:)
91
+
obj.user_id&.is_a?(String) != false || raise("Passed value for field obj.user_id is not the expected type, validation failed.")
92
+
obj.boost_id&.is_a?(String) != false || raise("Passed value for field obj.boost_id is not the expected type, validation failed.")
93
+
obj.index&.is_a?(Integer) != false || raise("Passed value for field obj.index is not the expected type, validation failed.")
94
+
obj.severity.is_a?(TrophyApiClient::AdminIssueSeverity) != false || raise("Passed value for field obj.severity is not the expected type, validation failed.")
95
+
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
0 commit comments