oci-optimizer 2.5.1 → 2.7.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 (28) hide show
  1. package/LICENSE.txt +6 -0
  2. package/lib/client.d.ts +49 -23
  3. package/lib/client.js +102 -46
  4. package/lib/client.js.map +1 -1
  5. package/lib/request/bulk-apply-recommendations-request.d.ts +1 -1
  6. package/lib/request/create-profile-request.d.ts +1 -1
  7. package/lib/request/delete-profile-request.d.ts +1 -1
  8. package/lib/request/get-category-request.d.ts +1 -1
  9. package/lib/request/get-enrollment-status-request.d.ts +1 -1
  10. package/lib/request/get-profile-request.d.ts +1 -1
  11. package/lib/request/get-recommendation-request.d.ts +1 -1
  12. package/lib/request/get-resource-action-request.d.ts +1 -1
  13. package/lib/request/get-work-request-request.d.ts +1 -1
  14. package/lib/request/list-categories-request.d.ts +1 -1
  15. package/lib/request/list-enrollment-statuses-request.d.ts +1 -1
  16. package/lib/request/list-histories-request.d.ts +1 -1
  17. package/lib/request/list-profiles-request.d.ts +1 -1
  18. package/lib/request/list-recommendation-strategies-request.d.ts +1 -1
  19. package/lib/request/list-recommendations-request.d.ts +1 -1
  20. package/lib/request/list-resource-actions-request.d.ts +1 -1
  21. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  22. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  23. package/lib/request/list-work-requests-request.d.ts +1 -1
  24. package/lib/request/update-enrollment-status-request.d.ts +1 -1
  25. package/lib/request/update-profile-request.d.ts +1 -1
  26. package/lib/request/update-recommendation-request.d.ts +1 -1
  27. package/lib/request/update-resource-action-request.d.ts +1 -1
  28. package/package.json +3 -3
package/LICENSE.txt CHANGED
@@ -1,3 +1,9 @@
1
+ Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 or Apache License 2.0. See below for license terms. You may choose either license.
4
+
5
+ ____________________________
6
+
1
7
  The Universal Permissive License (UPL), Version 1.0
2
8
 
3
9
  Subject to the condition set forth below, permission is hereby granted to any
package/lib/client.d.ts CHANGED
@@ -16,6 +16,9 @@ import * as responses from "./response";
16
16
  import { OptimizerWaiter } from "./optimizer-waiter";
17
17
  export declare enum OptimizerApiKeys {
18
18
  }
