oci-osubsubscription 2.12.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.
Files changed (74) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +1521 -0
  5. package/index.d.ts +23 -0
  6. package/index.js +46 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +274 -0
  9. package/lib/client.js +681 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/model/commitment-detail.d.ts +59 -0
  12. package/lib/model/commitment-detail.js +30 -0
  13. package/lib/model/commitment-detail.js.map +1 -0
  14. package/lib/model/commitment-summary.d.ts +59 -0
  15. package/lib/model/commitment-summary.js +30 -0
  16. package/lib/model/commitment-summary.js.map +1 -0
  17. package/lib/model/commitment.d.ts +53 -0
  18. package/lib/model/commitment.js +30 -0
  19. package/lib/model/commitment.js.map +1 -0
  20. package/lib/model/currency.d.ts +38 -0
  21. package/lib/model/currency.js +30 -0
  22. package/lib/model/currency.js.map +1 -0
  23. package/lib/model/index.d.ts +33 -0
  24. package/lib/model/index.js +56 -0
  25. package/lib/model/index.js.map +1 -0
  26. package/lib/model/product.d.ts +53 -0
  27. package/lib/model/product.js +30 -0
  28. package/lib/model/product.js.map +1 -0
  29. package/lib/model/rate-card-summary.d.ts +61 -0
  30. package/lib/model/rate-card-summary.js +66 -0
  31. package/lib/model/rate-card-summary.js.map +1 -0
  32. package/lib/model/rate-card-tier.d.ts +38 -0
  33. package/lib/model/rate-card-tier.js +30 -0
  34. package/lib/model/rate-card-tier.js.map +1 -0
  35. package/lib/model/subscribed-service-summary.d.ts +131 -0
  36. package/lib/model/subscribed-service-summary.js +66 -0
  37. package/lib/model/subscribed-service-summary.js.map +1 -0
  38. package/lib/model/subscription-product.d.ts +43 -0
  39. package/lib/model/subscription-product.js +30 -0
  40. package/lib/model/subscription-product.js.map +1 -0
  41. package/lib/model/subscription-summary.d.ts +50 -0
  42. package/lib/model/subscription-summary.js +64 -0
  43. package/lib/model/subscription-summary.js.map +1 -0
  44. package/lib/request/get-commitment-request.d.ts +38 -0
  45. package/lib/request/get-commitment-request.js +15 -0
  46. package/lib/request/get-commitment-request.js.map +1 -0
  47. package/lib/request/index.d.ts +21 -0
  48. package/lib/request/index.js +42 -0
  49. package/lib/request/index.js.map +1 -0
  50. package/lib/request/list-commitments-request.d.ts +75 -0
  51. package/lib/request/list-commitments-request.js +29 -0
  52. package/lib/request/list-commitments-request.js.map +1 -0
  53. package/lib/request/list-rate-cards-request.d.ts +80 -0
  54. package/lib/request/list-rate-cards-request.js +29 -0
  55. package/lib/request/list-rate-cards-request.js.map +1 -0
  56. package/lib/request/list-subscriptions-request.d.ts +86 -0
  57. package/lib/request/list-subscriptions-request.js +29 -0
  58. package/lib/request/list-subscriptions-request.js.map +1 -0
  59. package/lib/response/get-commitment-response.d.ts +25 -0
  60. package/lib/response/get-commitment-response.js +15 -0
  61. package/lib/response/get-commitment-response.js.map +1 -0
  62. package/lib/response/index.d.ts +21 -0
  63. package/lib/response/index.js +16 -0
  64. package/lib/response/index.js.map +1 -0
  65. package/lib/response/list-commitments-response.d.ts +32 -0
  66. package/lib/response/list-commitments-response.js +15 -0
  67. package/lib/response/list-commitments-response.js.map +1 -0
  68. package/lib/response/list-rate-cards-response.d.ts +27 -0
  69. package/lib/response/list-rate-cards-response.js +15 -0
  70. package/lib/response/list-rate-cards-response.js.map +1 -0
  71. package/lib/response/list-subscriptions-response.d.ts +32 -0
  72. package/lib/response/list-subscriptions-response.js +15 -0
  73. package/lib/response/list-subscriptions-response.js.map +1 -0
  74. package/package.json +29 -0
