oci-usage 2.62.1 → 2.62.2

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 (59) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +3 -1
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +142 -6
  5. package/lib/client.js +437 -7
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/index.d.ts +14 -0
  8. package/lib/model/index.js +15 -1
  9. package/lib/model/index.js.map +1 -1
  10. package/lib/model/resource-quotum-collection.d.ts +30 -0
  11. package/lib/model/resource-quotum-collection.js +61 -0
  12. package/lib/model/resource-quotum-collection.js.map +1 -0
  13. package/lib/model/resource-quotum-summary.d.ts +58 -0
  14. package/lib/model/resource-quotum-summary.js +29 -0
  15. package/lib/model/resource-quotum-summary.js.map +1 -0
  16. package/lib/model/resource-summary.d.ts +76 -0
  17. package/lib/model/resource-summary.js +71 -0
  18. package/lib/model/resource-summary.js.map +1 -0
  19. package/lib/model/resources-collection.d.ts +26 -0
  20. package/lib/model/resources-collection.js +61 -0
  21. package/lib/model/resources-collection.js.map +1 -0
  22. package/lib/model/sku-products.d.ts +34 -0
  23. package/lib/model/sku-products.js +29 -0
  24. package/lib/model/sku-products.js.map +1 -0
  25. package/lib/model/usage-limit-collection.d.ts +26 -0
  26. package/lib/model/usage-limit-collection.js +61 -0
  27. package/lib/model/usage-limit-collection.js.map +1 -0
  28. package/lib/model/usage-limit-summary.d.ts +120 -0
  29. package/lib/model/usage-limit-summary.js +68 -0
  30. package/lib/model/usage-limit-summary.js.map +1 -0
  31. package/lib/request/create-redeemable-user-request.d.ts +1 -1
  32. package/lib/request/delete-redeemable-user-request.d.ts +1 -1
  33. package/lib/request/index.d.ts +6 -0
  34. package/lib/request/index.js +7 -1
  35. package/lib/request/index.js.map +1 -1
  36. package/lib/request/list-products-request.d.ts +1 -1
  37. package/lib/request/list-redeemable-users-request.d.ts +1 -1
  38. package/lib/request/list-redemptions-request.d.ts +1 -1
  39. package/lib/request/list-resource-quota-request.d.ts +60 -0
  40. package/lib/request/list-resource-quota-request.js +29 -0
  41. package/lib/request/list-resource-quota-request.js.map +1 -0
  42. package/lib/request/list-resources-request.d.ts +60 -0
  43. package/lib/request/list-resources-request.js +29 -0
  44. package/lib/request/list-resources-request.js.map +1 -0
  45. package/lib/request/list-rewards-request.d.ts +1 -1
  46. package/lib/request/list-usage-limits-request.d.ts +68 -0
  47. package/lib/request/list-usage-limits-request.js +29 -0
  48. package/lib/request/list-usage-limits-request.js.map +1 -0
  49. package/lib/response/index.d.ts +6 -0
  50. package/lib/response/list-resource-quota-response.d.ts +32 -0
  51. package/lib/response/list-resource-quota-response.js +15 -0
  52. package/lib/response/list-resource-quota-response.js.map +1 -0
  53. package/lib/response/list-resources-response.d.ts +32 -0
  54. package/lib/response/list-resources-response.js +15 -0
  55. package/lib/response/list-resources-response.js.map +1 -0
  56. package/lib/response/list-usage-limits-response.d.ts +32 -0
  57. package/lib/response/list-usage-limits-response.js +15 -0
  58. package/lib/response/list-usage-limits-response.js.map +1 -0
  59. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -17,4 +17,6 @@ import * as client from "./lib/client";
17
17
  export { models };
18
18
  export { requests };
19
19
  export { responses };
20
+ export import ResourcesClient = client.ResourcesClient;
20
21
  export import RewardsClient = client.RewardsClient;
22
+ export import UsagelimitsClient = client.UsagelimitsClient;
package/index.js CHANGED
@@ -31,7 +31,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
31
31
  return result;
32
32
  };
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
- exports.RewardsClient = exports.responses = exports.requests = exports.models = void 0;
34
+ exports.UsagelimitsClient = exports.RewardsClient = exports.ResourcesClient = exports.responses = exports.requests = exports.models = void 0;
35
35
  const requests = __importStar(require("./lib/request"));
36
36
  exports.requests = requests;
37
37
  const models = __importStar(require("./lib/model"));
@@ -39,5 +39,7 @@ exports.models = models;
39
39
  const responses = __importStar(require("./lib/response"));
40
40
  exports.responses = responses;
41
41
  const client = __importStar(require("./lib/client"));
42
+ exports.ResourcesClient = client.ResourcesClient;
42
43
  exports.RewardsClient = client.RewardsClient;
