oci-secrets
Advanced tools
Comparing version
@@ -23,2 +23,3 @@ /** | ||
protected "_defaultHeaders": any; | ||
protected "_clientConfiguration": common.ClientConfiguration; | ||
protected _httpClient: common.HttpClient; | ||
@@ -48,2 +49,6 @@ constructor(params: common.AuthParams); | ||
/** | ||
* Sets the client configuration for the client | ||
*/ | ||
clientConfiguration: common.ClientConfiguration; | ||
/** | ||
* Gets a secret bundle that matches either the specified `stage`, `label`, or `versionNumber` parameter. | ||
@@ -50,0 +55,0 @@ * If none of these parameters are provided, the bundle for the secret version marked as `CURRENT` will be returned. |
@@ -82,2 +82,8 @@ "use strict"; | ||
/** | ||
* Sets the client configuration for the client | ||
*/ | ||
set clientConfiguration(clientConfiguration) { | ||
this._clientConfiguration = clientConfiguration; | ||
} | ||
/** | ||
* Gets a secret bundle that matches either the specified `stage`, `label`, or `versionNumber` parameter. | ||
@@ -114,3 +120,4 @@ * If none of these parameters are provided, the bundle for the secret version marked as `CURRENT` will be returned. | ||
}); | ||
const response = yield this._httpClient.send(request); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getSecretBundleRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
@@ -174,3 +181,4 @@ const sdkResponse = oci_common_2.composeResponse({ | ||
}); | ||
const response = yield this._httpClient.send(request); | ||
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listSecretBundleVersionsRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
@@ -177,0 +185,0 @@ const sdkResponse = oci_common_2.composeResponse({ |
@@ -54,7 +54,7 @@ /** | ||
enum Stages { | ||
CURRENT = "CURRENT", | ||
PENDING = "PENDING", | ||
LATEST = "LATEST", | ||
PREVIOUS = "PREVIOUS", | ||
DEPRECATED = "DEPRECATED", | ||
Current = "CURRENT", | ||
Pending = "PENDING", | ||
Latest = "LATEST", | ||
Previous = "PREVIOUS", | ||
Deprecated = "DEPRECATED", | ||
/** | ||
@@ -64,5 +64,5 @@ * This value is used if a service returns a value for this enum that is not recognized by this | ||
*/ | ||
UNKNOWN_VALUE = "UNKNOWN_VALUE" | ||
UnknownValue = "UNKNOWN_VALUE" | ||
} | ||
function getJsonObj(obj: SecretBundleVersionSummary): object; | ||
} |
@@ -19,7 +19,7 @@ "use strict"; | ||
(function (Stages) { | ||
Stages["CURRENT"] = "CURRENT"; | ||
Stages["PENDING"] = "PENDING"; | ||
Stages["LATEST"] = "LATEST"; | ||
Stages["PREVIOUS"] = "PREVIOUS"; | ||
Stages["DEPRECATED"] = "DEPRECATED"; | ||
Stages["Current"] = "CURRENT"; | ||
Stages["Pending"] = "PENDING"; | ||
Stages["Latest"] = "LATEST"; | ||
Stages["Previous"] = "PREVIOUS"; | ||
Stages["Deprecated"] = "DEPRECATED"; | ||
/** | ||
@@ -29,3 +29,3 @@ * This value is used if a service returns a value for this enum that is not recognized by this | ||
*/ | ||
Stages["UNKNOWN_VALUE"] = "UNKNOWN_VALUE"; | ||
Stages["UnknownValue"] = "UNKNOWN_VALUE"; | ||
})(Stages = SecretBundleVersionSummary.Stages || (SecretBundleVersionSummary.Stages = {})); | ||
@@ -32,0 +32,0 @@ function getJsonObj(obj) { |
@@ -63,7 +63,7 @@ /** | ||
enum Stages { | ||
CURRENT = "CURRENT", | ||
PENDING = "PENDING", | ||
LATEST = "LATEST", | ||
PREVIOUS = "PREVIOUS", | ||
DEPRECATED = "DEPRECATED", | ||
Current = "CURRENT", | ||
Pending = "PENDING", | ||
Latest = "LATEST", | ||
Previous = "PREVIOUS", | ||
Deprecated = "DEPRECATED", | ||
/** | ||
@@ -73,5 +73,5 @@ * This value is used if a service returns a value for this enum that is not recognized by this | ||
*/ | ||
UNKNOWN_VALUE = "UNKNOWN_VALUE" | ||
UnknownValue = "UNKNOWN_VALUE" | ||
} | ||
function getJsonObj(obj: SecretBundle): object; | ||
} |
@@ -27,7 +27,7 @@ "use strict"; | ||
(function (Stages) { | ||
Stages["CURRENT"] = "CURRENT"; | ||
Stages["PENDING"] = "PENDING"; | ||
Stages["LATEST"] = "LATEST"; | ||
Stages["PREVIOUS"] = "PREVIOUS"; | ||
Stages["DEPRECATED"] = "DEPRECATED"; | ||
Stages["Current"] = "CURRENT"; | ||
Stages["Pending"] = "PENDING"; | ||
Stages["Latest"] = "LATEST"; | ||
Stages["Previous"] = "PREVIOUS"; | ||
Stages["Deprecated"] = "DEPRECATED"; | ||
/** | ||
@@ -37,3 +37,3 @@ * This value is used if a service returns a value for this enum that is not recognized by this | ||
*/ | ||
Stages["UNKNOWN_VALUE"] = "UNKNOWN_VALUE"; | ||
Stages["UnknownValue"] = "UNKNOWN_VALUE"; | ||
})(Stages = SecretBundle.Stages || (SecretBundle.Stages = {})); | ||
@@ -40,0 +40,0 @@ function getJsonObj(obj) { |
@@ -13,3 +13,4 @@ /** | ||
*/ | ||
export interface GetSecretBundleRequest { | ||
import common = require("oci-common"); | ||
export interface GetSecretBundleRequest extends common.BaseRequest { | ||
/** | ||
@@ -38,8 +39,8 @@ * The OCID of the secret. | ||
enum Stage { | ||
CURRENT = "CURRENT", | ||
PENDING = "PENDING", | ||
LATEST = "LATEST", | ||
PREVIOUS = "PREVIOUS", | ||
DEPRECATED = "DEPRECATED" | ||
Current = "CURRENT", | ||
Pending = "PENDING", | ||
Latest = "LATEST", | ||
Previous = "PREVIOUS", | ||
Deprecated = "DEPRECATED" | ||
} | ||
} |
@@ -19,9 +19,9 @@ "use strict"; | ||
(function (Stage) { | ||
Stage["CURRENT"] = "CURRENT"; | ||
Stage["PENDING"] = "PENDING"; | ||
Stage["LATEST"] = "LATEST"; | ||
Stage["PREVIOUS"] = "PREVIOUS"; | ||
Stage["DEPRECATED"] = "DEPRECATED"; | ||
Stage["Current"] = "CURRENT"; | ||
Stage["Pending"] = "PENDING"; | ||
Stage["Latest"] = "LATEST"; | ||
Stage["Previous"] = "PREVIOUS"; | ||
Stage["Deprecated"] = "DEPRECATED"; | ||
})(Stage = GetSecretBundleRequest.Stage || (GetSecretBundleRequest.Stage = {})); | ||
})(GetSecretBundleRequest = exports.GetSecretBundleRequest || (exports.GetSecretBundleRequest = {})); | ||
//# sourceMappingURL=get-secret-bundle-request.js.map |
@@ -13,3 +13,4 @@ /** | ||
*/ | ||
export interface ListSecretBundleVersionsRequest { | ||
import common = require("oci-common"); | ||
export interface ListSecretBundleVersionsRequest extends common.BaseRequest { | ||
/** | ||
@@ -49,8 +50,8 @@ * The OCID of the secret. | ||
enum SortBy { | ||
NUMBER = "VERSION_NUMBER" | ||
VersionNumber = "VERSION_NUMBER" | ||
} | ||
enum SortOrder { | ||
ASC = "ASC", | ||
DESC = "DESC" | ||
Asc = "ASC", | ||
Desc = "DESC" | ||
} | ||
} |
@@ -19,10 +19,10 @@ "use strict"; | ||
(function (SortBy) { | ||
SortBy["NUMBER"] = "VERSION_NUMBER"; | ||
SortBy["VersionNumber"] = "VERSION_NUMBER"; | ||
})(SortBy = ListSecretBundleVersionsRequest.SortBy || (ListSecretBundleVersionsRequest.SortBy = {})); | ||
let SortOrder; | ||
(function (SortOrder) { | ||
SortOrder["ASC"] = "ASC"; | ||
SortOrder["DESC"] = "DESC"; | ||
SortOrder["Asc"] = "ASC"; | ||
SortOrder["Desc"] = "DESC"; | ||
})(SortOrder = ListSecretBundleVersionsRequest.SortOrder || (ListSecretBundleVersionsRequest.SortOrder = {})); | ||
})(ListSecretBundleVersionsRequest = exports.ListSecretBundleVersionsRequest || (exports.ListSecretBundleVersionsRequest = {})); | ||
//# sourceMappingURL=list-secret-bundle-versions-request.js.map |
{ | ||
"name": "oci-secrets", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "OCI NodeJS client for Secrets Service", | ||
@@ -18,4 +18,4 @@ "repository": { | ||
"dependencies": { | ||
"oci-common": "1.3.0", | ||
"oci-workrequests": "1.3.0" | ||
"oci-common": "1.4.0", | ||
"oci-workrequests": "1.4.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146679
1.02%1058
1.44%+ Added
+ Added
- Removed
- Removed
Updated
Updated