19
+ /**
20
+ * This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
21
+ */
19
22
  export declare class OptimizerClient {
20
23
  protected static serviceEndpointTemplate: string;
21
24
  protected "_endpoint": string;
@@ -66,190 +69,211 @@ export declare class OptimizerClient {
66
69
  /**
67
70
  * Applies the specified recommendations to the resources.
68
71
  *
72
+ * This operation does not retry by default if the user has not defined a retry configuration.
69
73
  * @param BulkApplyRecommendationsRequest
70
74
  * @return BulkApplyRecommendationsResponse
71
75
  * @throws OciError when an error occurs
72
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/BulkApplyRecommendations.ts.html |here} to see how to use BulkApplyRecommendations API.
76
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/BulkApplyRecommendations.ts.html |here} to see how to use BulkApplyRecommendations API.
73
77
  */
74
78
  bulkApplyRecommendations(bulkApplyRecommendationsRequest: requests.BulkApplyRecommendationsRequest): Promise<responses.BulkApplyRecommendationsResponse>;
75
79
  /**
76
80
  * Creates a new profile.
77
81
  *
82
+ * This operation does not retry by default if the user has not defined a retry configuration.
78
83
  * @param CreateProfileRequest
79
84
  * @return CreateProfileResponse
80
85
  * @throws OciError when an error occurs
81
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/CreateProfile.ts.html |here} to see how to use CreateProfile API.
86
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/CreateProfile.ts.html |here} to see how to use CreateProfile API.
82
87
  */
83
88
  createProfile(createProfileRequest: requests.CreateProfileRequest): Promise<responses.CreateProfileResponse>;
84
89
  /**
85
90
  * Deletes the specified profile. Uses the profile's OCID to determine which profile to delete.
86
91
  *
92
+ * This operation does not retry by default if the user has not defined a retry configuration.
87
93
  * @param DeleteProfileRequest
88
94
  * @return DeleteProfileResponse
89
95
  * @throws OciError when an error occurs
90
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/DeleteProfile.ts.html |here} to see how to use DeleteProfile API.
96
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/DeleteProfile.ts.html |here} to see how to use DeleteProfile API.
91
97
  */
92
98
  deleteProfile(deleteProfileRequest: requests.DeleteProfileRequest): Promise<responses.DeleteProfileResponse>;
93
99
  /**
94
100
  * Gets the category that corresponds to the specified OCID.
95
101
  *
102
+ * This operation does not retry by default if the user has not defined a retry configuration.
96
103
  * @param GetCategoryRequest
97
104
  * @return GetCategoryResponse
98
105
  * @throws OciError when an error occurs
99
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/GetCategory.ts.html |here} to see how to use GetCategory API.
106
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/GetCategory.ts.html |here} to see how to use GetCategory API.
100
107
  */
101
108
  getCategory(getCategoryRequest: requests.GetCategoryRequest): Promise<responses.GetCategoryResponse>;
102
109
  /**
103
110
  * Gets the Cloud Advisor enrollment status.
104
111
  *
112
+ * This operation does not retry by default if the user has not defined a retry configuration.
105
113
  * @param GetEnrollmentStatusRequest
106
114
  * @return GetEnrollmentStatusResponse
107
115
  * @throws OciError when an error occurs
108
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/GetEnrollmentStatus.ts.html |here} to see how to use GetEnrollmentStatus API.
116
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/GetEnrollmentStatus.ts.html |here} to see how to use GetEnrollmentStatus API.
109
117
  */
110
118
  getEnrollmentStatus(getEnrollmentStatusRequest: requests.GetEnrollmentStatusRequest): Promise<responses.GetEnrollmentStatusResponse>;
111
119
  /**
112
120
  * Gets the specified profile's information. Uses the profile's OCID to determine which profile to retrieve.
113
121
  *
122
+ * This operation does not retry by default if the user has not defined a retry configuration.
114
123
  * @param GetProfileRequest
115
124
  * @return GetProfileResponse
116
125
  * @throws OciError when an error occurs
117
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/GetProfile.ts.html |here} to see how to use GetProfile API.
126
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/GetProfile.ts.html |here} to see how to use GetProfile API.
118
127
  */
119
128
  getProfile(getProfileRequest: requests.GetProfileRequest): Promise<responses.GetProfileResponse>;
120
129
  /**
121
130
  * Gets the recommendation for the specified OCID.
122
131
  *
132
+ * This operation does not retry by default if the user has not defined a retry configuration.
123
133
  * @param GetRecommendationRequest
124
134
  * @return GetRecommendationResponse
125
135
  * @throws OciError when an error occurs
126
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/GetRecommendation.ts.html |here} to see how to use GetRecommendation API.
136
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/GetRecommendation.ts.html |here} to see how to use GetRecommendation API.
127
137
  */
128
138
  getRecommendation(getRecommendationRequest: requests.GetRecommendationRequest): Promise<responses.GetRecommendationResponse>;
129
139
  /**
130
140
  * Gets the resource action that corresponds to the specified OCID.
131
141
  *
142
+ * This operation does not retry by default if the user has not defined a retry configuration.
132
143
  * @param GetResourceActionRequest
133
144
  * @return GetResourceActionResponse
134
145
  * @throws OciError when an error occurs
135
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/GetResourceAction.ts.html |here} to see how to use GetResourceAction API.
146
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/GetResourceAction.ts.html |here} to see how to use GetResourceAction API.
136
147
  */
137
148
  getResourceAction(getResourceActionRequest: requests.GetResourceActionRequest): Promise<responses.GetResourceActionResponse>;
138
149
  /**
139
150
  * Gets the status of the work request associated with the specified ID.
151
+ * This operation does not retry by default if the user has not defined a retry configuration.
140
152
  * @param GetWorkRequestRequest
141
153
  * @return GetWorkRequestResponse
142
154
  * @throws OciError when an error occurs
143
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
155
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
144
156
  */
145
157
  getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise<responses.GetWorkRequestResponse>;
146
158
  /**
147
159
  * Lists the supported Cloud Advisor categories.
148
160
  *
161
+ * This operation does not retry by default if the user has not defined a retry configuration.
149
162
  * @param ListCategoriesRequest
150
163
  * @return ListCategoriesResponse
151
164
  * @throws OciError when an error occurs
152
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListCategories.ts.html |here} to see how to use ListCategories API.
165
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListCategories.ts.html |here} to see how to use ListCategories API.
153
166
  */
154
167
  listCategories(listCategoriesRequest: requests.ListCategoriesRequest): Promise<responses.ListCategoriesResponse>;
155
168
  /**
156
169
  * Lists the Cloud Advisor enrollment statuses.
157
170
  *
171
+ * This operation does not retry by default if the user has not defined a retry configuration.
158
172
  * @param ListEnrollmentStatusesRequest
159
173
  * @return ListEnrollmentStatusesResponse
160
174
  * @throws OciError when an error occurs
161
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListEnrollmentStatuses.ts.html |here} to see how to use ListEnrollmentStatuses API.
175
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListEnrollmentStatuses.ts.html |here} to see how to use ListEnrollmentStatuses API.
162
176
  */
163
177
  listEnrollmentStatuses(listEnrollmentStatusesRequest: requests.ListEnrollmentStatusesRequest): Promise<responses.ListEnrollmentStatusesResponse>;
164
178
  /**
165
179
  * Lists changes to the recommendations based on user activity.
166
180
  * For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.
167
181
  *
182
+ * This operation does not retry by default if the user has not defined a retry configuration.
168
183
  * @param ListHistoriesRequest
169
184
  * @return ListHistoriesResponse
170
185
  * @throws OciError when an error occurs
171
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListHistories.ts.html |here} to see how to use ListHistories API.
186
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListHistories.ts.html |here} to see how to use ListHistories API.
172
187
  */
173
188
  listHistories(listHistoriesRequest: requests.ListHistoriesRequest): Promise<responses.ListHistoriesResponse>;
174
189
  /**
175
190
  * Lists the existing profiles.
176
191
  *
192
+ * This operation does not retry by default if the user has not defined a retry configuration.
177
193
  * @param ListProfilesRequest
178
194
  * @return ListProfilesResponse
179
195
  * @throws OciError when an error occurs
180
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListProfiles.ts.html |here} to see how to use ListProfiles API.
196
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListProfiles.ts.html |here} to see how to use ListProfiles API.
181
197
  */
182
198
  listProfiles(listProfilesRequest: requests.ListProfilesRequest): Promise<responses.ListProfilesResponse>;
183
199
  /**
184
200
  * Lists the existing strategies.
185
201
  *
202
+ * This operation does not retry by default if the user has not defined a retry configuration.
186
203
  * @param ListRecommendationStrategiesRequest
187
204
  * @return ListRecommendationStrategiesResponse
188
205
  * @throws OciError when an error occurs
189
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListRecommendationStrategies.ts.html |here} to see how to use ListRecommendationStrategies API.
206
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListRecommendationStrategies.ts.html |here} to see how to use ListRecommendationStrategies API.
190
207
  */
191
208
  listRecommendationStrategies(listRecommendationStrategiesRequest: requests.ListRecommendationStrategiesRequest): Promise<responses.ListRecommendationStrategiesResponse>;
192
209
  /**
193
210
  * Lists the Cloud Advisor recommendations that are currently supported in the specified category.
194
211
  *
212
+ * This operation does not retry by default if the user has not defined a retry configuration.
195
213
  * @param ListRecommendationsRequest
196
214
  * @return ListRecommendationsResponse
197
215
  * @throws OciError when an error occurs
198
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
216
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
199
217
  */
200
218
  listRecommendations(listRecommendationsRequest: requests.ListRecommendationsRequest): Promise<responses.ListRecommendationsResponse>;
201
219
  /**
202
220
  * Lists the Cloud Advisor resource actions that are supported by the specified recommendation.
203
221
  *
222
+ * This operation does not retry by default if the user has not defined a retry configuration.
204
223
  * @param ListResourceActionsRequest
205
224
  * @return ListResourceActionsResponse
206
225
  * @throws OciError when an error occurs
207
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListResourceActions.ts.html |here} to see how to use ListResourceActions API.
226
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListResourceActions.ts.html |here} to see how to use ListResourceActions API.
208
227
  */
209
228
  listResourceActions(listResourceActionsRequest: requests.ListResourceActionsRequest): Promise<responses.ListResourceActionsResponse>;
210
229
  /**
211
230
  * Lists errors associated with the specified work request.
212
231
  *
232
+ * This operation does not retry by default if the user has not defined a retry configuration.
213
233
  * @param ListWorkRequestErrorsRequest
214
234
  * @return ListWorkRequestErrorsResponse
215
235
  * @throws OciError when an error occurs
216
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
236
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
217
237
  */
218
238
  listWorkRequestErrors(listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest): Promise<responses.ListWorkRequestErrorsResponse>;
219
239
  /**
220
240
  * Lists the logs associated with the specified work request.
221
241
  *
242
+ * This operation does not retry by default if the user has not defined a retry configuration.
222
243
  * @param ListWorkRequestLogsRequest
223
244
  * @return ListWorkRequestLogsResponse
224
245
  * @throws OciError when an error occurs
225
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
246
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
226
247
  */
227
248
  listWorkRequestLogs(listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest): Promise<responses.ListWorkRequestLogsResponse>;
228
249
  /**
229
250
  * Lists the work requests in the tenancy. The tenancy is the root compartment.
230
251
  *
252
+ * This operation does not retry by default if the user has not defined a retry configuration.
231
253
  * @param ListWorkRequestsRequest
232
254
  * @return ListWorkRequestsResponse
233
255
  * @throws OciError when an error occurs
234
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
256
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
235
257
  */
236
258
  listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise<responses.ListWorkRequestsResponse>;
237
259
  /**
238
260
  * Updates the enrollment status of the tenancy.
239
261
  *
262
+ * This operation does not retry by default if the user has not defined a retry configuration.
240
263
  * @param UpdateEnrollmentStatusRequest
241
264
  * @return UpdateEnrollmentStatusResponse
242
265
  * @throws OciError when an error occurs
243
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/UpdateEnrollmentStatus.ts.html |here} to see how to use UpdateEnrollmentStatus API.
266
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/UpdateEnrollmentStatus.ts.html |here} to see how to use UpdateEnrollmentStatus API.
244
267
  */
245
268
  updateEnrollmentStatus(updateEnrollmentStatusRequest: requests.UpdateEnrollmentStatusRequest): Promise<responses.UpdateEnrollmentStatusResponse>;
246
269
  /**
247
270
  * Updates the specified profile. Uses the profile's OCID to determine which profile to update.
248
271
  *
272
+ * This operation does not retry by default if the user has not defined a retry configuration.
249
273
  * @param UpdateProfileRequest
250
274
  * @return UpdateProfileResponse
251
275
  * @throws OciError when an error occurs
252
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/UpdateProfile.ts.html |here} to see how to use UpdateProfile API.
276
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/UpdateProfile.ts.html |here} to see how to use UpdateProfile API.
253
277
  */
254
278
  updateProfile(updateProfileRequest: requests.UpdateProfileRequest): Promise<responses.UpdateProfileResponse>;
255
279
  /**
@@ -260,10 +284,11 @@ export declare class OptimizerClient {
260
284
  * * Dismiss recommendation
261
285
  * * Reactivate recommendation
262
286
  *
287
+ * This operation does not retry by default if the user has not defined a retry configuration.
263
288
  * @param UpdateRecommendationRequest
264
289
  * @return UpdateRecommendationResponse
265
290
  * @throws OciError when an error occurs
266
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/UpdateRecommendation.ts.html |here} to see how to use UpdateRecommendation API.
291
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/UpdateRecommendation.ts.html |here} to see how to use UpdateRecommendation API.
267
292
  */
268
293
  updateRecommendation(updateRecommendationRequest: requests.UpdateRecommendationRequest): Promise<responses.UpdateRecommendationResponse>;
269
294
  /**
@@ -274,10 +299,11 @@ export declare class OptimizerClient {
274
299
  * * Ignore resource action
275
300
  * * Reactivate resource action
276
301
  *
302
+ * This operation does not retry by default if the user has not defined a retry configuration.
277
303
  * @param UpdateResourceActionRequest
278
304
  * @return UpdateResourceActionResponse
279
305
  * @throws OciError when an error occurs
280
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.1/optimizer/UpdateResourceAction.ts.html |here} to see how to use UpdateResourceAction API.
306
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.7.0/optimizer/UpdateResourceAction.ts.html |here} to see how to use UpdateResourceAction API.
281
307
  */
282
308
  updateResourceAction(updateResourceActionRequest: requests.UpdateResourceActionRequest): Promise<responses.UpdateResourceActionResponse>;
283
309
  }