oci-onesubscription 2.142.2 → 2.144.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/client.d.ts +72 -18
- package/lib/client.js +192 -18
- package/lib/client.js.map +1 -1
- package/lib/model/aggregated-computed-usage-summary.d.ts +6 -6
- package/lib/model/associated-subscriptions.d.ts +43 -0
- package/lib/model/associated-subscriptions.js +30 -0
- package/lib/model/associated-subscriptions.js.map +1 -0
- package/lib/model/billing-schedule-product.d.ts +4 -3
- package/lib/model/billing-schedule-product.js.map +1 -1
- package/lib/model/billing-schedule-summary.d.ts +13 -13
- package/lib/model/commitment-period.d.ts +46 -0
- package/lib/model/commitment-period.js +30 -0
- package/lib/model/commitment-period.js.map +1 -0
- package/lib/model/commitment-service.d.ts +7 -7
- package/lib/model/commitment-summary.d.ts +10 -10
- package/lib/model/commitment.d.ts +10 -10
- package/lib/model/computed-usage-aggregation.d.ts +7 -7
- package/lib/model/computed-usage-product.d.ts +8 -8
- package/lib/model/computed-usage-summary.d.ts +23 -23
- package/lib/model/computed-usage.d.ts +23 -23
- package/lib/model/index.d.ts +10 -0
- package/lib/model/index.js +11 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/invoice-line-summary.d.ts +6 -6
- package/lib/model/invoice-summary.d.ts +13 -13
- package/lib/model/invoiceline-computed-usage-summary.d.ts +7 -7
- package/lib/model/invoicing-address.d.ts +3 -3
- package/lib/model/invoicing-business-partner.d.ts +4 -4
- package/lib/model/invoicing-currency.d.ts +4 -4
- package/lib/model/invoicing-location.d.ts +1 -1
- package/lib/model/invoicing-organization.d.ts +3 -3
- package/lib/model/invoicing-payment-term.d.ts +9 -9
- package/lib/model/invoicing-product.d.ts +7 -7
- package/lib/model/invoicing-user.d.ts +2 -2
- package/lib/model/organization-subscription-summary.d.ts +8 -8
- package/lib/model/orgnization-subs-currency.d.ts +4 -4
- package/lib/model/product-and-service.d.ts +50 -0
- package/lib/model/product-and-service.js +30 -0
- package/lib/model/product-and-service.js.map +1 -0
- package/lib/model/rate-card-product.d.ts +7 -7
- package/lib/model/rate-card-summary.d.ts +9 -9
- package/lib/model/rate-card-tier.d.ts +4 -4
- package/lib/model/subscribed-service-address.d.ts +3 -3
- package/lib/model/subscribed-service-business-partner.d.ts +4 -4
- package/lib/model/subscribed-service-location.d.ts +1 -1
- package/lib/model/subscribed-service-payment-term.d.ts +9 -9
- package/lib/model/subscribed-service-summary.d.ts +95 -95
- package/lib/model/subscribed-service-user.d.ts +2 -2
- package/lib/model/subscribed-service.d.ts +97 -97
- package/lib/model/subscription-currency.d.ts +4 -4
- package/lib/model/subscription-details.d.ts +75 -0
- package/lib/model/subscription-details.js +72 -0
- package/lib/model/subscription-details.js.map +1 -0
- package/lib/model/subscription-product.d.ts +5 -5
- package/lib/model/subscription-subscribed-service.d.ts +31 -26
- package/lib/model/subscription-subscribed-service.js +10 -0
- package/lib/model/subscription-subscribed-service.js.map +1 -1
- package/lib/model/subscription-summary.d.ts +8 -8
- package/lib/model/usage-ledger-summary.d.ts +46 -0
- package/lib/model/usage-ledger-summary.js +30 -0
- package/lib/model/usage-ledger-summary.js.map +1 -0
- package/lib/request/get-commitment-request.d.ts +1 -1
- package/lib/request/get-computed-usage-request.d.ts +3 -3
- package/lib/request/get-subscribed-service-request.d.ts +5 -5
- package/lib/request/get-subscription-details-request.d.ts +31 -0
- package/lib/request/get-subscription-details-request.js +15 -0
- package/lib/request/get-subscription-details-request.js.map +1 -0
- package/lib/request/index.d.ts +4 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-aggregated-computed-usages-request.d.ts +7 -7
- package/lib/request/list-billing-schedules-request.d.ts +2 -2
- package/lib/request/list-commitments-request.d.ts +1 -1
- package/lib/request/list-computed-usages-request.d.ts +5 -5
- package/lib/request/list-invoiceline-computed-usages-request.d.ts +4 -4
- package/lib/request/list-invoices-request.d.ts +5 -5
- package/lib/request/list-rate-cards-request.d.ts +8 -4
- package/lib/request/list-rate-cards-request.js.map +1 -1
- package/lib/request/list-subscribed-services-request.d.ts +3 -3
- package/lib/request/list-subscriptions-request.d.ts +4 -4
- package/lib/request/list-usage-ledgers-request.d.ts +73 -0
- package/lib/request/list-usage-ledgers-request.js +29 -0
- package/lib/request/list-usage-ledgers-request.js.map +1 -0
- package/lib/response/get-subscription-details-response.d.ts +25 -0
- package/lib/response/get-subscription-details-response.js +15 -0
- package/lib/response/get-subscription-details-response.js.map +1 -0
- package/lib/response/index.d.ts +4 -0
- package/lib/response/list-rate-cards-response.d.ts +2 -0
- package/lib/response/list-usage-ledgers-response.d.ts +32 -0
- package/lib/response/list-usage-ledgers-response.js +15 -0
- package/lib/response/list-usage-ledgers-response.js.map +1 -0
- package/package.json +2 -2
package/lib/client.d.ts
CHANGED
|
@@ -82,8 +82,8 @@ export declare class BillingScheduleClient {
|
|
|
82
82
|
*/
|
|
83
83
|
close(): void;
|
|
84
84
|
/**
|
|
85
|
-
* This list API returns all billing schedules for given subscription
|
|
86
|
-
* for a particular
|
|
85
|
+
* This list API returns all billing schedules for a given subscription ID, and
|
|
86
|
+
* for a particular subscribed service if provided.
|
|
87
87
|
*
|
|
88
88
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
89
89
|
* @param ListBillingSchedulesRequest
|
|
@@ -191,7 +191,7 @@ export declare class CommitmentClient {
|
|
|
191
191
|
*/
|
|
192
192
|
close(): void;
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Returns the commitment details corresponding to the provided ID.
|
|
195
195
|
*
|
|
196
196
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
197
197
|
* @param GetCommitmentRequest
|
|
@@ -201,7 +201,7 @@ export declare class CommitmentClient {
|
|
|
201
201
|
*/
|
|
202
202
|
getCommitment(getCommitmentRequest: requests.GetCommitmentRequest): Promise<responses.GetCommitmentResponse>;
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Returns all commitments for a particular subscribed service.
|
|
205
205
|
*
|
|
206
206
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
207
207
|
* @param ListCommitmentsRequest
|
|
@@ -309,7 +309,7 @@ export declare class ComputedUsageClient {
|
|
|
309
309
|
*/
|
|
310
310
|
close(): void;
|
|
311
311
|
/**
|
|
312
|
-
*
|
|
312
|
+
* Returns computed usage corresponding to the passed ID.
|
|
313
313
|
*
|
|
314
314
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
315
315
|
* @param GetComputedUsageRequest
|
|
@@ -319,7 +319,7 @@ export declare class ComputedUsageClient {
|
|
|
319
319
|
*/
|
|
320
320
|
getComputedUsage(getComputedUsageRequest: requests.GetComputedUsageRequest): Promise<responses.GetComputedUsageResponse>;
|
|
321
321
|
/**
|
|
322
|
-
*
|
|
322
|
+
* Collection API that returns a list of aggregated computed usage details (there can be multiple parent products under a given SubID, each of which is represented under the subscription service line # in SPM).
|
|
323
323
|
*
|
|
324
324
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
325
325
|
* @param ListAggregatedComputedUsagesRequest
|
|
@@ -361,7 +361,7 @@ export declare class ComputedUsageClient {
|
|
|
361
361
|
*/
|
|
362
362
|
listAggregatedComputedUsagesResponseIterator(request: requests.ListAggregatedComputedUsagesRequest): AsyncIterableIterator<responses.ListAggregatedComputedUsagesResponse>;
|
|
363
363
|
/**
|
|
364
|
-
*
|
|
364
|
+
* Collection API that returns a list of computed usages for the given filters.
|
|
365
365
|
*
|
|
366
366
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
367
367
|
* @param ListComputedUsagesRequest
|
|
@@ -469,7 +469,7 @@ export declare class InvoiceSummaryClient {
|
|
|
469
469
|
*/
|
|
470
470
|
close(): void;
|
|
471
471
|
/**
|
|
472
|
-
*
|
|
472
|
+
* Collection API that returns a list of invoiced computed usages for the given invoice line ID.
|
|
473
473
|
*
|
|
474
474
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
475
475
|
* @param ListInvoicelineComputedUsagesRequest
|
|
@@ -511,7 +511,7 @@ export declare class InvoiceSummaryClient {
|
|
|
511
511
|
*/
|
|
512
512
|
listInvoicelineComputedUsagesResponseIterator(request: requests.ListInvoicelineComputedUsagesRequest): AsyncIterableIterator<responses.ListInvoicelineComputedUsagesResponse>;
|
|
513
513
|
/**
|
|
514
|
-
*
|
|
514
|
+
* Collection API that returns a list of invoices according to the given filters.
|
|
515
515
|
*
|
|
516
516
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
517
517
|
* @param ListInvoicesRequest
|
|
@@ -619,7 +619,7 @@ export declare class OrganizationSubscriptionClient {
|
|
|
619
619
|
*/
|
|
620
620
|
close(): void;
|
|
621
621
|
/**
|
|
622
|
-
*
|
|
622
|
+
* Returns data for the list of subscription IDs returned from the Organizations API.
|
|
623
623
|
*
|
|
624
624
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
625
625
|
* @param ListOrganizationSubscriptionsRequest
|
|
@@ -727,8 +727,8 @@ export declare class RatecardClient {
|
|
|
727
727
|
*/
|
|
728
728
|
close(): void;
|
|
729
729
|
/**
|
|
730
|
-
*
|
|
731
|
-
* for a particular date range
|
|
730
|
+
* Returns all rate cards for a given subscription ID and account ID (if provided), and
|
|
731
|
+
* for a particular date range.
|
|
732
732
|
*
|
|
733
733
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
734
734
|
* @param ListRateCardsRequest
|
|
@@ -836,7 +836,7 @@ export declare class SubscribedServiceClient {
|
|
|
836
836
|
*/
|
|
837
837
|
close(): void;
|
|
838
838
|
/**
|
|
839
|
-
*
|
|
839
|
+
* Returns the subscribed service details corresponding to the provided ID.
|
|
840
840
|
*
|
|
841
841
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
842
842
|
* @param GetSubscribedServiceRequest
|
|
@@ -846,7 +846,7 @@ export declare class SubscribedServiceClient {
|
|
|
846
846
|
*/
|
|
847
847
|
getSubscribedService(getSubscribedServiceRequest: requests.GetSubscribedServiceRequest): Promise<responses.GetSubscribedServiceResponse>;
|
|
848
848
|
/**
|
|
849
|
-
*
|
|
849
|
+
* Returns all subscribed services for a given Subscription ID.
|
|
850
850
|
*
|
|
851
851
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
852
852
|
* @param ListSubscribedServicesRequest
|
|
@@ -954,10 +954,20 @@ export declare class SubscriptionClient {
|
|
|
954
954
|
*/
|
|
955
955
|
close(): void;
|
|
956
956
|
/**
|
|
957
|
-
*
|
|
958
|
-
*
|
|
959
|
-
* This
|
|
960
|
-
*
|
|
957
|
+
* Returns the commitment summary for a subscription.
|
|
958
|
+
*
|
|
959
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
960
|
+
* @param GetSubscriptionDetailsRequest
|
|
961
|
+
* @return GetSubscriptionDetailsResponse
|
|
962
|
+
* @throws OciError when an error occurs
|
|
963
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/onesubscription/GetSubscriptionDetails.ts.html |here} to see how to use GetSubscriptionDetails API.
|
|
964
|
+
*/
|
|
965
|
+
getSubscriptionDetails(getSubscriptionDetailsRequest: requests.GetSubscriptionDetailsRequest): Promise<responses.GetSubscriptionDetailsResponse>;
|
|
966
|
+
/**
|
|
967
|
+
* Returns all subscriptions for a given plan number, subscription ID, or buyer email,
|
|
968
|
+
* and provides additional parameters, to include rate card and commitment details.
|
|
969
|
+
* Exactly one of the these parameters is expected as input. If more than one parameter is provided,
|
|
970
|
+
* a 400 - invalid parameters exception is thrown, and if no parameters are provided, a 400 - missing parameter exception is thrown.
|
|
961
971
|
*
|
|
962
972
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
963
973
|
* @param ListSubscriptionsRequest
|
|
@@ -998,5 +1008,49 @@ export declare class SubscriptionClient {
|
|
|
998
1008
|
* @param request a request which can be sent to the service operation
|
|
999
1009
|
*/
|
|
1000
1010
|
listSubscriptionsResponseIterator(request: requests.ListSubscriptionsRequest): AsyncIterableIterator<responses.ListSubscriptionsResponse>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Returns revenue invoice consumption details for authorization orders that draw down from the
|
|
1013
|
+
* requested subscription. It includes authorization-order subscription IDs but excludes the requested
|
|
1014
|
+
* subscription ID itself.
|
|
1015
|
+
*
|
|
1016
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1017
|
+
* @param ListUsageLedgersRequest
|
|
1018
|
+
* @return ListUsageLedgersResponse
|
|
1019
|
+
* @throws OciError when an error occurs
|
|
1020
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/onesubscription/ListUsageLedgers.ts.html |here} to see how to use ListUsageLedgers API.
|
|
1021
|
+
*/
|
|
1022
|
+
listUsageLedgers(listUsageLedgersRequest: requests.ListUsageLedgersRequest): Promise<responses.ListUsageLedgersResponse>;
|
|
1023
|
+
/**
|
|
1024
|
+
* NOTE: This function is deprecated in favor of listUsageLedgersRecordIterator function.
|
|
1025
|
+
* Creates a new async iterator which will iterate over the models.UsageLedgerSummary objects
|
|
1026
|
+
* contained in responses from the listUsageLedgers operation. This iterator will fetch more data from the
|
|
1027
|
+
* server as needed.
|
|
1028
|
+
*
|
|
1029
|
+
* @param request a request which can be sent to the service operation
|
|
1030
|
+
*/
|
|
1031
|
+
listAllUsageLedgers(request: requests.ListUsageLedgersRequest): AsyncIterableIterator<model.UsageLedgerSummary>;
|
|
1032
|
+
/**
|
|
1033
|
+
* NOTE: This function is deprecated in favor of listUsageLedgersResponseIterator function.
|
|
1034
|
+
* Creates a new async iterator which will iterate over the responses received from the listUsageLedgers operation. This iterator
|
|
1035
|
+
* will fetch more data from the server as needed.
|
|
1036
|
+
*
|
|
1037
|
+
* @param request a request which can be sent to the service operation
|
|
1038
|
+
*/
|
|
1039
|
+
listAllUsageLedgersResponses(request: requests.ListUsageLedgersRequest): AsyncIterableIterator<responses.ListUsageLedgersResponse>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Creates a new async iterator which will iterate over the models.UsageLedgerSummary objects
|
|
1042
|
+
* contained in responses from the listUsageLedgers operation. This iterator will fetch more data from the
|
|
1043
|
+
* server as needed.
|
|
1044
|
+
*
|
|
1045
|
+
* @param request a request which can be sent to the service operation
|
|
1046
|
+
*/
|
|
1047
|
+
listUsageLedgersRecordIterator(request: requests.ListUsageLedgersRequest): AsyncIterableIterator<model.UsageLedgerSummary>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Creates a new async iterator which will iterate over the responses received from the listUsageLedgers operation. This iterator
|
|
1050
|
+
* will fetch more data from the server as needed.
|
|
1051
|
+
*
|
|
1052
|
+
* @param request a request which can be sent to the service operation
|
|
1053
|
+
*/
|
|
1054
|
+
listUsageLedgersResponseIterator(request: requests.ListUsageLedgersRequest): AsyncIterableIterator<responses.ListUsageLedgersResponse>;
|
|
1001
1055
|
}
|
|
1002
1056
|
export {};
|
package/lib/client.js
CHANGED
|
@@ -188,8 +188,8 @@ class BillingScheduleClient {
|
|
|
188
188
|
this.closeProvider();
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
|
-
* This list API returns all billing schedules for given subscription
|
|
192
|
-
* for a particular
|
|
191
|
+
* This list API returns all billing schedules for a given subscription ID, and
|
|
192
|
+
* for a particular subscribed service if provided.
|
|
193
193
|
*
|
|
194
194
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
195
195
|
* @param ListBillingSchedulesRequest
|
|
@@ -440,7 +440,7 @@ class CommitmentClient {
|
|
|
440
440
|
this.closeProvider();
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
|
-
*
|
|
443
|
+
* Returns the commitment details corresponding to the provided ID.
|
|
444
444
|
*
|
|
445
445
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
446
446
|
* @param GetCommitmentRequest
|
|
@@ -499,7 +499,7 @@ class CommitmentClient {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
|
-
*
|
|
502
|
+
* Returns all commitments for a particular subscribed service.
|
|
503
503
|
*
|
|
504
504
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
505
505
|
* @param ListCommitmentsRequest
|
|
@@ -749,7 +749,7 @@ class ComputedUsageClient {
|
|
|
749
749
|
this.closeProvider();
|
|
750
750
|
}
|
|
751
751
|
/**
|
|
752
|
-
*
|
|
752
|
+
* Returns computed usage corresponding to the passed ID.
|
|
753
753
|
*
|
|
754
754
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
755
755
|
* @param GetComputedUsageRequest
|
|
@@ -811,7 +811,7 @@ class ComputedUsageClient {
|
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
813
|
/**
|
|
814
|
-
*
|
|
814
|
+
* Collection API that returns a list of aggregated computed usage details (there can be multiple parent products under a given SubID, each of which is represented under the subscription service line # in SPM).
|
|
815
815
|
*
|
|
816
816
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
817
817
|
* @param ListAggregatedComputedUsagesRequest
|
|
@@ -922,7 +922,7 @@ class ComputedUsageClient {
|
|
|
922
922
|
return oci_common_1.paginateResponses(request, req => this.listAggregatedComputedUsages(req));
|
|
923
923
|
}
|
|
924
924
|
/**
|
|
925
|
-
*
|
|
925
|
+
* Collection API that returns a list of computed usages for the given filters.
|
|
926
926
|
*
|
|
927
927
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
928
928
|
* @param ListComputedUsagesRequest
|
|
@@ -1176,7 +1176,7 @@ class InvoiceSummaryClient {
|
|
|
1176
1176
|
this.closeProvider();
|
|
1177
1177
|
}
|
|
1178
1178
|
/**
|
|
1179
|
-
*
|
|
1179
|
+
* Collection API that returns a list of invoiced computed usages for the given invoice line ID.
|
|
1180
1180
|
*
|
|
1181
1181
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1182
1182
|
* @param ListInvoicelineComputedUsagesRequest
|
|
@@ -1286,7 +1286,7 @@ class InvoiceSummaryClient {
|
|
|
1286
1286
|
return oci_common_1.paginateResponses(request, req => this.listInvoicelineComputedUsages(req));
|
|
1287
1287
|
}
|
|
1288
1288
|
/**
|
|
1289
|
-
*
|
|
1289
|
+
* Collection API that returns a list of invoices according to the given filters.
|
|
1290
1290
|
*
|
|
1291
1291
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1292
1292
|
* @param ListInvoicesRequest
|
|
@@ -1539,7 +1539,7 @@ class OrganizationSubscriptionClient {
|
|
|
1539
1539
|
this.closeProvider();
|
|
1540
1540
|
}
|
|
1541
1541
|
/**
|
|
1542
|
-
*
|
|
1542
|
+
* Returns data for the list of subscription IDs returned from the Organizations API.
|
|
1543
1543
|
*
|
|
1544
1544
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1545
1545
|
* @param ListOrganizationSubscriptionsRequest
|
|
@@ -1788,8 +1788,8 @@ class RatecardClient {
|
|
|
1788
1788
|
this.closeProvider();
|
|
1789
1789
|
}
|
|
1790
1790
|
/**
|
|
1791
|
-
*
|
|
1792
|
-
* for a particular date range
|
|
1791
|
+
* Returns all rate cards for a given subscription ID and account ID (if provided), and
|
|
1792
|
+
* for a particular date range.
|
|
1793
1793
|
*
|
|
1794
1794
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1795
1795
|
* @param ListRateCardsRequest
|
|
@@ -2042,7 +2042,7 @@ class SubscribedServiceClient {
|
|
|
2042
2042
|
this.closeProvider();
|
|
2043
2043
|
}
|
|
2044
2044
|
/**
|
|
2045
|
-
*
|
|
2045
|
+
* Returns the subscribed service details corresponding to the provided ID.
|
|
2046
2046
|
*
|
|
2047
2047
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2048
2048
|
* @param GetSubscribedServiceRequest
|
|
@@ -2103,7 +2103,7 @@ class SubscribedServiceClient {
|
|
|
2103
2103
|
});
|
|
2104
2104
|
}
|
|
2105
2105
|
/**
|
|
2106
|
-
*
|
|
2106
|
+
* Returns all subscribed services for a given Subscription ID.
|
|
2107
2107
|
*
|
|
2108
2108
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2109
2109
|
* @param ListSubscribedServicesRequest
|
|
@@ -2355,10 +2355,70 @@ class SubscriptionClient {
|
|
|
2355
2355
|
this.closeProvider();
|
|
2356
2356
|
}
|
|
2357
2357
|
/**
|
|
2358
|
-
*
|
|
2359
|
-
*
|
|
2360
|
-
* This
|
|
2361
|
-
*
|
|
2358
|
+
* Returns the commitment summary for a subscription.
|
|
2359
|
+
*
|
|
2360
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2361
|
+
* @param GetSubscriptionDetailsRequest
|
|
2362
|
+
* @return GetSubscriptionDetailsResponse
|
|
2363
|
+
* @throws OciError when an error occurs
|
|
2364
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/onesubscription/GetSubscriptionDetails.ts.html |here} to see how to use GetSubscriptionDetails API.
|
|
2365
|
+
*/
|
|
2366
|
+
getSubscriptionDetails(getSubscriptionDetailsRequest) {
|
|
2367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2368
|
+
if (this.logger)
|
|
2369
|
+
this.logger.debug("Calling operation SubscriptionClient#getSubscriptionDetails.");
|
|
2370
|
+
const operationName = "getSubscriptionDetails";
|
|
2371
|
+
const apiReferenceLink = "";
|
|
2372
|
+
const pathParams = {};
|
|
2373
|
+
const queryParams = {
|
|
2374
|
+
"subscriptionId": getSubscriptionDetailsRequest.subscriptionId,
|
|
2375
|
+
"compartmentId": getSubscriptionDetailsRequest.compartmentId
|
|
2376
|
+
};
|
|
2377
|
+
let headerParams = {
|
|
2378
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2379
|
+
"opc-request-id": getSubscriptionDetailsRequest.opcRequestId
|
|
2380
|
+
};
|
|
2381
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2382
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriptionDetailsRequest.retryConfiguration, specRetryConfiguration);
|
|
2383
|
+
if (this.logger)
|
|
2384
|
+
retrier.logger = this.logger;
|
|
2385
|
+
const request = yield oci_common_2.composeRequest({
|
|
2386
|
+
baseEndpoint: this._endpoint,
|
|
2387
|
+
defaultHeaders: this._defaultHeaders,
|
|
2388
|
+
path: "/subscriptionDetails",
|
|
2389
|
+
method: "GET",
|
|
2390
|
+
pathParams: pathParams,
|
|
2391
|
+
headerParams: headerParams,
|
|
2392
|
+
queryParams: queryParams
|
|
2393
|
+
});
|
|
2394
|
+
try {
|
|
2395
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2396
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2397
|
+
responseObject: {},
|
|
2398
|
+
body: yield response.json(),
|
|
2399
|
+
bodyKey: "subscriptionDetails",
|
|
2400
|
+
bodyModel: model.SubscriptionDetails,
|
|
2401
|
+
type: "model.SubscriptionDetails",
|
|
2402
|
+
responseHeaders: [
|
|
2403
|
+
{
|
|
2404
|
+
value: response.headers.get("opc-request-id"),
|
|
2405
|
+
key: "opcRequestId",
|
|
2406
|
+
dataType: "string"
|
|
2407
|
+
}
|
|
2408
|
+
]
|
|
2409
|
+
});
|
|
2410
|
+
return sdkResponse;
|
|
2411
|
+
}
|
|
2412
|
+
catch (err) {
|
|
2413
|
+
throw err;
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Returns all subscriptions for a given plan number, subscription ID, or buyer email,
|
|
2419
|
+
* and provides additional parameters, to include rate card and commitment details.
|
|
2420
|
+
* Exactly one of the these parameters is expected as input. If more than one parameter is provided,
|
|
2421
|
+
* a 400 - invalid parameters exception is thrown, and if no parameters are provided, a 400 - missing parameter exception is thrown.
|
|
2362
2422
|
*
|
|
2363
2423
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2364
2424
|
* @param ListSubscriptionsRequest
|
|
@@ -2469,6 +2529,120 @@ class SubscriptionClient {
|
|
|
2469
2529
|
listSubscriptionsResponseIterator(request) {
|
|
2470
2530
|
return oci_common_1.paginateResponses(request, req => this.listSubscriptions(req));
|
|
2471
2531
|
}
|
|
2532
|
+
/**
|
|
2533
|
+
* Returns revenue invoice consumption details for authorization orders that draw down from the
|
|
2534
|
+
* requested subscription. It includes authorization-order subscription IDs but excludes the requested
|
|
2535
|
+
* subscription ID itself.
|
|
2536
|
+
*
|
|
2537
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2538
|
+
* @param ListUsageLedgersRequest
|
|
2539
|
+
* @return ListUsageLedgersResponse
|
|
2540
|
+
* @throws OciError when an error occurs
|
|
2541
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/onesubscription/ListUsageLedgers.ts.html |here} to see how to use ListUsageLedgers API.
|
|
2542
|
+
*/
|
|
2543
|
+
listUsageLedgers(listUsageLedgersRequest) {
|
|
2544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2545
|
+
if (this.logger)
|
|
2546
|
+
this.logger.debug("Calling operation SubscriptionClient#listUsageLedgers.");
|
|
2547
|
+
const operationName = "listUsageLedgers";
|
|
2548
|
+
const apiReferenceLink = "";
|
|
2549
|
+
const pathParams = {
|
|
2550
|
+
"{subscriptionId}": listUsageLedgersRequest.subscriptionId
|
|
2551
|
+
};
|
|
2552
|
+
const queryParams = {
|
|
2553
|
+
"compartmentId": listUsageLedgersRequest.compartmentId,
|
|
2554
|
+
"limit": listUsageLedgersRequest.limit,
|
|
2555
|
+
"page": listUsageLedgersRequest.page,
|
|
2556
|
+
"sortOrder": listUsageLedgersRequest.sortOrder,
|
|
2557
|
+
"sortBy": listUsageLedgersRequest.sortBy,
|
|
2558
|
+
"timeConsumptionGreaterThanOrEqualTo": listUsageLedgersRequest.timeConsumptionGreaterThanOrEqualTo,
|
|
2559
|
+
"timeConsumptionLessThan": listUsageLedgersRequest.timeConsumptionLessThan
|
|
2560
|
+
};
|
|
2561
|
+
let headerParams = {
|
|
2562
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2563
|
+
"opc-request-id": listUsageLedgersRequest.opcRequestId
|
|
2564
|
+
};
|
|
2565
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2566
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listUsageLedgersRequest.retryConfiguration, specRetryConfiguration);
|
|
2567
|
+
if (this.logger)
|
|
2568
|
+
retrier.logger = this.logger;
|
|
2569
|
+
const request = yield oci_common_2.composeRequest({
|
|
2570
|
+
baseEndpoint: this._endpoint,
|
|
2571
|
+
defaultHeaders: this._defaultHeaders,
|
|
2572
|
+
path: "/subscriptionDetails/{subscriptionId}/usageLedger",
|
|
2573
|
+
method: "GET",
|
|
2574
|
+
pathParams: pathParams,
|
|
2575
|
+
headerParams: headerParams,
|
|
2576
|
+
queryParams: queryParams
|
|
2577
|
+
});
|
|
2578
|
+
try {
|
|
2579
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2580
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2581
|
+
responseObject: {},
|
|
2582
|
+
body: yield response.json(),
|
|
2583
|
+
bodyKey: "items",
|
|
2584
|
+
bodyModel: model.UsageLedgerSummary,
|
|
2585
|
+
type: "Array<model.UsageLedgerSummary>",
|
|
2586
|
+
responseHeaders: [
|
|
2587
|
+
{
|
|
2588
|
+
value: response.headers.get("opc-next-page"),
|
|
2589
|
+
key: "opcNextPage",
|
|
2590
|
+
dataType: "string"
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
value: response.headers.get("opc-request-id"),
|
|
2594
|
+
key: "opcRequestId",
|
|
2595
|
+
dataType: "string"
|
|
2596
|
+
}
|
|
2597
|
+
]
|
|
2598
|
+
});
|
|
2599
|
+
return sdkResponse;
|
|
2600
|
+
}
|
|
2601
|
+
catch (err) {
|
|
2602
|
+
throw err;
|
|
2603
|
+
}
|
|
2604
|
+
});
|
|
2605
|
+
}
|
|
2606
|
+
/**
|
|
2607
|
+
* NOTE: This function is deprecated in favor of listUsageLedgersRecordIterator function.
|
|
2608
|
+
* Creates a new async iterator which will iterate over the models.UsageLedgerSummary objects
|
|
2609
|
+
* contained in responses from the listUsageLedgers operation. This iterator will fetch more data from the
|
|
2610
|
+
* server as needed.
|
|
2611
|
+
*
|
|
2612
|
+
* @param request a request which can be sent to the service operation
|
|
2613
|
+
*/
|
|
2614
|
+
listAllUsageLedgers(request) {
|
|
2615
|
+
return oci_common_1.paginateRecords(request, req => this.listUsageLedgers(req));
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
* NOTE: This function is deprecated in favor of listUsageLedgersResponseIterator function.
|
|
2619
|
+
* Creates a new async iterator which will iterate over the responses received from the listUsageLedgers operation. This iterator
|
|
2620
|
+
* will fetch more data from the server as needed.
|
|
2621
|
+
*
|
|
2622
|
+
* @param request a request which can be sent to the service operation
|
|
2623
|
+
*/
|
|
2624
|
+
listAllUsageLedgersResponses(request) {
|
|
2625
|
+
return oci_common_1.paginateResponses(request, req => this.listUsageLedgers(req));
|
|
2626
|
+
}
|
|
2627
|
+
/**
|
|
2628
|
+
* Creates a new async iterator which will iterate over the models.UsageLedgerSummary objects
|
|
2629
|
+
* contained in responses from the listUsageLedgers operation. This iterator will fetch more data from the
|
|
2630
|
+
* server as needed.
|
|
2631
|
+
*
|
|
2632
|
+
* @param request a request which can be sent to the service operation
|
|
2633
|
+
*/
|
|
2634
|
+
listUsageLedgersRecordIterator(request) {
|
|
2635
|
+
return oci_common_1.paginateRecords(request, req => this.listUsageLedgers(req));
|
|
2636
|
+
}
|
|
2637
|
+
/**
|
|
2638
|
+
* Creates a new async iterator which will iterate over the responses received from the listUsageLedgers operation. This iterator
|
|
2639
|
+
* will fetch more data from the server as needed.
|
|
2640
|
+
*
|
|
2641
|
+
* @param request a request which can be sent to the service operation
|
|
2642
|
+
*/
|
|
2643
|
+
listUsageLedgersResponseIterator(request) {
|
|
2644
|
+
return oci_common_1.paginateResponses(request, req => this.listUsageLedgers(req));
|
|
2645
|
+
}
|
|
2472
2646
|
}
|
|
2473
2647
|
exports.SubscriptionClient = SubscriptionClient;
|
|
2474
2648
|
SubscriptionClient.serviceEndpointTemplate = "https://identity.{region}.oci.{secondLevelDomain}";
|