@distilled.cloud/azure 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/lib/services/app.d.ts +551 -0
  2. package/lib/services/app.d.ts.map +1 -1
  3. package/lib/services/app.js +788 -0
  4. package/lib/services/app.js.map +1 -1
  5. package/lib/services/applicationinsights.d.ts +56 -85
  6. package/lib/services/applicationinsights.d.ts.map +1 -1
  7. package/lib/services/applicationinsights.js +56 -120
  8. package/lib/services/applicationinsights.js.map +1 -1
  9. package/lib/services/authorization.d.ts +61 -243
  10. package/lib/services/authorization.d.ts.map +1 -1
  11. package/lib/services/authorization.js +61 -303
  12. package/lib/services/authorization.js.map +1 -1
  13. package/lib/services/automation.d.ts +764 -1010
  14. package/lib/services/automation.d.ts.map +1 -1
  15. package/lib/services/automation.js +764 -1070
  16. package/lib/services/automation.js.map +1 -1
  17. package/lib/services/azure-kusto.d.ts +440 -166
  18. package/lib/services/azure-kusto.d.ts.map +1 -1
  19. package/lib/services/azure-kusto.js +440 -166
  20. package/lib/services/azure-kusto.js.map +1 -1
  21. package/lib/services/batch.d.ts +1 -1
  22. package/lib/services/batch.js +1 -1
  23. package/lib/services/batch.js.map +1 -1
  24. package/lib/services/cognitiveservices.d.ts +2 -0
  25. package/lib/services/cognitiveservices.d.ts.map +1 -1
  26. package/lib/services/cognitiveservices.js +3 -1
  27. package/lib/services/cognitiveservices.js.map +1 -1
  28. package/lib/services/computelimit.d.ts +188 -0
  29. package/lib/services/computelimit.d.ts.map +1 -1
  30. package/lib/services/computelimit.js +236 -0
  31. package/lib/services/computelimit.js.map +1 -1
  32. package/lib/services/containerinstance.d.ts +210 -1291
  33. package/lib/services/containerinstance.d.ts.map +1 -1
  34. package/lib/services/containerinstance.js +250 -1355
  35. package/lib/services/containerinstance.js.map +1 -1
  36. package/lib/services/databricks.d.ts +111 -187
  37. package/lib/services/databricks.d.ts.map +1 -1
  38. package/lib/services/databricks.js +111 -220
  39. package/lib/services/databricks.js.map +1 -1
  40. package/lib/services/desktopvirtualization.d.ts +51 -575
  41. package/lib/services/desktopvirtualization.d.ts.map +1 -1
  42. package/lib/services/desktopvirtualization.js +56 -590
  43. package/lib/services/desktopvirtualization.js.map +1 -1
  44. package/lib/services/imagebuilder.d.ts +129 -15
  45. package/lib/services/imagebuilder.d.ts.map +1 -1
  46. package/lib/services/imagebuilder.js +129 -15
  47. package/lib/services/imagebuilder.js.map +1 -1
  48. package/lib/services/index.d.ts +2 -0
  49. package/lib/services/index.d.ts.map +1 -1
  50. package/lib/services/index.js +2 -0
  51. package/lib/services/index.js.map +1 -1
  52. package/lib/services/managednetworkfabric.d.ts +4283 -693
  53. package/lib/services/managednetworkfabric.d.ts.map +1 -1
  54. package/lib/services/managednetworkfabric.js +4833 -828
  55. package/lib/services/managednetworkfabric.js.map +1 -1
  56. package/lib/services/monitor.d.ts +81 -73
  57. package/lib/services/monitor.d.ts.map +1 -1
  58. package/lib/services/monitor.js +91 -88
  59. package/lib/services/monitor.js.map +1 -1
  60. package/lib/services/monitoringservice.d.ts +149 -0
  61. package/lib/services/monitoringservice.d.ts.map +1 -0
  62. package/lib/services/monitoringservice.js +216 -0
  63. package/lib/services/monitoringservice.js.map +1 -0
  64. package/lib/services/network.d.ts +4513 -3857
  65. package/lib/services/network.d.ts.map +1 -1
  66. package/lib/services/network.js +4544 -4056
  67. package/lib/services/network.js.map +1 -1
  68. package/lib/services/orbitalplanetarycomputer.d.ts +131 -0
  69. package/lib/services/orbitalplanetarycomputer.d.ts.map +1 -0
  70. package/lib/services/orbitalplanetarycomputer.js +183 -0
  71. package/lib/services/orbitalplanetarycomputer.js.map +1 -0
  72. package/lib/services/recoveryservicesbackup.d.ts +24 -312
  73. package/lib/services/recoveryservicesbackup.d.ts.map +1 -1
  74. package/lib/services/recoveryservicesbackup.js +24 -312
  75. package/lib/services/recoveryservicesbackup.js.map +1 -1
  76. package/lib/services/redhatopenshift.d.ts +9 -11
  77. package/lib/services/redhatopenshift.d.ts.map +1 -1
  78. package/lib/services/redhatopenshift.js +9 -11
  79. package/lib/services/redhatopenshift.js.map +1 -1
  80. package/lib/services/reservations.d.ts +159 -239
  81. package/lib/services/reservations.d.ts.map +1 -1
  82. package/lib/services/reservations.js +159 -369
  83. package/lib/services/reservations.js.map +1 -1
  84. package/lib/services/resourcegraph.d.ts +64 -30
  85. package/lib/services/resourcegraph.d.ts.map +1 -1
  86. package/lib/services/resourcegraph.js +74 -30
  87. package/lib/services/resourcegraph.js.map +1 -1
  88. package/lib/services/resources.d.ts +549 -3331
  89. package/lib/services/resources.d.ts.map +1 -1
  90. package/lib/services/resources.js +1029 -4846
  91. package/lib/services/resources.js.map +1 -1
  92. package/lib/services/search.d.ts +9 -2
  93. package/lib/services/search.d.ts.map +1 -1
  94. package/lib/services/search.js +9 -2
  95. package/lib/services/search.js.map +1 -1
  96. package/lib/services/sql.d.ts +4008 -2495
  97. package/lib/services/sql.d.ts.map +1 -1
  98. package/lib/services/sql.js +4208 -2521
  99. package/lib/services/sql.js.map +1 -1
  100. package/lib/services/storage.d.ts +4 -20
  101. package/lib/services/storage.d.ts.map +1 -1
  102. package/lib/services/storage.js +4 -20
  103. package/lib/services/storage.js.map +1 -1
  104. package/lib/services/storageactions.d.ts +18 -0
  105. package/lib/services/storageactions.d.ts.map +1 -1
  106. package/lib/services/storageactions.js +28 -0
  107. package/lib/services/storageactions.js.map +1 -1
  108. package/lib/services/storagecache.d.ts +288 -752
  109. package/lib/services/storagecache.d.ts.map +1 -1
  110. package/lib/services/storagecache.js +312 -930
  111. package/lib/services/storagecache.js.map +1 -1
  112. package/package.json +4 -4
  113. package/src/services/app.ts +1014 -0
  114. package/src/services/applicationinsights.ts +56 -169
  115. package/src/services/authorization.ts +65 -397
  116. package/src/services/automation.ts +1179 -1686
  117. package/src/services/azure-kusto.ts +494 -228
  118. package/src/services/batch.ts +1 -1
  119. package/src/services/cognitiveservices.ts +3 -1
  120. package/src/services/computelimit.ts +310 -0
  121. package/src/services/containerinstance.ts +1393 -3134
  122. package/src/services/databricks.ts +125 -294
  123. package/src/services/desktopvirtualization.ts +83 -859
  124. package/src/services/imagebuilder.ts +129 -21
  125. package/src/services/index.ts +2 -0
  126. package/src/services/managednetworkfabric.ts +7141 -1408
  127. package/src/services/monitor.ts +134 -136
  128. package/src/services/monitoringservice.ts +287 -0
  129. package/src/services/network.ts +5738 -6158
  130. package/src/services/orbitalplanetarycomputer.ts +233 -0
  131. package/src/services/recoveryservicesbackup.ts +26 -456
  132. package/src/services/redhatopenshift.ts +26 -34
  133. package/src/services/reservations.ts +209 -553
  134. package/src/services/resourcegraph.ts +123 -55
  135. package/src/services/resources.ts +1852 -8168
  136. package/src/services/search.ts +9 -2
  137. package/src/services/sql.ts +4552 -2757
  138. package/src/services/storage.ts +4 -22
  139. package/src/services/storageactions.ts +36 -0
  140. package/src/services/storagecache.ts +312 -1303
