@@ -63,3 +63,56 @@ pub struct CreateBundleUploadIntentResponse {
6363pub struct TelemetryUploadMetricsRequest {
6464 pub upload_metrics : proto:: upload_metrics:: trunk:: UploadMetrics ,
6565}
66+
67+ #[ derive( Debug , Serialize , Clone , Deserialize , PartialEq ) ]
68+ pub struct PageQuery {
69+ #[ serde( rename = "pageSize" ) ]
70+ pub page_size : i32 ,
71+ #[ serde( rename = "pageToken" ) ]
72+ pub page_token : String ,
73+ }
74+
75+ #[ derive( Debug , Serialize , Clone , Deserialize , PartialEq ) ]
76+ pub struct Page {
77+ pub total_rows : i32 ,
78+ pub total_pages : i32 ,
79+ pub next_page_token : String ,
80+ pub prev_page_token : String ,
81+ pub last_page_token : String ,
82+ pub page_index : i32 ,
83+ }
84+
85+ #[ derive( Debug , Serialize , Clone , Deserialize , PartialEq ) ]
86+ pub struct ListQuarantinedTestsRequest {
87+ pub repo : RepoUrlParts ,
88+ #[ serde( rename = "orgUrlSlug" ) ]
89+ pub org_url_slug : String ,
90+ #[ serde( rename = "pageQuery" ) ]
91+ pub page_query : PageQuery ,
92+ }
93+
94+ #[ derive( Debug , Serialize , Clone , Deserialize , PartialEq ) ]
95+ pub enum QuarantineSetting {
96+ #[ serde( rename = "ALWAYS_QUARANTINE" ) ]
97+ AlwaysQuarantine ,
98+ #[ serde( rename = "AUTO_QUARANTINE" ) ]
99+ AutoQuarantine ,
100+ }
101+
102+ #[ derive( Debug , Serialize , Clone , Deserialize , PartialEq ) ]
103+ pub struct QuarantinedTest {
104+ pub name : String ,
105+ pub parent : Option < String > ,
106+ pub file : Option < String > ,
107+ #[ serde( rename = "className" ) ]
108+ pub class_name : Option < String > ,
109+ pub status : String ,
110+ pub quarantine_setting : QuarantineSetting ,
111+ pub test_case_id : String ,
112+ }
113+
114+ #[ derive( Debug , Serialize , Clone , Deserialize , PartialEq ) ]
115+ pub struct ListQuarantinedTestsResponse {
116+ pub quarantined_tests : Vec < QuarantinedTest > ,
117+ pub page : Page ,
118+ }
0 commit comments