package/index.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ /**
2
+ * OneSubscription API Subscription, Commitment and and Rate Card Details
3
+ * Set of APIs that return the Subscription Details, Commitment and Effective Rate Card Details
4
+
5
+ * OpenAPI spec version: 20210501
6
+ * Contact: kuaskum_org_ww@oracle.com
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ import * as requests from "./lib/request";
15
+ import * as models from "./lib/model";
16
+ import * as responses from "./lib/response";
17
+ import * as client from "./lib/client";
18
+ export { models };
19
+ export { requests };
20
+ export { responses };
21
+ export import CommitmentClient = client.CommitmentClient;
22
+ export import RatecardClient = client.RatecardClient;
23
+ export import SubscriptionClient = client.SubscriptionClient;
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * OneSubscription API Subscription, Commitment and and Rate Card Details
4
+ * Set of APIs that return the Subscription Details, Commitment and Effective Rate Card Details
5
+
6
+ * OpenAPI spec version: 20210501
7
+ * Contact: kuaskum_org_ww@oracle.com
8
+ *
9
+ * NOTE: This class is auto generated by OracleSDKGenerator.
10
+ * Do not edit the class manually.
11
+ *
12
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
13
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
18
+ }) : (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ }));
22
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
23
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
24
+ }) : function(o, v) {
25
+ o["default"] = v;
26
+ });
27
+ var __importStar = (this && this.__importStar) || function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.SubscriptionClient = exports.RatecardClient = exports.CommitmentClient = exports.responses = exports.requests = exports.models = void 0;
36
+ const requests = __importStar(require("./lib/request"));
37
+ exports.requests = requests;
38
+ const models = __importStar(require("./lib/model"));
39
+ exports.models = models;
40
+ const responses = __importStar(require("./lib/response"));
41
+ exports.responses = responses;
42
+ const client = __importStar(require("./lib/client"));
43
+ exports.CommitmentClient = client.CommitmentClient;
44
+ exports.RatecardClient = client.RatecardClient;
45
+ exports.SubscriptionClient = client.SubscriptionClient;
46
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/osubsubscription/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAMjC,4BAAQ;AALjB,oDAAsC;AAI7B,wBAAM;AAHf,0DAA4C;AAKnC,8BAAS;AAJlB,qDAAuC;AAKzB,QAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC3C,QAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,QAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC"}
@@ -0,0 +1,274 @@
1
+ /**
2
+ * OneSubscription API Subscription, Commitment and and Rate Card Details
3
+ * Set of APIs that return the Subscription Details, Commitment and Effective Rate Card Details
4
+
5
+ * OpenAPI spec version: 20210501
6
+ * Contact: kuaskum_org_ww@oracle.com
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ import common = require("oci-common");
15
+ import * as requests from "./request";
16
+ import * as model from "./model";
17
+ import * as responses from "./response";
18
+ export declare enum CommitmentApiKeys {
19
+ }
20
+ /**
21
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
22
+ */
23
+ export declare class CommitmentClient {
24
+ protected static serviceEndpointTemplate: string;
25
+ protected "_endpoint": string;
26
+ protected "_defaultHeaders": any;
27
+ protected "_clientConfiguration": common.ClientConfiguration;
28
+ protected _circuitBreaker: null;
29
+ protected _httpClient: common.HttpClient;
30
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
31
+ /**
32
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
33
+ */
34
+ get endpoint(): string;
35
+ /**
36
+ * Sets the endpoint to call (ex, https://www.example.com).
37
+ * @param endpoint The endpoint of the service.
38
+ */
39
+ set endpoint(endpoint: string);
40
+ get logger(): import("oci-common/lib/log").Logger;
41
+ /**
42
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
43
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
44
+ * @param region The region of the service.
45
+ */
46
+ set region(region: common.Region);
47
+ /**
48
+ * Sets the regionId to call (ex, 'us-phoenix-1').
49
+ *
50
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
51
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
52
+ * and then call {@link #endpoint(String) endpoint}.
53
+ * @param regionId The public region ID.
54
+ */
55
+ set regionId(regionId: string);
56
+ /**
57
+ * This API returns the commitment details corresponding to the id provided
58
+ *
59
+ * This operation does not retry by default if the user has not defined a retry configuration.
60
+ * @param GetCommitmentRequest
61
+ * @return GetCommitmentResponse
62
+ * @throws OciError when an error occurs
63
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.0/osubsubscription/GetCommitment.ts.html |here} to see how to use GetCommitment API.
64
+ */
65
+ getCommitment(getCommitmentRequest: requests.GetCommitmentRequest): Promise<responses.GetCommitmentResponse>;
66
+ /**
67
+ * This list API returns all commitments for a particular Subscribed Service
68
+ *
69
+ * This operation does not retry by default if the user has not defined a retry configuration.
70
+ * @param ListCommitmentsRequest
71
+ * @return ListCommitmentsResponse
72
+ * @throws OciError when an error occurs
73
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.0/osubsubscription/ListCommitments.ts.html |here} to see how to use ListCommitments API.
74
+ */
75
+ listCommitments(listCommitmentsRequest: requests.ListCommitmentsRequest): Promise<responses.ListCommitmentsResponse>;
76
+ /**
77
+ * NOTE: This function is deprecated in favor of listCommitmentsRecordIterator function.
78
+ * Creates a new async iterator which will iterate over the models.CommitmentSummary objects
79
+ * contained in responses from the listCommitments operation. This iterator will fetch more data from the
80
+ * server as needed.
81
+ *
82
+ * @param request a request which can be sent to the service operation
83
+ */
84
+ listAllCommitments(request: requests.ListCommitmentsRequest): AsyncIterableIterator<model.CommitmentSummary>;
85
+ /**
86
+ * NOTE: This function is deprecated in favor of listCommitmentsResponseIterator function.
87
+ * Creates a new async iterator which will iterate over the responses received from the listCommitments operation. This iterator
88
+ * will fetch more data from the server as needed.
89
+ *
90
+ * @param request a request which can be sent to the service operation
91
+ */
92
+ listAllCommitmentsResponses(request: requests.ListCommitmentsRequest): AsyncIterableIterator<responses.ListCommitmentsResponse>;
93
+ /**
94
+ * Creates a new async iterator which will iterate over the models.CommitmentSummary objects
95
+ * contained in responses from the listCommitments operation. This iterator will fetch more data from the
96
+ * server as needed.
97
+ *
98
+ * @param request a request which can be sent to the service operation
99
+ */
100
+ listCommitmentsRecordIterator(request: requests.ListCommitmentsRequest): AsyncIterableIterator<model.CommitmentSummary>;
101
+ /**
102
+ * Creates a new async iterator which will iterate over the responses received from the listCommitments operation. This iterator
103
+ * will fetch more data from the server as needed.
104
+ *
105
+ * @param request a request which can be sent to the service operation
106
+ */
107
+ listCommitmentsResponseIterator(request: requests.ListCommitmentsRequest): AsyncIterableIterator<responses.ListCommitmentsResponse>;
108
+ }
109
+ export declare enum RatecardApiKeys {
110
+ }
111
+ /**
112
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
113
+ */
114
+ export declare class RatecardClient {
115
+ protected static serviceEndpointTemplate: string;
116
+ protected "_endpoint": string;
117
+ protected "_defaultHeaders": any;
118
+ protected "_clientConfiguration": common.ClientConfiguration;
119
+ protected _circuitBreaker: null;
120
+ protected _httpClient: common.HttpClient;
121
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
122
+ /**
123
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
124
+ */
125
+ get endpoint(): string;
126
+ /**
127
+ * Sets the endpoint to call (ex, https://www.example.com).
128
+ * @param endpoint The endpoint of the service.
129
+ */
130
+ set endpoint(endpoint: string);
131
+ get logger(): import("oci-common/lib/log").Logger;
132
+ /**
133
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
134
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
135
+ * @param region The region of the service.
136
+ */
137
+ set region(region: common.Region);
138
+ /**
139
+ * Sets the regionId to call (ex, 'us-phoenix-1').
140
+ *
141
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
142
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
143
+ * and then call {@link #endpoint(String) endpoint}.
144
+ * @param regionId The public region ID.
145
+ */
146
+ set regionId(regionId: string);
147
+ /**
148
+ * List API that returns all ratecards for given Subscription Id and Account ID (if provided) and
149
+ * for a particular date range
150
+ *
151
+ * This operation does not retry by default if the user has not defined a retry configuration.
152
+ * @param ListRateCardsRequest
153
+ * @return ListRateCardsResponse
154
+ * @throws OciError when an error occurs
155
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.0/osubsubscription/ListRateCards.ts.html |here} to see how to use ListRateCards API.
156
+ */
157
+ listRateCards(listRateCardsRequest: requests.ListRateCardsRequest): Promise<responses.ListRateCardsResponse>;
158
+ /**
159
+ * NOTE: This function is deprecated in favor of listRateCardsRecordIterator function.
160
+ * Creates a new async iterator which will iterate over the models.RateCardSummary objects
161
+ * contained in responses from the listRateCards operation. This iterator will fetch more data from the
162
+ * server as needed.
163
+ *
164
+ * @param request a request which can be sent to the service operation
165
+ */
166
+ listAllRateCards(request: requests.ListRateCardsRequest): AsyncIterableIterator<model.RateCardSummary>;
167
+ /**
168
+ * NOTE: This function is deprecated in favor of listRateCardsResponseIterator function.
169
+ * Creates a new async iterator which will iterate over the responses received from the listRateCards operation. This iterator
170
+ * will fetch more data from the server as needed.
171
+ *
172
+ * @param request a request which can be sent to the service operation
173
+ */
174
+ listAllRateCardsResponses(request: requests.ListRateCardsRequest): AsyncIterableIterator<responses.ListRateCardsResponse>;
175
+ /**
176
+ * Creates a new async iterator which will iterate over the models.RateCardSummary objects
177
+ * contained in responses from the listRateCards operation. This iterator will fetch more data from the
178
+ * server as needed.
179
+ *
180
+ * @param request a request which can be sent to the service operation
181
+ */
182
+ listRateCardsRecordIterator(request: requests.ListRateCardsRequest): AsyncIterableIterator<model.RateCardSummary>;
183
+ /**
184
+ * Creates a new async iterator which will iterate over the responses received from the listRateCards operation. This iterator
185
+ * will fetch more data from the server as needed.
186
+ *
187
+ * @param request a request which can be sent to the service operation
188
+ */
189
+ listRateCardsResponseIterator(request: requests.ListRateCardsRequest): AsyncIterableIterator<responses.ListRateCardsResponse>;
190
+ }
191
+ export declare enum SubscriptionApiKeys {
192
+ }
193
+ /**
194
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
195
+ */
196
+ export declare class SubscriptionClient {
197
+ protected static serviceEndpointTemplate: string;
198
+ protected "_endpoint": string;
199
+ protected "_defaultHeaders": any;
200
+ protected "_clientConfiguration": common.ClientConfiguration;
201
+ protected _circuitBreaker: null;
202
+ protected _httpClient: common.HttpClient;
203
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
204
+ /**
205
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
206
+ */
207
+ get endpoint(): string;
208
+ /**
209
+ * Sets the endpoint to call (ex, https://www.example.com).
210
+ * @param endpoint The endpoint of the service.
211
+ */
212
+ set endpoint(endpoint: string);
213
+ get logger(): import("oci-common/lib/log").Logger;
214
+ /**
215
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
216
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
217
+ * @param region The region of the service.
218
+ */
219
+ set region(region: common.Region);
220
+ /**
221
+ * Sets the regionId to call (ex, 'us-phoenix-1').
222
+ *
223
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
224
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
225
+ * and then call {@link #endpoint(String) endpoint}.
226
+ * @param regionId The public region ID.
227
+ */
228
+ set regionId(regionId: string);
229
+ /**
230
+ * This list API returns all subscriptions for a given plan number or subscription id or buyer email
231
+ * and provides additional parameters to include ratecard and commitment details.
232
+ * This API expects exactly one of the above mentioned parameters as input. If more than one parameters are provided the API will throw
233
+ * a 400 - invalid parameters exception and if no parameters are provided it will throw a 400 - missing parameter exception
234
+ *
235
+ * This operation does not retry by default if the user has not defined a retry configuration.
236
+ * @param ListSubscriptionsRequest
237
+ * @return ListSubscriptionsResponse
238
+ * @throws OciError when an error occurs
239
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.12.0/osubsubscription/ListSubscriptions.ts.html |here} to see how to use ListSubscriptions API.
240
+ */
241
+ listSubscriptions(listSubscriptionsRequest: requests.ListSubscriptionsRequest): Promise<responses.ListSubscriptionsResponse>;
242
+ /**
243
+ * NOTE: This function is deprecated in favor of listSubscriptionsRecordIterator function.
244
+ * Creates a new async iterator which will iterate over the models.SubscriptionSummary objects
245
+ * contained in responses from the listSubscriptions operation. This iterator will fetch more data from the
246
+ * server as needed.
247
+ *
248
+ * @param request a request which can be sent to the service operation
249
+ */
250
+ listAllSubscriptions(request: requests.ListSubscriptionsRequest): AsyncIterableIterator<model.SubscriptionSummary>;
251
+ /**
252
+ * NOTE: This function is deprecated in favor of listSubscriptionsResponseIterator function.
253
+ * Creates a new async iterator which will iterate over the responses received from the listSubscriptions operation. This iterator
254
+ * will fetch more data from the server as needed.
255
+ *
256
+ * @param request a request which can be sent to the service operation
257
+ */
258
+ listAllSubscriptionsResponses(request: requests.ListSubscriptionsRequest): AsyncIterableIterator<responses.ListSubscriptionsResponse>;
259
+ /**
260
+ * Creates a new async iterator which will iterate over the models.SubscriptionSummary objects
261
+ * contained in responses from the listSubscriptions operation. This iterator will fetch more data from the
262
+ * server as needed.
263
+ *
264
+ * @param request a request which can be sent to the service operation
265
+ */
266
+ listSubscriptionsRecordIterator(request: requests.ListSubscriptionsRequest): AsyncIterableIterator<model.SubscriptionSummary>;
267
+ /**
268
+ * Creates a new async iterator which will iterate over the responses received from the listSubscriptions operation. This iterator
269
+ * will fetch more data from the server as needed.
270
+ *
271
+ * @param request a request which can be sent to the service operation
272
+ */
273
+ listSubscriptionsResponseIterator(request: requests.ListSubscriptionsRequest): AsyncIterableIterator<responses.ListSubscriptionsResponse>;
274
+ }