@@ -9,7 +9,9 @@ import { API } from "../client.js";
9
9
  import * as T from "../traits.js";
10
10
  // Input Schema
11
11
  export const CalculateExchangePostInput =
12
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
12
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ "api-version": Schema.String,
14
+ }).pipe(T.Http({
13
15
  method: "POST",
14
16
  path: "/providers/Microsoft.Capacity/calculateExchange",
15
17
  }));
@@ -170,6 +172,8 @@ export const CalculateExchangePostOutput =
170
172
  * Calculates the refund amounts and price of the new purchases.
171
173
  *
172
174
  * Calculates price for exchanging `Reservations` if there are no policy errors.
175
+ *
176
+ * @param api-version - The API version to use for this operation.
173
177
  */
174
178
  export const CalculateExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
175
179
  inputSchema: CalculateExchangePostInput,
@@ -177,7 +181,10 @@ export const CalculateExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(() =>
177
181
  }));
178
182
  // Input Schema
179
183
  export const CalculateRefundPostInput =
180
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
184
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
185
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
186
+ "api-version": Schema.String,
187
+ }).pipe(T.Http({
181
188
  method: "POST",
182
189
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund",
183
190
  }));
@@ -295,13 +302,18 @@ export const CalculateRefundPostOutput =
295
302
  * Calculate the refund amount of a reservation order.
296
303
  *
297
304
  * Calculate price for returning `Reservations` if there are no policy errors.
305
+ *
306
+ * @param api-version - The API version to use for this operation.
307
+ * @param reservationOrderId - Order Id of the reservation
298
308
  */
299
309
  export const CalculateRefundPost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
300
310
  inputSchema: CalculateRefundPostInput,
301
311
  outputSchema: CalculateRefundPostOutput,
302
312
  }));
303
313
  // Input Schema
304
- export const ExchangePostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "POST", path: "/providers/Microsoft.Capacity/exchange" }));
314
+ export const ExchangePostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
315
+ "api-version": Schema.String,
316
+ }).pipe(T.Http({ method: "POST", path: "/providers/Microsoft.Capacity/exchange" }));
305
317
  // Output Schema
306
318
  export const ExchangePostOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
307
319
  id: Schema.optional(Schema.String),
@@ -463,6 +475,8 @@ export const ExchangePostOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
463
475
  * Exchange Reservation(s)
464
476
  *
465
477
  * Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
478
+ *
479
+ * @param api-version - The API version to use for this operation.
466
480
  */
467
481
  export const ExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
468
482
  inputSchema: ExchangePostInput,
@@ -470,7 +484,10 @@ export const ExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
470
484
  }));
471
485
  // Input Schema
472
486
  export const GetAppliedReservationListInput =
