@@ -14,14 +14,14 @@ import kotlin.jvm.optionals.getOrNull
1414 *
1515 * **Limitations:**
1616 * - Results are available for the past 3 months only
17- * - At least one filter (`event_uuid ` or `auth_rule_token`) must be provided
18- * - When filtering by `event_uuid `, pagination is not supported
17+ * - At least one filter (`event_token ` or `auth_rule_token`) must be provided
18+ * - When filtering by `event_token `, pagination is not supported
1919 */
2020class AuthRuleV2ListResultsParams
2121private constructor (
2222 private val authRuleToken: String? ,
2323 private val endingBefore: String? ,
24- private val eventUuid : String? ,
24+ private val eventToken : String? ,
2525 private val hasActions: Boolean? ,
2626 private val pageSize: Long? ,
2727 private val startingAfter: String? ,
@@ -38,8 +38,8 @@ private constructor(
3838 */
3939 fun endingBefore (): Optional <String > = Optional .ofNullable(endingBefore)
4040
41- /* * Filter by event UUID */
42- fun eventUuid (): Optional <String > = Optional .ofNullable(eventUuid )
41+ /* * Filter by event token */
42+ fun eventToken (): Optional <String > = Optional .ofNullable(eventToken )
4343
4444 /* *
4545 * Filter by whether the rule evaluation produced any actions. When not provided, all results
@@ -79,7 +79,7 @@ private constructor(
7979
8080 private var authRuleToken: String? = null
8181 private var endingBefore: String? = null
82- private var eventUuid : String? = null
82+ private var eventToken : String? = null
8383 private var hasActions: Boolean? = null
8484 private var pageSize: Long? = null
8585 private var startingAfter: String? = null
@@ -90,7 +90,7 @@ private constructor(
9090 internal fun from (authRuleV2ListResultsParams : AuthRuleV2ListResultsParams ) = apply {
9191 authRuleToken = authRuleV2ListResultsParams.authRuleToken
9292 endingBefore = authRuleV2ListResultsParams.endingBefore
93- eventUuid = authRuleV2ListResultsParams.eventUuid
93+ eventToken = authRuleV2ListResultsParams.eventToken
9494 hasActions = authRuleV2ListResultsParams.hasActions
9595 pageSize = authRuleV2ListResultsParams.pageSize
9696 startingAfter = authRuleV2ListResultsParams.startingAfter
@@ -114,11 +114,11 @@ private constructor(
114114 /* * Alias for calling [Builder.endingBefore] with `endingBefore.orElse(null)`. */
115115 fun endingBefore (endingBefore : Optional <String >) = endingBefore(endingBefore.getOrNull())
116116
117- /* * Filter by event UUID */
118- fun eventUuid ( eventUuid : String? ) = apply { this .eventUuid = eventUuid }
117+ /* * Filter by event token */
118+ fun eventToken ( eventToken : String? ) = apply { this .eventToken = eventToken }
119119
120- /* * Alias for calling [Builder.eventUuid ] with `eventUuid .orElse(null)`. */
121- fun eventUuid ( eventUuid : Optional <String >) = eventUuid(eventUuid .getOrNull())
120+ /* * Alias for calling [Builder.eventToken ] with `eventToken .orElse(null)`. */
121+ fun eventToken ( eventToken : Optional <String >) = eventToken(eventToken .getOrNull())
122122
123123 /* *
124124 * Filter by whether the rule evaluation produced any actions. When not provided, all
@@ -266,7 +266,7 @@ private constructor(
266266 AuthRuleV2ListResultsParams (
267267 authRuleToken,
268268 endingBefore,
269- eventUuid ,
269+ eventToken ,
270270 hasActions,
271271 pageSize,
272272 startingAfter,
@@ -282,7 +282,7 @@ private constructor(
282282 .apply {
283283 authRuleToken?.let { put(" auth_rule_token" , it) }
284284 endingBefore?.let { put(" ending_before" , it) }
285- eventUuid ?.let { put(" event_uuid " , it) }
285+ eventToken ?.let { put(" event_token " , it) }
286286 hasActions?.let { put(" has_actions" , it.toString()) }
287287 pageSize?.let { put(" page_size" , it.toString()) }
288288 startingAfter?.let { put(" starting_after" , it) }
@@ -298,7 +298,7 @@ private constructor(
298298 return other is AuthRuleV2ListResultsParams &&
299299 authRuleToken == other.authRuleToken &&
300300 endingBefore == other.endingBefore &&
301- eventUuid == other.eventUuid &&
301+ eventToken == other.eventToken &&
302302 hasActions == other.hasActions &&
303303 pageSize == other.pageSize &&
304304 startingAfter == other.startingAfter &&
@@ -310,7 +310,7 @@ private constructor(
310310 Objects .hash(
311311 authRuleToken,
312312 endingBefore,
313- eventUuid ,
313+ eventToken ,
314314 hasActions,
315315 pageSize,
316316 startingAfter,
@@ -319,5 +319,5 @@ private constructor(
319319 )
320320
321321 override fun toString () =
322- " AuthRuleV2ListResultsParams{authRuleToken=$authRuleToken , endingBefore=$endingBefore , eventUuid= $eventUuid , hasActions=$hasActions , pageSize=$pageSize , startingAfter=$startingAfter , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
322+ " AuthRuleV2ListResultsParams{authRuleToken=$authRuleToken , endingBefore=$endingBefore , eventToken= $eventToken , hasActions=$hasActions , pageSize=$pageSize , startingAfter=$startingAfter , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
323323}
0 commit comments