@azure/keyvault-keys 4.10.0-beta.1 → 4.10.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.
- package/dist/browser/constants.d.ts.map +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/cryptographyClientModels.d.ts +1 -1
- package/dist/browser/cryptographyClientModels.d.ts.map +1 -1
- package/dist/browser/cryptographyClientModels.js.map +1 -1
- package/dist/browser/generated/api/keyVaultContext.js +1 -1
- package/dist/browser/generated/api/keyVaultContext.js.map +1 -1
- package/dist/browser/generated/api/operations.d.ts +3 -2
- package/dist/browser/generated/api/operations.d.ts.map +1 -1
- package/dist/browser/generated/api/operations.js +236 -85
- package/dist/browser/generated/api/operations.js.map +1 -1
- package/dist/browser/generated/index.d.ts +1 -1
- package/dist/browser/generated/index.d.ts.map +1 -1
- package/dist/browser/generated/index.js.map +1 -1
- package/dist/browser/generated/keyVaultClient.d.ts +3 -2
- package/dist/browser/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/browser/generated/keyVaultClient.js +3 -2
- package/dist/browser/generated/keyVaultClient.js.map +1 -1
- package/dist/browser/generated/models/index.d.ts +1 -1
- package/dist/browser/generated/models/index.d.ts.map +1 -1
- package/dist/browser/generated/models/index.js.map +1 -1
- package/dist/browser/generated/models/models.d.ts +15 -20
- package/dist/browser/generated/models/models.d.ts.map +1 -1
- package/dist/browser/generated/models/models.js +12 -27
- package/dist/browser/generated/models/models.js.map +1 -1
- package/dist/browser/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/generated/static-helpers/urlTemplate.js +172 -0
- package/dist/browser/generated/static-helpers/urlTemplate.js.map +1 -0
- package/dist/browser/keysModels.d.ts +1 -1
- package/dist/browser/keysModels.d.ts.map +1 -1
- package/dist/browser/keysModels.js +1 -1
- package/dist/browser/keysModels.js.map +1 -1
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/cryptographyClientModels.d.ts +1 -1
- package/dist/commonjs/cryptographyClientModels.d.ts.map +1 -1
- package/dist/commonjs/cryptographyClientModels.js.map +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.js +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.js.map +1 -1
- package/dist/commonjs/generated/api/operations.d.ts +3 -2
- package/dist/commonjs/generated/api/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/operations.js +236 -85
- package/dist/commonjs/generated/api/operations.js.map +1 -1
- package/dist/commonjs/generated/index.d.ts +1 -1
- package/dist/commonjs/generated/index.d.ts.map +1 -1
- package/dist/commonjs/generated/index.js.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.d.ts +3 -2
- package/dist/commonjs/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.js +27 -26
- package/dist/commonjs/generated/keyVaultClient.js.map +1 -1
- package/dist/commonjs/generated/models/index.d.ts +1 -1
- package/dist/commonjs/generated/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/models/index.js.map +1 -1
- package/dist/commonjs/generated/models/models.d.ts +15 -20
- package/dist/commonjs/generated/models/models.d.ts.map +1 -1
- package/dist/commonjs/generated/models/models.js +12 -28
- package/dist/commonjs/generated/models/models.js.map +1 -1
- package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.js +175 -0
- package/dist/commonjs/generated/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/keysModels.d.ts +1 -1
- package/dist/commonjs/keysModels.d.ts.map +1 -1
- package/dist/commonjs/keysModels.js +1 -1
- package/dist/commonjs/keysModels.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/cryptographyClientModels.d.ts +1 -1
- package/dist/esm/cryptographyClientModels.d.ts.map +1 -1
- package/dist/esm/cryptographyClientModels.js.map +1 -1
- package/dist/esm/generated/api/keyVaultContext.js +1 -1
- package/dist/esm/generated/api/keyVaultContext.js.map +1 -1
- package/dist/esm/generated/api/operations.d.ts +3 -2
- package/dist/esm/generated/api/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/operations.js +236 -85
- package/dist/esm/generated/api/operations.js.map +1 -1
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/keyVaultClient.d.ts +3 -2
- package/dist/esm/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/esm/generated/keyVaultClient.js +3 -2
- package/dist/esm/generated/keyVaultClient.js.map +1 -1
- package/dist/esm/generated/models/index.d.ts +1 -1
- package/dist/esm/generated/models/index.d.ts.map +1 -1
- package/dist/esm/generated/models/index.js.map +1 -1
- package/dist/esm/generated/models/models.d.ts +15 -20
- package/dist/esm/generated/models/models.d.ts.map +1 -1
- package/dist/esm/generated/models/models.js +12 -27
- package/dist/esm/generated/models/models.js.map +1 -1
- package/dist/esm/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/generated/static-helpers/urlTemplate.js +172 -0
- package/dist/esm/generated/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/keysModels.d.ts +1 -1
- package/dist/esm/keysModels.d.ts.map +1 -1
- package/dist/esm/keysModels.js +1 -1
- package/dist/esm/keysModels.js.map +1 -1
- package/package.json +4 -10
|
@@ -79,12 +79,20 @@ exports._createKeyDeserialize = _createKeyDeserialize;
|
|
|
79
79
|
exports.createKey = createKey;
|
|
80
80
|
const models_js_1 = require("../models/models.js");
|
|
81
81
|
const pagingHelpers_js_1 = require("../static-helpers/pagingHelpers.js");
|
|
82
|
+
const urlTemplate_js_1 = require("../static-helpers/urlTemplate.js");
|
|
82
83
|
const core_client_1 = require("@azure-rest/core-client");
|
|
83
84
|
function _getKeyAttestationSend(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
|
84
|
-
var _a;
|
|
85
|
+
var _a, _b;
|
|
86
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/attestation{?api%2Dversion}", {
|
|
87
|
+
"key-name": keyName,
|
|
88
|
+
"key-version": keyVersion,
|
|
89
|
+
"api%2Dversion": context.apiVersion,
|
|
90
|
+
}, {
|
|
91
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
92
|
+
});
|
|
85
93
|
return context
|
|
86
|
-
.path(
|
|
87
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
94
|
+
.path(path)
|
|
95
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
88
96
|
}
|
|
89
97
|
async function _getKeyAttestationDeserialize(result) {
|
|
90
98
|
const expectedStatuses = ["200"];
|
|
@@ -101,10 +109,15 @@ async function getKeyAttestation(context, keyName, keyVersion, options = { reque
|
|
|
101
109
|
return _getKeyAttestationDeserialize(result);
|
|
102
110
|
}
|
|
103
111
|
function _getRandomBytesSend(context, parameters, options = { requestOptions: {} }) {
|
|
104
|
-
var _a;
|
|
112
|
+
var _a, _b;
|
|
113
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/rng{?api%2Dversion}", {
|
|
114
|
+
"api%2Dversion": context.apiVersion,
|
|
115
|
+
}, {
|
|
116
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
117
|
+
});
|
|
105
118
|
return context
|
|
106
|
-
.path(
|
|
107
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
119
|
+
.path(path)
|
|
120
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.getRandomBytesRequestSerializer)(parameters) }));
|
|
108
121
|
}
|
|
109
122
|
async function _getRandomBytesDeserialize(result) {
|
|
110
123
|
const expectedStatuses = ["200"];
|
|
@@ -121,10 +134,16 @@ async function getRandomBytes(context, parameters, options = { requestOptions: {
|
|
|
121
134
|
return _getRandomBytesDeserialize(result);
|
|
122
135
|
}
|
|
123
136
|
function _updateKeyRotationPolicySend(context, keyName, keyRotationPolicy, options = { requestOptions: {} }) {
|
|
124
|
-
var _a;
|
|
137
|
+
var _a, _b;
|
|
138
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/rotationpolicy{?api%2Dversion}", {
|
|
139
|
+
"key-name": keyName,
|
|
140
|
+
"api%2Dversion": context.apiVersion,
|
|
141
|
+
}, {
|
|
142
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
143
|
+
});
|
|
125
144
|
return context
|
|
126
|
-
.path(
|
|
127
|
-
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
145
|
+
.path(path)
|
|
146
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyRotationPolicySerializer)(keyRotationPolicy) }));
|
|
128
147
|
}
|
|
129
148
|
async function _updateKeyRotationPolicyDeserialize(result) {
|
|
130
149
|
const expectedStatuses = ["200"];
|
|
@@ -141,10 +160,16 @@ async function updateKeyRotationPolicy(context, keyName, keyRotationPolicy, opti
|
|
|
141
160
|
return _updateKeyRotationPolicyDeserialize(result);
|
|
142
161
|
}
|
|
143
162
|
function _getKeyRotationPolicySend(context, keyName, options = { requestOptions: {} }) {
|
|
144
|
-
var _a;
|
|
163
|
+
var _a, _b;
|
|
164
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/rotationpolicy{?api%2Dversion}", {
|
|
165
|
+
"key-name": keyName,
|
|
166
|
+
"api%2Dversion": context.apiVersion,
|
|
167
|
+
}, {
|
|
168
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
169
|
+
});
|
|
145
170
|
return context
|
|
146
|
-
.path(
|
|
147
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
171
|
+
.path(path)
|
|
172
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
148
173
|
}
|
|
149
174
|
async function _getKeyRotationPolicyDeserialize(result) {
|
|
150
175
|
const expectedStatuses = ["200"];
|
|
@@ -161,10 +186,16 @@ async function getKeyRotationPolicy(context, keyName, options = { requestOptions
|
|
|
161
186
|
return _getKeyRotationPolicyDeserialize(result);
|
|
162
187
|
}
|
|
163
188
|
function _recoverDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
164
|
-
var _a;
|
|
189
|
+
var _a, _b;
|
|
190
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys/{key-name}/recover{?api%2Dversion}", {
|
|
191
|
+
"key-name": keyName,
|
|
192
|
+
"api%2Dversion": context.apiVersion,
|
|
193
|
+
}, {
|
|
194
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
195
|
+
});
|
|
165
196
|
return context
|
|
166
|
-
.path(
|
|
167
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
197
|
+
.path(path)
|
|
198
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
168
199
|
}
|
|
169
200
|
async function _recoverDeletedKeyDeserialize(result) {
|
|
170
201
|
const expectedStatuses = ["200"];
|
|
@@ -181,10 +212,16 @@ async function recoverDeletedKey(context, keyName, options = { requestOptions: {
|
|
|
181
212
|
return _recoverDeletedKeyDeserialize(result);
|
|
182
213
|
}
|
|
183
214
|
function _purgeDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
184
|
-
var _a;
|
|
215
|
+
var _a, _b;
|
|
216
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys/{key-name}{?api%2Dversion}", {
|
|
217
|
+
"key-name": keyName,
|
|
218
|
+
"api%2Dversion": context.apiVersion,
|
|
219
|
+
}, {
|
|
220
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
221
|
+
});
|
|
185
222
|
return context
|
|
186
|
-
.path(
|
|
187
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
223
|
+
.path(path)
|
|
224
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
188
225
|
}
|
|
189
226
|
async function _purgeDeletedKeyDeserialize(result) {
|
|
190
227
|
const expectedStatuses = ["204"];
|
|
@@ -201,10 +238,16 @@ async function purgeDeletedKey(context, keyName, options = { requestOptions: {}
|
|
|
201
238
|
return _purgeDeletedKeyDeserialize(result);
|
|
202
239
|
}
|
|
203
240
|
function _getDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
204
|
-
var _a;
|
|
241
|
+
var _a, _b;
|
|
242
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys/{key-name}{?api%2Dversion}", {
|
|
243
|
+
"key-name": keyName,
|
|
244
|
+
"api%2Dversion": context.apiVersion,
|
|
245
|
+
}, {
|
|
246
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
247
|
+
});
|
|
205
248
|
return context
|
|
206
|
-
.path(
|
|
207
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
249
|
+
.path(path)
|
|
250
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
208
251
|
}
|
|
209
252
|
async function _getDeletedKeyDeserialize(result) {
|
|
210
253
|
const expectedStatuses = ["200"];
|
|
@@ -221,13 +264,16 @@ async function getDeletedKey(context, keyName, options = { requestOptions: {} })
|
|
|
221
264
|
return _getDeletedKeyDeserialize(result);
|
|
222
265
|
}
|
|
223
266
|
function _getDeletedKeysSend(context, options = { requestOptions: {} }) {
|
|
224
|
-
var _a;
|
|
267
|
+
var _a, _b;
|
|
268
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys{?api%2Dversion,maxresults}", {
|
|
269
|
+
"api%2Dversion": context.apiVersion,
|
|
270
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
271
|
+
}, {
|
|
272
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
273
|
+
});
|
|
225
274
|
return context
|
|
226
|
-
.path(
|
|
227
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
228
|
-
"api-version": context.apiVersion,
|
|
229
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
230
|
-
} }));
|
|
275
|
+
.path(path)
|
|
276
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
231
277
|
}
|
|
232
278
|
async function _getDeletedKeysDeserialize(result) {
|
|
233
279
|
const expectedStatuses = ["200"];
|
|
@@ -243,10 +289,17 @@ function getDeletedKeys(context, options = { requestOptions: {} }) {
|
|
|
243
289
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getDeletedKeysSend(context, options), _getDeletedKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
244
290
|
}
|
|
245
291
|
function _releaseSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
246
|
-
var _a;
|
|
292
|
+
var _a, _b;
|
|
293
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/release{?api%2Dversion}", {
|
|
294
|
+
"key-name": keyName,
|
|
295
|
+
"key-version": keyVersion,
|
|
296
|
+
"api%2Dversion": context.apiVersion,
|
|
297
|
+
}, {
|
|
298
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
299
|
+
});
|
|
247
300
|
return context
|
|
248
|
-
.path(
|
|
249
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
301
|
+
.path(path)
|
|
302
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyReleaseParametersSerializer)(parameters) }));
|
|
250
303
|
}
|
|
251
304
|
async function _releaseDeserialize(result) {
|
|
252
305
|
const expectedStatuses = ["200"];
|
|
@@ -263,10 +316,17 @@ async function release(context, keyName, keyVersion, parameters, options = { req
|
|
|
263
316
|
return _releaseDeserialize(result);
|
|
264
317
|
}
|
|
265
318
|
function _unwrapKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
266
|
-
var _a;
|
|
319
|
+
var _a, _b;
|
|
320
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/unwrapkey{?api%2Dversion}", {
|
|
321
|
+
"key-name": keyName,
|
|
322
|
+
"key-version": keyVersion,
|
|
323
|
+
"api%2Dversion": context.apiVersion,
|
|
324
|
+
}, {
|
|
325
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
326
|
+
});
|
|
267
327
|
return context
|
|
268
|
-
.path(
|
|
269
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
328
|
+
.path(path)
|
|
329
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
|
270
330
|
}
|
|
271
331
|
async function _unwrapKeyDeserialize(result) {
|
|
272
332
|
const expectedStatuses = ["200"];
|
|
@@ -283,10 +343,17 @@ async function unwrapKey(context, keyName, keyVersion, parameters, options = { r
|
|
|
283
343
|
return _unwrapKeyDeserialize(result);
|
|
284
344
|
}
|
|
285
345
|
function _wrapKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
286
|
-
var _a;
|
|
346
|
+
var _a, _b;
|
|
347
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/wrapkey{?api%2Dversion}", {
|
|
348
|
+
"key-name": keyName,
|
|
349
|
+
"key-version": keyVersion,
|
|
350
|
+
"api%2Dversion": context.apiVersion,
|
|
351
|
+
}, {
|
|
352
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
353
|
+
});
|
|
287
354
|
return context
|
|
288
|
-
.path(
|
|
289
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
355
|
+
.path(path)
|
|
356
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
|
290
357
|
}
|
|
291
358
|
async function _wrapKeyDeserialize(result) {
|
|
292
359
|
const expectedStatuses = ["200"];
|
|
@@ -303,10 +370,17 @@ async function wrapKey(context, keyName, keyVersion, parameters, options = { req
|
|
|
303
370
|
return _wrapKeyDeserialize(result);
|
|
304
371
|
}
|
|
305
372
|
function _verifySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
306
|
-
var _a;
|
|
373
|
+
var _a, _b;
|
|
374
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/verify{?api%2Dversion}", {
|
|
375
|
+
"key-name": keyName,
|
|
376
|
+
"key-version": keyVersion,
|
|
377
|
+
"api%2Dversion": context.apiVersion,
|
|
378
|
+
}, {
|
|
379
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
380
|
+
});
|
|
307
381
|
return context
|
|
308
|
-
.path(
|
|
309
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
382
|
+
.path(path)
|
|
383
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyVerifyParametersSerializer)(parameters) }));
|
|
310
384
|
}
|
|
311
385
|
async function _verifyDeserialize(result) {
|
|
312
386
|
const expectedStatuses = ["200"];
|
|
@@ -323,10 +397,17 @@ async function verify(context, keyName, keyVersion, parameters, options = { requ
|
|
|
323
397
|
return _verifyDeserialize(result);
|
|
324
398
|
}
|
|
325
399
|
function _signSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
326
|
-
var _a;
|
|
400
|
+
var _a, _b;
|
|
401
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/sign{?api%2Dversion}", {
|
|
402
|
+
"key-name": keyName,
|
|
403
|
+
"key-version": keyVersion,
|
|
404
|
+
"api%2Dversion": context.apiVersion,
|
|
405
|
+
}, {
|
|
406
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
407
|
+
});
|
|
327
408
|
return context
|
|
328
|
-
.path(
|
|
329
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
409
|
+
.path(path)
|
|
410
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keySignParametersSerializer)(parameters) }));
|
|
330
411
|
}
|
|
331
412
|
async function _signDeserialize(result) {
|
|
332
413
|
const expectedStatuses = ["200"];
|
|
@@ -343,10 +424,17 @@ async function sign(context, keyName, keyVersion, parameters, options = { reques
|
|
|
343
424
|
return _signDeserialize(result);
|
|
344
425
|
}
|
|
345
426
|
function _decryptSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
346
|
-
var _a;
|
|
427
|
+
var _a, _b;
|
|
428
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/decrypt{?api%2Dversion}", {
|
|
429
|
+
"key-name": keyName,
|
|
430
|
+
"key-version": keyVersion,
|
|
431
|
+
"api%2Dversion": context.apiVersion,
|
|
432
|
+
}, {
|
|
433
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
434
|
+
});
|
|
347
435
|
return context
|
|
348
|
-
.path(
|
|
349
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
436
|
+
.path(path)
|
|
437
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
|
350
438
|
}
|
|
351
439
|
async function _decryptDeserialize(result) {
|
|
352
440
|
const expectedStatuses = ["200"];
|
|
@@ -357,16 +445,23 @@ async function _decryptDeserialize(result) {
|
|
|
357
445
|
}
|
|
358
446
|
return (0, models_js_1.keyOperationResultDeserializer)(result.body);
|
|
359
447
|
}
|
|
360
|
-
/** The DECRYPT operation decrypts a well-formed block of ciphertext using the target encryption key and specified algorithm. This operation is the reverse of the ENCRYPT operation; only a single block of data may be decrypted, the size of this block is dependent on the target key and the algorithm to be used. The DECRYPT operation applies to asymmetric and symmetric keys stored in Azure Key Vault since it uses the private portion of the key. This operation requires the keys/decrypt permission. Microsoft recommends not to use CBC algorithms for decryption without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://
|
|
448
|
+
/** The DECRYPT operation decrypts a well-formed block of ciphertext using the target encryption key and specified algorithm. This operation is the reverse of the ENCRYPT operation; only a single block of data may be decrypted, the size of this block is dependent on the target key and the algorithm to be used. The DECRYPT operation applies to asymmetric and symmetric keys stored in Azure Key Vault since it uses the private portion of the key. This operation requires the keys/decrypt permission. Microsoft recommends not to use CBC algorithms for decryption without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://learn.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information. */
|
|
361
449
|
async function decrypt(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
362
450
|
const result = await _decryptSend(context, keyName, keyVersion, parameters, options);
|
|
363
451
|
return _decryptDeserialize(result);
|
|
364
452
|
}
|
|
365
453
|
function _encryptSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
366
|
-
var _a;
|
|
454
|
+
var _a, _b;
|
|
455
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/encrypt{?api%2Dversion}", {
|
|
456
|
+
"key-name": keyName,
|
|
457
|
+
"key-version": keyVersion,
|
|
458
|
+
"api%2Dversion": context.apiVersion,
|
|
459
|
+
}, {
|
|
460
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
461
|
+
});
|
|
367
462
|
return context
|
|
368
|
-
.path(
|
|
369
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
463
|
+
.path(path)
|
|
464
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
|
370
465
|
}
|
|
371
466
|
async function _encryptDeserialize(result) {
|
|
372
467
|
const expectedStatuses = ["200"];
|
|
@@ -383,10 +478,15 @@ async function encrypt(context, keyName, keyVersion, parameters, options = { req
|
|
|
383
478
|
return _encryptDeserialize(result);
|
|
384
479
|
}
|
|
385
480
|
function _restoreKeySend(context, parameters, options = { requestOptions: {} }) {
|
|
386
|
-
var _a;
|
|
481
|
+
var _a, _b;
|
|
482
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/restore{?api%2Dversion}", {
|
|
483
|
+
"api%2Dversion": context.apiVersion,
|
|
484
|
+
}, {
|
|
485
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
486
|
+
});
|
|
387
487
|
return context
|
|
388
|
-
.path(
|
|
389
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
488
|
+
.path(path)
|
|
489
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyRestoreParametersSerializer)(parameters) }));
|
|
390
490
|
}
|
|
391
491
|
async function _restoreKeyDeserialize(result) {
|
|
392
492
|
const expectedStatuses = ["200"];
|
|
@@ -403,10 +503,16 @@ async function restoreKey(context, parameters, options = { requestOptions: {} })
|
|
|
403
503
|
return _restoreKeyDeserialize(result);
|
|
404
504
|
}
|
|
405
505
|
function _backupKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
406
|
-
var _a;
|
|
506
|
+
var _a, _b;
|
|
507
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/backup{?api%2Dversion}", {
|
|
508
|
+
"key-name": keyName,
|
|
509
|
+
"api%2Dversion": context.apiVersion,
|
|
510
|
+
}, {
|
|
511
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
512
|
+
});
|
|
407
513
|
return context
|
|
408
|
-
.path(
|
|
409
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
514
|
+
.path(path)
|
|
515
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
410
516
|
}
|
|
411
517
|
async function _backupKeyDeserialize(result) {
|
|
412
518
|
const expectedStatuses = ["200"];
|
|
@@ -423,13 +529,16 @@ async function backupKey(context, keyName, options = { requestOptions: {} }) {
|
|
|
423
529
|
return _backupKeyDeserialize(result);
|
|
424
530
|
}
|
|
425
531
|
function _getKeysSend(context, options = { requestOptions: {} }) {
|
|
426
|
-
var _a;
|
|
532
|
+
var _a, _b;
|
|
533
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys{?api%2Dversion,maxresults}", {
|
|
534
|
+
"api%2Dversion": context.apiVersion,
|
|
535
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
536
|
+
}, {
|
|
537
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
538
|
+
});
|
|
427
539
|
return context
|
|
428
|
-
.path(
|
|
429
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
430
|
-
"api-version": context.apiVersion,
|
|
431
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
432
|
-
} }));
|
|
540
|
+
.path(path)
|
|
541
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
433
542
|
}
|
|
434
543
|
async function _getKeysDeserialize(result) {
|
|
435
544
|
const expectedStatuses = ["200"];
|
|
@@ -445,13 +554,17 @@ function getKeys(context, options = { requestOptions: {} }) {
|
|
|
445
554
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getKeysSend(context, options), _getKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
446
555
|
}
|
|
447
556
|
function _getKeyVersionsSend(context, keyName, options = { requestOptions: {} }) {
|
|
448
|
-
var _a;
|
|
557
|
+
var _a, _b;
|
|
558
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/versions{?api%2Dversion,maxresults}", {
|
|
559
|
+
"key-name": keyName,
|
|
560
|
+
"api%2Dversion": context.apiVersion,
|
|
561
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
562
|
+
}, {
|
|
563
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
564
|
+
});
|
|
449
565
|
return context
|
|
450
|
-
.path(
|
|
451
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
452
|
-
"api-version": context.apiVersion,
|
|
453
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
454
|
-
} }));
|
|
566
|
+
.path(path)
|
|
567
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
455
568
|
}
|
|
456
569
|
async function _getKeyVersionsDeserialize(result) {
|
|
457
570
|
const expectedStatuses = ["200"];
|
|
@@ -467,10 +580,17 @@ function getKeyVersions(context, keyName, options = { requestOptions: {} }) {
|
|
|
467
580
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getKeyVersionsSend(context, keyName, options), _getKeyVersionsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
468
581
|
}
|
|
469
582
|
function _getKeySend(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
|
470
|
-
var _a;
|
|
583
|
+
var _a, _b;
|
|
584
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}{?api%2Dversion}", {
|
|
585
|
+
"key-name": keyName,
|
|
586
|
+
"key-version": keyVersion,
|
|
587
|
+
"api%2Dversion": context.apiVersion,
|
|
588
|
+
}, {
|
|
589
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
590
|
+
});
|
|
471
591
|
return context
|
|
472
|
-
.path(
|
|
473
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
592
|
+
.path(path)
|
|
593
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
474
594
|
}
|
|
475
595
|
async function _getKeyDeserialize(result) {
|
|
476
596
|
const expectedStatuses = ["200"];
|
|
@@ -487,10 +607,17 @@ async function getKey(context, keyName, keyVersion, options = { requestOptions:
|
|
|
487
607
|
return _getKeyDeserialize(result);
|
|
488
608
|
}
|
|
489
609
|
function _updateKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
490
|
-
var _a;
|
|
610
|
+
var _a, _b;
|
|
611
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}{?api%2Dversion}", {
|
|
612
|
+
"key-name": keyName,
|
|
613
|
+
"key-version": keyVersion,
|
|
614
|
+
"api%2Dversion": context.apiVersion,
|
|
615
|
+
}, {
|
|
616
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
617
|
+
});
|
|
491
618
|
return context
|
|
492
|
-
.path(
|
|
493
|
-
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
619
|
+
.path(path)
|
|
620
|
+
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyUpdateParametersSerializer)(parameters) }));
|
|
494
621
|
}
|
|
495
622
|
async function _updateKeyDeserialize(result) {
|
|
496
623
|
const expectedStatuses = ["200"];
|
|
@@ -507,10 +634,16 @@ async function updateKey(context, keyName, keyVersion, parameters, options = { r
|
|
|
507
634
|
return _updateKeyDeserialize(result);
|
|
508
635
|
}
|
|
509
636
|
function _deleteKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
510
|
-
var _a;
|
|
637
|
+
var _a, _b;
|
|
638
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}{?api%2Dversion}", {
|
|
639
|
+
"key-name": keyName,
|
|
640
|
+
"api%2Dversion": context.apiVersion,
|
|
641
|
+
}, {
|
|
642
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
643
|
+
});
|
|
511
644
|
return context
|
|
512
|
-
.path(
|
|
513
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
645
|
+
.path(path)
|
|
646
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
514
647
|
}
|
|
515
648
|
async function _deleteKeyDeserialize(result) {
|
|
516
649
|
const expectedStatuses = ["200"];
|
|
@@ -527,10 +660,16 @@ async function deleteKey(context, keyName, options = { requestOptions: {} }) {
|
|
|
527
660
|
return _deleteKeyDeserialize(result);
|
|
528
661
|
}
|
|
529
662
|
function _importKeySend(context, keyName, parameters, options = { requestOptions: {} }) {
|
|
530
|
-
var _a;
|
|
663
|
+
var _a, _b;
|
|
664
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}{?api%2Dversion}", {
|
|
665
|
+
"key-name": keyName,
|
|
666
|
+
"api%2Dversion": context.apiVersion,
|
|
667
|
+
}, {
|
|
668
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
669
|
+
});
|
|
531
670
|
return context
|
|
532
|
-
.path(
|
|
533
|
-
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
671
|
+
.path(path)
|
|
672
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyImportParametersSerializer)(parameters) }));
|
|
534
673
|
}
|
|
535
674
|
async function _importKeyDeserialize(result) {
|
|
536
675
|
const expectedStatuses = ["200"];
|
|
@@ -547,10 +686,16 @@ async function importKey(context, keyName, parameters, options = { requestOption
|
|
|
547
686
|
return _importKeyDeserialize(result);
|
|
548
687
|
}
|
|
549
688
|
function _rotateKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
550
|
-
var _a;
|
|
689
|
+
var _a, _b;
|
|
690
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/rotate{?api%2Dversion}", {
|
|
691
|
+
"key-name": keyName,
|
|
692
|
+
"api%2Dversion": context.apiVersion,
|
|
693
|
+
}, {
|
|
694
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
695
|
+
});
|
|
551
696
|
return context
|
|
552
|
-
.path(
|
|
553
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
697
|
+
.path(path)
|
|
698
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
554
699
|
}
|
|
555
700
|
async function _rotateKeyDeserialize(result) {
|
|
556
701
|
const expectedStatuses = ["200"];
|
|
@@ -567,10 +712,16 @@ async function rotateKey(context, keyName, options = { requestOptions: {} }) {
|
|
|
567
712
|
return _rotateKeyDeserialize(result);
|
|
568
713
|
}
|
|
569
714
|
function _createKeySend(context, keyName, parameters, options = { requestOptions: {} }) {
|
|
570
|
-
var _a;
|
|
715
|
+
var _a, _b;
|
|
716
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/create{?api%2Dversion}", {
|
|
717
|
+
"key-name": keyName,
|
|
718
|
+
"api%2Dversion": context.apiVersion,
|
|
719
|
+
}, {
|
|
720
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
721
|
+
});
|
|
571
722
|
return context
|
|
572
|
-
.path(
|
|
573
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
723
|
+
.path(path)
|
|
724
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyCreateParametersSerializer)(parameters) }));
|
|
574
725
|
}
|
|
575
726
|
async function _createKeyDeserialize(result) {
|
|
576
727
|
const expectedStatuses = ["200"];
|