473
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
487
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
488
+ subscriptionId: Schema.String.pipe(T.PathParam()),
489
+ "api-version": Schema.String,
490
+ }).pipe(T.Http({
474
491
  method: "GET",
475
492
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations",
476
493
  }));
@@ -492,6 +509,9 @@ export const GetAppliedReservationListOutput =
492
509
  * Get list of applicable `Reservation`s.
493
510
  *
494
511
  * Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
512
+ *
513
+ * @param api-version - The API version to use for this operation.
514
+ * @param subscriptionId - The ID of the target subscription. The value must be an UUID.
495
515
  */
496
516
  export const GetAppliedReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
497
517
  inputSchema: GetAppliedReservationListInput,
@@ -499,6 +519,10 @@ export const GetAppliedReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(()
499
519
  }));
500
520
  // Input Schema
501
521
  export const GetCatalogInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
522
+ subscriptionId: Schema.String.pipe(T.PathParam()),
523
+ "api-version": Schema.String,
524
+ reservedResourceType: Schema.optional(Schema.String),
525
+ location: Schema.optional(Schema.String),
502
526
  publisherId: Schema.optional(Schema.String),
503
527
  offerId: Schema.optional(Schema.String),
504
528
  planId: Schema.optional(Schema.String),
@@ -511,7 +535,7 @@ export const GetCatalogInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
511
535
  }));
512
536
  // Output Schema
513
537
  export const GetCatalogOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
514
- value: Schema.optional(Schema.Array(Schema.Struct({
538
+ value: Schema.Array(Schema.Struct({
515
539
  resourceType: Schema.optional(Schema.String),
516
540
  name: Schema.optional(Schema.String),
517
541
  billingPlans: Schema.optional(Schema.Record(Schema.String, Schema.Array(Schema.Literals(["Upfront", "Monthly"])))),
@@ -546,7 +570,7 @@ export const GetCatalogOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
546
570
  name: Schema.optional(Schema.String),
547
571
  value: Schema.optional(Schema.String),
548
572
  }))),
549
- }))),
573
+ })),
550
574
  nextLink: Schema.optional(Schema.String),
551
575
  totalItems: Schema.optional(Schema.Number),
552
576
  });
@@ -554,6 +578,10 @@ export const GetCatalogOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
554
578
  /**
555
579
  * Get the regions and skus that are available for RI purchase for the specified Azure subscription.
556
580
  *
581
+ * @param api-version - The API version to use for this operation.
582
+ * @param subscriptionId - The ID of the target subscription. The value must be an UUID.
583
+ * @param reservedResourceType - The type of the resource for which the skus should be provided.
584
+ * @param location - Filters the skus based on the location specified in this parameter. This can be an azure region or global
557
585
  * @param publisherId - Publisher id used to get the third party products
558
586
  * @param offerId - Offer id used to get the third party products
559
587
  * @param planId - Plan id used to get the third party products
@@ -566,7 +594,9 @@ export const GetCatalog = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
566
594
  outputSchema: GetCatalogOutput,
567
595
  }));
568
596
  // Input Schema
569
- export const OperationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/providers/Microsoft.Capacity/operations" }));
597
+ export const OperationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
598
+ "api-version": Schema.String,
599
+ }).pipe(T.Http({ method: "GET", path: "/providers/Microsoft.Capacity/operations" }));
570
600
  // Output Schema
571
601
  export const OperationListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
572
602
  value: Schema.optional(Schema.Array(Schema.Struct({
@@ -588,6 +618,8 @@ export const OperationListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
588
618
  * Get operations.
589
619
  *
590
620
  * List all the operations.
621
+ *
622
+ * @param api-version - The API version to use for this operation.
591
623
  */
592
624
  export const OperationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
593
625
  inputSchema: OperationListInput,
@@ -595,7 +627,11 @@ export const OperationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
595
627
  }));
596
628
  // Input Schema
597
629
  export const ReservationArchiveInput =
598
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
630
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
631
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
632
+ reservationId: Schema.String.pipe(T.PathParam()),
633
+ "api-version": Schema.String,
634
+ }).pipe(T.Http({
599
635
  method: "POST",
600
636
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/archive",
601
637
  }));
@@ -606,6 +642,10 @@ export const ReservationArchiveOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
606
642
  * Archive a `Reservation`.
607
643
  *
608
644
  * Archiving a `Reservation` moves it to `Archived` state.
645
+ *
646
+ * @param api-version - The API version to use for this operation.
647
+ * @param reservationOrderId - Order Id of the reservation
648
+ * @param reservationId - Id of the reservation item
609
649
  */
610
650
  export const ReservationArchive = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
611
651
  inputSchema: ReservationArchiveInput,
@@ -613,7 +653,11 @@ export const ReservationArchive = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
613
653
  }));
614
654
  // Input Schema
615
655
  export const ReservationAvailableScopesInput =
616
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
656
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
657
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
658
+ reservationId: Schema.String.pipe(T.PathParam()),
659
+ "api-version": Schema.String,
660
+ }).pipe(T.Http({
617
661
  method: "POST",
618
662
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes",
619
663
  }));
@@ -632,13 +676,22 @@ export const ReservationAvailableScopesOutput =
632
676
  * Get Available Scopes for `Reservation`.
633
677
  *
634
678
  * Check whether the scopes from request is valid for `Reservation`.
679
+ *
680
+ * @param api-version - The API version to use for this operation.
681
+ * @param reservationOrderId - Order Id of the reservation
682
+ * @param reservationId - Id of the reservation item
635
683
  */
636
684
  export const ReservationAvailableScopes = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
637
685
  inputSchema: ReservationAvailableScopesInput,
