oci-budget
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -147,4 +147,6 @@ "use strict"; | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createAlertRuleRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -170,5 +172,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -205,4 +206,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createBudgetRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -228,5 +231,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -264,4 +266,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteAlertRuleRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -279,5 +283,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -314,4 +317,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteBudgetRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -329,5 +334,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -364,4 +368,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getAlertRuleRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -387,5 +393,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -421,4 +426,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getBudgetRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -444,5 +451,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -486,4 +492,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listAlertRulesRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -509,5 +517,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -579,4 +586,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listBudgetsRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -602,5 +611,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -658,4 +666,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateAlertRuleRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -681,5 +691,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -717,4 +726,6 @@ }); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateBudgetRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_2.composeResponse({ | ||
@@ -740,5 +751,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -745,0 +755,0 @@ }); |
{ | ||
"name": "oci-budget", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "OCI NodeJS client for Budget Service", | ||
@@ -18,4 +18,4 @@ "repository": { | ||
"dependencies": { | ||
"oci-common": "1.5.1", | ||
"oci-workrequests": "1.5.1" | ||
"oci-common": "1.5.2", | ||
"oci-workrequests": "1.5.2" | ||
}, | ||
@@ -22,0 +22,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
3551
259415
+ Addedoci-common@1.5.2(transitive)
+ Addedoci-workrequests@1.5.2(transitive)
- Removedoci-common@1.5.1(transitive)
- Removedoci-workrequests@1.5.1(transitive)
Updatedoci-common@1.5.2
Updatedoci-workrequests@1.5.2