@azure/keyvault-certificates 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/certificatesModels.d.ts +2 -2
- package/dist/browser/certificatesModels.d.ts.map +1 -1
- package/dist/browser/certificatesModels.js +1 -1
- package/dist/browser/certificatesModels.js.map +1 -1
- 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/generated/api/keyVaultContext.js +1 -1
- package/dist/browser/generated/api/keyVaultContext.js.map +1 -1
- package/dist/browser/generated/api/operations.d.ts +2 -1
- package/dist/browser/generated/api/operations.d.ts.map +1 -1
- package/dist/browser/generated/api/operations.js +245 -95
- 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 +2 -1
- package/dist/browser/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/browser/generated/keyVaultClient.js +2 -1
- 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 +23 -27
- package/dist/browser/generated/models/models.d.ts.map +1 -1
- package/dist/browser/generated/models/models.js +21 -19
- 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/commonjs/certificatesModels.d.ts +2 -2
- package/dist/commonjs/certificatesModels.d.ts.map +1 -1
- package/dist/commonjs/certificatesModels.js +1 -1
- package/dist/commonjs/certificatesModels.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/generated/api/keyVaultContext.js +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.js.map +1 -1
- package/dist/commonjs/generated/api/operations.d.ts +2 -1
- package/dist/commonjs/generated/api/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/operations.js +245 -95
- 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 +2 -1
- package/dist/commonjs/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.js +28 -27
- 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 +23 -27
- package/dist/commonjs/generated/models/models.d.ts.map +1 -1
- package/dist/commonjs/generated/models/models.js +21 -19
- 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/tsdoc-metadata.json +1 -1
- package/dist/esm/certificatesModels.d.ts +2 -2
- package/dist/esm/certificatesModels.d.ts.map +1 -1
- package/dist/esm/certificatesModels.js +1 -1
- package/dist/esm/certificatesModels.js.map +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/generated/api/keyVaultContext.js +1 -1
- package/dist/esm/generated/api/keyVaultContext.js.map +1 -1
- package/dist/esm/generated/api/operations.d.ts +2 -1
- package/dist/esm/generated/api/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/operations.js +245 -95
- 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 +2 -1
- package/dist/esm/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/esm/generated/keyVaultClient.js +2 -1
- 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 +23 -27
- package/dist/esm/generated/models/models.d.ts.map +1 -1
- package/dist/esm/generated/models/models.js +21 -19
- 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/react-native/certificatesModels.d.ts +2 -2
- package/dist/react-native/certificatesModels.d.ts.map +1 -1
- package/dist/react-native/certificatesModels.js +1 -1
- package/dist/react-native/certificatesModels.js.map +1 -1
- package/dist/react-native/constants.d.ts.map +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/generated/api/keyVaultContext.js +1 -1
- package/dist/react-native/generated/api/keyVaultContext.js.map +1 -1
- package/dist/react-native/generated/api/operations.d.ts +2 -1
- package/dist/react-native/generated/api/operations.d.ts.map +1 -1
- package/dist/react-native/generated/api/operations.js +245 -95
- package/dist/react-native/generated/api/operations.js.map +1 -1
- package/dist/react-native/generated/index.d.ts +1 -1
- package/dist/react-native/generated/index.d.ts.map +1 -1
- package/dist/react-native/generated/index.js.map +1 -1
- package/dist/react-native/generated/keyVaultClient.d.ts +2 -1
- package/dist/react-native/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/react-native/generated/keyVaultClient.js +2 -1
- package/dist/react-native/generated/keyVaultClient.js.map +1 -1
- package/dist/react-native/generated/models/index.d.ts +1 -1
- package/dist/react-native/generated/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/models/index.js.map +1 -1
- package/dist/react-native/generated/models/models.d.ts +23 -27
- package/dist/react-native/generated/models/models.d.ts.map +1 -1
- package/dist/react-native/generated/models/models.js +21 -19
- package/dist/react-native/generated/models/models.js.map +1 -1
- package/dist/react-native/generated/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.js +172 -0
- package/dist/react-native/generated/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +5 -10
|
@@ -85,12 +85,19 @@ exports._getCertificatesDeserialize = _getCertificatesDeserialize;
|
|
|
85
85
|
exports.getCertificates = getCertificates;
|
|
86
86
|
const models_js_1 = require("../models/models.js");
|
|
87
87
|
const pagingHelpers_js_1 = require("../static-helpers/pagingHelpers.js");
|
|
88
|
+
const urlTemplate_js_1 = require("../static-helpers/urlTemplate.js");
|
|
88
89
|
const core_client_1 = require("@azure-rest/core-client");
|
|
89
90
|
function _recoverDeletedCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
90
|
-
var _a;
|
|
91
|
+
var _a, _b;
|
|
92
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedcertificates/{certificate-name}/recover{?api%2Dversion}", {
|
|
93
|
+
"certificate-name": certificateName,
|
|
94
|
+
"api%2Dversion": context.apiVersion,
|
|
95
|
+
}, {
|
|
96
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
97
|
+
});
|
|
91
98
|
return context
|
|
92
|
-
.path(
|
|
93
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
99
|
+
.path(path)
|
|
100
|
+
.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) }));
|
|
94
101
|
}
|
|
95
102
|
async function _recoverDeletedCertificateDeserialize(result) {
|
|
96
103
|
const expectedStatuses = ["200"];
|
|
@@ -107,10 +114,16 @@ async function recoverDeletedCertificate(context, certificateName, options = { r
|
|
|
107
114
|
return _recoverDeletedCertificateDeserialize(result);
|
|
108
115
|
}
|
|
109
116
|
function _purgeDeletedCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
110
|
-
var _a;
|
|
117
|
+
var _a, _b;
|
|
118
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedcertificates/{certificate-name}{?api%2Dversion}", {
|
|
119
|
+
"certificate-name": certificateName,
|
|
120
|
+
"api%2Dversion": context.apiVersion,
|
|
121
|
+
}, {
|
|
122
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
123
|
+
});
|
|
111
124
|
return context
|
|
112
|
-
.path(
|
|
113
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
125
|
+
.path(path)
|
|
126
|
+
.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) }));
|
|
114
127
|
}
|
|
115
128
|
async function _purgeDeletedCertificateDeserialize(result) {
|
|
116
129
|
const expectedStatuses = ["204"];
|
|
@@ -127,10 +140,16 @@ async function purgeDeletedCertificate(context, certificateName, options = { req
|
|
|
127
140
|
return _purgeDeletedCertificateDeserialize(result);
|
|
128
141
|
}
|
|
129
142
|
function _getDeletedCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
130
|
-
var _a;
|
|
143
|
+
var _a, _b;
|
|
144
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedcertificates/{certificate-name}{?api%2Dversion}", {
|
|
145
|
+
"certificate-name": certificateName,
|
|
146
|
+
"api%2Dversion": context.apiVersion,
|
|
147
|
+
}, {
|
|
148
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
149
|
+
});
|
|
131
150
|
return context
|
|
132
|
-
.path(
|
|
133
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
151
|
+
.path(path)
|
|
152
|
+
.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) }));
|
|
134
153
|
}
|
|
135
154
|
async function _getDeletedCertificateDeserialize(result) {
|
|
136
155
|
const expectedStatuses = ["200"];
|
|
@@ -147,14 +166,17 @@ async function getDeletedCertificate(context, certificateName, options = { reque
|
|
|
147
166
|
return _getDeletedCertificateDeserialize(result);
|
|
148
167
|
}
|
|
149
168
|
function _getDeletedCertificatesSend(context, options = { requestOptions: {} }) {
|
|
150
|
-
var _a;
|
|
169
|
+
var _a, _b;
|
|
170
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedcertificates{?api%2Dversion,maxresults,includePending}", {
|
|
171
|
+
"api%2Dversion": context.apiVersion,
|
|
172
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
173
|
+
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
174
|
+
}, {
|
|
175
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
176
|
+
});
|
|
151
177
|
return context
|
|
152
|
-
.path(
|
|
153
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
154
|
-
"api-version": context.apiVersion,
|
|
155
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
156
|
-
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
157
|
-
} }));
|
|
178
|
+
.path(path)
|
|
179
|
+
.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) }));
|
|
158
180
|
}
|
|
159
181
|
async function _getDeletedCertificatesDeserialize(result) {
|
|
160
182
|
const expectedStatuses = ["200"];
|
|
@@ -170,10 +192,15 @@ function getDeletedCertificates(context, options = { requestOptions: {} }) {
|
|
|
170
192
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getDeletedCertificatesSend(context, options), _getDeletedCertificatesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
171
193
|
}
|
|
172
194
|
function _restoreCertificateSend(context, parameters, options = { requestOptions: {} }) {
|
|
173
|
-
var _a;
|
|
195
|
+
var _a, _b;
|
|
196
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/restore{?api%2Dversion}", {
|
|
197
|
+
"api%2Dversion": context.apiVersion,
|
|
198
|
+
}, {
|
|
199
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
200
|
+
});
|
|
174
201
|
return context
|
|
175
|
-
.path(
|
|
176
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
202
|
+
.path(path)
|
|
203
|
+
.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.certificateRestoreParametersSerializer)(parameters) }));
|
|
177
204
|
}
|
|
178
205
|
async function _restoreCertificateDeserialize(result) {
|
|
179
206
|
const expectedStatuses = ["200"];
|
|
@@ -190,10 +217,16 @@ async function restoreCertificate(context, parameters, options = { requestOption
|
|
|
190
217
|
return _restoreCertificateDeserialize(result);
|
|
191
218
|
}
|
|
192
219
|
function _backupCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
193
|
-
var _a;
|
|
220
|
+
var _a, _b;
|
|
221
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/backup{?api%2Dversion}", {
|
|
222
|
+
"certificate-name": certificateName,
|
|
223
|
+
"api%2Dversion": context.apiVersion,
|
|
224
|
+
}, {
|
|
225
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
226
|
+
});
|
|
194
227
|
return context
|
|
195
|
-
.path(
|
|
196
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
228
|
+
.path(path)
|
|
229
|
+
.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) }));
|
|
197
230
|
}
|
|
198
231
|
async function _backupCertificateDeserialize(result) {
|
|
199
232
|
const expectedStatuses = ["200"];
|
|
@@ -210,10 +243,16 @@ async function backupCertificate(context, certificateName, options = { requestOp
|
|
|
210
243
|
return _backupCertificateDeserialize(result);
|
|
211
244
|
}
|
|
212
245
|
function _mergeCertificateSend(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
213
|
-
var _a;
|
|
246
|
+
var _a, _b;
|
|
247
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/pending/merge{?api%2Dversion}", {
|
|
248
|
+
"certificate-name": certificateName,
|
|
249
|
+
"api%2Dversion": context.apiVersion,
|
|
250
|
+
}, {
|
|
251
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
252
|
+
});
|
|
214
253
|
return context
|
|
215
|
-
.path(
|
|
216
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
254
|
+
.path(path)
|
|
255
|
+
.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.certificateMergeParametersSerializer)(parameters) }));
|
|
217
256
|
}
|
|
218
257
|
async function _mergeCertificateDeserialize(result) {
|
|
219
258
|
const expectedStatuses = ["201"];
|
|
@@ -230,10 +269,16 @@ async function mergeCertificate(context, certificateName, parameters, options =
|
|
|
230
269
|
return _mergeCertificateDeserialize(result);
|
|
231
270
|
}
|
|
232
271
|
function _deleteCertificateOperationSend(context, certificateName, options = { requestOptions: {} }) {
|
|
233
|
-
var _a;
|
|
272
|
+
var _a, _b;
|
|
273
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/pending{?api%2Dversion}", {
|
|
274
|
+
"certificate-name": certificateName,
|
|
275
|
+
"api%2Dversion": context.apiVersion,
|
|
276
|
+
}, {
|
|
277
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
278
|
+
});
|
|
234
279
|
return context
|
|
235
|
-
.path(
|
|
236
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
280
|
+
.path(path)
|
|
281
|
+
.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) }));
|
|
237
282
|
}
|
|
238
283
|
async function _deleteCertificateOperationDeserialize(result) {
|
|
239
284
|
const expectedStatuses = ["200"];
|
|
@@ -250,10 +295,16 @@ async function deleteCertificateOperation(context, certificateName, options = {
|
|
|
250
295
|
return _deleteCertificateOperationDeserialize(result);
|
|
251
296
|
}
|
|
252
297
|
function _getCertificateOperationSend(context, certificateName, options = { requestOptions: {} }) {
|
|
253
|
-
var _a;
|
|
298
|
+
var _a, _b;
|
|
299
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/pending{?api%2Dversion}", {
|
|
300
|
+
"certificate-name": certificateName,
|
|
301
|
+
"api%2Dversion": context.apiVersion,
|
|
302
|
+
}, {
|
|
303
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
304
|
+
});
|
|
254
305
|
return context
|
|
255
|
-
.path(
|
|
256
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
306
|
+
.path(path)
|
|
307
|
+
.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) }));
|
|
257
308
|
}
|
|
258
309
|
async function _getCertificateOperationDeserialize(result) {
|
|
259
310
|
const expectedStatuses = ["200"];
|
|
@@ -270,10 +321,16 @@ async function getCertificateOperation(context, certificateName, options = { req
|
|
|
270
321
|
return _getCertificateOperationDeserialize(result);
|
|
271
322
|
}
|
|
272
323
|
function _updateCertificateOperationSend(context, certificateName, certificateOperation, options = { requestOptions: {} }) {
|
|
273
|
-
var _a;
|
|
324
|
+
var _a, _b;
|
|
325
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/pending{?api%2Dversion}", {
|
|
326
|
+
"certificate-name": certificateName,
|
|
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
|
+
});
|
|
274
331
|
return context
|
|
275
|
-
.path(
|
|
276
|
-
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
332
|
+
.path(path)
|
|
333
|
+
.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.certificateOperationUpdateParameterSerializer)(certificateOperation) }));
|
|
277
334
|
}
|
|
278
335
|
async function _updateCertificateOperationDeserialize(result) {
|
|
279
336
|
const expectedStatuses = ["200"];
|
|
@@ -290,10 +347,17 @@ async function updateCertificateOperation(context, certificateName, certificateO
|
|
|
290
347
|
return _updateCertificateOperationDeserialize(result);
|
|
291
348
|
}
|
|
292
349
|
function _getCertificateSend(context, certificateName, certificateVersion, options = { requestOptions: {} }) {
|
|
293
|
-
var _a;
|
|
350
|
+
var _a, _b;
|
|
351
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/{certificate-version}{?api%2Dversion}", {
|
|
352
|
+
"certificate-name": certificateName,
|
|
353
|
+
"certificate-version": certificateVersion,
|
|
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
|
+
});
|
|
294
358
|
return context
|
|
295
|
-
.path(
|
|
296
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
359
|
+
.path(path)
|
|
360
|
+
.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) }));
|
|
297
361
|
}
|
|
298
362
|
async function _getCertificateDeserialize(result) {
|
|
299
363
|
const expectedStatuses = ["200"];
|
|
@@ -310,10 +374,17 @@ async function getCertificate(context, certificateName, certificateVersion, opti
|
|
|
310
374
|
return _getCertificateDeserialize(result);
|
|
311
375
|
}
|
|
312
376
|
function _updateCertificateSend(context, certificateName, certificateVersion, parameters, options = { requestOptions: {} }) {
|
|
313
|
-
var _a;
|
|
377
|
+
var _a, _b;
|
|
378
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/{certificate-version}{?api%2Dversion}", {
|
|
379
|
+
"certificate-name": certificateName,
|
|
380
|
+
"certificate-version": certificateVersion,
|
|
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
|
+
});
|
|
314
385
|
return context
|
|
315
|
-
.path(
|
|
316
|
-
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
386
|
+
.path(path)
|
|
387
|
+
.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.certificateUpdateParametersSerializer)(parameters) }));
|
|
317
388
|
}
|
|
318
389
|
async function _updateCertificateDeserialize(result) {
|
|
319
390
|
const expectedStatuses = ["200"];
|
|
@@ -330,10 +401,16 @@ async function updateCertificate(context, certificateName, certificateVersion, p
|
|
|
330
401
|
return _updateCertificateDeserialize(result);
|
|
331
402
|
}
|
|
332
403
|
function _updateCertificatePolicySend(context, certificateName, certificatePolicy, options = { requestOptions: {} }) {
|
|
333
|
-
var _a;
|
|
404
|
+
var _a, _b;
|
|
405
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/policy{?api%2Dversion}", {
|
|
406
|
+
"certificate-name": certificateName,
|
|
407
|
+
"api%2Dversion": context.apiVersion,
|
|
408
|
+
}, {
|
|
409
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
410
|
+
});
|
|
334
411
|
return context
|
|
335
|
-
.path(
|
|
336
|
-
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
412
|
+
.path(path)
|
|
413
|
+
.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.certificatePolicySerializer)(certificatePolicy) }));
|
|
337
414
|
}
|
|
338
415
|
async function _updateCertificatePolicyDeserialize(result) {
|
|
339
416
|
const expectedStatuses = ["200"];
|
|
@@ -350,10 +427,16 @@ async function updateCertificatePolicy(context, certificateName, certificatePoli
|
|
|
350
427
|
return _updateCertificatePolicyDeserialize(result);
|
|
351
428
|
}
|
|
352
429
|
function _getCertificatePolicySend(context, certificateName, options = { requestOptions: {} }) {
|
|
353
|
-
var _a;
|
|
430
|
+
var _a, _b;
|
|
431
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/policy{?api%2Dversion}", {
|
|
432
|
+
"certificate-name": certificateName,
|
|
433
|
+
"api%2Dversion": context.apiVersion,
|
|
434
|
+
}, {
|
|
435
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
436
|
+
});
|
|
354
437
|
return context
|
|
355
|
-
.path(
|
|
356
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
438
|
+
.path(path)
|
|
439
|
+
.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) }));
|
|
357
440
|
}
|
|
358
441
|
async function _getCertificatePolicyDeserialize(result) {
|
|
359
442
|
const expectedStatuses = ["200"];
|
|
@@ -370,13 +453,17 @@ async function getCertificatePolicy(context, certificateName, options = { reques
|
|
|
370
453
|
return _getCertificatePolicyDeserialize(result);
|
|
371
454
|
}
|
|
372
455
|
function _getCertificateVersionsSend(context, certificateName, options = { requestOptions: {} }) {
|
|
373
|
-
var _a;
|
|
456
|
+
var _a, _b;
|
|
457
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/versions{?api%2Dversion,maxresults}", {
|
|
458
|
+
"certificate-name": certificateName,
|
|
459
|
+
"api%2Dversion": context.apiVersion,
|
|
460
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
461
|
+
}, {
|
|
462
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
463
|
+
});
|
|
374
464
|
return context
|
|
375
|
-
.path(
|
|
376
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
377
|
-
"api-version": context.apiVersion,
|
|
378
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
379
|
-
} }));
|
|
465
|
+
.path(path)
|
|
466
|
+
.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) }));
|
|
380
467
|
}
|
|
381
468
|
async function _getCertificateVersionsDeserialize(result) {
|
|
382
469
|
const expectedStatuses = ["200"];
|
|
@@ -392,10 +479,16 @@ function getCertificateVersions(context, certificateName, options = { requestOpt
|
|
|
392
479
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getCertificateVersionsSend(context, certificateName, options), _getCertificateVersionsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
393
480
|
}
|
|
394
481
|
function _importCertificateSend(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
395
|
-
var _a;
|
|
482
|
+
var _a, _b;
|
|
483
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/import{?api%2Dversion}", {
|
|
484
|
+
"certificate-name": certificateName,
|
|
485
|
+
"api%2Dversion": context.apiVersion,
|
|
486
|
+
}, {
|
|
487
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
488
|
+
});
|
|
396
489
|
return context
|
|
397
|
-
.path(
|
|
398
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
490
|
+
.path(path)
|
|
491
|
+
.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.certificateImportParametersSerializer)(parameters) }));
|
|
399
492
|
}
|
|
400
493
|
async function _importCertificateDeserialize(result) {
|
|
401
494
|
const expectedStatuses = ["200"];
|
|
@@ -412,10 +505,16 @@ async function importCertificate(context, certificateName, parameters, options =
|
|
|
412
505
|
return _importCertificateDeserialize(result);
|
|
413
506
|
}
|
|
414
507
|
function _createCertificateSend(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
415
|
-
var _a;
|
|
508
|
+
var _a, _b;
|
|
509
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}/create{?api%2Dversion}", {
|
|
510
|
+
"certificate-name": certificateName,
|
|
511
|
+
"api%2Dversion": context.apiVersion,
|
|
512
|
+
}, {
|
|
513
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
514
|
+
});
|
|
416
515
|
return context
|
|
417
|
-
.path(
|
|
418
|
-
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
516
|
+
.path(path)
|
|
517
|
+
.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.certificateCreateParametersSerializer)(parameters) }));
|
|
419
518
|
}
|
|
420
519
|
async function _createCertificateDeserialize(result) {
|
|
421
520
|
const expectedStatuses = ["202"];
|
|
@@ -432,10 +531,16 @@ async function createCertificate(context, certificateName, parameters, options =
|
|
|
432
531
|
return _createCertificateDeserialize(result);
|
|
433
532
|
}
|
|
434
533
|
function _deleteCertificateIssuerSend(context, issuerName, options = { requestOptions: {} }) {
|
|
435
|
-
var _a;
|
|
534
|
+
var _a, _b;
|
|
535
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/issuers/{issuer-name}{?api%2Dversion}", {
|
|
536
|
+
"issuer-name": issuerName,
|
|
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
|
+
});
|
|
436
541
|
return context
|
|
437
|
-
.path(
|
|
438
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
542
|
+
.path(path)
|
|
543
|
+
.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) }));
|
|
439
544
|
}
|
|
440
545
|
async function _deleteCertificateIssuerDeserialize(result) {
|
|
441
546
|
const expectedStatuses = ["200"];
|
|
@@ -452,10 +557,16 @@ async function deleteCertificateIssuer(context, issuerName, options = { requestO
|
|
|
452
557
|
return _deleteCertificateIssuerDeserialize(result);
|
|
453
558
|
}
|
|
454
559
|
function _getCertificateIssuerSend(context, issuerName, options = { requestOptions: {} }) {
|
|
455
|
-
var _a;
|
|
560
|
+
var _a, _b;
|
|
561
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/issuers/{issuer-name}{?api%2Dversion}", {
|
|
562
|
+
"issuer-name": issuerName,
|
|
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
|
+
});
|
|
456
567
|
return context
|
|
457
|
-
.path(
|
|
458
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
568
|
+
.path(path)
|
|
569
|
+
.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) }));
|
|
459
570
|
}
|
|
460
571
|
async function _getCertificateIssuerDeserialize(result) {
|
|
461
572
|
const expectedStatuses = ["200"];
|
|
@@ -472,10 +583,16 @@ async function getCertificateIssuer(context, issuerName, options = { requestOpti
|
|
|
472
583
|
return _getCertificateIssuerDeserialize(result);
|
|
473
584
|
}
|
|
474
585
|
function _updateCertificateIssuerSend(context, issuerName, parameter, options = { requestOptions: {} }) {
|
|
475
|
-
var _a;
|
|
586
|
+
var _a, _b;
|
|
587
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/issuers/{issuer-name}{?api%2Dversion}", {
|
|
588
|
+
"issuer-name": issuerName,
|
|
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
|
+
});
|
|
476
593
|
return context
|
|
477
|
-
.path(
|
|
478
|
-
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
594
|
+
.path(path)
|
|
595
|
+
.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.certificateIssuerUpdateParametersSerializer)(parameter) }));
|
|
479
596
|
}
|
|
480
597
|
async function _updateCertificateIssuerDeserialize(result) {
|
|
481
598
|
const expectedStatuses = ["200"];
|
|
@@ -492,10 +609,16 @@ async function updateCertificateIssuer(context, issuerName, parameter, options =
|
|
|
492
609
|
return _updateCertificateIssuerDeserialize(result);
|
|
493
610
|
}
|
|
494
611
|
function _setCertificateIssuerSend(context, issuerName, parameter, options = { requestOptions: {} }) {
|
|
495
|
-
var _a;
|
|
612
|
+
var _a, _b;
|
|
613
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/issuers/{issuer-name}{?api%2Dversion}", {
|
|
614
|
+
"issuer-name": issuerName,
|
|
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
|
+
});
|
|
496
619
|
return context
|
|
497
|
-
.path(
|
|
498
|
-
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
620
|
+
.path(path)
|
|
621
|
+
.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.certificateIssuerSetParametersSerializer)(parameter) }));
|
|
499
622
|
}
|
|
500
623
|
async function _setCertificateIssuerDeserialize(result) {
|
|
501
624
|
const expectedStatuses = ["200"];
|
|
@@ -512,13 +635,16 @@ async function setCertificateIssuer(context, issuerName, parameter, options = {
|
|
|
512
635
|
return _setCertificateIssuerDeserialize(result);
|
|
513
636
|
}
|
|
514
637
|
function _getCertificateIssuersSend(context, options = { requestOptions: {} }) {
|
|
515
|
-
var _a;
|
|
638
|
+
var _a, _b;
|
|
639
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/issuers{?api%2Dversion,maxresults}", {
|
|
640
|
+
"api%2Dversion": context.apiVersion,
|
|
641
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
642
|
+
}, {
|
|
643
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
644
|
+
});
|
|
516
645
|
return context
|
|
517
|
-
.path(
|
|
518
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
519
|
-
"api-version": context.apiVersion,
|
|
520
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
521
|
-
} }));
|
|
646
|
+
.path(path)
|
|
647
|
+
.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) }));
|
|
522
648
|
}
|
|
523
649
|
async function _getCertificateIssuersDeserialize(result) {
|
|
524
650
|
const expectedStatuses = ["200"];
|
|
@@ -534,10 +660,15 @@ function getCertificateIssuers(context, options = { requestOptions: {} }) {
|
|
|
534
660
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getCertificateIssuersSend(context, options), _getCertificateIssuersDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
535
661
|
}
|
|
536
662
|
function _deleteCertificateContactsSend(context, options = { requestOptions: {} }) {
|
|
537
|
-
var _a;
|
|
663
|
+
var _a, _b;
|
|
664
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/contacts{?api%2Dversion}", {
|
|
665
|
+
"api%2Dversion": context.apiVersion,
|
|
666
|
+
}, {
|
|
667
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
668
|
+
});
|
|
538
669
|
return context
|
|
539
|
-
.path(
|
|
540
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
670
|
+
.path(path)
|
|
671
|
+
.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) }));
|
|
541
672
|
}
|
|
542
673
|
async function _deleteCertificateContactsDeserialize(result) {
|
|
543
674
|
const expectedStatuses = ["200"];
|
|
@@ -554,10 +685,15 @@ async function deleteCertificateContacts(context, options = { requestOptions: {}
|
|
|
554
685
|
return _deleteCertificateContactsDeserialize(result);
|
|
555
686
|
}
|
|
556
687
|
function _getCertificateContactsSend(context, options = { requestOptions: {} }) {
|
|
557
|
-
var _a;
|
|
688
|
+
var _a, _b;
|
|
689
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/contacts{?api%2Dversion}", {
|
|
690
|
+
"api%2Dversion": context.apiVersion,
|
|
691
|
+
}, {
|
|
692
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
693
|
+
});
|
|
558
694
|
return context
|
|
559
|
-
.path(
|
|
560
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
695
|
+
.path(path)
|
|
696
|
+
.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) }));
|
|
561
697
|
}
|
|
562
698
|
async function _getCertificateContactsDeserialize(result) {
|
|
563
699
|
const expectedStatuses = ["200"];
|
|
@@ -574,10 +710,15 @@ async function getCertificateContacts(context, options = { requestOptions: {} })
|
|
|
574
710
|
return _getCertificateContactsDeserialize(result);
|
|
575
711
|
}
|
|
576
712
|
function _setCertificateContactsSend(context, contacts, options = { requestOptions: {} }) {
|
|
577
|
-
var _a;
|
|
713
|
+
var _a, _b;
|
|
714
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/contacts{?api%2Dversion}", {
|
|
715
|
+
"api%2Dversion": context.apiVersion,
|
|
716
|
+
}, {
|
|
717
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
718
|
+
});
|
|
578
719
|
return context
|
|
579
|
-
.path(
|
|
580
|
-
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (
|
|
720
|
+
.path(path)
|
|
721
|
+
.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.contactsSerializer)(contacts) }));
|
|
581
722
|
}
|
|
582
723
|
async function _setCertificateContactsDeserialize(result) {
|
|
583
724
|
const expectedStatuses = ["200"];
|
|
@@ -594,10 +735,16 @@ async function setCertificateContacts(context, contacts, options = { requestOpti
|
|
|
594
735
|
return _setCertificateContactsDeserialize(result);
|
|
595
736
|
}
|
|
596
737
|
function _deleteCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
597
|
-
var _a;
|
|
738
|
+
var _a, _b;
|
|
739
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates/{certificate-name}{?api%2Dversion}", {
|
|
740
|
+
"certificate-name": certificateName,
|
|
741
|
+
"api%2Dversion": context.apiVersion,
|
|
742
|
+
}, {
|
|
743
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
744
|
+
});
|
|
598
745
|
return context
|
|
599
|
-
.path(
|
|
600
|
-
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
746
|
+
.path(path)
|
|
747
|
+
.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) }));
|
|
601
748
|
}
|
|
602
749
|
async function _deleteCertificateDeserialize(result) {
|
|
603
750
|
const expectedStatuses = ["200"];
|
|
@@ -614,14 +761,17 @@ async function deleteCertificate(context, certificateName, options = { requestOp
|
|
|
614
761
|
return _deleteCertificateDeserialize(result);
|
|
615
762
|
}
|
|
616
763
|
function _getCertificatesSend(context, options = { requestOptions: {} }) {
|
|
617
|
-
var _a;
|
|
764
|
+
var _a, _b;
|
|
765
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/certificates{?api%2Dversion,maxresults,includePending}", {
|
|
766
|
+
"api%2Dversion": context.apiVersion,
|
|
767
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
768
|
+
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
769
|
+
}, {
|
|
770
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
771
|
+
});
|
|
618
772
|
return context
|
|
619
|
-
.path(
|
|
620
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (
|
|
621
|
-
"api-version": context.apiVersion,
|
|
622
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
623
|
-
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
624
|
-
} }));
|
|
773
|
+
.path(path)
|
|
774
|
+
.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) }));
|
|
625
775
|
}
|
|
626
776
|
async function _getCertificatesDeserialize(result) {
|
|
627
777
|
const expectedStatuses = ["200"];
|