638
686
  outputSchema: ReservationAvailableScopesOutput,
639
687
  }));
640
688
  // Input Schema
641
- export const ReservationGetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
689
+ export const ReservationGetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
690
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
691
+ reservationId: Schema.String.pipe(T.PathParam()),
692
+ "api-version": Schema.String,
693
+ $expand: Schema.optional(Schema.String),
694
+ }).pipe(T.Http({
642
695
  method: "GET",
643
696
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}",
644
697
  }));
@@ -649,19 +702,27 @@ export const ReservationGetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}
649
702
  * Get `Reservation` details.
650
703
  *
651
704
  * Get specific `Reservation` details.
705
+ *
706
+ * @param api-version - The API version to use for this operation.
707
+ * @param reservationOrderId - Order Id of the reservation
708
+ * @param reservationId - Id of the reservation item
709
+ * @param $expand - Supported value of this query is renewProperties
652
710
  */
653
711
  export const ReservationGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
654
712
  inputSchema: ReservationGetInput,
655
713
  outputSchema: ReservationGetOutput,
656
714
  }));
657
715
  // Input Schema
658
- export const ReservationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
716
+ export const ReservationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
717
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
718
+ "api-version": Schema.String,
719
+ }).pipe(T.Http({
659
720
  method: "GET",
660
721
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations",
661
722
  }));
662
723
  // Output Schema
663
724
  export const ReservationListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
664
- value: Schema.optional(Schema.Array(Schema.Struct({}))),
725
+ value: Schema.Array(Schema.Struct({})),
665
726
  nextLink: Schema.optional(Schema.String),
666
727
  });
667
728
  // The operation
@@ -669,6 +730,9 @@ export const ReservationListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
669
730
  * Get `Reservation`s in a given reservation Order
670
731
  *
671
732
  * List `Reservation`s within a single `ReservationOrder`.
733
+ *
734
+ * @param api-version - The API version to use for this operation.
735
+ * @param reservationOrderId - Order Id of the reservation
672
736
  */
673
737
  export const ReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
674
738
  inputSchema: ReservationListInput,
@@ -677,6 +741,7 @@ export const ReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
677
741
  // Input Schema
678
742
  export const ReservationListAllInput =
679
743
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
744
+ "api-version": Schema.String,
680
745
  $filter: Schema.optional(Schema.String),
681
746
  $orderby: Schema.optional(Schema.String),
682
747
  refreshSummary: Schema.optional(Schema.String),
@@ -708,6 +773,7 @@ export const ReservationListAllOutput =
708
773
  /**
709
774
  * List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.
710
775
  *
776
+ * @param api-version - The API version to use for this operation.
711
777
  * @param $filter - May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. Reservation properties include sku/name, properties/{appliedScopeType, archived, displayName, displayProvisioningState, effectiveDateTime, expiryDate, expiryDateTime, provisioningState, quantity, renew, reservedResourceType, term, userFriendlyAppliedScopeType, userFriendlyRenewState}
712
778
  * @param $orderby - May be used to sort order by reservation properties.
713
779
  * @param refreshSummary - To indicate whether to refresh the roll up counts of the reservations group by provisioning states
@@ -721,14 +787,18 @@ export const ReservationListAll = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
721
787
  }));
722
788
  // Input Schema
723
789
  export const ReservationListRevisionsInput =
724
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
790
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
791
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
792
+ reservationId: Schema.String.pipe(T.PathParam()),
793
+ "api-version": Schema.String,
794
+ }).pipe(T.Http({
725
795
  method: "GET",
726
796
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions",
727
797
  }));
728
798
  // Output Schema
729
799
  export const ReservationListRevisionsOutput =
730
800
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
731
- value: Schema.optional(Schema.Array(Schema.Struct({}))),
801
+ value: Schema.Array(Schema.Struct({})),
732
802
  nextLink: Schema.optional(Schema.String),
733
803
  });
734
804
  // The operation
@@ -736,13 +806,20 @@ export const ReservationListRevisionsOutput =
736
806
  * Get `Reservation` revisions.
737
807
  *
738
808
  * List of all the revisions for the `Reservation`.
809
+ *
810
+ * @param api-version - The API version to use for this operation.
811
+ * @param reservationOrderId - Order Id of the reservation
812
+ * @param reservationId - Id of the reservation item
739
813
  */
740
814
  export const ReservationListRevisions = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
741
815
  inputSchema: ReservationListRevisionsInput,
742
816
  outputSchema: ReservationListRevisionsOutput,
743
817
  }));
744
818
  // Input Schema
745
- export const ReservationMergeInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
819
+ export const ReservationMergeInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
820
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
821
+ "api-version": Schema.String,
822
+ }).pipe(T.Http({
746
823
  method: "POST",
747
824
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge",
748
825
  }));
@@ -753,6 +830,9 @@ export const ReservationMergeOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(S
753
830
  * Merges two `Reservation`s.
754
831
  *
755
832
  * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
833
+ *
834
+ * @param api-version - The API version to use for this operation.
835
+ * @param reservationOrderId - Order Id of the reservation
756
836
  */
757
837
  export const ReservationMerge = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
758
838
  inputSchema: ReservationMergeInput,
@@ -760,7 +840,9 @@ export const ReservationMerge = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
760
840
  }));
761
841
  // Input Schema
762
842
  export const ReservationOrderCalculateInput =
763
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
843
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
844
+ "api-version": Schema.String,
845
+ }).pipe(T.Http({
764
846
  method: "POST",
765
847
  path: "/providers/Microsoft.Capacity/calculatePrice",
766
848
  }));
@@ -825,6 +907,8 @@ export const ReservationOrderCalculateOutput =
825
907
  * Calculate price for a `ReservationOrder`.