44
+ exports.UsagelimitsClient = client.UsagelimitsClient;
43
45
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/usage/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAMjC,4BAAQ;AALjB,oDAAsC;AAI7B,wBAAM;AAHf,0DAA4C;AAKnC,8BAAS;AAJlB,qDAAuC;AAKzB,QAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/usage/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,wDAA0C;AAMjC,4BAAQ;AALjB,oDAAsC;AAI7B,wBAAM;AAHf,0DAA4C;AAKnC,8BAAS;AAJlB,qDAAuC;AAKzB,QAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,QAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC"}
package/lib/client.d.ts CHANGED
@@ -13,6 +13,80 @@
13
13
  import common = require("oci-common");
14
14
  import * as requests from "./request";
15
15
  import * as responses from "./response";
16
+ export declare enum ResourcesApiKeys {
17
+ }
18
+ /**
19
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
20
+ */
21
+ export declare class ResourcesClient {
22
+ protected static serviceEndpointTemplate: string;
23
+ protected static endpointServiceName: string;
24
+ protected "_realmSpecificEndpointTemplateEnabled": boolean;
25
+ protected "_endpoint": string;
26
+ protected "_defaultHeaders": any;
27
+ protected "_clientConfiguration": common.ClientConfiguration;
28
+ protected _circuitBreaker: null;
29
+ protected _httpOptions: any;
30
+ targetService: string;
31
+ protected _regionId: string;
32
+ protected "_region": common.Region;
33
+ protected _lastSetRegionOrRegionId: string;
34
+ protected _httpClient: common.HttpClient;
35
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
36
+ /**
37
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
38
+ */
39
+ get endpoint(): string;
40
+ /**
41
+ * Sets the endpoint to call (ex, https://www.example.com).
42
+ * @param endpoint The endpoint of the service.
43
+ */
44
+ set endpoint(endpoint: string);
45
+ get logger(): import("oci-common/lib/log").Logger;
46
+ /**
47
+ * Determines whether realm specific endpoint should be used or not.
48
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
49
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
50
+ */
51
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
52
+ /**
53
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
54
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
55
+ * @param region The region of the service.
56
+ */
57
+ set region(region: common.Region);
58
+ /**
59
+ * Sets the regionId to call (ex, 'us-phoenix-1').
60
+ *
61
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
62
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
63
+ * and then call {@link #endpoint(String) endpoint}.
64
+ * @param regionId The public region ID.
65
+ */
66
+ set regionId(regionId: string);
67
+ /**
68
+ * Returns the resource quota details under a tenancy
69
+ * > **Important**: Calls to this API will only succeed against the endpoint in the home region.
70
+ *
71
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
72
+ * @param ListResourceQuotaRequest
73
+ * @return ListResourceQuotaResponse
74
+ * @throws OciError when an error occurs
75
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListResourceQuota.ts.html |here} to see how to use ListResourceQuota API.
76
+ */
77
+ listResourceQuota(listResourceQuotaRequest: requests.ListResourceQuotaRequest): Promise<responses.ListResourceQuotaResponse>;
78
+ /**
79
+ * Returns the resource details for a service
80
+ * > **Important**: Calls to this API will only succeed against the endpoint in the home region.
81
+ *
82
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
83
+ * @param ListResourcesRequest
84
+ * @return ListResourcesResponse
85
+ * @throws OciError when an error occurs
86
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListResources.ts.html |here} to see how to use ListResources API.
87
+ */
88
+ listResources(listResourcesRequest: requests.ListResourcesRequest): Promise<responses.ListResourcesResponse>;
89
+ }
16
90
  export declare enum RewardsApiKeys {
17
91
  }
18
92
  /**
@@ -71,7 +145,7 @@ export declare class RewardsClient {
71
145
  * @param CreateRedeemableUserRequest
72
146
  * @return CreateRedeemableUserResponse
73
147
  * @throws OciError when an error occurs
74
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.1/usage/CreateRedeemableUser.ts.html |here} to see how to use CreateRedeemableUser API.
148
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/CreateRedeemableUser.ts.html |here} to see how to use CreateRedeemableUser API.
75
149
  */
76
150
  createRedeemableUser(createRedeemableUserRequest: requests.CreateRedeemableUserRequest): Promise<responses.CreateRedeemableUserResponse>;
77
151
  /**
@@ -81,7 +155,7 @@ export declare class RewardsClient {
81
155
  * @param DeleteRedeemableUserRequest
82
156
  * @return DeleteRedeemableUserResponse
83
157
  * @throws OciError when an error occurs
84
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.1/usage/DeleteRedeemableUser.ts.html |here} to see how to use DeleteRedeemableUser API.
158
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/DeleteRedeemableUser.ts.html |here} to see how to use DeleteRedeemableUser API.
85
159
  */
