Skip to content

Commit 1ce04bd

Browse files
chore(internal): codegen related update
1 parent 7f05af6 commit 1ce04bd

28 files changed

+0
-570
lines changed

orb-java-core/src/main/kotlin/com/withorb/api/services/async/AlertServiceAsync.kt

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
package com.withorb.api.services.async
44

5-
import com.google.errorprone.annotations.MustBeClosed
65
import com.withorb.api.core.RequestOptions
76
import com.withorb.api.core.http.HttpResponseFor
87
import com.withorb.api.models.Alert
@@ -306,12 +305,10 @@ interface AlertServiceAsync {
306305
* Returns a raw HTTP response for `get /alerts/{alert_id}`, but is otherwise the same as
307306
* [AlertServiceAsync.retrieve].
308307
*/
309-
@MustBeClosed
310308
fun retrieve(alertId: String): CompletableFuture<HttpResponseFor<Alert>> =
311309
retrieve(alertId, AlertRetrieveParams.none())
312310

313311
/** @see [retrieve] */
314-
@MustBeClosed
315312
fun retrieve(
316313
alertId: String,
317314
params: AlertRetrieveParams = AlertRetrieveParams.none(),
@@ -320,27 +317,23 @@ interface AlertServiceAsync {
320317
retrieve(params.toBuilder().alertId(alertId).build(), requestOptions)
321318

322319
/** @see [retrieve] */
323-
@MustBeClosed
324320
fun retrieve(
325321
alertId: String,
326322
params: AlertRetrieveParams = AlertRetrieveParams.none(),
327323
): CompletableFuture<HttpResponseFor<Alert>> =
328324
retrieve(alertId, params, RequestOptions.none())
329325

330326
/** @see [retrieve] */
331-
@MustBeClosed
332327
fun retrieve(
333328
params: AlertRetrieveParams,
334329
requestOptions: RequestOptions = RequestOptions.none(),
335330
): CompletableFuture<HttpResponseFor<Alert>>
336331

337332
/** @see [retrieve] */
338-
@MustBeClosed
339333
fun retrieve(params: AlertRetrieveParams): CompletableFuture<HttpResponseFor<Alert>> =
340334
retrieve(params, RequestOptions.none())
341335

342336
/** @see [retrieve] */
343-
@MustBeClosed
344337
fun retrieve(
345338
alertId: String,
346339
requestOptions: RequestOptions,
@@ -351,15 +344,13 @@ interface AlertServiceAsync {
351344
* Returns a raw HTTP response for `put /alerts/{alert_configuration_id}`, but is otherwise
352345
* the same as [AlertServiceAsync.update].
353346
*/
354-
@MustBeClosed
355347
fun update(
356348
alertConfigurationId: String,
357349
params: AlertUpdateParams,
358350
): CompletableFuture<HttpResponseFor<Alert>> =
359351
update(alertConfigurationId, params, RequestOptions.none())
360352

361353
/** @see [update] */
362-
@MustBeClosed
363354
fun update(
364355
alertConfigurationId: String,
365356
params: AlertUpdateParams,
@@ -371,12 +362,10 @@ interface AlertServiceAsync {
371362
)
372363

373364
/** @see [update] */
374-
@MustBeClosed
375365
fun update(params: AlertUpdateParams): CompletableFuture<HttpResponseFor<Alert>> =
376366
update(params, RequestOptions.none())
377367

378368
/** @see [update] */
379-
@MustBeClosed
380369
fun update(
381370
params: AlertUpdateParams,
382371
requestOptions: RequestOptions = RequestOptions.none(),
@@ -386,26 +375,22 @@ interface AlertServiceAsync {
386375
* Returns a raw HTTP response for `get /alerts`, but is otherwise the same as
387376
* [AlertServiceAsync.list].
388377
*/
389-
@MustBeClosed
390378
fun list(): CompletableFuture<HttpResponseFor<AlertListPageAsync>> =
391379
list(AlertListParams.none())
392380

393381
/** @see [list] */
394-
@MustBeClosed
395382
fun list(
396383
params: AlertListParams = AlertListParams.none(),
397384
requestOptions: RequestOptions = RequestOptions.none(),
398385
): CompletableFuture<HttpResponseFor<AlertListPageAsync>>
399386

400387
/** @see [list] */
401-
@MustBeClosed
402388
fun list(
403389
params: AlertListParams = AlertListParams.none()
404390
): CompletableFuture<HttpResponseFor<AlertListPageAsync>> =
405391
list(params, RequestOptions.none())
406392

407393
/** @see [list] */
408-
@MustBeClosed
409394
fun list(
410395
requestOptions: RequestOptions
411396
): CompletableFuture<HttpResponseFor<AlertListPageAsync>> =
@@ -415,15 +400,13 @@ interface AlertServiceAsync {
415400
* Returns a raw HTTP response for `post /alerts/customer_id/{customer_id}`, but is
416401
* otherwise the same as [AlertServiceAsync.createForCustomer].
417402
*/
418-
@MustBeClosed
419403
fun createForCustomer(
420404
customerId: String,
421405
params: AlertCreateForCustomerParams,
422406
): CompletableFuture<HttpResponseFor<Alert>> =
423407
createForCustomer(customerId, params, RequestOptions.none())
424408

425409
/** @see [createForCustomer] */
426-
@MustBeClosed
427410
fun createForCustomer(
428411
customerId: String,
429412
params: AlertCreateForCustomerParams,
@@ -432,14 +415,12 @@ interface AlertServiceAsync {
432415
createForCustomer(params.toBuilder().customerId(customerId).build(), requestOptions)
433416

434417
/** @see [createForCustomer] */
435-
@MustBeClosed
436418
fun createForCustomer(
437419
params: AlertCreateForCustomerParams
438420
): CompletableFuture<HttpResponseFor<Alert>> =
439421
createForCustomer(params, RequestOptions.none())
440422

441423
/** @see [createForCustomer] */
442-
@MustBeClosed
443424
fun createForCustomer(
444425
params: AlertCreateForCustomerParams,
445426
requestOptions: RequestOptions = RequestOptions.none(),
@@ -450,15 +431,13 @@ interface AlertServiceAsync {
450431
* /alerts/external_customer_id/{external_customer_id}`, but is otherwise the same as
451432
* [AlertServiceAsync.createForExternalCustomer].
452433
*/
453-
@MustBeClosed
454434
fun createForExternalCustomer(
455435
externalCustomerId: String,
456436
params: AlertCreateForExternalCustomerParams,
457437
): CompletableFuture<HttpResponseFor<Alert>> =
458438
createForExternalCustomer(externalCustomerId, params, RequestOptions.none())
459439

460440
/** @see [createForExternalCustomer] */
461-
@MustBeClosed
462441
fun createForExternalCustomer(
463442
externalCustomerId: String,
464443
params: AlertCreateForExternalCustomerParams,
@@ -470,14 +449,12 @@ interface AlertServiceAsync {
470449
)
471450

472451
/** @see [createForExternalCustomer] */
473-
@MustBeClosed
474452
fun createForExternalCustomer(
475453
params: AlertCreateForExternalCustomerParams
476454
): CompletableFuture<HttpResponseFor<Alert>> =
477455
createForExternalCustomer(params, RequestOptions.none())
478456

479457
/** @see [createForExternalCustomer] */
480-
@MustBeClosed
481458
fun createForExternalCustomer(
482459
params: AlertCreateForExternalCustomerParams,
483460
requestOptions: RequestOptions = RequestOptions.none(),
@@ -487,15 +464,13 @@ interface AlertServiceAsync {
487464
* Returns a raw HTTP response for `post /alerts/subscription_id/{subscription_id}`, but is
488465
* otherwise the same as [AlertServiceAsync.createForSubscription].
489466
*/
490-
@MustBeClosed
491467
fun createForSubscription(
492468
subscriptionId: String,
493469
params: AlertCreateForSubscriptionParams,
494470
): CompletableFuture<HttpResponseFor<Alert>> =
495471
createForSubscription(subscriptionId, params, RequestOptions.none())
496472

497473
/** @see [createForSubscription] */
498-
@MustBeClosed
499474
fun createForSubscription(
500475
subscriptionId: String,
501476
params: AlertCreateForSubscriptionParams,
@@ -507,14 +482,12 @@ interface AlertServiceAsync {
507482
)
508483

509484
/** @see [createForSubscription] */
510-
@MustBeClosed
511485
fun createForSubscription(
512486
params: AlertCreateForSubscriptionParams
513487
): CompletableFuture<HttpResponseFor<Alert>> =
514488
createForSubscription(params, RequestOptions.none())
515489

516490
/** @see [createForSubscription] */
517-
@MustBeClosed
518491
fun createForSubscription(
519492
params: AlertCreateForSubscriptionParams,
520493
requestOptions: RequestOptions = RequestOptions.none(),
@@ -524,12 +497,10 @@ interface AlertServiceAsync {
524497
* Returns a raw HTTP response for `post /alerts/{alert_configuration_id}/disable`, but is
525498
* otherwise the same as [AlertServiceAsync.disable].
526499
*/
527-
@MustBeClosed
528500
fun disable(alertConfigurationId: String): CompletableFuture<HttpResponseFor<Alert>> =
529501
disable(alertConfigurationId, AlertDisableParams.none())
530502

531503
/** @see [disable] */
532-
@MustBeClosed
533504
fun disable(
534505
alertConfigurationId: String,
535506
params: AlertDisableParams = AlertDisableParams.none(),
@@ -541,27 +512,23 @@ interface AlertServiceAsync {
541512
)
542513

543514
/** @see [disable] */
544-
@MustBeClosed
545515
fun disable(
546516
alertConfigurationId: String,
547517
params: AlertDisableParams = AlertDisableParams.none(),
548518
): CompletableFuture<HttpResponseFor<Alert>> =
549519
disable(alertConfigurationId, params, RequestOptions.none())
550520

551521
/** @see [disable] */
552-
@MustBeClosed
553522
fun disable(
554523
params: AlertDisableParams,
555524
requestOptions: RequestOptions = RequestOptions.none(),
556525
): CompletableFuture<HttpResponseFor<Alert>>
557526

558527
/** @see [disable] */
559-
@MustBeClosed
560528
fun disable(params: AlertDisableParams): CompletableFuture<HttpResponseFor<Alert>> =
561529
disable(params, RequestOptions.none())
562530

563531
/** @see [disable] */
564-
@MustBeClosed
565532
fun disable(
566533
alertConfigurationId: String,
567534
requestOptions: RequestOptions,
@@ -572,12 +539,10 @@ interface AlertServiceAsync {
572539
* Returns a raw HTTP response for `post /alerts/{alert_configuration_id}/enable`, but is
573540
* otherwise the same as [AlertServiceAsync.enable].
574541
*/
575-
@MustBeClosed
576542
fun enable(alertConfigurationId: String): CompletableFuture<HttpResponseFor<Alert>> =
577543
enable(alertConfigurationId, AlertEnableParams.none())
578544

579545
/** @see [enable] */
580-
@MustBeClosed
581546
fun enable(
582547
alertConfigurationId: String,
583548
params: AlertEnableParams = AlertEnableParams.none(),
@@ -589,27 +554,23 @@ interface AlertServiceAsync {
589554
)
590555

591556
/** @see [enable] */
592-
@MustBeClosed
593557
fun enable(
594558
alertConfigurationId: String,
595559
params: AlertEnableParams = AlertEnableParams.none(),
596560
): CompletableFuture<HttpResponseFor<Alert>> =
597561
enable(alertConfigurationId, params, RequestOptions.none())
598562

599563
/** @see [enable] */
600-
@MustBeClosed
601564
fun enable(
602565
params: AlertEnableParams,
603566
requestOptions: RequestOptions = RequestOptions.none(),
604567
): CompletableFuture<HttpResponseFor<Alert>>
605568

606569
/** @see [enable] */
607-
@MustBeClosed
608570
fun enable(params: AlertEnableParams): CompletableFuture<HttpResponseFor<Alert>> =
609571
enable(params, RequestOptions.none())
610572

611573
/** @see [enable] */
612-
@MustBeClosed
613574
fun enable(
614575
alertConfigurationId: String,
615576
requestOptions: RequestOptions,

orb-java-core/src/main/kotlin/com/withorb/api/services/async/BetaServiceAsync.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
package com.withorb.api.services.async
44

5-
import com.google.errorprone.annotations.MustBeClosed
65
import com.withorb.api.core.RequestOptions
76
import com.withorb.api.core.http.HttpResponseFor
87
import com.withorb.api.models.BetaCreatePlanVersionParams
@@ -119,15 +118,13 @@ interface BetaServiceAsync {
119118
* Returns a raw HTTP response for `post /plans/{plan_id}/versions`, but is otherwise the
120119
* same as [BetaServiceAsync.createPlanVersion].
121120
*/
122-
@MustBeClosed
123121
fun createPlanVersion(
124122
planId: String,
125123
params: BetaCreatePlanVersionParams,
126124
): CompletableFuture<HttpResponseFor<PlanVersion>> =
127125
createPlanVersion(planId, params, RequestOptions.none())
128126

129127
/** @see [createPlanVersion] */
130-
@MustBeClosed
131128
fun createPlanVersion(
132129
planId: String,
133130
params: BetaCreatePlanVersionParams,
@@ -136,14 +133,12 @@ interface BetaServiceAsync {
136133
createPlanVersion(params.toBuilder().planId(planId).build(), requestOptions)
137134

138135
/** @see [createPlanVersion] */
139-
@MustBeClosed
140136
fun createPlanVersion(
141137
params: BetaCreatePlanVersionParams
142138
): CompletableFuture<HttpResponseFor<PlanVersion>> =
143139
createPlanVersion(params, RequestOptions.none())
144140

145141
/** @see [createPlanVersion] */
146-
@MustBeClosed
147142
fun createPlanVersion(
148143
params: BetaCreatePlanVersionParams,
149144
requestOptions: RequestOptions = RequestOptions.none(),
@@ -153,15 +148,13 @@ interface BetaServiceAsync {
153148
* Returns a raw HTTP response for `get /plans/{plan_id}/versions/{version}`, but is
154149
* otherwise the same as [BetaServiceAsync.fetchPlanVersion].
155150
*/
156-
@MustBeClosed
157151
fun fetchPlanVersion(
158152
version: String,
159153
params: BetaFetchPlanVersionParams,
160154
): CompletableFuture<HttpResponseFor<PlanVersion>> =
161155
fetchPlanVersion(version, params, RequestOptions.none())
162156

163157
/** @see [fetchPlanVersion] */
164-
@MustBeClosed
165158
fun fetchPlanVersion(
166159
version: String,
167160
params: BetaFetchPlanVersionParams,
@@ -170,14 +163,12 @@ interface BetaServiceAsync {
170163
fetchPlanVersion(params.toBuilder().version(version).build(), requestOptions)
171164

172165
/** @see [fetchPlanVersion] */
173-
@MustBeClosed
174166
fun fetchPlanVersion(
175167
params: BetaFetchPlanVersionParams
176168
): CompletableFuture<HttpResponseFor<PlanVersion>> =
177169
fetchPlanVersion(params, RequestOptions.none())
178170

179171
/** @see [fetchPlanVersion] */
180-
@MustBeClosed
181172
fun fetchPlanVersion(
182173
params: BetaFetchPlanVersionParams,
183174
requestOptions: RequestOptions = RequestOptions.none(),
@@ -187,15 +178,13 @@ interface BetaServiceAsync {
187178
* Returns a raw HTTP response for `post /plans/{plan_id}/set_default_version`, but is
188179
* otherwise the same as [BetaServiceAsync.setDefaultPlanVersion].
189180
*/
190-
@MustBeClosed
191181
fun setDefaultPlanVersion(
192182
planId: String,
193183
params: BetaSetDefaultPlanVersionParams,
194184
): CompletableFuture<HttpResponseFor<Plan>> =
195185
setDefaultPlanVersion(planId, params, RequestOptions.none())
196186

197187
/** @see [setDefaultPlanVersion] */
198-
@MustBeClosed
199188
fun setDefaultPlanVersion(
200189
planId: String,
201190
params: BetaSetDefaultPlanVersionParams,
@@ -204,14 +193,12 @@ interface BetaServiceAsync {
204193
setDefaultPlanVersion(params.toBuilder().planId(planId).build(), requestOptions)
205194

206195
/** @see [setDefaultPlanVersion] */
207-
@MustBeClosed
208196
fun setDefaultPlanVersion(
209197
params: BetaSetDefaultPlanVersionParams
210198
): CompletableFuture<HttpResponseFor<Plan>> =
211199
setDefaultPlanVersion(params, RequestOptions.none())
212200

213201
/** @see [setDefaultPlanVersion] */
214-
@MustBeClosed
215202
fun setDefaultPlanVersion(
216203
params: BetaSetDefaultPlanVersionParams,
217204
requestOptions: RequestOptions = RequestOptions.none(),

0 commit comments

Comments
 (0)