826
908
  *
827
909
  * Calculate price for placing a `ReservationOrder`.
910
+ *
911
+ * @param api-version - The API version to use for this operation.
828
912
  */
829
913
  export const ReservationOrderCalculate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
830
914
  inputSchema: ReservationOrderCalculateInput,
@@ -832,7 +916,10 @@ export const ReservationOrderCalculate = /*@__PURE__*/ /*#__PURE__*/ API.make(()
832
916
  }));
833
917
  // Input Schema
834
918
  export const ReservationOrderChangeDirectoryInput =
835
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
919
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
920
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
921
+ "api-version": Schema.String,
922
+ }).pipe(T.Http({
836
923
  method: "POST",
837
924
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory",
838
925
  }));
@@ -857,6 +944,9 @@ export const ReservationOrderChangeDirectoryOutput =
857
944
  * Change directory of `ReservationOrder`.
858
945
  *
859
946
  * Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
947
+ *
948
+ * @param api-version - The API version to use for this operation.
949
+ * @param reservationOrderId - Order Id of the reservation
860
950
  */
861
951
  export const ReservationOrderChangeDirectory =
862
952
  /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
@@ -866,6 +956,8 @@ export const ReservationOrderChangeDirectory =
866
956
  // Input Schema
867
957
  export const ReservationOrderGetInput =
868
958
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
959
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
960
+ "api-version": Schema.String,
869
961
  $expand: Schema.optional(Schema.String),
870
962
  }).pipe(T.Http({
871
963
  method: "GET",
@@ -873,96 +965,15 @@ export const ReservationOrderGetInput =
873
965
  }));
874
966
  // Output Schema
875
967
  export const ReservationOrderGetOutput =
876
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
877
- etag: Schema.optional(Schema.Number),
878
- id: Schema.optional(Schema.String),
879
- name: Schema.optional(Schema.String),
880
- properties: Schema.optional(Schema.Struct({
881
- displayName: Schema.optional(Schema.String),
882
- requestDateTime: Schema.optional(Schema.String),
883
- createdDateTime: Schema.optional(Schema.String),
884
- expiryDate: Schema.optional(Schema.String),
885
- expiryDateTime: Schema.optional(Schema.String),
886
- benefitStartTime: Schema.optional(Schema.String),
887
- originalQuantity: Schema.optional(Schema.Number),
888
- term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
889
- provisioningState: Schema.optional(Schema.Literals([
890
- "Creating",
891
- "PendingResourceHold",
892
- "ConfirmedResourceHold",
893
- "PendingBilling",
894
- "ConfirmedBilling",
895
- "Created",
896
- "Succeeded",
897
- "Cancelled",
898
- "Expired",
899
- "BillingFailed",
900
- "Failed",
901
- "Split",
902
- "Merged",
903
- ])),
904
- billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
905
- planInformation: Schema.optional(Schema.Struct({
906
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
907
- currencyCode: Schema.optional(Schema.String),
908
- amount: Schema.optional(Schema.Number),
909
- })),
910
- startDate: Schema.optional(Schema.String),
911
- nextPaymentDueDate: Schema.optional(Schema.String),
912
- transactions: Schema.optional(Schema.Array(Schema.Struct({
913
- dueDate: Schema.optional(Schema.String),
914
- paymentDate: Schema.optional(Schema.String),
915
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
916
- currencyCode: Schema.optional(Schema.String),
917
- amount: Schema.optional(Schema.Number),
918
- })),
919
- billingCurrencyTotal: Schema.optional(Schema.Struct({
920
- currencyCode: Schema.optional(Schema.String),
921
- amount: Schema.optional(Schema.Number),
922
- })),
923
- billingAccount: Schema.optional(Schema.String),
924
- status: Schema.optional(Schema.Literals([
925
- "Succeeded",
926
- "Failed",
927
- "Scheduled",
928
- "Cancelled",
929
- ])),
930
- extendedStatusInfo: Schema.optional(Schema.Struct({
931
- statusCode: Schema.optional(Schema.Literals([
932
- "None",
933
- "Pending",
934
- "Processing",
935
- "Active",
936
- "PurchaseError",
937
- "PaymentInstrumentError",
938
- "Split",
939
- "Merged",
940
- "Expired",
941
- "Succeeded",
942
- ])),
943
- message: Schema.optional(Schema.String),
944
- })),
945
- }))),
946
- })),
947
- reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
948
- reviewDateTime: Schema.optional(Schema.String),
949
- })),
950
- type: Schema.optional(Schema.String),
951
- systemData: Schema.optional(Schema.Struct({
952
- createdBy: Schema.optional(Schema.String),
953
- createdByType: Schema.optional(Schema.Literals(["User", "Application", "ManagedIdentity", "Key"])),
954
- createdAt: Schema.optional(Schema.String),
955
- lastModifiedBy: Schema.optional(Schema.String),
956
- lastModifiedByType: Schema.optional(Schema.Literals(["User", "Application", "ManagedIdentity", "Key"])),
957
- lastModifiedAt: Schema.optional(Schema.String),
958
- })),
959
- });
968
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
960
969
  // The operation
961
970
  /**
962
971
  * Get a specific `ReservationOrder`.
963
972
  *
964
973
  * Get the details of the `ReservationOrder`.
965
974
  *
975
+ * @param api-version - The API version to use for this operation.
976
+ * @param reservationOrderId - Order Id of the reservation
966
977
  * @param $expand - May be used to expand the planInformation.
967
978
  */
968
979
  export const ReservationOrderGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
@@ -971,107 +982,16 @@ export const ReservationOrderGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
971
982
  }));