86
160
  deleteRedeemableUser(deleteRedeemableUserRequest: requests.DeleteRedeemableUserRequest): Promise<responses.DeleteRedeemableUserResponse>;
87
161
  /**
@@ -91,7 +165,7 @@ export declare class RewardsClient {
91
165
  * @param ListProductsRequest
92
166
  * @return ListProductsResponse
93
167
  * @throws OciError when an error occurs
94
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.1/usage/ListProducts.ts.html |here} to see how to use ListProducts API.
168
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListProducts.ts.html |here} to see how to use ListProducts API.
95
169
  */
96
170
  listProducts(listProductsRequest: requests.ListProductsRequest): Promise<responses.ListProductsResponse>;
97
171
  /**
@@ -101,7 +175,7 @@ export declare class RewardsClient {
101
175
  * @param ListRedeemableUsersRequest
102
176
  * @return ListRedeemableUsersResponse
103
177
  * @throws OciError when an error occurs
104
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.1/usage/ListRedeemableUsers.ts.html |here} to see how to use ListRedeemableUsers API.
178
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListRedeemableUsers.ts.html |here} to see how to use ListRedeemableUsers API.
105
179
  */
106
180
  listRedeemableUsers(listRedeemableUsersRequest: requests.ListRedeemableUsersRequest): Promise<responses.ListRedeemableUsersResponse>;
107
181
  /**
@@ -111,7 +185,7 @@ export declare class RewardsClient {
111
185
  * @param ListRedemptionsRequest
112
186
  * @return ListRedemptionsResponse
113
187
  * @throws OciError when an error occurs
114
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.1/usage/ListRedemptions.ts.html |here} to see how to use ListRedemptions API.
188
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListRedemptions.ts.html |here} to see how to use ListRedemptions API.
115
189
  */
116
190
  listRedemptions(listRedemptionsRequest: requests.ListRedemptionsRequest): Promise<responses.ListRedemptionsResponse>;
117
191
  /**
@@ -121,7 +195,69 @@ export declare class RewardsClient {
121
195
  * @param ListRewardsRequest
122
196
  * @return ListRewardsResponse
123
197
  * @throws OciError when an error occurs
124
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.1/usage/ListRewards.ts.html |here} to see how to use ListRewards API.
198
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListRewards.ts.html |here} to see how to use ListRewards API.
125
199
  */
126
200
  listRewards(listRewardsRequest: requests.ListRewardsRequest): Promise<responses.ListRewardsResponse>;
127
201
  }
202
+ export declare enum UsagelimitsApiKeys {
203
+ }
204
+ /**
205
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
206
+ */
207
+ export declare class UsagelimitsClient {
208
+ protected static serviceEndpointTemplate: string;
209
+ protected static endpointServiceName: string;
210
+ protected "_realmSpecificEndpointTemplateEnabled": boolean;
211
+ protected "_endpoint": string;
212
+ protected "_defaultHeaders": any;
213
+ protected "_clientConfiguration": common.ClientConfiguration;
214
+ protected _circuitBreaker: null;
215
+ protected _httpOptions: any;
216
+ targetService: string;
217
+ protected _regionId: string;
218
+ protected "_region": common.Region;
219
+ protected _lastSetRegionOrRegionId: string;
220
+ protected _httpClient: common.HttpClient;
221
+ constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
222
+ /**
223
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
224
+ */
225
+ get endpoint(): string;
226
+ /**
227
+ * Sets the endpoint to call (ex, https://www.example.com).
228
+ * @param endpoint The endpoint of the service.
229
+ */
230
+ set endpoint(endpoint: string);
231
+ get logger(): import("oci-common/lib/log").Logger;
232
+ /**
233
+ * Determines whether realm specific endpoint should be used or not.
234
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
235
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
236
+ */
237
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean);
238
+ /**
239
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
240
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
241
+ * @param region The region of the service.
242
+ */
243
+ set region(region: common.Region);
244
+ /**
245
+ * Sets the regionId to call (ex, 'us-phoenix-1').
246
+ *
247
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
248
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
249
+ * and then call {@link #endpoint(String) endpoint}.
250
+ * @param regionId The public region ID.
251
+ */
252
+ set regionId(regionId: string);
253
+ /**
254
+ * Returns the list of usage limit for the subscription ID and tenant ID.
255
+ *
256
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
257
+ * @param ListUsageLimitsRequest
258
+ * @return ListUsageLimitsResponse
259
+ * @throws OciError when an error occurs
260
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/usage/ListUsageLimits.ts.html |here} to see how to use ListUsageLimits API.
261
+ */
262
+ listUsageLimits(listUsageLimitsRequest: requests.ListUsageLimitsRequest): Promise<responses.ListUsageLimitsResponse>;
263
+ }