@distilled.cloud/azure 0.8.0 → 0.10.0
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.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +24 -24
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +2 -2
- package/lib/retry.js.map +1 -1
- package/lib/services/app.d.ts +551 -0
- package/lib/services/app.d.ts.map +1 -1
- package/lib/services/app.js +788 -0
- package/lib/services/app.js.map +1 -1
- package/lib/services/applicationinsights.d.ts +56 -85
- package/lib/services/applicationinsights.d.ts.map +1 -1
- package/lib/services/applicationinsights.js +56 -120
- package/lib/services/applicationinsights.js.map +1 -1
- package/lib/services/authorization.d.ts +61 -243
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +61 -303
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +764 -1010
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +764 -1070
- package/lib/services/automation.js.map +1 -1
- package/lib/services/azure-kusto.d.ts +440 -166
- package/lib/services/azure-kusto.d.ts.map +1 -1
- package/lib/services/azure-kusto.js +440 -166
- package/lib/services/azure-kusto.js.map +1 -1
- package/lib/services/batch.d.ts +1 -1
- package/lib/services/batch.js +1 -1
- package/lib/services/batch.js.map +1 -1
- package/lib/services/cognitiveservices.d.ts +2 -0
- package/lib/services/cognitiveservices.d.ts.map +1 -1
- package/lib/services/cognitiveservices.js +3 -1
- package/lib/services/cognitiveservices.js.map +1 -1
- package/lib/services/computelimit.d.ts +188 -0
- package/lib/services/computelimit.d.ts.map +1 -1
- package/lib/services/computelimit.js +236 -0
- package/lib/services/computelimit.js.map +1 -1
- package/lib/services/containerinstance.d.ts +210 -1291
- package/lib/services/containerinstance.d.ts.map +1 -1
- package/lib/services/containerinstance.js +250 -1355
- package/lib/services/containerinstance.js.map +1 -1
- package/lib/services/databricks.d.ts +111 -187
- package/lib/services/databricks.d.ts.map +1 -1
- package/lib/services/databricks.js +111 -220
- package/lib/services/databricks.js.map +1 -1
- package/lib/services/desktopvirtualization.d.ts +51 -575
- package/lib/services/desktopvirtualization.d.ts.map +1 -1
- package/lib/services/desktopvirtualization.js +56 -590
- package/lib/services/desktopvirtualization.js.map +1 -1
- package/lib/services/imagebuilder.d.ts +129 -15
- package/lib/services/imagebuilder.d.ts.map +1 -1
- package/lib/services/imagebuilder.js +129 -15
- package/lib/services/imagebuilder.js.map +1 -1
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/managednetworkfabric.d.ts +4283 -693
- package/lib/services/managednetworkfabric.d.ts.map +1 -1
- package/lib/services/managednetworkfabric.js +4833 -828
- package/lib/services/managednetworkfabric.js.map +1 -1
- package/lib/services/monitor.d.ts +81 -73
- package/lib/services/monitor.d.ts.map +1 -1
- package/lib/services/monitor.js +91 -88
- package/lib/services/monitor.js.map +1 -1
- package/lib/services/monitoringservice.d.ts +149 -0
- package/lib/services/monitoringservice.d.ts.map +1 -0
- package/lib/services/monitoringservice.js +216 -0
- package/lib/services/monitoringservice.js.map +1 -0
- package/lib/services/network.d.ts +4513 -3857
- package/lib/services/network.d.ts.map +1 -1
- package/lib/services/network.js +4544 -4056
- package/lib/services/network.js.map +1 -1
- package/lib/services/orbitalplanetarycomputer.d.ts +131 -0
- package/lib/services/orbitalplanetarycomputer.d.ts.map +1 -0
- package/lib/services/orbitalplanetarycomputer.js +183 -0
- package/lib/services/orbitalplanetarycomputer.js.map +1 -0
- package/lib/services/recoveryservicesbackup.d.ts +24 -312
- package/lib/services/recoveryservicesbackup.d.ts.map +1 -1
- package/lib/services/recoveryservicesbackup.js +24 -312
- package/lib/services/recoveryservicesbackup.js.map +1 -1
- package/lib/services/redhatopenshift.d.ts +9 -11
- package/lib/services/redhatopenshift.d.ts.map +1 -1
- package/lib/services/redhatopenshift.js +9 -11
- package/lib/services/redhatopenshift.js.map +1 -1
- package/lib/services/reservations.d.ts +159 -239
- package/lib/services/reservations.d.ts.map +1 -1
- package/lib/services/reservations.js +159 -369
- package/lib/services/reservations.js.map +1 -1
- package/lib/services/resourcegraph.d.ts +64 -30
- package/lib/services/resourcegraph.d.ts.map +1 -1
- package/lib/services/resourcegraph.js +74 -30
- package/lib/services/resourcegraph.js.map +1 -1
- package/lib/services/resources.d.ts +549 -3331
- package/lib/services/resources.d.ts.map +1 -1
- package/lib/services/resources.js +1029 -4846
- package/lib/services/resources.js.map +1 -1
- package/lib/services/search.d.ts +9 -2
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +9 -2
- package/lib/services/search.js.map +1 -1
- package/lib/services/sql.d.ts +4008 -2495
- package/lib/services/sql.d.ts.map +1 -1
- package/lib/services/sql.js +4208 -2521
- package/lib/services/sql.js.map +1 -1
- package/lib/services/storage.d.ts +4 -20
- package/lib/services/storage.d.ts.map +1 -1
- package/lib/services/storage.js +4 -20
- package/lib/services/storage.js.map +1 -1
- package/lib/services/storageactions.d.ts +18 -0
- package/lib/services/storageactions.d.ts.map +1 -1
- package/lib/services/storageactions.js +28 -0
- package/lib/services/storageactions.js.map +1 -1
- package/lib/services/storagecache.d.ts +288 -752
- package/lib/services/storagecache.d.ts.map +1 -1
- package/lib/services/storagecache.js +312 -930
- package/lib/services/storagecache.js.map +1 -1
- package/package.json +4 -4
- package/src/credentials.ts +2 -2
- package/src/retry.ts +2 -2
- package/src/services/app.ts +1014 -0
- package/src/services/applicationinsights.ts +56 -169
- package/src/services/authorization.ts +65 -397
- package/src/services/automation.ts +1179 -1686
- package/src/services/azure-kusto.ts +494 -228
- package/src/services/batch.ts +1 -1
- package/src/services/cognitiveservices.ts +3 -1
- package/src/services/computelimit.ts +310 -0
- package/src/services/containerinstance.ts +1393 -3134
- package/src/services/databricks.ts +125 -294
- package/src/services/desktopvirtualization.ts +83 -859
- package/src/services/imagebuilder.ts +129 -21
- package/src/services/index.ts +2 -0
- package/src/services/managednetworkfabric.ts +7141 -1408
- package/src/services/monitor.ts +134 -136
- package/src/services/monitoringservice.ts +287 -0
- package/src/services/network.ts +5738 -6158
- package/src/services/orbitalplanetarycomputer.ts +233 -0
- package/src/services/recoveryservicesbackup.ts +26 -456
- package/src/services/redhatopenshift.ts +26 -34
- package/src/services/reservations.ts +209 -553
- package/src/services/resourcegraph.ts +123 -55
- package/src/services/resources.ts +1852 -8168
- package/src/services/search.ts +9 -2
- package/src/services/sql.ts +4552 -2757
- package/src/services/storage.ts +4 -22
- package/src/services/storageactions.ts +36 -0
- package/src/services/storagecache.ts +312 -1303
|
@@ -10,7 +10,9 @@ import * as T from "../traits.ts";
|
|
|
10
10
|
|
|
11
11
|
// Input Schema
|
|
12
12
|
export const CalculateExchangePostInput =
|
|
13
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
"api-version": Schema.String,
|
|
15
|
+
}).pipe(
|
|
14
16
|
T.Http({
|
|
15
17
|
method: "POST",
|
|
16
18
|
path: "/providers/Microsoft.Capacity/calculateExchange",
|
|
@@ -256,6 +258,8 @@ export type CalculateExchangePostOutput =
|
|
|
256
258
|
* Calculates the refund amounts and price of the new purchases.
|
|
257
259
|
*
|
|
258
260
|
* Calculates price for exchanging `Reservations` if there are no policy errors.
|
|
261
|
+
*
|
|
262
|
+
* @param api-version - The API version to use for this operation.
|
|
259
263
|
*/
|
|
260
264
|
export const CalculateExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
261
265
|
() => ({
|
|
@@ -265,7 +269,10 @@ export const CalculateExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
265
269
|
);
|
|
266
270
|
// Input Schema
|
|
267
271
|
export const CalculateRefundPostInput =
|
|
268
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
272
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
273
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
274
|
+
"api-version": Schema.String,
|
|
275
|
+
}).pipe(
|
|
269
276
|
T.Http({
|
|
270
277
|
method: "POST",
|
|
271
278
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/calculateRefund",
|
|
@@ -419,15 +426,18 @@ export type CalculateRefundPostOutput = typeof CalculateRefundPostOutput.Type;
|
|
|
419
426
|
* Calculate the refund amount of a reservation order.
|
|
420
427
|
*
|
|
421
428
|
* Calculate price for returning `Reservations` if there are no policy errors.
|
|
429
|
+
*
|
|
430
|
+
* @param api-version - The API version to use for this operation.
|
|
431
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
422
432
|
*/
|
|
423
433
|
export const CalculateRefundPost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
424
434
|
inputSchema: CalculateRefundPostInput,
|
|
425
435
|
outputSchema: CalculateRefundPostOutput,
|
|
426
436
|
}));
|
|
427
437
|
// Input Schema
|
|
428
|
-
export const ExchangePostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
429
|
-
|
|
430
|
-
).pipe(
|
|
438
|
+
export const ExchangePostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
439
|
+
"api-version": Schema.String,
|
|
440
|
+
}).pipe(
|
|
431
441
|
T.Http({ method: "POST", path: "/providers/Microsoft.Capacity/exchange" }),
|
|
432
442
|
);
|
|
433
443
|
export type ExchangePostInput = typeof ExchangePostInput.Type;
|
|
@@ -677,6 +687,8 @@ export type ExchangePostOutput = typeof ExchangePostOutput.Type;
|
|
|
677
687
|
* Exchange Reservation(s)
|
|
678
688
|
*
|
|
679
689
|
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
|
|
690
|
+
*
|
|
691
|
+
* @param api-version - The API version to use for this operation.
|
|
680
692
|
*/
|
|
681
693
|
export const ExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
682
694
|
inputSchema: ExchangePostInput,
|
|
@@ -684,7 +696,10 @@ export const ExchangePost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
684
696
|
}));
|
|
685
697
|
// Input Schema
|
|
686
698
|
export const GetAppliedReservationListInput =
|
|
687
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
699
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
700
|
+
subscriptionId: Schema.String.pipe(T.PathParam()),
|
|
701
|
+
"api-version": Schema.String,
|
|
702
|
+
}).pipe(
|
|
688
703
|
T.Http({
|
|
689
704
|
method: "GET",
|
|
690
705
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations",
|
|
@@ -718,6 +733,9 @@ export type GetAppliedReservationListOutput =
|
|
|
718
733
|
* Get list of applicable `Reservation`s.
|
|
719
734
|
*
|
|
720
735
|
* Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
|
|
736
|
+
*
|
|
737
|
+
* @param api-version - The API version to use for this operation.
|
|
738
|
+
* @param subscriptionId - The ID of the target subscription. The value must be an UUID.
|
|
721
739
|
*/
|
|
722
740
|
export const GetAppliedReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
723
741
|
() => ({
|
|
@@ -727,6 +745,10 @@ export const GetAppliedReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
727
745
|
);
|
|
728
746
|
// Input Schema
|
|
729
747
|
export const GetCatalogInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
748
|
+
subscriptionId: Schema.String.pipe(T.PathParam()),
|
|
749
|
+
"api-version": Schema.String,
|
|
750
|
+
reservedResourceType: Schema.optional(Schema.String),
|
|
751
|
+
location: Schema.optional(Schema.String),
|
|
730
752
|
publisherId: Schema.optional(Schema.String),
|
|
731
753
|
offerId: Schema.optional(Schema.String),
|
|
732
754
|
planId: Schema.optional(Schema.String),
|
|
@@ -743,72 +765,70 @@ export type GetCatalogInput = typeof GetCatalogInput.Type;
|
|
|
743
765
|
|
|
744
766
|
// Output Schema
|
|
745
767
|
export const GetCatalogOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
746
|
-
value: Schema.
|
|
747
|
-
Schema.
|
|
748
|
-
Schema.
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
Schema.
|
|
753
|
-
|
|
754
|
-
Schema.Array(Schema.Literals(["Upfront", "Monthly"])),
|
|
755
|
-
),
|
|
768
|
+
value: Schema.Array(
|
|
769
|
+
Schema.Struct({
|
|
770
|
+
resourceType: Schema.optional(Schema.String),
|
|
771
|
+
name: Schema.optional(Schema.String),
|
|
772
|
+
billingPlans: Schema.optional(
|
|
773
|
+
Schema.Record(
|
|
774
|
+
Schema.String,
|
|
775
|
+
Schema.Array(Schema.Literals(["Upfront", "Monthly"])),
|
|
756
776
|
),
|
|
757
|
-
|
|
758
|
-
|
|
777
|
+
),
|
|
778
|
+
terms: Schema.optional(
|
|
779
|
+
Schema.Array(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
|
|
780
|
+
),
|
|
781
|
+
locations: Schema.optional(Schema.Array(Schema.String)),
|
|
782
|
+
skuProperties: Schema.optional(
|
|
783
|
+
Schema.Array(
|
|
784
|
+
Schema.Struct({
|
|
785
|
+
name: Schema.optional(Schema.String),
|
|
786
|
+
value: Schema.optional(Schema.String),
|
|
787
|
+
}),
|
|
759
788
|
),
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
789
|
+
),
|
|
790
|
+
msrp: Schema.optional(
|
|
791
|
+
Schema.Struct({
|
|
792
|
+
p1Y: Schema.optional(
|
|
763
793
|
Schema.Struct({
|
|
764
|
-
|
|
765
|
-
|
|
794
|
+
currencyCode: Schema.optional(Schema.String),
|
|
795
|
+
amount: Schema.optional(Schema.Number),
|
|
766
796
|
}),
|
|
767
797
|
),
|
|
768
|
-
|
|
769
|
-
msrp: Schema.optional(
|
|
770
|
-
Schema.Struct({
|
|
771
|
-
p1Y: Schema.optional(
|
|
772
|
-
Schema.Struct({
|
|
773
|
-
currencyCode: Schema.optional(Schema.String),
|
|
774
|
-
amount: Schema.optional(Schema.Number),
|
|
775
|
-
}),
|
|
776
|
-
),
|
|
777
|
-
p3Y: Schema.optional(
|
|
778
|
-
Schema.Struct({
|
|
779
|
-
currencyCode: Schema.optional(Schema.String),
|
|
780
|
-
amount: Schema.optional(Schema.Number),
|
|
781
|
-
}),
|
|
782
|
-
),
|
|
783
|
-
p5Y: Schema.optional(
|
|
784
|
-
Schema.Struct({
|
|
785
|
-
currencyCode: Schema.optional(Schema.String),
|
|
786
|
-
amount: Schema.optional(Schema.Number),
|
|
787
|
-
}),
|
|
788
|
-
),
|
|
789
|
-
}),
|
|
790
|
-
),
|
|
791
|
-
restrictions: Schema.optional(
|
|
792
|
-
Schema.Array(
|
|
798
|
+
p3Y: Schema.optional(
|
|
793
799
|
Schema.Struct({
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
reasonCode: Schema.optional(Schema.String),
|
|
800
|
+
currencyCode: Schema.optional(Schema.String),
|
|
801
|
+
amount: Schema.optional(Schema.Number),
|
|
797
802
|
}),
|
|
798
803
|
),
|
|
799
|
-
|
|
800
|
-
tier: Schema.optional(Schema.String),
|
|
801
|
-
size: Schema.optional(Schema.String),
|
|
802
|
-
capabilities: Schema.optional(
|
|
803
|
-
Schema.Array(
|
|
804
|
+
p5Y: Schema.optional(
|
|
804
805
|
Schema.Struct({
|
|
805
|
-
|
|
806
|
-
|
|
806
|
+
currencyCode: Schema.optional(Schema.String),
|
|
807
|
+
amount: Schema.optional(Schema.Number),
|
|
807
808
|
}),
|
|
808
809
|
),
|
|
810
|
+
}),
|
|
811
|
+
),
|
|
812
|
+
restrictions: Schema.optional(
|
|
813
|
+
Schema.Array(
|
|
814
|
+
Schema.Struct({
|
|
815
|
+
type: Schema.optional(Schema.String),
|
|
816
|
+
values: Schema.optional(Schema.Array(Schema.String)),
|
|
817
|
+
reasonCode: Schema.optional(Schema.String),
|
|
818
|
+
}),
|
|
809
819
|
),
|
|
810
|
-
|
|
811
|
-
|
|
820
|
+
),
|
|
821
|
+
tier: Schema.optional(Schema.String),
|
|
822
|
+
size: Schema.optional(Schema.String),
|
|
823
|
+
capabilities: Schema.optional(
|
|
824
|
+
Schema.Array(
|
|
825
|
+
Schema.Struct({
|
|
826
|
+
name: Schema.optional(Schema.String),
|
|
827
|
+
value: Schema.optional(Schema.String),
|
|
828
|
+
}),
|
|
829
|
+
),
|
|
830
|
+
),
|
|
831
|
+
}),
|
|
812
832
|
),
|
|
813
833
|
nextLink: Schema.optional(Schema.String),
|
|
814
834
|
totalItems: Schema.optional(Schema.Number),
|
|
@@ -819,6 +839,10 @@ export type GetCatalogOutput = typeof GetCatalogOutput.Type;
|
|
|
819
839
|
/**
|
|
820
840
|
* Get the regions and skus that are available for RI purchase for the specified Azure subscription.
|
|
821
841
|
*
|
|
842
|
+
* @param api-version - The API version to use for this operation.
|
|
843
|
+
* @param subscriptionId - The ID of the target subscription. The value must be an UUID.
|
|
844
|
+
* @param reservedResourceType - The type of the resource for which the skus should be provided.
|
|
845
|
+
* @param location - Filters the skus based on the location specified in this parameter. This can be an azure region or global
|
|
822
846
|
* @param publisherId - Publisher id used to get the third party products
|
|
823
847
|
* @param offerId - Offer id used to get the third party products
|
|
824
848
|
* @param planId - Plan id used to get the third party products
|
|
@@ -831,9 +855,9 @@ export const GetCatalog = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
831
855
|
outputSchema: GetCatalogOutput,
|
|
832
856
|
}));
|
|
833
857
|
// Input Schema
|
|
834
|
-
export const OperationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
835
|
-
|
|
836
|
-
).pipe(
|
|
858
|
+
export const OperationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
859
|
+
"api-version": Schema.String,
|
|
860
|
+
}).pipe(
|
|
837
861
|
T.Http({ method: "GET", path: "/providers/Microsoft.Capacity/operations" }),
|
|
838
862
|
);
|
|
839
863
|
export type OperationListInput = typeof OperationListInput.Type;
|
|
@@ -867,6 +891,8 @@ export type OperationListOutput = typeof OperationListOutput.Type;
|
|
|
867
891
|
* Get operations.
|
|
868
892
|
*
|
|
869
893
|
* List all the operations.
|
|
894
|
+
*
|
|
895
|
+
* @param api-version - The API version to use for this operation.
|
|
870
896
|
*/
|
|
871
897
|
export const OperationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
872
898
|
inputSchema: OperationListInput,
|
|
@@ -874,7 +900,11 @@ export const OperationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
874
900
|
}));
|
|
875
901
|
// Input Schema
|
|
876
902
|
export const ReservationArchiveInput =
|
|
877
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
903
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
904
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
905
|
+
reservationId: Schema.String.pipe(T.PathParam()),
|
|
906
|
+
"api-version": Schema.String,
|
|
907
|
+
}).pipe(
|
|
878
908
|
T.Http({
|
|
879
909
|
method: "POST",
|
|
880
910
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/archive",
|
|
@@ -891,6 +921,10 @@ export type ReservationArchiveOutput = typeof ReservationArchiveOutput.Type;
|
|
|
891
921
|
* Archive a `Reservation`.
|
|
892
922
|
*
|
|
893
923
|
* Archiving a `Reservation` moves it to `Archived` state.
|
|
924
|
+
*
|
|
925
|
+
* @param api-version - The API version to use for this operation.
|
|
926
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
927
|
+
* @param reservationId - Id of the reservation item
|
|
894
928
|
*/
|
|
895
929
|
export const ReservationArchive = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
896
930
|
inputSchema: ReservationArchiveInput,
|
|
@@ -898,7 +932,11 @@ export const ReservationArchive = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
898
932
|
}));
|
|
899
933
|
// Input Schema
|
|
900
934
|
export const ReservationAvailableScopesInput =
|
|
901
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
935
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
936
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
937
|
+
reservationId: Schema.String.pipe(T.PathParam()),
|
|
938
|
+
"api-version": Schema.String,
|
|
939
|
+
}).pipe(
|
|
902
940
|
T.Http({
|
|
903
941
|
method: "POST",
|
|
904
942
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes",
|
|
@@ -931,6 +969,10 @@ export type ReservationAvailableScopesOutput =
|
|
|
931
969
|
* Get Available Scopes for `Reservation`.
|
|
932
970
|
*
|
|
933
971
|
* Check whether the scopes from request is valid for `Reservation`.
|
|
972
|
+
*
|
|
973
|
+
* @param api-version - The API version to use for this operation.
|
|
974
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
975
|
+
* @param reservationId - Id of the reservation item
|
|
934
976
|
*/
|
|
935
977
|
export const ReservationAvailableScopes = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
936
978
|
() => ({
|
|
@@ -939,9 +981,12 @@ export const ReservationAvailableScopes = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
939
981
|
}),
|
|
940
982
|
);
|
|
941
983
|
// Input Schema
|
|
942
|
-
export const ReservationGetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
943
|
-
|
|
944
|
-
|
|
984
|
+
export const ReservationGetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
985
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
986
|
+
reservationId: Schema.String.pipe(T.PathParam()),
|
|
987
|
+
"api-version": Schema.String,
|
|
988
|
+
$expand: Schema.optional(Schema.String),
|
|
989
|
+
}).pipe(
|
|
945
990
|
T.Http({
|
|
946
991
|
method: "GET",
|
|
947
992
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}",
|
|
@@ -960,15 +1005,21 @@ export type ReservationGetOutput = typeof ReservationGetOutput.Type;
|
|
|
960
1005
|
* Get `Reservation` details.
|
|
961
1006
|
*
|
|
962
1007
|
* Get specific `Reservation` details.
|
|
1008
|
+
*
|
|
1009
|
+
* @param api-version - The API version to use for this operation.
|
|
1010
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1011
|
+
* @param reservationId - Id of the reservation item
|
|
1012
|
+
* @param $expand - Supported value of this query is renewProperties
|
|
963
1013
|
*/
|
|
964
1014
|
export const ReservationGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
965
1015
|
inputSchema: ReservationGetInput,
|
|
966
1016
|
outputSchema: ReservationGetOutput,
|
|
967
1017
|
}));
|
|
968
1018
|
// Input Schema
|
|
969
|
-
export const ReservationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
970
|
-
|
|
971
|
-
|
|
1019
|
+
export const ReservationListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1020
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1021
|
+
"api-version": Schema.String,
|
|
1022
|
+
}).pipe(
|
|
972
1023
|
T.Http({
|
|
973
1024
|
method: "GET",
|
|
974
1025
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations",
|
|
@@ -978,7 +1029,7 @@ export type ReservationListInput = typeof ReservationListInput.Type;
|
|
|
978
1029
|
|
|
979
1030
|
// Output Schema
|
|
980
1031
|
export const ReservationListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
981
|
-
value: Schema.
|
|
1032
|
+
value: Schema.Array(Schema.Struct({})),
|
|
982
1033
|
nextLink: Schema.optional(Schema.String),
|
|
983
1034
|
});
|
|
984
1035
|
export type ReservationListOutput = typeof ReservationListOutput.Type;
|
|
@@ -988,6 +1039,9 @@ export type ReservationListOutput = typeof ReservationListOutput.Type;
|
|
|
988
1039
|
* Get `Reservation`s in a given reservation Order
|
|
989
1040
|
*
|
|
990
1041
|
* List `Reservation`s within a single `ReservationOrder`.
|
|
1042
|
+
*
|
|
1043
|
+
* @param api-version - The API version to use for this operation.
|
|
1044
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
991
1045
|
*/
|
|
992
1046
|
export const ReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
993
1047
|
inputSchema: ReservationListInput,
|
|
@@ -996,6 +1050,7 @@ export const ReservationList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
996
1050
|
// Input Schema
|
|
997
1051
|
export const ReservationListAllInput =
|
|
998
1052
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1053
|
+
"api-version": Schema.String,
|
|
999
1054
|
$filter: Schema.optional(Schema.String),
|
|
1000
1055
|
$orderby: Schema.optional(Schema.String),
|
|
1001
1056
|
refreshSummary: Schema.optional(Schema.String),
|
|
@@ -1035,6 +1090,7 @@ export type ReservationListAllOutput = typeof ReservationListAllOutput.Type;
|
|
|
1035
1090
|
/**
|
|
1036
1091
|
* List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.
|
|
1037
1092
|
*
|
|
1093
|
+
* @param api-version - The API version to use for this operation.
|
|
1038
1094
|
* @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}
|
|
1039
1095
|
* @param $orderby - May be used to sort order by reservation properties.
|
|
1040
1096
|
* @param refreshSummary - To indicate whether to refresh the roll up counts of the reservations group by provisioning states
|
|
@@ -1048,7 +1104,11 @@ export const ReservationListAll = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1048
1104
|
}));
|
|
1049
1105
|
// Input Schema
|
|
1050
1106
|
export const ReservationListRevisionsInput =
|
|
1051
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1107
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1108
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1109
|
+
reservationId: Schema.String.pipe(T.PathParam()),
|
|
1110
|
+
"api-version": Schema.String,
|
|
1111
|
+
}).pipe(
|
|
1052
1112
|
T.Http({
|
|
1053
1113
|
method: "GET",
|
|
1054
1114
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions",
|
|
@@ -1060,7 +1120,7 @@ export type ReservationListRevisionsInput =
|
|
|
1060
1120
|
// Output Schema
|
|
1061
1121
|
export const ReservationListRevisionsOutput =
|
|
1062
1122
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1063
|
-
value: Schema.
|
|
1123
|
+
value: Schema.Array(Schema.Struct({})),
|
|
1064
1124
|
nextLink: Schema.optional(Schema.String),
|
|
1065
1125
|
});
|
|
1066
1126
|
export type ReservationListRevisionsOutput =
|
|
@@ -1071,6 +1131,10 @@ export type ReservationListRevisionsOutput =
|
|
|
1071
1131
|
* Get `Reservation` revisions.
|
|
1072
1132
|
*
|
|
1073
1133
|
* List of all the revisions for the `Reservation`.
|
|
1134
|
+
*
|
|
1135
|
+
* @param api-version - The API version to use for this operation.
|
|
1136
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1137
|
+
* @param reservationId - Id of the reservation item
|
|
1074
1138
|
*/
|
|
1075
1139
|
export const ReservationListRevisions = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
1076
1140
|
() => ({
|
|
@@ -1079,9 +1143,10 @@ export const ReservationListRevisions = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
1079
1143
|
}),
|
|
1080
1144
|
);
|
|
1081
1145
|
// Input Schema
|
|
1082
|
-
export const ReservationMergeInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1083
|
-
|
|
1084
|
-
|
|
1146
|
+
export const ReservationMergeInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1147
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1148
|
+
"api-version": Schema.String,
|
|
1149
|
+
}).pipe(
|
|
1085
1150
|
T.Http({
|
|
1086
1151
|
method: "POST",
|
|
1087
1152
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge",
|
|
@@ -1100,6 +1165,9 @@ export type ReservationMergeOutput = typeof ReservationMergeOutput.Type;
|
|
|
1100
1165
|
* Merges two `Reservation`s.
|
|
1101
1166
|
*
|
|
1102
1167
|
* Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
|
|
1168
|
+
*
|
|
1169
|
+
* @param api-version - The API version to use for this operation.
|
|
1170
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1103
1171
|
*/
|
|
1104
1172
|
export const ReservationMerge = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1105
1173
|
inputSchema: ReservationMergeInput,
|
|
@@ -1107,7 +1175,9 @@ export const ReservationMerge = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1107
1175
|
}));
|
|
1108
1176
|
// Input Schema
|
|
1109
1177
|
export const ReservationOrderCalculateInput =
|
|
1110
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1178
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1179
|
+
"api-version": Schema.String,
|
|
1180
|
+
}).pipe(
|
|
1111
1181
|
T.Http({
|
|
1112
1182
|
method: "POST",
|
|
1113
1183
|
path: "/providers/Microsoft.Capacity/calculatePrice",
|
|
@@ -1200,6 +1270,8 @@ export type ReservationOrderCalculateOutput =
|
|
|
1200
1270
|
* Calculate price for a `ReservationOrder`.
|
|
1201
1271
|
*
|
|
1202
1272
|
* Calculate price for placing a `ReservationOrder`.
|
|
1273
|
+
*
|
|
1274
|
+
* @param api-version - The API version to use for this operation.
|
|
1203
1275
|
*/
|
|
1204
1276
|
export const ReservationOrderCalculate = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
1205
1277
|
() => ({
|
|
@@ -1209,7 +1281,10 @@ export const ReservationOrderCalculate = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
1209
1281
|
);
|
|
1210
1282
|
// Input Schema
|
|
1211
1283
|
export const ReservationOrderChangeDirectoryInput =
|
|
1212
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1284
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1285
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1286
|
+
"api-version": Schema.String,
|
|
1287
|
+
}).pipe(
|
|
1213
1288
|
T.Http({
|
|
1214
1289
|
method: "POST",
|
|
1215
1290
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory",
|
|
@@ -1248,6 +1323,9 @@ export type ReservationOrderChangeDirectoryOutput =
|
|
|
1248
1323
|
* Change directory of `ReservationOrder`.
|
|
1249
1324
|
*
|
|
1250
1325
|
* Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
|
|
1326
|
+
*
|
|
1327
|
+
* @param api-version - The API version to use for this operation.
|
|
1328
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1251
1329
|
*/
|
|
1252
1330
|
export const ReservationOrderChangeDirectory =
|
|
1253
1331
|
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
@@ -1257,6 +1335,8 @@ export const ReservationOrderChangeDirectory =
|
|
|
1257
1335
|
// Input Schema
|
|
1258
1336
|
export const ReservationOrderGetInput =
|
|
1259
1337
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1338
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1339
|
+
"api-version": Schema.String,
|
|
1260
1340
|
$expand: Schema.optional(Schema.String),
|
|
1261
1341
|
}).pipe(
|
|
1262
1342
|
T.Http({
|
|
@@ -1268,118 +1348,7 @@ export type ReservationOrderGetInput = typeof ReservationOrderGetInput.Type;
|
|
|
1268
1348
|
|
|
1269
1349
|
// Output Schema
|
|
1270
1350
|
export const ReservationOrderGetOutput =
|
|
1271
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1272
|
-
etag: Schema.optional(Schema.Number),
|
|
1273
|
-
id: Schema.optional(Schema.String),
|
|
1274
|
-
name: Schema.optional(Schema.String),
|
|
1275
|
-
properties: Schema.optional(
|
|
1276
|
-
Schema.Struct({
|
|
1277
|
-
displayName: Schema.optional(Schema.String),
|
|
1278
|
-
requestDateTime: Schema.optional(Schema.String),
|
|
1279
|
-
createdDateTime: Schema.optional(Schema.String),
|
|
1280
|
-
expiryDate: Schema.optional(Schema.String),
|
|
1281
|
-
expiryDateTime: Schema.optional(Schema.String),
|
|
1282
|
-
benefitStartTime: Schema.optional(Schema.String),
|
|
1283
|
-
originalQuantity: Schema.optional(Schema.Number),
|
|
1284
|
-
term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
|
|
1285
|
-
provisioningState: Schema.optional(
|
|
1286
|
-
Schema.Literals([
|
|
1287
|
-
"Creating",
|
|
1288
|
-
"PendingResourceHold",
|
|
1289
|
-
"ConfirmedResourceHold",
|
|
1290
|
-
"PendingBilling",
|
|
1291
|
-
"ConfirmedBilling",
|
|
1292
|
-
"Created",
|
|
1293
|
-
"Succeeded",
|
|
1294
|
-
"Cancelled",
|
|
1295
|
-
"Expired",
|
|
1296
|
-
"BillingFailed",
|
|
1297
|
-
"Failed",
|
|
1298
|
-
"Split",
|
|
1299
|
-
"Merged",
|
|
1300
|
-
]),
|
|
1301
|
-
),
|
|
1302
|
-
billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
|
|
1303
|
-
planInformation: Schema.optional(
|
|
1304
|
-
Schema.Struct({
|
|
1305
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1306
|
-
Schema.Struct({
|
|
1307
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1308
|
-
amount: Schema.optional(Schema.Number),
|
|
1309
|
-
}),
|
|
1310
|
-
),
|
|
1311
|
-
startDate: Schema.optional(Schema.String),
|
|
1312
|
-
nextPaymentDueDate: Schema.optional(Schema.String),
|
|
1313
|
-
transactions: Schema.optional(
|
|
1314
|
-
Schema.Array(
|
|
1315
|
-
Schema.Struct({
|
|
1316
|
-
dueDate: Schema.optional(Schema.String),
|
|
1317
|
-
paymentDate: Schema.optional(Schema.String),
|
|
1318
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1319
|
-
Schema.Struct({
|
|
1320
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1321
|
-
amount: Schema.optional(Schema.Number),
|
|
1322
|
-
}),
|
|
1323
|
-
),
|
|
1324
|
-
billingCurrencyTotal: Schema.optional(
|
|
1325
|
-
Schema.Struct({
|
|
1326
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1327
|
-
amount: Schema.optional(Schema.Number),
|
|
1328
|
-
}),
|
|
1329
|
-
),
|
|
1330
|
-
billingAccount: Schema.optional(Schema.String),
|
|
1331
|
-
status: Schema.optional(
|
|
1332
|
-
Schema.Literals([
|
|
1333
|
-
"Succeeded",
|
|
1334
|
-
"Failed",
|
|
1335
|
-
"Scheduled",
|
|
1336
|
-
"Cancelled",
|
|
1337
|
-
]),
|
|
1338
|
-
),
|
|
1339
|
-
extendedStatusInfo: Schema.optional(
|
|
1340
|
-
Schema.Struct({
|
|
1341
|
-
statusCode: Schema.optional(
|
|
1342
|
-
Schema.Literals([
|
|
1343
|
-
"None",
|
|
1344
|
-
"Pending",
|
|
1345
|
-
"Processing",
|
|
1346
|
-
"Active",
|
|
1347
|
-
"PurchaseError",
|
|
1348
|
-
"PaymentInstrumentError",
|
|
1349
|
-
"Split",
|
|
1350
|
-
"Merged",
|
|
1351
|
-
"Expired",
|
|
1352
|
-
"Succeeded",
|
|
1353
|
-
]),
|
|
1354
|
-
),
|
|
1355
|
-
message: Schema.optional(Schema.String),
|
|
1356
|
-
}),
|
|
1357
|
-
),
|
|
1358
|
-
}),
|
|
1359
|
-
),
|
|
1360
|
-
),
|
|
1361
|
-
}),
|
|
1362
|
-
),
|
|
1363
|
-
reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
|
|
1364
|
-
reviewDateTime: Schema.optional(Schema.String),
|
|
1365
|
-
}),
|
|
1366
|
-
),
|
|
1367
|
-
type: Schema.optional(Schema.String),
|
|
1368
|
-
systemData: Schema.optional(
|
|
1369
|
-
Schema.Struct({
|
|
1370
|
-
createdBy: Schema.optional(Schema.String),
|
|
1371
|
-
createdByType: Schema.optional(
|
|
1372
|
-
Schema.Literals(["User", "Application", "ManagedIdentity", "Key"]),
|
|
1373
|
-
),
|
|
1374
|
-
createdAt: Schema.optional(Schema.String),
|
|
1375
|
-
lastModifiedBy: Schema.optional(Schema.String),
|
|
1376
|
-
lastModifiedByType: Schema.optional(
|
|
1377
|
-
Schema.Literals(["User", "Application", "ManagedIdentity", "Key"]),
|
|
1378
|
-
),
|
|
1379
|
-
lastModifiedAt: Schema.optional(Schema.String),
|
|
1380
|
-
}),
|
|
1381
|
-
),
|
|
1382
|
-
});
|
|
1351
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
1383
1352
|
export type ReservationOrderGetOutput = typeof ReservationOrderGetOutput.Type;
|
|
1384
1353
|
|
|
1385
1354
|
// The operation
|
|
@@ -1388,6 +1357,8 @@ export type ReservationOrderGetOutput = typeof ReservationOrderGetOutput.Type;
|
|
|
1388
1357
|
*
|
|
1389
1358
|
* Get the details of the `ReservationOrder`.
|
|
1390
1359
|
*
|
|
1360
|
+
* @param api-version - The API version to use for this operation.
|
|
1361
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1391
1362
|
* @param $expand - May be used to expand the planInformation.
|
|
1392
1363
|
*/
|
|
1393
1364
|
export const ReservationOrderGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
@@ -1396,7 +1367,9 @@ export const ReservationOrderGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1396
1367
|
}));
|
|
1397
1368
|
// Input Schema
|
|
1398
1369
|
export const ReservationOrderListInput =
|
|
1399
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1370
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1371
|
+
"api-version": Schema.String,
|
|
1372
|
+
}).pipe(
|
|
1400
1373
|
T.Http({
|
|
1401
1374
|
method: "GET",
|
|
1402
1375
|
path: "/providers/Microsoft.Capacity/reservationOrders",
|
|
@@ -1407,134 +1380,7 @@ export type ReservationOrderListInput = typeof ReservationOrderListInput.Type;
|
|
|
1407
1380
|
// Output Schema
|
|
1408
1381
|
export const ReservationOrderListOutput =
|
|
1409
1382
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1410
|
-
value: Schema.
|
|
1411
|
-
Schema.Array(
|
|
1412
|
-
Schema.Struct({
|
|
1413
|
-
etag: Schema.optional(Schema.Number),
|
|
1414
|
-
id: Schema.optional(Schema.String),
|
|
1415
|
-
name: Schema.optional(Schema.String),
|
|
1416
|
-
properties: Schema.optional(
|
|
1417
|
-
Schema.Struct({
|
|
1418
|
-
displayName: Schema.optional(Schema.String),
|
|
1419
|
-
requestDateTime: Schema.optional(Schema.String),
|
|
1420
|
-
createdDateTime: Schema.optional(Schema.String),
|
|
1421
|
-
expiryDate: Schema.optional(Schema.String),
|
|
1422
|
-
expiryDateTime: Schema.optional(Schema.String),
|
|
1423
|
-
benefitStartTime: Schema.optional(Schema.String),
|
|
1424
|
-
originalQuantity: Schema.optional(Schema.Number),
|
|
1425
|
-
term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
|
|
1426
|
-
provisioningState: Schema.optional(
|
|
1427
|
-
Schema.Literals([
|
|
1428
|
-
"Creating",
|
|
1429
|
-
"PendingResourceHold",
|
|
1430
|
-
"ConfirmedResourceHold",
|
|
1431
|
-
"PendingBilling",
|
|
1432
|
-
"ConfirmedBilling",
|
|
1433
|
-
"Created",
|
|
1434
|
-
"Succeeded",
|
|
1435
|
-
"Cancelled",
|
|
1436
|
-
"Expired",
|
|
1437
|
-
"BillingFailed",
|
|
1438
|
-
"Failed",
|
|
1439
|
-
"Split",
|
|
1440
|
-
"Merged",
|
|
1441
|
-
]),
|
|
1442
|
-
),
|
|
1443
|
-
billingPlan: Schema.optional(
|
|
1444
|
-
Schema.Literals(["Upfront", "Monthly"]),
|
|
1445
|
-
),
|
|
1446
|
-
planInformation: Schema.optional(
|
|
1447
|
-
Schema.Struct({
|
|
1448
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1449
|
-
Schema.Struct({
|
|
1450
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1451
|
-
amount: Schema.optional(Schema.Number),
|
|
1452
|
-
}),
|
|
1453
|
-
),
|
|
1454
|
-
startDate: Schema.optional(Schema.String),
|
|
1455
|
-
nextPaymentDueDate: Schema.optional(Schema.String),
|
|
1456
|
-
transactions: Schema.optional(
|
|
1457
|
-
Schema.Array(
|
|
1458
|
-
Schema.Struct({
|
|
1459
|
-
dueDate: Schema.optional(Schema.String),
|
|
1460
|
-
paymentDate: Schema.optional(Schema.String),
|
|
1461
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1462
|
-
Schema.Struct({
|
|
1463
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1464
|
-
amount: Schema.optional(Schema.Number),
|
|
1465
|
-
}),
|
|
1466
|
-
),
|
|
1467
|
-
billingCurrencyTotal: Schema.optional(
|
|
1468
|
-
Schema.Struct({
|
|
1469
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1470
|
-
amount: Schema.optional(Schema.Number),
|
|
1471
|
-
}),
|
|
1472
|
-
),
|
|
1473
|
-
billingAccount: Schema.optional(Schema.String),
|
|
1474
|
-
status: Schema.optional(
|
|
1475
|
-
Schema.Literals([
|
|
1476
|
-
"Succeeded",
|
|
1477
|
-
"Failed",
|
|
1478
|
-
"Scheduled",
|
|
1479
|
-
"Cancelled",
|
|
1480
|
-
]),
|
|
1481
|
-
),
|
|
1482
|
-
extendedStatusInfo: Schema.optional(
|
|
1483
|
-
Schema.Struct({
|
|
1484
|
-
statusCode: Schema.optional(
|
|
1485
|
-
Schema.Literals([
|
|
1486
|
-
"None",
|
|
1487
|
-
"Pending",
|
|
1488
|
-
"Processing",
|
|
1489
|
-
"Active",
|
|
1490
|
-
"PurchaseError",
|
|
1491
|
-
"PaymentInstrumentError",
|
|
1492
|
-
"Split",
|
|
1493
|
-
"Merged",
|
|
1494
|
-
"Expired",
|
|
1495
|
-
"Succeeded",
|
|
1496
|
-
]),
|
|
1497
|
-
),
|
|
1498
|
-
message: Schema.optional(Schema.String),
|
|
1499
|
-
}),
|
|
1500
|
-
),
|
|
1501
|
-
}),
|
|
1502
|
-
),
|
|
1503
|
-
),
|
|
1504
|
-
}),
|
|
1505
|
-
),
|
|
1506
|
-
reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
|
|
1507
|
-
reviewDateTime: Schema.optional(Schema.String),
|
|
1508
|
-
}),
|
|
1509
|
-
),
|
|
1510
|
-
type: Schema.optional(Schema.String),
|
|
1511
|
-
systemData: Schema.optional(
|
|
1512
|
-
Schema.Struct({
|
|
1513
|
-
createdBy: Schema.optional(Schema.String),
|
|
1514
|
-
createdByType: Schema.optional(
|
|
1515
|
-
Schema.Literals([
|
|
1516
|
-
"User",
|
|
1517
|
-
"Application",
|
|
1518
|
-
"ManagedIdentity",
|
|
1519
|
-
"Key",
|
|
1520
|
-
]),
|
|
1521
|
-
),
|
|
1522
|
-
createdAt: Schema.optional(Schema.String),
|
|
1523
|
-
lastModifiedBy: Schema.optional(Schema.String),
|
|
1524
|
-
lastModifiedByType: Schema.optional(
|
|
1525
|
-
Schema.Literals([
|
|
1526
|
-
"User",
|
|
1527
|
-
"Application",
|
|
1528
|
-
"ManagedIdentity",
|
|
1529
|
-
"Key",
|
|
1530
|
-
]),
|
|
1531
|
-
),
|
|
1532
|
-
lastModifiedAt: Schema.optional(Schema.String),
|
|
1533
|
-
}),
|
|
1534
|
-
),
|
|
1535
|
-
}),
|
|
1536
|
-
),
|
|
1537
|
-
),
|
|
1383
|
+
value: Schema.Array(Schema.Struct({})),
|
|
1538
1384
|
nextLink: Schema.optional(Schema.String),
|
|
1539
1385
|
});
|
|
1540
1386
|
export type ReservationOrderListOutput = typeof ReservationOrderListOutput.Type;
|
|
@@ -1544,6 +1390,8 @@ export type ReservationOrderListOutput = typeof ReservationOrderListOutput.Type;
|
|
|
1544
1390
|
* Get all `ReservationOrder`s.
|
|
1545
1391
|
*
|
|
1546
1392
|
* List of all the `ReservationOrder`s that the user has access to in the current tenant.
|
|
1393
|
+
*
|
|
1394
|
+
* @param api-version - The API version to use for this operation.
|
|
1547
1395
|
*/
|
|
1548
1396
|
export const ReservationOrderList = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
1549
1397
|
() => ({
|
|
@@ -1553,7 +1401,10 @@ export const ReservationOrderList = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
1553
1401
|
);
|
|
1554
1402
|
// Input Schema
|
|
1555
1403
|
export const ReservationOrderPurchaseInput =
|
|
1556
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1404
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1405
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1406
|
+
"api-version": Schema.String,
|
|
1407
|
+
}).pipe(
|
|
1557
1408
|
T.Http({
|
|
1558
1409
|
method: "PUT",
|
|
1559
1410
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}",
|
|
@@ -1564,118 +1415,7 @@ export type ReservationOrderPurchaseInput =
|
|
|
1564
1415
|
|
|
1565
1416
|
// Output Schema
|
|
1566
1417
|
export const ReservationOrderPurchaseOutput =
|
|
1567
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1568
|
-
etag: Schema.optional(Schema.Number),
|
|
1569
|
-
id: Schema.optional(Schema.String),
|
|
1570
|
-
name: Schema.optional(Schema.String),
|
|
1571
|
-
properties: Schema.optional(
|
|
1572
|
-
Schema.Struct({
|
|
1573
|
-
displayName: Schema.optional(Schema.String),
|
|
1574
|
-
requestDateTime: Schema.optional(Schema.String),
|
|
1575
|
-
createdDateTime: Schema.optional(Schema.String),
|
|
1576
|
-
expiryDate: Schema.optional(Schema.String),
|
|
1577
|
-
expiryDateTime: Schema.optional(Schema.String),
|
|
1578
|
-
benefitStartTime: Schema.optional(Schema.String),
|
|
1579
|
-
originalQuantity: Schema.optional(Schema.Number),
|
|
1580
|
-
term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
|
|
1581
|
-
provisioningState: Schema.optional(
|
|
1582
|
-
Schema.Literals([
|
|
1583
|
-
"Creating",
|
|
1584
|
-
"PendingResourceHold",
|
|
1585
|
-
"ConfirmedResourceHold",
|
|
1586
|
-
"PendingBilling",
|
|
1587
|
-
"ConfirmedBilling",
|
|
1588
|
-
"Created",
|
|
1589
|
-
"Succeeded",
|
|
1590
|
-
"Cancelled",
|
|
1591
|
-
"Expired",
|
|
1592
|
-
"BillingFailed",
|
|
1593
|
-
"Failed",
|
|
1594
|
-
"Split",
|
|
1595
|
-
"Merged",
|
|
1596
|
-
]),
|
|
1597
|
-
),
|
|
1598
|
-
billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
|
|
1599
|
-
planInformation: Schema.optional(
|
|
1600
|
-
Schema.Struct({
|
|
1601
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1602
|
-
Schema.Struct({
|
|
1603
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1604
|
-
amount: Schema.optional(Schema.Number),
|
|
1605
|
-
}),
|
|
1606
|
-
),
|
|
1607
|
-
startDate: Schema.optional(Schema.String),
|
|
1608
|
-
nextPaymentDueDate: Schema.optional(Schema.String),
|
|
1609
|
-
transactions: Schema.optional(
|
|
1610
|
-
Schema.Array(
|
|
1611
|
-
Schema.Struct({
|
|
1612
|
-
dueDate: Schema.optional(Schema.String),
|
|
1613
|
-
paymentDate: Schema.optional(Schema.String),
|
|
1614
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1615
|
-
Schema.Struct({
|
|
1616
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1617
|
-
amount: Schema.optional(Schema.Number),
|
|
1618
|
-
}),
|
|
1619
|
-
),
|
|
1620
|
-
billingCurrencyTotal: Schema.optional(
|
|
1621
|
-
Schema.Struct({
|
|
1622
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1623
|
-
amount: Schema.optional(Schema.Number),
|
|
1624
|
-
}),
|
|
1625
|
-
),
|
|
1626
|
-
billingAccount: Schema.optional(Schema.String),
|
|
1627
|
-
status: Schema.optional(
|
|
1628
|
-
Schema.Literals([
|
|
1629
|
-
"Succeeded",
|
|
1630
|
-
"Failed",
|
|
1631
|
-
"Scheduled",
|
|
1632
|
-
"Cancelled",
|
|
1633
|
-
]),
|
|
1634
|
-
),
|
|
1635
|
-
extendedStatusInfo: Schema.optional(
|
|
1636
|
-
Schema.Struct({
|
|
1637
|
-
statusCode: Schema.optional(
|
|
1638
|
-
Schema.Literals([
|
|
1639
|
-
"None",
|
|
1640
|
-
"Pending",
|
|
1641
|
-
"Processing",
|
|
1642
|
-
"Active",
|
|
1643
|
-
"PurchaseError",
|
|
1644
|
-
"PaymentInstrumentError",
|
|
1645
|
-
"Split",
|
|
1646
|
-
"Merged",
|
|
1647
|
-
"Expired",
|
|
1648
|
-
"Succeeded",
|
|
1649
|
-
]),
|
|
1650
|
-
),
|
|
1651
|
-
message: Schema.optional(Schema.String),
|
|
1652
|
-
}),
|
|
1653
|
-
),
|
|
1654
|
-
}),
|
|
1655
|
-
),
|
|
1656
|
-
),
|
|
1657
|
-
}),
|
|
1658
|
-
),
|
|
1659
|
-
reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
|
|
1660
|
-
reviewDateTime: Schema.optional(Schema.String),
|
|
1661
|
-
}),
|
|
1662
|
-
),
|
|
1663
|
-
type: Schema.optional(Schema.String),
|
|
1664
|
-
systemData: Schema.optional(
|
|
1665
|
-
Schema.Struct({
|
|
1666
|
-
createdBy: Schema.optional(Schema.String),
|
|
1667
|
-
createdByType: Schema.optional(
|
|
1668
|
-
Schema.Literals(["User", "Application", "ManagedIdentity", "Key"]),
|
|
1669
|
-
),
|
|
1670
|
-
createdAt: Schema.optional(Schema.String),
|
|
1671
|
-
lastModifiedBy: Schema.optional(Schema.String),
|
|
1672
|
-
lastModifiedByType: Schema.optional(
|
|
1673
|
-
Schema.Literals(["User", "Application", "ManagedIdentity", "Key"]),
|
|
1674
|
-
),
|
|
1675
|
-
lastModifiedAt: Schema.optional(Schema.String),
|
|
1676
|
-
}),
|
|
1677
|
-
),
|
|
1678
|
-
});
|
|
1418
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
1679
1419
|
export type ReservationOrderPurchaseOutput =
|
|
1680
1420
|
typeof ReservationOrderPurchaseOutput.Type;
|
|
1681
1421
|
|
|
@@ -1684,6 +1424,9 @@ export type ReservationOrderPurchaseOutput =
|
|
|
1684
1424
|
* Purchase `ReservationOrder`
|
|
1685
1425
|
*
|
|
1686
1426
|
* Purchase `ReservationOrder` and create resource under the specified URI.
|
|
1427
|
+
*
|
|
1428
|
+
* @param api-version - The API version to use for this operation.
|
|
1429
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1687
1430
|
*/
|
|
1688
1431
|
export const ReservationOrderPurchase = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
1689
1432
|
() => ({
|
|
@@ -1692,9 +1435,10 @@ export const ReservationOrderPurchase = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
1692
1435
|
}),
|
|
1693
1436
|
);
|
|
1694
1437
|
// Input Schema
|
|
1695
|
-
export const ReservationSplitInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1696
|
-
|
|
1697
|
-
|
|
1438
|
+
export const ReservationSplitInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1439
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1440
|
+
"api-version": Schema.String,
|
|
1441
|
+
}).pipe(
|
|
1698
1442
|
T.Http({
|
|
1699
1443
|
method: "POST",
|
|
1700
1444
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split",
|
|
@@ -1713,6 +1457,9 @@ export type ReservationSplitOutput = typeof ReservationSplitOutput.Type;
|
|
|
1713
1457
|
* Split the `Reservation`.
|
|
1714
1458
|
*
|
|
1715
1459
|
* Split a `Reservation` into two `Reservation`s with specified quantity distribution.
|
|
1460
|
+
*
|
|
1461
|
+
* @param api-version - The API version to use for this operation.
|
|
1462
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1716
1463
|
*/
|
|
1717
1464
|
export const ReservationSplit = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1718
1465
|
inputSchema: ReservationSplitInput,
|
|
@@ -1720,7 +1467,11 @@ export const ReservationSplit = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1720
1467
|
}));
|
|
1721
1468
|
// Input Schema
|
|
1722
1469
|
export const ReservationUnarchiveInput =
|
|
1723
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1470
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1471
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1472
|
+
reservationId: Schema.String.pipe(T.PathParam()),
|
|
1473
|
+
"api-version": Schema.String,
|
|
1474
|
+
}).pipe(
|
|
1724
1475
|
T.Http({
|
|
1725
1476
|
method: "POST",
|
|
1726
1477
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/unarchive",
|
|
@@ -1738,6 +1489,10 @@ export type ReservationUnarchiveOutput = typeof ReservationUnarchiveOutput.Type;
|
|
|
1738
1489
|
* Unarchive a `Reservation`.
|
|
1739
1490
|
*
|
|
1740
1491
|
* Restores a `Reservation` to the state it was before archiving.
|
|
1492
|
+
*
|
|
1493
|
+
* @param api-version - The API version to use for this operation.
|
|
1494
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1495
|
+
* @param reservationId - Id of the reservation item
|
|
1741
1496
|
*/
|
|
1742
1497
|
export const ReservationUnarchive = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
1743
1498
|
() => ({
|
|
@@ -1747,7 +1502,11 @@ export const ReservationUnarchive = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
|
1747
1502
|
);
|
|
1748
1503
|
// Input Schema
|
|
1749
1504
|
export const ReservationUpdateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1750
|
-
{
|
|
1505
|
+
{
|
|
1506
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1507
|
+
reservationId: Schema.String.pipe(T.PathParam()),
|
|
1508
|
+
"api-version": Schema.String,
|
|
1509
|
+
},
|
|
1751
1510
|
).pipe(
|
|
1752
1511
|
T.Http({
|
|
1753
1512
|
method: "PATCH",
|
|
@@ -1766,15 +1525,20 @@ export type ReservationUpdateOutput = typeof ReservationUpdateOutput.Type;
|
|
|
1766
1525
|
* Updates a `Reservation`.
|
|
1767
1526
|
*
|
|
1768
1527
|
* Updates the applied scopes of the `Reservation`.
|
|
1528
|
+
*
|
|
1529
|
+
* @param api-version - The API version to use for this operation.
|
|
1530
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1531
|
+
* @param reservationId - Id of the reservation item
|
|
1769
1532
|
*/
|
|
1770
1533
|
export const ReservationUpdate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1771
1534
|
inputSchema: ReservationUpdateInput,
|
|
1772
1535
|
outputSchema: ReservationUpdateOutput,
|
|
1773
1536
|
}));
|
|
1774
1537
|
// Input Schema
|
|
1775
|
-
export const ReturnPostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1776
|
-
|
|
1777
|
-
|
|
1538
|
+
export const ReturnPostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1539
|
+
reservationOrderId: Schema.String.pipe(T.PathParam()),
|
|
1540
|
+
"api-version": Schema.String,
|
|
1541
|
+
}).pipe(
|
|
1778
1542
|
T.Http({
|
|
1779
1543
|
method: "POST",
|
|
1780
1544
|
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return",
|
|
@@ -1783,118 +1547,7 @@ export const ReturnPostInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1783
1547
|
export type ReturnPostInput = typeof ReturnPostInput.Type;
|
|
1784
1548
|
|
|
1785
1549
|
// Output Schema
|
|
1786
|
-
export const ReturnPostOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1787
|
-
etag: Schema.optional(Schema.Number),
|
|
1788
|
-
id: Schema.optional(Schema.String),
|
|
1789
|
-
name: Schema.optional(Schema.String),
|
|
1790
|
-
properties: Schema.optional(
|
|
1791
|
-
Schema.Struct({
|
|
1792
|
-
displayName: Schema.optional(Schema.String),
|
|
1793
|
-
requestDateTime: Schema.optional(Schema.String),
|
|
1794
|
-
createdDateTime: Schema.optional(Schema.String),
|
|
1795
|
-
expiryDate: Schema.optional(Schema.String),
|
|
1796
|
-
expiryDateTime: Schema.optional(Schema.String),
|
|
1797
|
-
benefitStartTime: Schema.optional(Schema.String),
|
|
1798
|
-
originalQuantity: Schema.optional(Schema.Number),
|
|
1799
|
-
term: Schema.optional(Schema.Literals(["P1Y", "P3Y", "P5Y"])),
|
|
1800
|
-
provisioningState: Schema.optional(
|
|
1801
|
-
Schema.Literals([
|
|
1802
|
-
"Creating",
|
|
1803
|
-
"PendingResourceHold",
|
|
1804
|
-
"ConfirmedResourceHold",
|
|
1805
|
-
"PendingBilling",
|
|
1806
|
-
"ConfirmedBilling",
|
|
1807
|
-
"Created",
|
|
1808
|
-
"Succeeded",
|
|
1809
|
-
"Cancelled",
|
|
1810
|
-
"Expired",
|
|
1811
|
-
"BillingFailed",
|
|
1812
|
-
"Failed",
|
|
1813
|
-
"Split",
|
|
1814
|
-
"Merged",
|
|
1815
|
-
]),
|
|
1816
|
-
),
|
|
1817
|
-
billingPlan: Schema.optional(Schema.Literals(["Upfront", "Monthly"])),
|
|
1818
|
-
planInformation: Schema.optional(
|
|
1819
|
-
Schema.Struct({
|
|
1820
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1821
|
-
Schema.Struct({
|
|
1822
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1823
|
-
amount: Schema.optional(Schema.Number),
|
|
1824
|
-
}),
|
|
1825
|
-
),
|
|
1826
|
-
startDate: Schema.optional(Schema.String),
|
|
1827
|
-
nextPaymentDueDate: Schema.optional(Schema.String),
|
|
1828
|
-
transactions: Schema.optional(
|
|
1829
|
-
Schema.Array(
|
|
1830
|
-
Schema.Struct({
|
|
1831
|
-
dueDate: Schema.optional(Schema.String),
|
|
1832
|
-
paymentDate: Schema.optional(Schema.String),
|
|
1833
|
-
pricingCurrencyTotal: Schema.optional(
|
|
1834
|
-
Schema.Struct({
|
|
1835
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1836
|
-
amount: Schema.optional(Schema.Number),
|
|
1837
|
-
}),
|
|
1838
|
-
),
|
|
1839
|
-
billingCurrencyTotal: Schema.optional(
|
|
1840
|
-
Schema.Struct({
|
|
1841
|
-
currencyCode: Schema.optional(Schema.String),
|
|
1842
|
-
amount: Schema.optional(Schema.Number),
|
|
1843
|
-
}),
|
|
1844
|
-
),
|
|
1845
|
-
billingAccount: Schema.optional(Schema.String),
|
|
1846
|
-
status: Schema.optional(
|
|
1847
|
-
Schema.Literals([
|
|
1848
|
-
"Succeeded",
|
|
1849
|
-
"Failed",
|
|
1850
|
-
"Scheduled",
|
|
1851
|
-
"Cancelled",
|
|
1852
|
-
]),
|
|
1853
|
-
),
|
|
1854
|
-
extendedStatusInfo: Schema.optional(
|
|
1855
|
-
Schema.Struct({
|
|
1856
|
-
statusCode: Schema.optional(
|
|
1857
|
-
Schema.Literals([
|
|
1858
|
-
"None",
|
|
1859
|
-
"Pending",
|
|
1860
|
-
"Processing",
|
|
1861
|
-
"Active",
|
|
1862
|
-
"PurchaseError",
|
|
1863
|
-
"PaymentInstrumentError",
|
|
1864
|
-
"Split",
|
|
1865
|
-
"Merged",
|
|
1866
|
-
"Expired",
|
|
1867
|
-
"Succeeded",
|
|
1868
|
-
]),
|
|
1869
|
-
),
|
|
1870
|
-
message: Schema.optional(Schema.String),
|
|
1871
|
-
}),
|
|
1872
|
-
),
|
|
1873
|
-
}),
|
|
1874
|
-
),
|
|
1875
|
-
),
|
|
1876
|
-
}),
|
|
1877
|
-
),
|
|
1878
|
-
reservations: Schema.optional(Schema.Array(Schema.Struct({}))),
|
|
1879
|
-
reviewDateTime: Schema.optional(Schema.String),
|
|
1880
|
-
}),
|
|
1881
|
-
),
|
|
1882
|
-
type: Schema.optional(Schema.String),
|
|
1883
|
-
systemData: Schema.optional(
|
|
1884
|
-
Schema.Struct({
|
|
1885
|
-
createdBy: Schema.optional(Schema.String),
|
|
1886
|
-
createdByType: Schema.optional(
|
|
1887
|
-
Schema.Literals(["User", "Application", "ManagedIdentity", "Key"]),
|
|
1888
|
-
),
|
|
1889
|
-
createdAt: Schema.optional(Schema.String),
|
|
1890
|
-
lastModifiedBy: Schema.optional(Schema.String),
|
|
1891
|
-
lastModifiedByType: Schema.optional(
|
|
1892
|
-
Schema.Literals(["User", "Application", "ManagedIdentity", "Key"]),
|
|
1893
|
-
),
|
|
1894
|
-
lastModifiedAt: Schema.optional(Schema.String),
|
|
1895
|
-
}),
|
|
1896
|
-
),
|
|
1897
|
-
});
|
|
1550
|
+
export const ReturnPostOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
1898
1551
|
export type ReturnPostOutput = typeof ReturnPostOutput.Type;
|
|
1899
1552
|
|
|
1900
1553
|
// The operation
|
|
@@ -1902,6 +1555,9 @@ export type ReturnPostOutput = typeof ReturnPostOutput.Type;
|
|
|
1902
1555
|
* Return a reservation.
|
|
1903
1556
|
*
|
|
1904
1557
|
* Return a reservation and get refund information.
|
|
1558
|
+
*
|
|
1559
|
+
* @param api-version - The API version to use for this operation.
|
|
1560
|
+
* @param reservationOrderId - Order Id of the reservation
|
|
1905
1561
|
*/
|
|
1906
1562
|
export const ReturnPost = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1907
1563
|
inputSchema: ReturnPostInput,
|