972
983
  // Input Schema
973
984
  export const ReservationOrderListInput =
974
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
985
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
986
+ "api-version": Schema.String,
987
+ }).pipe(T.Http({
975
988
  method: "GET",
976
989
  path: "/providers/Microsoft.Capacity/reservationOrders",
977
990
  }));
978
991
  // Output Schema
979
992
  export const ReservationOrderListOutput =
980
993
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
981
- value: Schema.optional(Schema.Array(Schema.Struct({
982
- etag: Schema.optional(Schema.Number),
983
- id: Schema.optional(Schema.String),
984
- name: Schema.optional(Schema.String),
985
- properties: Schema.optional(Schema.Struct({
986
- displayName: Schema.optional(Schema.String),
987
- requestDateTime: Schema.optional(Schema.String),
988
- createdDateTime: Schema.optional(Schema.String),
989
- expiryDate: Schema.optional(Schema.String),
990
- expiryDateTime: Schema.optional(Schema.String),
991
- benefitStartTime: Schema.optional(Schema.String),
992
- originalQuantity: Schema.optional(Schema.Number),
993
- term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
994
- provisioningState: Schema.optional(Schema.Literals([
995
- "Creating",
996
- "PendingResourceHold",
997
- "ConfirmedResourceHold",
998
- "PendingBilling",
999
- "ConfirmedBilling",
1000
- "Created",
1001
- "Succeeded",
1002
- "Cancelled",
1003
- "Expired",
1004
- "BillingFailed",
1005
- "Failed",
1006
- "Split",
1007
- "Merged",
1008
- ])),
1009
- billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
1010
- planInformation: Schema.optional(Schema.Struct({
1011
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
1012
- currencyCode: Schema.optional(Schema.String),
1013
- amount: Schema.optional(Schema.Number),
1014
- })),
1015
- startDate: Schema.optional(Schema.String),
1016
- nextPaymentDueDate: Schema.optional(Schema.String),
1017
- transactions: Schema.optional(Schema.Array(Schema.Struct({
1018
- dueDate: Schema.optional(Schema.String),
1019
- paymentDate: Schema.optional(Schema.String),
1020
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
1021
- currencyCode: Schema.optional(Schema.String),
1022
- amount: Schema.optional(Schema.Number),
1023
- })),
1024
- billingCurrencyTotal: Schema.optional(Schema.Struct({
1025
- currencyCode: Schema.optional(Schema.String),
1026
- amount: Schema.optional(Schema.Number),
1027
- })),
1028
- billingAccount: Schema.optional(Schema.String),
1029
- status: Schema.optional(Schema.Literals([
1030
- "Succeeded",
1031
- "Failed",
1032
- "Scheduled",
1033
- "Cancelled",
1034
- ])),
1035
- extendedStatusInfo: Schema.optional(Schema.Struct({
1036
- statusCode: Schema.optional(Schema.Literals([
1037
- "None",
1038
- "Pending",
1039
- "Processing",
1040
- "Active",
1041
- "PurchaseError",
1042
- "PaymentInstrumentError",
1043
- "Split",
1044
- "Merged",
1045
- "Expired",
1046
- "Succeeded",
1047
- ])),
1048
- message: Schema.optional(Schema.String),
1049
- })),
1050
- }))),
1051
- })),
1052
- reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
1053
- reviewDateTime: Schema.optional(Schema.String),
1054
- })),
1055
- type: Schema.optional(Schema.String),
1056
- systemData: Schema.optional(Schema.Struct({
1057
- createdBy: Schema.optional(Schema.String),
1058
- createdByType: Schema.optional(Schema.Literals([
1059
- "User",
1060
- "Application",
1061
- "ManagedIdentity",
1062
- "Key",
1063
- ])),
1064
- createdAt: Schema.optional(Schema.String),
1065
- lastModifiedBy: Schema.optional(Schema.String),
1066
- lastModifiedByType: Schema.optional(Schema.Literals([
1067
- "User",
1068
- "Application",
1069
- "ManagedIdentity",
1070
- "Key",
1071
- ])),
1072
- lastModifiedAt: Schema.optional(Schema.String),
1073
- })),
1074
- }))),
994
+ value: Schema.Array(Schema.Struct({})),
1075
995
  nextLink: Schema.optional(Schema.String),
1076
996
  });
1077
997
  // The operation
@@ -1079,6 +999,8 @@ export const ReservationOrderListOutput =
1079
999
  * Get all `ReservationOrder`s.
1080
1000
  *
1081
1001
  * List of all the `ReservationOrder`s that the user has access to in the current tenant.
1002
+ *
1003
+ * @param api-version - The API version to use for this operation.
1082
1004
  */
1083
1005
  export const ReservationOrderList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1084
1006
  inputSchema: ReservationOrderListInput,
@@ -1086,108 +1008,34 @@ export const ReservationOrderList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => (
1086
1008
  }));
1087
1009
  // Input Schema
1088
1010
  export const ReservationOrderPurchaseInput =
1089
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
1011
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1012
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
1013
+ "api-version": Schema.String,
1014
+ }).pipe(T.Http({
1090
1015
  method: "PUT",
1091
1016
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}",
1092
1017
  }));
1093
1018
  // Output Schema
1094
1019
  export const ReservationOrderPurchaseOutput =
