@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
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { keyCreateParametersSerializer, keyBundleDeserializer, keyVaultErrorDeserializer, keyImportParametersSerializer, deletedKeyBundleDeserializer, keyUpdateParametersSerializer, _keyListResultDeserializer, backupKeyResultDeserializer, keyRestoreParametersSerializer, keyOperationsParametersSerializer, keyOperationResultDeserializer, keySignParametersSerializer, keyVerifyParametersSerializer, keyVerifyResultDeserializer, keyReleaseParametersSerializer, keyReleaseResultDeserializer, _deletedKeyListResultDeserializer, keyRotationPolicySerializer, keyRotationPolicyDeserializer, getRandomBytesRequestSerializer, randomBytesDeserializer, } from "../models/models.js";
|
|
4
4
|
import { buildPagedAsyncIterator, } from "../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../static-helpers/urlTemplate.js";
|
|
5
6
|
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
7
|
export function _getKeyAttestationSend(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
|
7
|
-
var _a;
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/attestation{?api%2Dversion}", {
|
|
10
|
+
"key-name": keyName,
|
|
11
|
+
"key-version": keyVersion,
|
|
12
|
+
"api%2Dversion": context.apiVersion,
|
|
13
|
+
}, {
|
|
14
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
15
|
+
});
|
|
8
16
|
return context
|
|
9
|
-
.path(
|
|
10
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
17
|
+
.path(path)
|
|
18
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
11
19
|
}
|
|
12
20
|
export async function _getKeyAttestationDeserialize(result) {
|
|
13
21
|
const expectedStatuses = ["200"];
|
|
@@ -24,10 +32,15 @@ export async function getKeyAttestation(context, keyName, keyVersion, options =
|
|
|
24
32
|
return _getKeyAttestationDeserialize(result);
|
|
25
33
|
}
|
|
26
34
|
export function _getRandomBytesSend(context, parameters, options = { requestOptions: {} }) {
|
|
27
|
-
var _a;
|
|
35
|
+
var _a, _b;
|
|
36
|
+
const path = expandUrlTemplate("/rng{?api%2Dversion}", {
|
|
37
|
+
"api%2Dversion": context.apiVersion,
|
|
38
|
+
}, {
|
|
39
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
40
|
+
});
|
|
28
41
|
return context
|
|
29
|
-
.path(
|
|
30
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
42
|
+
.path(path)
|
|
43
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: getRandomBytesRequestSerializer(parameters) }));
|
|
31
44
|
}
|
|
32
45
|
export async function _getRandomBytesDeserialize(result) {
|
|
33
46
|
const expectedStatuses = ["200"];
|
|
@@ -44,10 +57,16 @@ export async function getRandomBytes(context, parameters, options = { requestOpt
|
|
|
44
57
|
return _getRandomBytesDeserialize(result);
|
|
45
58
|
}
|
|
46
59
|
export function _updateKeyRotationPolicySend(context, keyName, keyRotationPolicy, options = { requestOptions: {} }) {
|
|
47
|
-
var _a;
|
|
60
|
+
var _a, _b;
|
|
61
|
+
const path = expandUrlTemplate("/keys/{key-name}/rotationpolicy{?api%2Dversion}", {
|
|
62
|
+
"key-name": keyName,
|
|
63
|
+
"api%2Dversion": context.apiVersion,
|
|
64
|
+
}, {
|
|
65
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
66
|
+
});
|
|
48
67
|
return context
|
|
49
|
-
.path(
|
|
50
|
-
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
68
|
+
.path(path)
|
|
69
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyRotationPolicySerializer(keyRotationPolicy) }));
|
|
51
70
|
}
|
|
52
71
|
export async function _updateKeyRotationPolicyDeserialize(result) {
|
|
53
72
|
const expectedStatuses = ["200"];
|
|
@@ -64,10 +83,16 @@ export async function updateKeyRotationPolicy(context, keyName, keyRotationPolic
|
|
|
64
83
|
return _updateKeyRotationPolicyDeserialize(result);
|
|
65
84
|
}
|
|
66
85
|
export function _getKeyRotationPolicySend(context, keyName, options = { requestOptions: {} }) {
|
|
67
|
-
var _a;
|
|
86
|
+
var _a, _b;
|
|
87
|
+
const path = expandUrlTemplate("/keys/{key-name}/rotationpolicy{?api%2Dversion}", {
|
|
88
|
+
"key-name": keyName,
|
|
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
|
+
});
|
|
68
93
|
return context
|
|
69
|
-
.path(
|
|
70
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
94
|
+
.path(path)
|
|
95
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
71
96
|
}
|
|
72
97
|
export async function _getKeyRotationPolicyDeserialize(result) {
|
|
73
98
|
const expectedStatuses = ["200"];
|
|
@@ -84,10 +109,16 @@ export async function getKeyRotationPolicy(context, keyName, options = { request
|
|
|
84
109
|
return _getKeyRotationPolicyDeserialize(result);
|
|
85
110
|
}
|
|
86
111
|
export function _recoverDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
87
|
-
var _a;
|
|
112
|
+
var _a, _b;
|
|
113
|
+
const path = expandUrlTemplate("/deletedkeys/{key-name}/recover{?api%2Dversion}", {
|
|
114
|
+
"key-name": keyName,
|
|
115
|
+
"api%2Dversion": context.apiVersion,
|
|
116
|
+
}, {
|
|
117
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
118
|
+
});
|
|
88
119
|
return context
|
|
89
|
-
.path(
|
|
90
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
120
|
+
.path(path)
|
|
121
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
91
122
|
}
|
|
92
123
|
export async function _recoverDeletedKeyDeserialize(result) {
|
|
93
124
|
const expectedStatuses = ["200"];
|
|
@@ -104,10 +135,16 @@ export async function recoverDeletedKey(context, keyName, options = { requestOpt
|
|
|
104
135
|
return _recoverDeletedKeyDeserialize(result);
|
|
105
136
|
}
|
|
106
137
|
export function _purgeDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
107
|
-
var _a;
|
|
138
|
+
var _a, _b;
|
|
139
|
+
const path = expandUrlTemplate("/deletedkeys/{key-name}{?api%2Dversion}", {
|
|
140
|
+
"key-name": keyName,
|
|
141
|
+
"api%2Dversion": context.apiVersion,
|
|
142
|
+
}, {
|
|
143
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
144
|
+
});
|
|
108
145
|
return context
|
|
109
|
-
.path(
|
|
110
|
-
.delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
146
|
+
.path(path)
|
|
147
|
+
.delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
111
148
|
}
|
|
112
149
|
export async function _purgeDeletedKeyDeserialize(result) {
|
|
113
150
|
const expectedStatuses = ["204"];
|
|
@@ -124,10 +161,16 @@ export async function purgeDeletedKey(context, keyName, options = { requestOptio
|
|
|
124
161
|
return _purgeDeletedKeyDeserialize(result);
|
|
125
162
|
}
|
|
126
163
|
export function _getDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
127
|
-
var _a;
|
|
164
|
+
var _a, _b;
|
|
165
|
+
const path = expandUrlTemplate("/deletedkeys/{key-name}{?api%2Dversion}", {
|
|
166
|
+
"key-name": keyName,
|
|
167
|
+
"api%2Dversion": context.apiVersion,
|
|
168
|
+
}, {
|
|
169
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
170
|
+
});
|
|
128
171
|
return context
|
|
129
|
-
.path(
|
|
130
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
172
|
+
.path(path)
|
|
173
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
131
174
|
}
|
|
132
175
|
export async function _getDeletedKeyDeserialize(result) {
|
|
133
176
|
const expectedStatuses = ["200"];
|
|
@@ -144,13 +187,16 @@ export async function getDeletedKey(context, keyName, options = { requestOptions
|
|
|
144
187
|
return _getDeletedKeyDeserialize(result);
|
|
145
188
|
}
|
|
146
189
|
export function _getDeletedKeysSend(context, options = { requestOptions: {} }) {
|
|
147
|
-
var _a;
|
|
190
|
+
var _a, _b;
|
|
191
|
+
const path = expandUrlTemplate("/deletedkeys{?api%2Dversion,maxresults}", {
|
|
192
|
+
"api%2Dversion": context.apiVersion,
|
|
193
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
194
|
+
}, {
|
|
195
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
196
|
+
});
|
|
148
197
|
return context
|
|
149
|
-
.path(
|
|
150
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
151
|
-
"api-version": context.apiVersion,
|
|
152
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
153
|
-
} }));
|
|
198
|
+
.path(path)
|
|
199
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
154
200
|
}
|
|
155
201
|
export async function _getDeletedKeysDeserialize(result) {
|
|
156
202
|
const expectedStatuses = ["200"];
|
|
@@ -166,10 +212,17 @@ export function getDeletedKeys(context, options = { requestOptions: {} }) {
|
|
|
166
212
|
return buildPagedAsyncIterator(context, () => _getDeletedKeysSend(context, options), _getDeletedKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
167
213
|
}
|
|
168
214
|
export function _releaseSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
169
|
-
var _a;
|
|
215
|
+
var _a, _b;
|
|
216
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/release{?api%2Dversion}", {
|
|
217
|
+
"key-name": keyName,
|
|
218
|
+
"key-version": keyVersion,
|
|
219
|
+
"api%2Dversion": context.apiVersion,
|
|
220
|
+
}, {
|
|
221
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
222
|
+
});
|
|
170
223
|
return context
|
|
171
|
-
.path(
|
|
172
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
224
|
+
.path(path)
|
|
225
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyReleaseParametersSerializer(parameters) }));
|
|
173
226
|
}
|
|
174
227
|
export async function _releaseDeserialize(result) {
|
|
175
228
|
const expectedStatuses = ["200"];
|
|
@@ -186,10 +239,17 @@ export async function release(context, keyName, keyVersion, parameters, options
|
|
|
186
239
|
return _releaseDeserialize(result);
|
|
187
240
|
}
|
|
188
241
|
export function _unwrapKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
189
|
-
var _a;
|
|
242
|
+
var _a, _b;
|
|
243
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/unwrapkey{?api%2Dversion}", {
|
|
244
|
+
"key-name": keyName,
|
|
245
|
+
"key-version": keyVersion,
|
|
246
|
+
"api%2Dversion": context.apiVersion,
|
|
247
|
+
}, {
|
|
248
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
249
|
+
});
|
|
190
250
|
return context
|
|
191
|
-
.path(
|
|
192
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
251
|
+
.path(path)
|
|
252
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyOperationsParametersSerializer(parameters) }));
|
|
193
253
|
}
|
|
194
254
|
export async function _unwrapKeyDeserialize(result) {
|
|
195
255
|
const expectedStatuses = ["200"];
|
|
@@ -206,10 +266,17 @@ export async function unwrapKey(context, keyName, keyVersion, parameters, option
|
|
|
206
266
|
return _unwrapKeyDeserialize(result);
|
|
207
267
|
}
|
|
208
268
|
export function _wrapKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
209
|
-
var _a;
|
|
269
|
+
var _a, _b;
|
|
270
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/wrapkey{?api%2Dversion}", {
|
|
271
|
+
"key-name": keyName,
|
|
272
|
+
"key-version": keyVersion,
|
|
273
|
+
"api%2Dversion": context.apiVersion,
|
|
274
|
+
}, {
|
|
275
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
276
|
+
});
|
|
210
277
|
return context
|
|
211
|
-
.path(
|
|
212
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
278
|
+
.path(path)
|
|
279
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyOperationsParametersSerializer(parameters) }));
|
|
213
280
|
}
|
|
214
281
|
export async function _wrapKeyDeserialize(result) {
|
|
215
282
|
const expectedStatuses = ["200"];
|
|
@@ -226,10 +293,17 @@ export async function wrapKey(context, keyName, keyVersion, parameters, options
|
|
|
226
293
|
return _wrapKeyDeserialize(result);
|
|
227
294
|
}
|
|
228
295
|
export function _verifySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
229
|
-
var _a;
|
|
296
|
+
var _a, _b;
|
|
297
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/verify{?api%2Dversion}", {
|
|
298
|
+
"key-name": keyName,
|
|
299
|
+
"key-version": keyVersion,
|
|
300
|
+
"api%2Dversion": context.apiVersion,
|
|
301
|
+
}, {
|
|
302
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
303
|
+
});
|
|
230
304
|
return context
|
|
231
|
-
.path(
|
|
232
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
305
|
+
.path(path)
|
|
306
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyVerifyParametersSerializer(parameters) }));
|
|
233
307
|
}
|
|
234
308
|
export async function _verifyDeserialize(result) {
|
|
235
309
|
const expectedStatuses = ["200"];
|
|
@@ -246,10 +320,17 @@ export async function verify(context, keyName, keyVersion, parameters, options =
|
|
|
246
320
|
return _verifyDeserialize(result);
|
|
247
321
|
}
|
|
248
322
|
export function _signSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
249
|
-
var _a;
|
|
323
|
+
var _a, _b;
|
|
324
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/sign{?api%2Dversion}", {
|
|
325
|
+
"key-name": keyName,
|
|
326
|
+
"key-version": keyVersion,
|
|
327
|
+
"api%2Dversion": context.apiVersion,
|
|
328
|
+
}, {
|
|
329
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
330
|
+
});
|
|
250
331
|
return context
|
|
251
|
-
.path(
|
|
252
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
332
|
+
.path(path)
|
|
333
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keySignParametersSerializer(parameters) }));
|
|
253
334
|
}
|
|
254
335
|
export async function _signDeserialize(result) {
|
|
255
336
|
const expectedStatuses = ["200"];
|
|
@@ -266,10 +347,17 @@ export async function sign(context, keyName, keyVersion, parameters, options = {
|
|
|
266
347
|
return _signDeserialize(result);
|
|
267
348
|
}
|
|
268
349
|
export function _decryptSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
269
|
-
var _a;
|
|
350
|
+
var _a, _b;
|
|
351
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/decrypt{?api%2Dversion}", {
|
|
352
|
+
"key-name": keyName,
|
|
353
|
+
"key-version": keyVersion,
|
|
354
|
+
"api%2Dversion": context.apiVersion,
|
|
355
|
+
}, {
|
|
356
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
357
|
+
});
|
|
270
358
|
return context
|
|
271
|
-
.path(
|
|
272
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
359
|
+
.path(path)
|
|
360
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyOperationsParametersSerializer(parameters) }));
|
|
273
361
|
}
|
|
274
362
|
export async function _decryptDeserialize(result) {
|
|
275
363
|
const expectedStatuses = ["200"];
|
|
@@ -280,16 +368,23 @@ export async function _decryptDeserialize(result) {
|
|
|
280
368
|
}
|
|
281
369
|
return keyOperationResultDeserializer(result.body);
|
|
282
370
|
}
|
|
283
|
-
/** 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://
|
|
371
|
+
/** 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. */
|
|
284
372
|
export async function decrypt(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
285
373
|
const result = await _decryptSend(context, keyName, keyVersion, parameters, options);
|
|
286
374
|
return _decryptDeserialize(result);
|
|
287
375
|
}
|
|
288
376
|
export function _encryptSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
289
|
-
var _a;
|
|
377
|
+
var _a, _b;
|
|
378
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}/encrypt{?api%2Dversion}", {
|
|
379
|
+
"key-name": keyName,
|
|
380
|
+
"key-version": keyVersion,
|
|
381
|
+
"api%2Dversion": context.apiVersion,
|
|
382
|
+
}, {
|
|
383
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
384
|
+
});
|
|
290
385
|
return context
|
|
291
|
-
.path(
|
|
292
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
386
|
+
.path(path)
|
|
387
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyOperationsParametersSerializer(parameters) }));
|
|
293
388
|
}
|
|
294
389
|
export async function _encryptDeserialize(result) {
|
|
295
390
|
const expectedStatuses = ["200"];
|
|
@@ -306,10 +401,15 @@ export async function encrypt(context, keyName, keyVersion, parameters, options
|
|
|
306
401
|
return _encryptDeserialize(result);
|
|
307
402
|
}
|
|
308
403
|
export function _restoreKeySend(context, parameters, options = { requestOptions: {} }) {
|
|
309
|
-
var _a;
|
|
404
|
+
var _a, _b;
|
|
405
|
+
const path = expandUrlTemplate("/keys/restore{?api%2Dversion}", {
|
|
406
|
+
"api%2Dversion": context.apiVersion,
|
|
407
|
+
}, {
|
|
408
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
409
|
+
});
|
|
310
410
|
return context
|
|
311
|
-
.path(
|
|
312
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
411
|
+
.path(path)
|
|
412
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyRestoreParametersSerializer(parameters) }));
|
|
313
413
|
}
|
|
314
414
|
export async function _restoreKeyDeserialize(result) {
|
|
315
415
|
const expectedStatuses = ["200"];
|
|
@@ -326,10 +426,16 @@ export async function restoreKey(context, parameters, options = { requestOptions
|
|
|
326
426
|
return _restoreKeyDeserialize(result);
|
|
327
427
|
}
|
|
328
428
|
export function _backupKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
329
|
-
var _a;
|
|
429
|
+
var _a, _b;
|
|
430
|
+
const path = expandUrlTemplate("/keys/{key-name}/backup{?api%2Dversion}", {
|
|
431
|
+
"key-name": keyName,
|
|
432
|
+
"api%2Dversion": context.apiVersion,
|
|
433
|
+
}, {
|
|
434
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
435
|
+
});
|
|
330
436
|
return context
|
|
331
|
-
.path(
|
|
332
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
437
|
+
.path(path)
|
|
438
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
333
439
|
}
|
|
334
440
|
export async function _backupKeyDeserialize(result) {
|
|
335
441
|
const expectedStatuses = ["200"];
|
|
@@ -346,13 +452,16 @@ export async function backupKey(context, keyName, options = { requestOptions: {}
|
|
|
346
452
|
return _backupKeyDeserialize(result);
|
|
347
453
|
}
|
|
348
454
|
export function _getKeysSend(context, options = { requestOptions: {} }) {
|
|
349
|
-
var _a;
|
|
455
|
+
var _a, _b;
|
|
456
|
+
const path = expandUrlTemplate("/keys{?api%2Dversion,maxresults}", {
|
|
457
|
+
"api%2Dversion": context.apiVersion,
|
|
458
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
459
|
+
}, {
|
|
460
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
461
|
+
});
|
|
350
462
|
return context
|
|
351
|
-
.path(
|
|
352
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
353
|
-
"api-version": context.apiVersion,
|
|
354
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
355
|
-
} }));
|
|
463
|
+
.path(path)
|
|
464
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
356
465
|
}
|
|
357
466
|
export async function _getKeysDeserialize(result) {
|
|
358
467
|
const expectedStatuses = ["200"];
|
|
@@ -368,13 +477,17 @@ export function getKeys(context, options = { requestOptions: {} }) {
|
|
|
368
477
|
return buildPagedAsyncIterator(context, () => _getKeysSend(context, options), _getKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
369
478
|
}
|
|
370
479
|
export function _getKeyVersionsSend(context, keyName, options = { requestOptions: {} }) {
|
|
371
|
-
var _a;
|
|
480
|
+
var _a, _b;
|
|
481
|
+
const path = expandUrlTemplate("/keys/{key-name}/versions{?api%2Dversion,maxresults}", {
|
|
482
|
+
"key-name": keyName,
|
|
483
|
+
"api%2Dversion": context.apiVersion,
|
|
484
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
485
|
+
}, {
|
|
486
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
487
|
+
});
|
|
372
488
|
return context
|
|
373
|
-
.path(
|
|
374
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
375
|
-
"api-version": context.apiVersion,
|
|
376
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
377
|
-
} }));
|
|
489
|
+
.path(path)
|
|
490
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
378
491
|
}
|
|
379
492
|
export async function _getKeyVersionsDeserialize(result) {
|
|
380
493
|
const expectedStatuses = ["200"];
|
|
@@ -390,10 +503,17 @@ export function getKeyVersions(context, keyName, options = { requestOptions: {}
|
|
|
390
503
|
return buildPagedAsyncIterator(context, () => _getKeyVersionsSend(context, keyName, options), _getKeyVersionsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
391
504
|
}
|
|
392
505
|
export function _getKeySend(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
|
393
|
-
var _a;
|
|
506
|
+
var _a, _b;
|
|
507
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}{?api%2Dversion}", {
|
|
508
|
+
"key-name": keyName,
|
|
509
|
+
"key-version": keyVersion,
|
|
510
|
+
"api%2Dversion": context.apiVersion,
|
|
511
|
+
}, {
|
|
512
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
513
|
+
});
|
|
394
514
|
return context
|
|
395
|
-
.path(
|
|
396
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
515
|
+
.path(path)
|
|
516
|
+
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
397
517
|
}
|
|
398
518
|
export async function _getKeyDeserialize(result) {
|
|
399
519
|
const expectedStatuses = ["200"];
|
|
@@ -410,10 +530,17 @@ export async function getKey(context, keyName, keyVersion, options = { requestOp
|
|
|
410
530
|
return _getKeyDeserialize(result);
|
|
411
531
|
}
|
|
412
532
|
export function _updateKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
|
413
|
-
var _a;
|
|
533
|
+
var _a, _b;
|
|
534
|
+
const path = expandUrlTemplate("/keys/{key-name}/{key-version}{?api%2Dversion}", {
|
|
535
|
+
"key-name": keyName,
|
|
536
|
+
"key-version": keyVersion,
|
|
537
|
+
"api%2Dversion": context.apiVersion,
|
|
538
|
+
}, {
|
|
539
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
540
|
+
});
|
|
414
541
|
return context
|
|
415
|
-
.path(
|
|
416
|
-
.patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
542
|
+
.path(path)
|
|
543
|
+
.patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyUpdateParametersSerializer(parameters) }));
|
|
417
544
|
}
|
|
418
545
|
export async function _updateKeyDeserialize(result) {
|
|
419
546
|
const expectedStatuses = ["200"];
|
|
@@ -430,10 +557,16 @@ export async function updateKey(context, keyName, keyVersion, parameters, option
|
|
|
430
557
|
return _updateKeyDeserialize(result);
|
|
431
558
|
}
|
|
432
559
|
export function _deleteKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
433
|
-
var _a;
|
|
560
|
+
var _a, _b;
|
|
561
|
+
const path = expandUrlTemplate("/keys/{key-name}{?api%2Dversion}", {
|
|
562
|
+
"key-name": keyName,
|
|
563
|
+
"api%2Dversion": context.apiVersion,
|
|
564
|
+
}, {
|
|
565
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
566
|
+
});
|
|
434
567
|
return context
|
|
435
|
-
.path(
|
|
436
|
-
.delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
568
|
+
.path(path)
|
|
569
|
+
.delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
437
570
|
}
|
|
438
571
|
export async function _deleteKeyDeserialize(result) {
|
|
439
572
|
const expectedStatuses = ["200"];
|
|
@@ -450,10 +583,16 @@ export async function deleteKey(context, keyName, options = { requestOptions: {}
|
|
|
450
583
|
return _deleteKeyDeserialize(result);
|
|
451
584
|
}
|
|
452
585
|
export function _importKeySend(context, keyName, parameters, options = { requestOptions: {} }) {
|
|
453
|
-
var _a;
|
|
586
|
+
var _a, _b;
|
|
587
|
+
const path = expandUrlTemplate("/keys/{key-name}{?api%2Dversion}", {
|
|
588
|
+
"key-name": keyName,
|
|
589
|
+
"api%2Dversion": context.apiVersion,
|
|
590
|
+
}, {
|
|
591
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
592
|
+
});
|
|
454
593
|
return context
|
|
455
|
-
.path(
|
|
456
|
-
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
594
|
+
.path(path)
|
|
595
|
+
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyImportParametersSerializer(parameters) }));
|
|
457
596
|
}
|
|
458
597
|
export async function _importKeyDeserialize(result) {
|
|
459
598
|
const expectedStatuses = ["200"];
|
|
@@ -470,10 +609,16 @@ export async function importKey(context, keyName, parameters, options = { reques
|
|
|
470
609
|
return _importKeyDeserialize(result);
|
|
471
610
|
}
|
|
472
611
|
export function _rotateKeySend(context, keyName, options = { requestOptions: {} }) {
|
|
473
|
-
var _a;
|
|
612
|
+
var _a, _b;
|
|
613
|
+
const path = expandUrlTemplate("/keys/{key-name}/rotate{?api%2Dversion}", {
|
|
614
|
+
"key-name": keyName,
|
|
615
|
+
"api%2Dversion": context.apiVersion,
|
|
616
|
+
}, {
|
|
617
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
618
|
+
});
|
|
474
619
|
return context
|
|
475
|
-
.path(
|
|
476
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
620
|
+
.path(path)
|
|
621
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
477
622
|
}
|
|
478
623
|
export async function _rotateKeyDeserialize(result) {
|
|
479
624
|
const expectedStatuses = ["200"];
|
|
@@ -490,10 +635,16 @@ export async function rotateKey(context, keyName, options = { requestOptions: {}
|
|
|
490
635
|
return _rotateKeyDeserialize(result);
|
|
491
636
|
}
|
|
492
637
|
export function _createKeySend(context, keyName, parameters, options = { requestOptions: {} }) {
|
|
493
|
-
var _a;
|
|
638
|
+
var _a, _b;
|
|
639
|
+
const path = expandUrlTemplate("/keys/{key-name}/create{?api%2Dversion}", {
|
|
640
|
+
"key-name": keyName,
|
|
641
|
+
"api%2Dversion": context.apiVersion,
|
|
642
|
+
}, {
|
|
643
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
644
|
+
});
|
|
494
645
|
return context
|
|
495
|
-
.path(
|
|
496
|
-
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
646
|
+
.path(path)
|
|
647
|
+
.post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: keyCreateParametersSerializer(parameters) }));
|
|
497
648
|
}
|
|
498
649
|
export async function _createKeyDeserialize(result) {
|
|
499
650
|
const expectedStatuses = ["200"];
|