oci-vault 2.78.0 → 2.79.1
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.
- package/lib/client.d.ts +33 -12
- package/lib/client.js +138 -62
- package/lib/client.js.map +1 -1
- package/lib/model/adb-target-system-details.d.ts +30 -0
- package/lib/model/adb-target-system-details.js +54 -0
- package/lib/model/adb-target-system-details.js.map +1 -0
- package/lib/model/create-secret-details.d.ts +2 -1
- package/lib/model/create-secret-details.js +6 -0
- package/lib/model/create-secret-details.js.map +1 -1
- package/lib/model/function-target-system-details.d.ts +30 -0
- package/lib/model/function-target-system-details.js +54 -0
- package/lib/model/function-target-system-details.js.map +1 -0
- package/lib/model/index.d.ts +8 -0
- package/lib/model/index.js +9 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/rotation-config.d.ts +35 -0
- package/lib/model/rotation-config.js +57 -0
- package/lib/model/rotation-config.js.map +1 -0
- package/lib/model/secret-content-details.js +2 -4
- package/lib/model/secret-content-details.js.map +1 -1
- package/lib/model/secret-rule.js +2 -4
- package/lib/model/secret-rule.js.map +1 -1
- package/lib/model/secret-summary.d.ts +29 -0
- package/lib/model/secret-summary.js +30 -2
- package/lib/model/secret-summary.js.map +1 -1
- package/lib/model/secret-version-summary.d.ts +11 -0
- package/lib/model/secret-version-summary.js.map +1 -1
- package/lib/model/secret.d.ts +28 -0
- package/lib/model/secret.js +18 -0
- package/lib/model/secret.js.map +1 -1
- package/lib/model/target-system-details.d.ts +23 -0
- package/lib/model/target-system-details.js +70 -0
- package/lib/model/target-system-details.js.map +1 -0
- package/lib/model/update-secret-details.d.ts +1 -0
- package/lib/model/update-secret-details.js +6 -0
- package/lib/model/update-secret-details.js.map +1 -1
- package/lib/request/cancel-secret-deletion-request.d.ts +1 -1
- package/lib/request/cancel-secret-rotation-request.d.ts +38 -0
- package/lib/request/cancel-secret-rotation-request.js +15 -0
- package/lib/request/cancel-secret-rotation-request.js.map +1 -0
- package/lib/request/cancel-secret-version-deletion-request.d.ts +1 -1
- package/lib/request/change-secret-compartment-request.d.ts +1 -1
- package/lib/request/create-secret-request.d.ts +1 -1
- package/lib/request/get-secret-request.d.ts +1 -1
- package/lib/request/get-secret-version-request.d.ts +1 -1
- package/lib/request/index.d.ts +4 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-secret-versions-request.d.ts +1 -1
- package/lib/request/list-secrets-request.d.ts +1 -1
- package/lib/request/rotate-secret-request.d.ts +48 -0
- package/lib/request/rotate-secret-request.js +15 -0
- package/lib/request/rotate-secret-request.js.map +1 -0
- package/lib/request/schedule-secret-deletion-request.d.ts +1 -1
- package/lib/request/schedule-secret-version-deletion-request.d.ts +1 -1
- package/lib/request/update-secret-request.d.ts +1 -1
- package/lib/response/cancel-secret-deletion-response.d.ts +1 -2
- package/lib/response/cancel-secret-rotation-response.d.ts +19 -0
- package/lib/response/cancel-secret-rotation-response.js +15 -0
- package/lib/response/cancel-secret-rotation-response.js.map +1 -0
- package/lib/response/cancel-secret-version-deletion-response.d.ts +1 -2
- package/lib/response/change-secret-compartment-response.d.ts +1 -2
- package/lib/response/create-secret-response.d.ts +1 -2
- package/lib/response/get-secret-response.d.ts +1 -2
- package/lib/response/get-secret-version-response.d.ts +1 -2
- package/lib/response/index.d.ts +4 -0
- package/lib/response/list-secret-versions-response.d.ts +1 -2
- package/lib/response/list-secrets-response.d.ts +1 -2
- package/lib/response/rotate-secret-response.d.ts +24 -0
- package/lib/response/rotate-secret-response.js +15 -0
- package/lib/response/rotate-secret-response.js.map +1 -0
- package/lib/response/schedule-secret-deletion-response.d.ts +1 -2
- package/lib/response/schedule-secret-version-deletion-response.d.ts +1 -2
- package/lib/response/update-secret-response.d.ts +1 -2
- package/lib/vaults-waiter.d.ts +11 -1
- package/lib/vaults-waiter.js +16 -0
- package/lib/vaults-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -48,7 +48,6 @@ export declare class VaultsClient {
|
|
|
48
48
|
* @param endpoint The endpoint of the service.
|
|
49
49
|
*/
|
|
50
50
|
set endpoint(endpoint: string);
|
|
51
|
-
get logger(): import("oci-common/lib/log").Logger;
|
|
52
51
|
/**
|
|
53
52
|
* Determines whether realm specific endpoint should be used or not.
|
|
54
53
|
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
@@ -97,16 +96,28 @@ export declare class VaultsClient {
|
|
|
97
96
|
* @param CancelSecretDeletionRequest
|
|
98
97
|
* @return CancelSecretDeletionResponse
|
|
99
98
|
* @throws OciError when an error occurs
|
|
100
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
99
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletion API.
|
|
101
100
|
*/
|
|
102
101
|
cancelSecretDeletion(cancelSecretDeletionRequest: requests.CancelSecretDeletionRequest): Promise<responses.CancelSecretDeletionResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Cancels the ongoing secret rotation. The cancellation is contingent on how
|
|
104
|
+
* far the rotation process has progressed. Upon cancelling a rotation, all
|
|
105
|
+
* future rotations are also disabled.
|
|
106
|
+
*
|
|
107
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
108
|
+
* @param CancelSecretRotationRequest
|
|
109
|
+
* @return CancelSecretRotationResponse
|
|
110
|
+
* @throws OciError when an error occurs
|
|
111
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CancelSecretRotation.ts.html |here} to see how to use CancelSecretRotation API.
|
|
112
|
+
*/
|
|
113
|
+
cancelSecretRotation(cancelSecretRotationRequest: requests.CancelSecretRotationRequest): Promise<responses.CancelSecretRotationResponse>;
|
|
103
114
|
/**
|
|
104
115
|
* Cancels the scheduled deletion of a secret version.
|
|
105
116
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
106
117
|
* @param CancelSecretVersionDeletionRequest
|
|
107
118
|
* @return CancelSecretVersionDeletionResponse
|
|
108
119
|
* @throws OciError when an error occurs
|
|
109
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
120
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CancelSecretVersionDeletion.ts.html |here} to see how to use CancelSecretVersionDeletion API.
|
|
110
121
|
*/
|
|
111
122
|
cancelSecretVersionDeletion(cancelSecretVersionDeletionRequest: requests.CancelSecretVersionDeletionRequest): Promise<responses.CancelSecretVersionDeletionResponse>;
|
|
112
123
|
/**
|
|
@@ -119,7 +130,7 @@ export declare class VaultsClient {
|
|
|
119
130
|
* @param ChangeSecretCompartmentRequest
|
|
120
131
|
* @return ChangeSecretCompartmentResponse
|
|
121
132
|
* @throws OciError when an error occurs
|
|
122
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
133
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ChangeSecretCompartment.ts.html |here} to see how to use ChangeSecretCompartment API.
|
|
123
134
|
*/
|
|
124
135
|
changeSecretCompartment(changeSecretCompartmentRequest: requests.ChangeSecretCompartmentRequest): Promise<responses.ChangeSecretCompartmentResponse>;
|
|
125
136
|
/**
|
|
@@ -131,7 +142,7 @@ export declare class VaultsClient {
|
|
|
131
142
|
* @param CreateSecretRequest
|
|
132
143
|
* @return CreateSecretResponse
|
|
133
144
|
* @throws OciError when an error occurs
|
|
134
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
145
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CreateSecret.ts.html |here} to see how to use CreateSecret API.
|
|
135
146
|
*/
|
|
136
147
|
createSecret(createSecretRequest: requests.CreateSecretRequest): Promise<responses.CreateSecretResponse>;
|
|
137
148
|
/**
|
|
@@ -140,7 +151,7 @@ export declare class VaultsClient {
|
|
|
140
151
|
* @param GetSecretRequest
|
|
141
152
|
* @return GetSecretResponse
|
|
142
153
|
* @throws OciError when an error occurs
|
|
143
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
154
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/GetSecret.ts.html |here} to see how to use GetSecret API.
|
|
144
155
|
*/
|
|
145
156
|
getSecret(getSecretRequest: requests.GetSecretRequest): Promise<responses.GetSecretResponse>;
|
|
146
157
|
/**
|
|
@@ -150,7 +161,7 @@ export declare class VaultsClient {
|
|
|
150
161
|
* @param GetSecretVersionRequest
|
|
151
162
|
* @return GetSecretVersionResponse
|
|
152
163
|
* @throws OciError when an error occurs
|
|
153
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/GetSecretVersion.ts.html |here} to see how to use GetSecretVersion API.
|
|
154
165
|
*/
|
|
155
166
|
getSecretVersion(getSecretVersionRequest: requests.GetSecretVersionRequest): Promise<responses.GetSecretVersionResponse>;
|
|
156
167
|
/**
|
|
@@ -159,7 +170,7 @@ export declare class VaultsClient {
|
|
|
159
170
|
* @param ListSecretVersionsRequest
|
|
160
171
|
* @return ListSecretVersionsResponse
|
|
161
172
|
* @throws OciError when an error occurs
|
|
162
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
173
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ListSecretVersions.ts.html |here} to see how to use ListSecretVersions API.
|
|
163
174
|
*/
|
|
164
175
|
listSecretVersions(listSecretVersionsRequest: requests.ListSecretVersionsRequest): Promise<responses.ListSecretVersionsResponse>;
|
|
165
176
|
/**
|
|
@@ -200,7 +211,7 @@ export declare class VaultsClient {
|
|
|
200
211
|
* @param ListSecretsRequest
|
|
201
212
|
* @return ListSecretsResponse
|
|
202
213
|
* @throws OciError when an error occurs
|
|
203
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
214
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ListSecrets.ts.html |here} to see how to use ListSecrets API.
|
|
204
215
|
*/
|
|
205
216
|
listSecrets(listSecretsRequest: requests.ListSecretsRequest): Promise<responses.ListSecretsResponse>;
|
|
206
217
|
/**
|
|
@@ -235,6 +246,16 @@ export declare class VaultsClient {
|
|
|
235
246
|
* @param request a request which can be sent to the service operation
|
|
236
247
|
*/
|
|
237
248
|
listSecretsResponseIterator(request: requests.ListSecretsRequest): AsyncIterableIterator<responses.ListSecretsResponse>;
|
|
249
|
+
/**
|
|
250
|
+
* API to force rotation of an existing secret in Vault and the specified target system; expects secret to have a valid Target System Details object
|
|
251
|
+
*
|
|
252
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
253
|
+
* @param RotateSecretRequest
|
|
254
|
+
* @return RotateSecretResponse
|
|
255
|
+
* @throws OciError when an error occurs
|
|
256
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/RotateSecret.ts.html |here} to see how to use RotateSecret API.
|
|
257
|
+
*/
|
|
258
|
+
rotateSecret(rotateSecretRequest: requests.RotateSecretRequest): Promise<responses.RotateSecretResponse>;
|
|
238
259
|
/**
|
|
239
260
|
* Schedules the deletion of the specified secret. This sets the lifecycle state of the secret
|
|
240
261
|
* to `PENDING_DELETION` and then deletes it after the specified retention period ends.
|
|
@@ -243,7 +264,7 @@ export declare class VaultsClient {
|
|
|
243
264
|
* @param ScheduleSecretDeletionRequest
|
|
244
265
|
* @return ScheduleSecretDeletionResponse
|
|
245
266
|
* @throws OciError when an error occurs
|
|
246
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
267
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ScheduleSecretDeletion.ts.html |here} to see how to use ScheduleSecretDeletion API.
|
|
247
268
|
*/
|
|
248
269
|
scheduleSecretDeletion(scheduleSecretDeletionRequest: requests.ScheduleSecretDeletionRequest): Promise<responses.ScheduleSecretDeletionResponse>;
|
|
249
270
|
/**
|
|
@@ -254,7 +275,7 @@ export declare class VaultsClient {
|
|
|
254
275
|
* @param ScheduleSecretVersionDeletionRequest
|
|
255
276
|
* @return ScheduleSecretVersionDeletionResponse
|
|
256
277
|
* @throws OciError when an error occurs
|
|
257
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
278
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ScheduleSecretVersionDeletion.ts.html |here} to see how to use ScheduleSecretVersionDeletion API.
|
|
258
279
|
*/
|
|
259
280
|
scheduleSecretVersionDeletion(scheduleSecretVersionDeletionRequest: requests.ScheduleSecretVersionDeletionRequest): Promise<responses.ScheduleSecretVersionDeletionResponse>;
|
|
260
281
|
/**
|
|
@@ -269,7 +290,7 @@ export declare class VaultsClient {
|
|
|
269
290
|
* @param UpdateSecretRequest
|
|
270
291
|
* @return UpdateSecretResponse
|
|
271
292
|
* @throws OciError when an error occurs
|
|
272
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
293
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecret API.
|
|
273
294
|
*/
|
|
274
295
|
updateSecret(updateSecretRequest: requests.UpdateSecretRequest): Promise<responses.UpdateSecretResponse>;
|
|
275
296
|
}
|
package/lib/client.js
CHANGED
|
@@ -117,11 +117,7 @@ class VaultsClient {
|
|
|
117
117
|
set endpoint(endpoint) {
|
|
118
118
|
this._endpoint = endpoint;
|
|
119
119
|
this._endpoint = this._endpoint + "/20180608";
|
|
120
|
-
|
|
121
|
-
this.logger.info(`VaultsClient endpoint set to ${this._endpoint}`);
|
|
122
|
-
}
|
|
123
|
-
get logger() {
|
|
124
|
-
return common.LOG.logger;
|
|
120
|
+
oci_common_2.logger.info(`VaultsClient endpoint set to ${this._endpoint}`);
|
|
125
121
|
}
|
|
126
122
|
/**
|
|
127
123
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -130,8 +126,7 @@ class VaultsClient {
|
|
|
130
126
|
*/
|
|
131
127
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
132
128
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
133
|
-
|
|
134
|
-
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
129
|
+
oci_common_2.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
130
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
131
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(VaultsClient.serviceEndpointTemplate, this._region, VaultsClient.endpointServiceName);
|
|
137
132
|
}
|
|
@@ -201,12 +196,11 @@ class VaultsClient {
|
|
|
201
196
|
* @param CancelSecretDeletionRequest
|
|
202
197
|
* @return CancelSecretDeletionResponse
|
|
203
198
|
* @throws OciError when an error occurs
|
|
204
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
199
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletion API.
|
|
205
200
|
*/
|
|
206
201
|
cancelSecretDeletion(cancelSecretDeletionRequest) {
|
|
207
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
-
|
|
209
|
-
this.logger.debug("Calling operation VaultsClient#cancelSecretDeletion.");
|
|
203
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#cancelSecretDeletion.");
|
|
210
204
|
const operationName = "cancelSecretDeletion";
|
|
211
205
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/CancelSecretDeletion";
|
|
212
206
|
const pathParams = {
|
|
@@ -220,8 +214,6 @@ class VaultsClient {
|
|
|
220
214
|
};
|
|
221
215
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
222
216
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelSecretDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
223
|
-
if (this.logger)
|
|
224
|
-
retrier.logger = this.logger;
|
|
225
217
|
const request = yield oci_common_2.composeRequest({
|
|
226
218
|
baseEndpoint: this._endpoint,
|
|
227
219
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -255,18 +247,72 @@ class VaultsClient {
|
|
|
255
247
|
}
|
|
256
248
|
});
|
|
257
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* Cancels the ongoing secret rotation. The cancellation is contingent on how
|
|
252
|
+
* far the rotation process has progressed. Upon cancelling a rotation, all
|
|
253
|
+
* future rotations are also disabled.
|
|
254
|
+
*
|
|
255
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
256
|
+
* @param CancelSecretRotationRequest
|
|
257
|
+
* @return CancelSecretRotationResponse
|
|
258
|
+
* @throws OciError when an error occurs
|
|
259
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CancelSecretRotation.ts.html |here} to see how to use CancelSecretRotation API.
|
|
260
|
+
*/
|
|
261
|
+
cancelSecretRotation(cancelSecretRotationRequest) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#cancelSecretRotation.");
|
|
264
|
+
const operationName = "cancelSecretRotation";
|
|
265
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/CancelSecretRotation";
|
|
266
|
+
const pathParams = {
|
|
267
|
+
"{secretId}": cancelSecretRotationRequest.secretId
|
|
268
|
+
};
|
|
269
|
+
const queryParams = {};
|
|
270
|
+
let headerParams = {
|
|
271
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
272
|
+
"if-match": cancelSecretRotationRequest.ifMatch,
|
|
273
|
+
"opc-request-id": cancelSecretRotationRequest.opcRequestId
|
|
274
|
+
};
|
|
275
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
276
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelSecretRotationRequest.retryConfiguration, specRetryConfiguration);
|
|
277
|
+
const request = yield oci_common_2.composeRequest({
|
|
278
|
+
baseEndpoint: this._endpoint,
|
|
279
|
+
defaultHeaders: this._defaultHeaders,
|
|
280
|
+
path: "/secrets/{secretId}/actions/cancelRotation",
|
|
281
|
+
method: "POST",
|
|
282
|
+
pathParams: pathParams,
|
|
283
|
+
headerParams: headerParams,
|
|
284
|
+
queryParams: queryParams
|
|
285
|
+
});
|
|
286
|
+
try {
|
|
287
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
288
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
289
|
+
responseObject: {},
|
|
290
|
+
responseHeaders: [
|
|
291
|
+
{
|
|
292
|
+
value: response.headers.get("opc-request-id"),
|
|
293
|
+
key: "opcRequestId",
|
|
294
|
+
dataType: "string"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
});
|
|
298
|
+
return sdkResponse;
|
|
299
|
+
}
|
|
300
|
+
catch (err) {
|
|
301
|
+
throw err;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
258
305
|
/**
|
|
259
306
|
* Cancels the scheduled deletion of a secret version.
|
|
260
307
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
261
308
|
* @param CancelSecretVersionDeletionRequest
|
|
262
309
|
* @return CancelSecretVersionDeletionResponse
|
|
263
310
|
* @throws OciError when an error occurs
|
|
264
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
311
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CancelSecretVersionDeletion.ts.html |here} to see how to use CancelSecretVersionDeletion API.
|
|
265
312
|
*/
|
|
266
313
|
cancelSecretVersionDeletion(cancelSecretVersionDeletionRequest) {
|
|
267
314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
|
|
269
|
-
this.logger.debug("Calling operation VaultsClient#cancelSecretVersionDeletion.");
|
|
315
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#cancelSecretVersionDeletion.");
|
|
270
316
|
const operationName = "cancelSecretVersionDeletion";
|
|
271
317
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/SecretVersion/CancelSecretVersionDeletion";
|
|
272
318
|
const pathParams = {
|
|
@@ -281,8 +327,6 @@ class VaultsClient {
|
|
|
281
327
|
};
|
|
282
328
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
283
329
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelSecretVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
284
|
-
if (this.logger)
|
|
285
|
-
retrier.logger = this.logger;
|
|
286
330
|
const request = yield oci_common_2.composeRequest({
|
|
287
331
|
baseEndpoint: this._endpoint,
|
|
288
332
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -326,12 +370,11 @@ class VaultsClient {
|
|
|
326
370
|
* @param ChangeSecretCompartmentRequest
|
|
327
371
|
* @return ChangeSecretCompartmentResponse
|
|
328
372
|
* @throws OciError when an error occurs
|
|
329
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
373
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ChangeSecretCompartment.ts.html |here} to see how to use ChangeSecretCompartment API.
|
|
330
374
|
*/
|
|
331
375
|
changeSecretCompartment(changeSecretCompartmentRequest) {
|
|
332
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
-
|
|
334
|
-
this.logger.debug("Calling operation VaultsClient#changeSecretCompartment.");
|
|
377
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#changeSecretCompartment.");
|
|
335
378
|
const operationName = "changeSecretCompartment";
|
|
336
379
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/ChangeSecretCompartment";
|
|
337
380
|
const pathParams = {
|
|
@@ -346,8 +389,6 @@ class VaultsClient {
|
|
|
346
389
|
};
|
|
347
390
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
348
391
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSecretCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
349
|
-
if (this.logger)
|
|
350
|
-
retrier.logger = this.logger;
|
|
351
392
|
const request = yield oci_common_2.composeRequest({
|
|
352
393
|
baseEndpoint: this._endpoint,
|
|
353
394
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -391,12 +432,11 @@ class VaultsClient {
|
|
|
391
432
|
* @param CreateSecretRequest
|
|
392
433
|
* @return CreateSecretResponse
|
|
393
434
|
* @throws OciError when an error occurs
|
|
394
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
435
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/CreateSecret.ts.html |here} to see how to use CreateSecret API.
|
|
395
436
|
*/
|
|
396
437
|
createSecret(createSecretRequest) {
|
|
397
438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
-
|
|
399
|
-
this.logger.debug("Calling operation VaultsClient#createSecret.");
|
|
439
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#createSecret.");
|
|
400
440
|
const operationName = "createSecret";
|
|
401
441
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/CreateSecret";
|
|
402
442
|
const pathParams = {};
|
|
@@ -408,8 +448,6 @@ class VaultsClient {
|
|
|
408
448
|
};
|
|
409
449
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
410
450
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSecretRequest.retryConfiguration, specRetryConfiguration);
|
|
411
|
-
if (this.logger)
|
|
412
|
-
retrier.logger = this.logger;
|
|
413
451
|
const request = yield oci_common_2.composeRequest({
|
|
414
452
|
baseEndpoint: this._endpoint,
|
|
415
453
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -454,12 +492,11 @@ class VaultsClient {
|
|
|
454
492
|
* @param GetSecretRequest
|
|
455
493
|
* @return GetSecretResponse
|
|
456
494
|
* @throws OciError when an error occurs
|
|
457
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
495
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/GetSecret.ts.html |here} to see how to use GetSecret API.
|
|
458
496
|
*/
|
|
459
497
|
getSecret(getSecretRequest) {
|
|
460
498
|
return __awaiter(this, void 0, void 0, function* () {
|
|
461
|
-
|
|
462
|
-
this.logger.debug("Calling operation VaultsClient#getSecret.");
|
|
499
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#getSecret.");
|
|
463
500
|
const operationName = "getSecret";
|
|
464
501
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/GetSecret";
|
|
465
502
|
const pathParams = {
|
|
@@ -472,8 +509,6 @@ class VaultsClient {
|
|
|
472
509
|
};
|
|
473
510
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
474
511
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSecretRequest.retryConfiguration, specRetryConfiguration);
|
|
475
|
-
if (this.logger)
|
|
476
|
-
retrier.logger = this.logger;
|
|
477
512
|
const request = yield oci_common_2.composeRequest({
|
|
478
513
|
baseEndpoint: this._endpoint,
|
|
479
514
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -518,12 +553,11 @@ class VaultsClient {
|
|
|
518
553
|
* @param GetSecretVersionRequest
|
|
519
554
|
* @return GetSecretVersionResponse
|
|
520
555
|
* @throws OciError when an error occurs
|
|
521
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
556
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/GetSecretVersion.ts.html |here} to see how to use GetSecretVersion API.
|
|
522
557
|
*/
|
|
523
558
|
getSecretVersion(getSecretVersionRequest) {
|
|
524
559
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
-
|
|
526
|
-
this.logger.debug("Calling operation VaultsClient#getSecretVersion.");
|
|
560
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#getSecretVersion.");
|
|
527
561
|
const operationName = "getSecretVersion";
|
|
528
562
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/SecretVersion/GetSecretVersion";
|
|
529
563
|
const pathParams = {
|
|
@@ -537,8 +571,6 @@ class VaultsClient {
|
|
|
537
571
|
};
|
|
538
572
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
539
573
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSecretVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
540
|
-
if (this.logger)
|
|
541
|
-
retrier.logger = this.logger;
|
|
542
574
|
const request = yield oci_common_2.composeRequest({
|
|
543
575
|
baseEndpoint: this._endpoint,
|
|
544
576
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -582,12 +614,11 @@ class VaultsClient {
|
|
|
582
614
|
* @param ListSecretVersionsRequest
|
|
583
615
|
* @return ListSecretVersionsResponse
|
|
584
616
|
* @throws OciError when an error occurs
|
|
585
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
617
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ListSecretVersions.ts.html |here} to see how to use ListSecretVersions API.
|
|
586
618
|
*/
|
|
587
619
|
listSecretVersions(listSecretVersionsRequest) {
|
|
588
620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
589
|
-
|
|
590
|
-
this.logger.debug("Calling operation VaultsClient#listSecretVersions.");
|
|
621
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#listSecretVersions.");
|
|
591
622
|
const operationName = "listSecretVersions";
|
|
592
623
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/SecretVersionSummary/ListSecretVersions";
|
|
593
624
|
const pathParams = {
|
|
@@ -605,8 +636,6 @@ class VaultsClient {
|
|
|
605
636
|
};
|
|
606
637
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
607
638
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSecretVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
608
|
-
if (this.logger)
|
|
609
|
-
retrier.logger = this.logger;
|
|
610
639
|
const request = yield oci_common_2.composeRequest({
|
|
611
640
|
baseEndpoint: this._endpoint,
|
|
612
641
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -690,12 +719,11 @@ class VaultsClient {
|
|
|
690
719
|
* @param ListSecretsRequest
|
|
691
720
|
* @return ListSecretsResponse
|
|
692
721
|
* @throws OciError when an error occurs
|
|
693
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
722
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ListSecrets.ts.html |here} to see how to use ListSecrets API.
|
|
694
723
|
*/
|
|
695
724
|
listSecrets(listSecretsRequest) {
|
|
696
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
-
|
|
698
|
-
this.logger.debug("Calling operation VaultsClient#listSecrets.");
|
|
726
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#listSecrets.");
|
|
699
727
|
const operationName = "listSecrets";
|
|
700
728
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/SecretSummary/ListSecrets";
|
|
701
729
|
const pathParams = {};
|
|
@@ -715,8 +743,6 @@ class VaultsClient {
|
|
|
715
743
|
};
|
|
716
744
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
717
745
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSecretsRequest.retryConfiguration, specRetryConfiguration);
|
|
718
|
-
if (this.logger)
|
|
719
|
-
retrier.logger = this.logger;
|
|
720
746
|
const request = yield oci_common_2.composeRequest({
|
|
721
747
|
baseEndpoint: this._endpoint,
|
|
722
748
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -794,6 +820,65 @@ class VaultsClient {
|
|
|
794
820
|
listSecretsResponseIterator(request) {
|
|
795
821
|
return oci_common_1.paginateResponses(request, req => this.listSecrets(req));
|
|
796
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* API to force rotation of an existing secret in Vault and the specified target system; expects secret to have a valid Target System Details object
|
|
825
|
+
*
|
|
826
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
827
|
+
* @param RotateSecretRequest
|
|
828
|
+
* @return RotateSecretResponse
|
|
829
|
+
* @throws OciError when an error occurs
|
|
830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/RotateSecret.ts.html |here} to see how to use RotateSecret API.
|
|
831
|
+
*/
|
|
832
|
+
rotateSecret(rotateSecretRequest) {
|
|
833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
834
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#rotateSecret.");
|
|
835
|
+
const operationName = "rotateSecret";
|
|
836
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/RotateSecret";
|
|
837
|
+
const pathParams = {
|
|
838
|
+
"{secretId}": rotateSecretRequest.secretId
|
|
839
|
+
};
|
|
840
|
+
const queryParams = {};
|
|
841
|
+
let headerParams = {
|
|
842
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
843
|
+
"if-match": rotateSecretRequest.ifMatch,
|
|
844
|
+
"opc-request-id": rotateSecretRequest.opcRequestId,
|
|
845
|
+
"opc-retry-token": rotateSecretRequest.opcRetryToken
|
|
846
|
+
};
|
|
847
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
848
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, rotateSecretRequest.retryConfiguration, specRetryConfiguration);
|
|
849
|
+
const request = yield oci_common_2.composeRequest({
|
|
850
|
+
baseEndpoint: this._endpoint,
|
|
851
|
+
defaultHeaders: this._defaultHeaders,
|
|
852
|
+
path: "/secrets/{secretId}/actions/rotate",
|
|
853
|
+
method: "POST",
|
|
854
|
+
pathParams: pathParams,
|
|
855
|
+
headerParams: headerParams,
|
|
856
|
+
queryParams: queryParams
|
|
857
|
+
});
|
|
858
|
+
try {
|
|
859
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
860
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
861
|
+
responseObject: {},
|
|
862
|
+
responseHeaders: [
|
|
863
|
+
{
|
|
864
|
+
value: response.headers.get("opc-request-id"),
|
|
865
|
+
key: "opcRequestId",
|
|
866
|
+
dataType: "string"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
value: response.headers.get("opc-work-request-id"),
|
|
870
|
+
key: "opcWorkRequestId",
|
|
871
|
+
dataType: "string"
|
|
872
|
+
}
|
|
873
|
+
]
|
|
874
|
+
});
|
|
875
|
+
return sdkResponse;
|
|
876
|
+
}
|
|
877
|
+
catch (err) {
|
|
878
|
+
throw err;
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
}
|
|
797
882
|
/**
|
|
798
883
|
* Schedules the deletion of the specified secret. This sets the lifecycle state of the secret
|
|
799
884
|
* to `PENDING_DELETION` and then deletes it after the specified retention period ends.
|
|
@@ -802,12 +887,11 @@ class VaultsClient {
|
|
|
802
887
|
* @param ScheduleSecretDeletionRequest
|
|
803
888
|
* @return ScheduleSecretDeletionResponse
|
|
804
889
|
* @throws OciError when an error occurs
|
|
805
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
890
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ScheduleSecretDeletion.ts.html |here} to see how to use ScheduleSecretDeletion API.
|
|
806
891
|
*/
|
|
807
892
|
scheduleSecretDeletion(scheduleSecretDeletionRequest) {
|
|
808
893
|
return __awaiter(this, void 0, void 0, function* () {
|
|
809
|
-
|
|
810
|
-
this.logger.debug("Calling operation VaultsClient#scheduleSecretDeletion.");
|
|
894
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#scheduleSecretDeletion.");
|
|
811
895
|
const operationName = "scheduleSecretDeletion";
|
|
812
896
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/ScheduleSecretDeletion";
|
|
813
897
|
const pathParams = {
|
|
@@ -821,8 +905,6 @@ class VaultsClient {
|
|
|
821
905
|
};
|
|
822
906
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
823
907
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleSecretDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
824
|
-
if (this.logger)
|
|
825
|
-
retrier.logger = this.logger;
|
|
826
908
|
const request = yield oci_common_2.composeRequest({
|
|
827
909
|
baseEndpoint: this._endpoint,
|
|
828
910
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -865,12 +947,11 @@ class VaultsClient {
|
|
|
865
947
|
* @param ScheduleSecretVersionDeletionRequest
|
|
866
948
|
* @return ScheduleSecretVersionDeletionResponse
|
|
867
949
|
* @throws OciError when an error occurs
|
|
868
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
950
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/ScheduleSecretVersionDeletion.ts.html |here} to see how to use ScheduleSecretVersionDeletion API.
|
|
869
951
|
*/
|
|
870
952
|
scheduleSecretVersionDeletion(scheduleSecretVersionDeletionRequest) {
|
|
871
953
|
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
-
|
|
873
|
-
this.logger.debug("Calling operation VaultsClient#scheduleSecretVersionDeletion.");
|
|
954
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#scheduleSecretVersionDeletion.");
|
|
874
955
|
const operationName = "scheduleSecretVersionDeletion";
|
|
875
956
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/SecretVersion/ScheduleSecretVersionDeletion";
|
|
876
957
|
const pathParams = {
|
|
@@ -885,8 +966,6 @@ class VaultsClient {
|
|
|
885
966
|
};
|
|
886
967
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
887
968
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleSecretVersionDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
888
|
-
if (this.logger)
|
|
889
|
-
retrier.logger = this.logger;
|
|
890
969
|
const request = yield oci_common_2.composeRequest({
|
|
891
970
|
baseEndpoint: this._endpoint,
|
|
892
971
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -933,12 +1012,11 @@ class VaultsClient {
|
|
|
933
1012
|
* @param UpdateSecretRequest
|
|
934
1013
|
* @return UpdateSecretResponse
|
|
935
1014
|
* @throws OciError when an error occurs
|
|
936
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1015
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecret API.
|
|
937
1016
|
*/
|
|
938
1017
|
updateSecret(updateSecretRequest) {
|
|
939
1018
|
return __awaiter(this, void 0, void 0, function* () {
|
|
940
|
-
|
|
941
|
-
this.logger.debug("Calling operation VaultsClient#updateSecret.");
|
|
1019
|
+
oci_common_2.logger.debug("Calling operation VaultsClient#updateSecret.");
|
|
942
1020
|
const operationName = "updateSecret";
|
|
943
1021
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/secretmgmt/20180608/Secret/UpdateSecret";
|
|
944
1022
|
const pathParams = {
|
|
@@ -952,8 +1030,6 @@ class VaultsClient {
|
|
|
952
1030
|
};
|
|
953
1031
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
954
1032
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSecretRequest.retryConfiguration, specRetryConfiguration);
|
|
955
|
-
if (this.logger)
|
|
956
|
-
retrier.logger = this.logger;
|
|
957
1033
|
const request = yield oci_common_2.composeRequest({
|
|
958
1034
|
baseEndpoint: this._endpoint,
|
|
959
1035
|
defaultHeaders: this._defaultHeaders,
|