1095
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1096
- etag: Schema.optional(Schema.Number),
1097
- id: Schema.optional(Schema.String),
1098
- name: Schema.optional(Schema.String),
1099
- properties: Schema.optional(Schema.Struct({
1100
- displayName: Schema.optional(Schema.String),
1101
- requestDateTime: Schema.optional(Schema.String),
1102
- createdDateTime: Schema.optional(Schema.String),
1103
- expiryDate: Schema.optional(Schema.String),
1104
- expiryDateTime: Schema.optional(Schema.String),
1105
- benefitStartTime: Schema.optional(Schema.String),
1106
- originalQuantity: Schema.optional(Schema.Number),
1107
- term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
1108
- provisioningState: Schema.optional(Schema.Literals([
1109
- "Creating",
1110
- "PendingResourceHold",
1111
- "ConfirmedResourceHold",
1112
- "PendingBilling",
1113
- "ConfirmedBilling",
1114
- "Created",
1115
- "Succeeded",
1116
- "Cancelled",
1117
- "Expired",
1118
- "BillingFailed",
1119
- "Failed",
1120
- "Split",
1121
- "Merged",
1122
- ])),
1123
- billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
1124
- planInformation: Schema.optional(Schema.Struct({
1125
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
1126
- currencyCode: Schema.optional(Schema.String),
1127
- amount: Schema.optional(Schema.Number),
1128
- })),
1129
- startDate: Schema.optional(Schema.String),
1130
- nextPaymentDueDate: Schema.optional(Schema.String),
1131
- transactions: Schema.optional(Schema.Array(Schema.Struct({
1132
- dueDate: Schema.optional(Schema.String),
1133
- paymentDate: Schema.optional(Schema.String),
1134
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
1135
- currencyCode: Schema.optional(Schema.String),
1136
- amount: Schema.optional(Schema.Number),
1137
- })),
1138
- billingCurrencyTotal: Schema.optional(Schema.Struct({
1139
- currencyCode: Schema.optional(Schema.String),
1140
- amount: Schema.optional(Schema.Number),
1141
- })),
1142
- billingAccount: Schema.optional(Schema.String),
1143
- status: Schema.optional(Schema.Literals([
1144
- "Succeeded",
1145
- "Failed",
1146
- "Scheduled",
1147
- "Cancelled",
1148
- ])),
1149
- extendedStatusInfo: Schema.optional(Schema.Struct({
1150
- statusCode: Schema.optional(Schema.Literals([
1151
- "None",
1152
- "Pending",
1153
- "Processing",
1154
- "Active",
1155
- "PurchaseError",
1156
- "PaymentInstrumentError",
1157
- "Split",
1158
- "Merged",
1159
- "Expired",
1160
- "Succeeded",
1161
- ])),
1162
- message: Schema.optional(Schema.String),
1163
- })),
1164
- }))),
1165
- })),
1166
- reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
1167
- reviewDateTime: Schema.optional(Schema.String),
1168
- })),
1169
- type: Schema.optional(Schema.String),
1170
- systemData: Schema.optional(Schema.Struct({
1171
- createdBy: Schema.optional(Schema.String),
1172
- createdByType: Schema.optional(Schema.Literals(["User", "Application", "ManagedIdentity", "Key"])),
1173
- createdAt: Schema.optional(Schema.String),
1174
- lastModifiedBy: Schema.optional(Schema.String),
1175
- lastModifiedByType: Schema.optional(Schema.Literals(["User", "Application", "ManagedIdentity", "Key"])),
1176
- lastModifiedAt: Schema.optional(Schema.String),
1177
- })),
1178
- });
1020
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1179
1021
  // The operation
1180
1022
  /**
1181
1023
  * Purchase `ReservationOrder`
1182
1024
  *
1183
1025
  * Purchase `ReservationOrder` and create resource under the specified URI.
1026
+ *
1027
+ * @param api-version - The API version to use for this operation.
1028
+ * @param reservationOrderId - Order Id of the reservation
1184
1029
  */
1185
1030
  export const ReservationOrderPurchase = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1186
1031
  inputSchema: ReservationOrderPurchaseInput,
1187
1032
  outputSchema: ReservationOrderPurchaseOutput,
1188
1033
  }));
1189
1034
  // Input Schema
1190
- export const ReservationSplitInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
1035
+ export const ReservationSplitInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1036
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
1037
+ "api-version": Schema.String,
1038
+ }).pipe(T.Http({
1191
1039
  method: "POST",
1192
1040
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split",
1193
1041
  }));
@@ -1198,6 +1046,9 @@ export const ReservationSplitOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(S
1198
1046
  * Split the `Reservation`.
1199
1047
  *
1200
1048
  * Split a `Reservation` into two `Reservation`s with specified quantity distribution.
1049
+ *
1050
+ * @param api-version - The API version to use for this operation.
1051
+ * @param reservationOrderId - Order Id of the reservation
1201
1052
  */
1202
1053
  export const ReservationSplit = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1203
1054
  inputSchema: ReservationSplitInput,
@@ -1205,7 +1056,11 @@ export const ReservationSplit = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1205
1056
  }));
1206
1057
  // Input Schema
1207
1058
  export const ReservationUnarchiveInput =
1208
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
1059
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1060
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
1061
+ reservationId: Schema.String.pipe(T.PathParam()),
1062
+ "api-version": Schema.String,
1063
+ }).pipe(T.Http({
1209
1064
  method: "POST",
1210
1065
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/unarchive",
1211
1066
  }));
@@ -1217,13 +1072,21 @@ export const ReservationUnarchiveOutput =
1217
1072
  * Unarchive a `Reservation`.
1218
1073
  *
1219
1074
  * Restores a `Reservation` to the state it was before archiving.
1075
+ *
1076
+ * @param api-version - The API version to use for this operation.
1077
+ * @param reservationOrderId - Order Id of the reservation
1078
+ * @param reservationId - Id of the reservation item
1220
1079
  */
1221
1080
  export const ReservationUnarchive = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1222
1081
  inputSchema: ReservationUnarchiveInput,
1223
1082
  outputSchema: ReservationUnarchiveOutput,
1224
1083
  }));
1225
1084
  // Input Schema
1226
- export const ReservationUpdateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
1085
+ export const ReservationUpdateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1086
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
1087
+ reservationId: Schema.String.pipe(T.PathParam()),
1088
+ "api-version": Schema.String,
1089
+ }).pipe(T.Http({
1227
1090
  method: "PATCH",
1228
1091
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}",
1229
1092
  }));
@@ -1235,106 +1098,33 @@ export const ReservationUpdateOutput =
1235
1098
  * Updates a `Reservation`.
1236
1099
  *
1237
1100
  * Updates the applied scopes of the `Reservation`.
1101
+ *
1102
+ * @param api-version - The API version to use for this operation.
1103
+ * @param reservationOrderId - Order Id of the reservation
1104
+ * @param reservationId - Id of the reservation item
1238
1105
  */
1239
1106
  export const ReservationUpdate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1240
1107
  inputSchema: ReservationUpdateInput,
1241
1108
  outputSchema: ReservationUpdateOutput,
1242
1109
  }));
1243
1110
  // Input Schema
1244
- export const ReturnPostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
1111
+ export const ReturnPostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1112
+ reservationOrderId: Schema.String.pipe(T.PathParam()),
1113
+ "api-version": Schema.String,
1114
+ }).pipe(T.Http({
1245
1115
  method: "POST",
1246
1116
  path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return",
1247
1117
  }));
1248
1118
  // Output Schema
1249
- export const ReturnPostOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1250
- etag: Schema.optional(Schema.Number),
1251
- id: Schema.optional(Schema.String),
1252
- name: Schema.optional(Schema.String),
1253
- properties: Schema.optional(Schema.Struct({
1254
- displayName: Schema.optional(Schema.String),
1255
- requestDateTime: Schema.optional(Schema.String),
1256
- createdDateTime: Schema.optional(Schema.String),
1257
- expiryDate: Schema.optional(Schema.String),
1258
- expiryDateTime: Schema.optional(Schema.String),
1259
- benefitStartTime: Schema.optional(Schema.String),
1260
- originalQuantity: Schema.optional(Schema.Number),
1261
- term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
1262
- provisioningState: Schema.optional(Schema.Literals([
1263
- "Creating",
1264
- "PendingResourceHold",
1265
- "ConfirmedResourceHold",
1266
- "PendingBilling",
1267
- "ConfirmedBilling",
1268
- "Created",
1269
- "Succeeded",
1270
- "Cancelled",
1271
- "Expired",
1272
- "BillingFailed",
1273
- "Failed",
1274
- "Split",
1275
- "Merged",
1276
- ])),
1277
- billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
1278
- planInformation: Schema.optional(Schema.Struct({
1279
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
1280
- currencyCode: Schema.optional(Schema.String),
1281
- amount: Schema.optional(Schema.Number),
1282
- })),
1283
- startDate: Schema.optional(Schema.String),
1284
- nextPaymentDueDate: Schema.optional(Schema.String),
1285
- transactions: Schema.optional(Schema.Array(Schema.Struct({
1286
- dueDate: Schema.optional(Schema.String),
1287
- paymentDate: Schema.optional(Schema.String),
1288
- pricingCurrencyTotal: Schema.optional(Schema.Struct({
1289
- currencyCode: Schema.optional(Schema.String),
1290
- amount: Schema.optional(Schema.Number),
1291
- })),
1292
- billingCurrencyTotal: Schema.optional(Schema.Struct({
1293
- currencyCode: Schema.optional(Schema.String),
1294
- amount: Schema.optional(Schema.Number),
1295
- })),
1296
- billingAccount: Schema.optional(Schema.String),
1297
- status: Schema.optional(Schema.Literals([
1298
- "Succeeded",
1299
- "Failed",
1300
- "Scheduled",
1301
- "Cancelled",
1302
- ])),
1303
- extendedStatusInfo: Schema.optional(Schema.Struct({
1304
- statusCode: Schema.optional(Schema.Literals([
1305
- "None",
1306
- "Pending",
1307
- "Processing",
1308
- "Active",
1309
- "PurchaseError",
1310
- "PaymentInstrumentError",
1311
- "Split",
1312
- "Merged",
1313
- "Expired",
1314
- "Succeeded",
1315
- ])),
1316
- message: Schema.optional(Schema.String),
1317
- })),
1318
- }))),
1319
- })),
1320
- reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
1321
- reviewDateTime: Schema.optional(Schema.String),
1322
- })),
1323
- type: Schema.optional(Schema.String),
1324
- systemData: Schema.optional(Schema.Struct({
1325
- createdBy: Schema.optional(Schema.String),
1326
- createdByType: Schema.optional(Schema.Literals(["User", "Application", "ManagedIdentity", "Key"])),
1327
- createdAt: Schema.optional(Schema.String),
1328
- lastModifiedBy: Schema.optional(Schema.String),
1329
- lastModifiedByType: Schema.optional(Schema.Literals(["User", "Application", "ManagedIdentity", "Key"])),
1330
- lastModifiedAt: Schema.optional(Schema.String),
1331
- })),
1332
- });
1119
+ export const ReturnPostOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1333
1120
  // The operation
1334
1121
  /**
1335
1122
  * Return a reservation.
1336
1123
  *
1337
1124
  * Return a reservation and get refund information.
1125
+ *
1126
+ * @param api-version - The API version to use for this operation.
1127
+ * @param reservationOrderId - Order Id of the reservation
1338
1128
  */
1339
1129
  export const ReturnPost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1340
1130
  inputSchema: ReturnPostInput,