@azure/arm-appservice 16.0.1-alpha.20250619.1 → 17.0.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/CHANGELOG.md +48 -7
- package/LICENSE +1 -1
- package/README.md +0 -3
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +7 -0
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +148 -23
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +4 -0
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +213 -22
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +11 -3
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +75 -5
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/index.d.ts +1 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +1 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/siteCertificates.d.ts +144 -0
- package/dist/browser/operations/siteCertificates.d.ts.map +1 -0
- package/dist/browser/operations/siteCertificates.js +592 -0
- package/dist/browser/operations/siteCertificates.js.map +1 -0
- package/dist/browser/operations/webApps.js +14 -14
- package/dist/browser/operations/webApps.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +1 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/siteCertificates.d.ts +98 -0
- package/dist/browser/operationsInterfaces/siteCertificates.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/siteCertificates.js +9 -0
- package/dist/browser/operationsInterfaces/siteCertificates.js.map +1 -0
- package/dist/browser/webSiteManagementClient.d.ts +11 -2
- package/dist/browser/webSiteManagementClient.d.ts.map +1 -1
- package/dist/browser/webSiteManagementClient.js +47 -3
- package/dist/browser/webSiteManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -0
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +148 -23
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +4 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +223 -32
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +11 -3
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +78 -8
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +1 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +1 -0
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/siteCertificates.d.ts +144 -0
- package/dist/commonjs/operations/siteCertificates.d.ts.map +1 -0
- package/dist/commonjs/operations/siteCertificates.js +596 -0
- package/dist/commonjs/operations/siteCertificates.js.map +1 -0
- package/dist/commonjs/operations/webApps.js +14 -14
- package/dist/commonjs/operations/webApps.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +1 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/siteCertificates.d.ts +98 -0
- package/dist/commonjs/operationsInterfaces/siteCertificates.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/siteCertificates.js +10 -0
- package/dist/commonjs/operationsInterfaces/siteCertificates.js.map +1 -0
- package/dist/commonjs/webSiteManagementClient.d.ts +11 -2
- package/dist/commonjs/webSiteManagementClient.d.ts.map +1 -1
- package/dist/commonjs/webSiteManagementClient.js +46 -2
- package/dist/commonjs/webSiteManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +7 -0
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +148 -23
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +4 -0
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +213 -22
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +11 -3
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +75 -5
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/index.d.ts +1 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +1 -0
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/siteCertificates.d.ts +144 -0
- package/dist/esm/operations/siteCertificates.d.ts.map +1 -0
- package/dist/esm/operations/siteCertificates.js +592 -0
- package/dist/esm/operations/siteCertificates.js.map +1 -0
- package/dist/esm/operations/webApps.js +14 -14
- package/dist/esm/operations/webApps.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +1 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/siteCertificates.d.ts +98 -0
- package/dist/esm/operationsInterfaces/siteCertificates.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/siteCertificates.js +9 -0
- package/dist/esm/operationsInterfaces/siteCertificates.js.map +1 -0
- package/dist/esm/webSiteManagementClient.d.ts +11 -2
- package/dist/esm/webSiteManagementClient.d.ts.map +1 -1
- package/dist/esm/webSiteManagementClient.js +47 -3
- package/dist/esm/webSiteManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +7 -0
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +148 -23
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +4 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +213 -22
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +11 -3
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +75 -5
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +1 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +1 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/siteCertificates.d.ts +144 -0
- package/dist/react-native/operations/siteCertificates.d.ts.map +1 -0
- package/dist/react-native/operations/siteCertificates.js +592 -0
- package/dist/react-native/operations/siteCertificates.js.map +1 -0
- package/dist/react-native/operations/webApps.js +14 -14
- package/dist/react-native/operations/webApps.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +1 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/siteCertificates.d.ts +98 -0
- package/dist/react-native/operationsInterfaces/siteCertificates.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/siteCertificates.js +9 -0
- package/dist/react-native/operationsInterfaces/siteCertificates.js.map +1 -0
- package/dist/react-native/webSiteManagementClient.d.ts +11 -2
- package/dist/react-native/webSiteManagementClient.d.ts.map +1 -1
- package/dist/react-native/webSiteManagementClient.js +47 -3
- package/dist/react-native/webSiteManagementClient.js.map +1 -1
- package/package.json +25 -25
- package/review/arm-appservice.api.md +147 -4
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing SiteCertificates operations. */
|
|
15
|
+
export class SiteCertificatesImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class SiteCertificates class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get all certificates in a resource group under a site.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param name Name of the site.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
list(resourceGroupName, name, options) {
|
|
30
|
+
const iter = this.listPagingAll(resourceGroupName, name, options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listPagingPage(resourceGroupName, name, options, settings);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listPagingPage(resourceGroupName, name, options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._list(resourceGroupName, name, options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listNext(resourceGroupName, name, continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listPagingAll(resourceGroupName, name, options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, name, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
const page = _c;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get all certificates in a resource group for a given site and a deployment slot.
|
|
88
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
89
|
+
* @param name Name of the site.
|
|
90
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
91
|
+
* for the production slot.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
listSlot(resourceGroupName, name, slot, options) {
|
|
95
|
+
const iter = this.listSlotPagingAll(resourceGroupName, name, slot, options);
|
|
96
|
+
return {
|
|
97
|
+
next() {
|
|
98
|
+
return iter.next();
|
|
99
|
+
},
|
|
100
|
+
[Symbol.asyncIterator]() {
|
|
101
|
+
return this;
|
|
102
|
+
},
|
|
103
|
+
byPage: (settings) => {
|
|
104
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
105
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
|
+
}
|
|
107
|
+
return this.listSlotPagingPage(resourceGroupName, name, slot, options, settings);
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
listSlotPagingPage(resourceGroupName, name, slot, options, settings) {
|
|
112
|
+
return __asyncGenerator(this, arguments, function* listSlotPagingPage_1() {
|
|
113
|
+
let result;
|
|
114
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
115
|
+
if (!continuationToken) {
|
|
116
|
+
result = yield __await(this._listSlot(resourceGroupName, name, slot, options));
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
continuationToken = result.nextLink;
|
|
119
|
+
setContinuationToken(page, continuationToken);
|
|
120
|
+
yield yield __await(page);
|
|
121
|
+
}
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = yield __await(this._listSlotNext(resourceGroupName, name, slot, continuationToken, options));
|
|
124
|
+
continuationToken = result.nextLink;
|
|
125
|
+
let page = result.value || [];
|
|
126
|
+
setContinuationToken(page, continuationToken);
|
|
127
|
+
yield yield __await(page);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
listSlotPagingAll(resourceGroupName, name, slot, options) {
|
|
132
|
+
return __asyncGenerator(this, arguments, function* listSlotPagingAll_1() {
|
|
133
|
+
var _a, e_2, _b, _c;
|
|
134
|
+
try {
|
|
135
|
+
for (var _d = true, _e = __asyncValues(this.listSlotPagingPage(resourceGroupName, name, slot, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
+
_c = _f.value;
|
|
137
|
+
_d = false;
|
|
138
|
+
const page = _c;
|
|
139
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
+
finally {
|
|
144
|
+
try {
|
|
145
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
146
|
+
}
|
|
147
|
+
finally { if (e_2) throw e_2.error; }
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Get all certificates in a resource group under a site.
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
|
+
* @param name Name of the site.
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
_list(resourceGroupName, name, options) {
|
|
158
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, options }, listOperationSpec);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Get a certificate belonging to a given site.
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
|
+
* @param name Name of the site.
|
|
164
|
+
* @param certificateName Name of the certificate.
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
get(resourceGroupName, name, certificateName, options) {
|
|
168
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, certificateName, options }, getOperationSpec);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Create or update a certificate under a given site.
|
|
172
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
173
|
+
* @param name Name of the site.
|
|
174
|
+
* @param certificateName Name of the certificate.
|
|
175
|
+
* @param certificateEnvelope Details of certificate, if it exists already.
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
createOrUpdate(resourceGroupName, name, certificateName, certificateEnvelope, options) {
|
|
179
|
+
return this.client.sendOperationRequest({
|
|
180
|
+
resourceGroupName,
|
|
181
|
+
name,
|
|
182
|
+
certificateName,
|
|
183
|
+
certificateEnvelope,
|
|
184
|
+
options,
|
|
185
|
+
}, createOrUpdateOperationSpec);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Delete a certificate from the site.
|
|
189
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
190
|
+
* @param name Name of the site.
|
|
191
|
+
* @param certificateName Name of the certificate.
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
delete(resourceGroupName, name, certificateName, options) {
|
|
195
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, certificateName, options }, deleteOperationSpec);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Create or update a certificate under a given site.
|
|
199
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
200
|
+
* @param name Name of the site.
|
|
201
|
+
* @param certificateName Name of the certificate.
|
|
202
|
+
* @param certificateEnvelope Details of certificate, if it exists already.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
205
|
+
update(resourceGroupName, name, certificateName, certificateEnvelope, options) {
|
|
206
|
+
return this.client.sendOperationRequest({
|
|
207
|
+
resourceGroupName,
|
|
208
|
+
name,
|
|
209
|
+
certificateName,
|
|
210
|
+
certificateEnvelope,
|
|
211
|
+
options,
|
|
212
|
+
}, updateOperationSpec);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get all certificates in a resource group for a given site and a deployment slot.
|
|
216
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
217
|
+
* @param name Name of the site.
|
|
218
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
219
|
+
* for the production slot.
|
|
220
|
+
* @param options The options parameters.
|
|
221
|
+
*/
|
|
222
|
+
_listSlot(resourceGroupName, name, slot, options) {
|
|
223
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, slot, options }, listSlotOperationSpec);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Get a certificate for a given site and deployment slot.
|
|
227
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
228
|
+
* @param name Name of the site.
|
|
229
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
230
|
+
* for the production slot.
|
|
231
|
+
* @param certificateName Name of the certificate.
|
|
232
|
+
* @param options The options parameters.
|
|
233
|
+
*/
|
|
234
|
+
getSlot(resourceGroupName, name, slot, certificateName, options) {
|
|
235
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, slot, certificateName, options }, getSlotOperationSpec);
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Create or update a certificate in a given site and deployment slot.
|
|
239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
240
|
+
* @param name Name of the site.
|
|
241
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
242
|
+
* for the production slot.
|
|
243
|
+
* @param certificateName Name of the certificate.
|
|
244
|
+
* @param certificateEnvelope Details of certificate, if it exists already.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
createOrUpdateSlot(resourceGroupName, name, slot, certificateName, certificateEnvelope, options) {
|
|
248
|
+
return this.client.sendOperationRequest({
|
|
249
|
+
resourceGroupName,
|
|
250
|
+
name,
|
|
251
|
+
slot,
|
|
252
|
+
certificateName,
|
|
253
|
+
certificateEnvelope,
|
|
254
|
+
options,
|
|
255
|
+
}, createOrUpdateSlotOperationSpec);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Delete a certificate for a given site and deployment slot.
|
|
259
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
260
|
+
* @param name Name of the site.
|
|
261
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
262
|
+
* for the production slot.
|
|
263
|
+
* @param certificateName Name of the certificate.
|
|
264
|
+
* @param options The options parameters.
|
|
265
|
+
*/
|
|
266
|
+
deleteSlot(resourceGroupName, name, slot, certificateName, options) {
|
|
267
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, slot, certificateName, options }, deleteSlotOperationSpec);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Create or update a certificate for a site and deployment slot.
|
|
271
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
272
|
+
* @param name Name of the site.
|
|
273
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
274
|
+
* for the production slot.
|
|
275
|
+
* @param certificateName Name of the certificate.
|
|
276
|
+
* @param certificateEnvelope Details of certificate, if it exists already.
|
|
277
|
+
* @param options The options parameters.
|
|
278
|
+
*/
|
|
279
|
+
updateSlot(resourceGroupName, name, slot, certificateName, certificateEnvelope, options) {
|
|
280
|
+
return this.client.sendOperationRequest({
|
|
281
|
+
resourceGroupName,
|
|
282
|
+
name,
|
|
283
|
+
slot,
|
|
284
|
+
certificateName,
|
|
285
|
+
certificateEnvelope,
|
|
286
|
+
options,
|
|
287
|
+
}, updateSlotOperationSpec);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* ListNext
|
|
291
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
292
|
+
* @param name Name of the site.
|
|
293
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
294
|
+
* @param options The options parameters.
|
|
295
|
+
*/
|
|
296
|
+
_listNext(resourceGroupName, name, nextLink, options) {
|
|
297
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listNextOperationSpec);
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* ListSlotNext
|
|
301
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
302
|
+
* @param name Name of the site.
|
|
303
|
+
* @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding
|
|
304
|
+
* for the production slot.
|
|
305
|
+
* @param nextLink The nextLink from the previous successful call to the ListSlot method.
|
|
306
|
+
* @param options The options parameters.
|
|
307
|
+
*/
|
|
308
|
+
_listSlotNext(resourceGroupName, name, slot, nextLink, options) {
|
|
309
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, slot, nextLink, options }, listSlotNextOperationSpec);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
// Operation Specifications
|
|
313
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
314
|
+
const listOperationSpec = {
|
|
315
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates",
|
|
316
|
+
httpMethod: "GET",
|
|
317
|
+
responses: {
|
|
318
|
+
200: {
|
|
319
|
+
bodyMapper: Mappers.CertificateCollection,
|
|
320
|
+
},
|
|
321
|
+
default: {
|
|
322
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
queryParameters: [Parameters.apiVersion],
|
|
326
|
+
urlParameters: [
|
|
327
|
+
Parameters.$host,
|
|
328
|
+
Parameters.subscriptionId,
|
|
329
|
+
Parameters.resourceGroupName2,
|
|
330
|
+
Parameters.name3,
|
|
331
|
+
],
|
|
332
|
+
headerParameters: [Parameters.accept],
|
|
333
|
+
serializer,
|
|
334
|
+
};
|
|
335
|
+
const getOperationSpec = {
|
|
336
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}",
|
|
337
|
+
httpMethod: "GET",
|
|
338
|
+
responses: {
|
|
339
|
+
200: {
|
|
340
|
+
bodyMapper: Mappers.Certificate,
|
|
341
|
+
},
|
|
342
|
+
default: {
|
|
343
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
queryParameters: [Parameters.apiVersion],
|
|
347
|
+
urlParameters: [
|
|
348
|
+
Parameters.$host,
|
|
349
|
+
Parameters.subscriptionId,
|
|
350
|
+
Parameters.resourceGroupName2,
|
|
351
|
+
Parameters.name3,
|
|
352
|
+
Parameters.certificateName,
|
|
353
|
+
],
|
|
354
|
+
headerParameters: [Parameters.accept],
|
|
355
|
+
serializer,
|
|
356
|
+
};
|
|
357
|
+
const createOrUpdateOperationSpec = {
|
|
358
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}",
|
|
359
|
+
httpMethod: "PUT",
|
|
360
|
+
responses: {
|
|
361
|
+
200: {
|
|
362
|
+
bodyMapper: Mappers.Certificate,
|
|
363
|
+
},
|
|
364
|
+
201: {
|
|
365
|
+
bodyMapper: Mappers.Certificate,
|
|
366
|
+
},
|
|
367
|
+
default: {
|
|
368
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
requestBody: Parameters.certificateEnvelope,
|
|
372
|
+
queryParameters: [Parameters.apiVersion],
|
|
373
|
+
urlParameters: [
|
|
374
|
+
Parameters.$host,
|
|
375
|
+
Parameters.subscriptionId,
|
|
376
|
+
Parameters.resourceGroupName2,
|
|
377
|
+
Parameters.name3,
|
|
378
|
+
Parameters.certificateName1,
|
|
379
|
+
],
|
|
380
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
381
|
+
mediaType: "json",
|
|
382
|
+
serializer,
|
|
383
|
+
};
|
|
384
|
+
const deleteOperationSpec = {
|
|
385
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}",
|
|
386
|
+
httpMethod: "DELETE",
|
|
387
|
+
responses: {
|
|
388
|
+
200: {},
|
|
389
|
+
204: {},
|
|
390
|
+
default: {
|
|
391
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
queryParameters: [Parameters.apiVersion],
|
|
395
|
+
urlParameters: [
|
|
396
|
+
Parameters.$host,
|
|
397
|
+
Parameters.subscriptionId,
|
|
398
|
+
Parameters.name,
|
|
399
|
+
Parameters.resourceGroupName2,
|
|
400
|
+
Parameters.certificateName1,
|
|
401
|
+
],
|
|
402
|
+
headerParameters: [Parameters.accept],
|
|
403
|
+
serializer,
|
|
404
|
+
};
|
|
405
|
+
const updateOperationSpec = {
|
|
406
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}",
|
|
407
|
+
httpMethod: "PATCH",
|
|
408
|
+
responses: {
|
|
409
|
+
200: {
|
|
410
|
+
bodyMapper: Mappers.Certificate,
|
|
411
|
+
},
|
|
412
|
+
default: {
|
|
413
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
requestBody: Parameters.certificateEnvelope1,
|
|
417
|
+
queryParameters: [Parameters.apiVersion],
|
|
418
|
+
urlParameters: [
|
|
419
|
+
Parameters.$host,
|
|
420
|
+
Parameters.subscriptionId,
|
|
421
|
+
Parameters.name,
|
|
422
|
+
Parameters.resourceGroupName2,
|
|
423
|
+
Parameters.certificateName1,
|
|
424
|
+
],
|
|
425
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
426
|
+
mediaType: "json",
|
|
427
|
+
serializer,
|
|
428
|
+
};
|
|
429
|
+
const listSlotOperationSpec = {
|
|
430
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates",
|
|
431
|
+
httpMethod: "GET",
|
|
432
|
+
responses: {
|
|
433
|
+
200: {
|
|
434
|
+
bodyMapper: Mappers.CertificateCollection,
|
|
435
|
+
},
|
|
436
|
+
default: {
|
|
437
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
queryParameters: [Parameters.apiVersion],
|
|
441
|
+
urlParameters: [
|
|
442
|
+
Parameters.$host,
|
|
443
|
+
Parameters.subscriptionId,
|
|
444
|
+
Parameters.slot,
|
|
445
|
+
Parameters.resourceGroupName2,
|
|
446
|
+
Parameters.name3,
|
|
447
|
+
],
|
|
448
|
+
headerParameters: [Parameters.accept],
|
|
449
|
+
serializer,
|
|
450
|
+
};
|
|
451
|
+
const getSlotOperationSpec = {
|
|
452
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}",
|
|
453
|
+
httpMethod: "GET",
|
|
454
|
+
responses: {
|
|
455
|
+
200: {
|
|
456
|
+
bodyMapper: Mappers.Certificate,
|
|
457
|
+
},
|
|
458
|
+
default: {
|
|
459
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
queryParameters: [Parameters.apiVersion],
|
|
463
|
+
urlParameters: [
|
|
464
|
+
Parameters.$host,
|
|
465
|
+
Parameters.subscriptionId,
|
|
466
|
+
Parameters.slot,
|
|
467
|
+
Parameters.resourceGroupName2,
|
|
468
|
+
Parameters.name3,
|
|
469
|
+
Parameters.certificateName,
|
|
470
|
+
],
|
|
471
|
+
headerParameters: [Parameters.accept],
|
|
472
|
+
serializer,
|
|
473
|
+
};
|
|
474
|
+
const createOrUpdateSlotOperationSpec = {
|
|
475
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}",
|
|
476
|
+
httpMethod: "PUT",
|
|
477
|
+
responses: {
|
|
478
|
+
200: {
|
|
479
|
+
bodyMapper: Mappers.Certificate,
|
|
480
|
+
},
|
|
481
|
+
201: {
|
|
482
|
+
bodyMapper: Mappers.Certificate,
|
|
483
|
+
},
|
|
484
|
+
default: {
|
|
485
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
requestBody: Parameters.certificateEnvelope,
|
|
489
|
+
queryParameters: [Parameters.apiVersion],
|
|
490
|
+
urlParameters: [
|
|
491
|
+
Parameters.$host,
|
|
492
|
+
Parameters.subscriptionId,
|
|
493
|
+
Parameters.name,
|
|
494
|
+
Parameters.slot,
|
|
495
|
+
Parameters.resourceGroupName2,
|
|
496
|
+
Parameters.certificateName1,
|
|
497
|
+
],
|
|
498
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
499
|
+
mediaType: "json",
|
|
500
|
+
serializer,
|
|
501
|
+
};
|
|
502
|
+
const deleteSlotOperationSpec = {
|
|
503
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}",
|
|
504
|
+
httpMethod: "DELETE",
|
|
505
|
+
responses: {
|
|
506
|
+
200: {},
|
|
507
|
+
204: {},
|
|
508
|
+
default: {
|
|
509
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
queryParameters: [Parameters.apiVersion],
|
|
513
|
+
urlParameters: [
|
|
514
|
+
Parameters.$host,
|
|
515
|
+
Parameters.subscriptionId,
|
|
516
|
+
Parameters.name,
|
|
517
|
+
Parameters.slot,
|
|
518
|
+
Parameters.resourceGroupName2,
|
|
519
|
+
Parameters.certificateName1,
|
|
520
|
+
],
|
|
521
|
+
headerParameters: [Parameters.accept],
|
|
522
|
+
serializer,
|
|
523
|
+
};
|
|
524
|
+
const updateSlotOperationSpec = {
|
|
525
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}",
|
|
526
|
+
httpMethod: "PATCH",
|
|
527
|
+
responses: {
|
|
528
|
+
200: {
|
|
529
|
+
bodyMapper: Mappers.Certificate,
|
|
530
|
+
},
|
|
531
|
+
default: {
|
|
532
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
requestBody: Parameters.certificateEnvelope1,
|
|
536
|
+
queryParameters: [Parameters.apiVersion],
|
|
537
|
+
urlParameters: [
|
|
538
|
+
Parameters.$host,
|
|
539
|
+
Parameters.subscriptionId,
|
|
540
|
+
Parameters.name,
|
|
541
|
+
Parameters.slot,
|
|
542
|
+
Parameters.resourceGroupName2,
|
|
543
|
+
Parameters.certificateName1,
|
|
544
|
+
],
|
|
545
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
546
|
+
mediaType: "json",
|
|
547
|
+
serializer,
|
|
548
|
+
};
|
|
549
|
+
const listNextOperationSpec = {
|
|
550
|
+
path: "{nextLink}",
|
|
551
|
+
httpMethod: "GET",
|
|
552
|
+
responses: {
|
|
553
|
+
200: {
|
|
554
|
+
bodyMapper: Mappers.CertificateCollection,
|
|
555
|
+
},
|
|
556
|
+
default: {
|
|
557
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
urlParameters: [
|
|
561
|
+
Parameters.$host,
|
|
562
|
+
Parameters.subscriptionId,
|
|
563
|
+
Parameters.nextLink,
|
|
564
|
+
Parameters.resourceGroupName2,
|
|
565
|
+
Parameters.name3,
|
|
566
|
+
],
|
|
567
|
+
headerParameters: [Parameters.accept],
|
|
568
|
+
serializer,
|
|
569
|
+
};
|
|
570
|
+
const listSlotNextOperationSpec = {
|
|
571
|
+
path: "{nextLink}",
|
|
572
|
+
httpMethod: "GET",
|
|
573
|
+
responses: {
|
|
574
|
+
200: {
|
|
575
|
+
bodyMapper: Mappers.CertificateCollection,
|
|
576
|
+
},
|
|
577
|
+
default: {
|
|
578
|
+
bodyMapper: Mappers.DefaultErrorResponse,
|
|
579
|
+
},
|
|
580
|
+
},
|
|
581
|
+
urlParameters: [
|
|
582
|
+
Parameters.$host,
|
|
583
|
+
Parameters.subscriptionId,
|
|
584
|
+
Parameters.nextLink,
|
|
585
|
+
Parameters.slot,
|
|
586
|
+
Parameters.resourceGroupName2,
|
|
587
|
+
Parameters.name3,
|
|
588
|
+
],
|
|
589
|
+
headerParameters: [Parameters.accept],
|
|
590
|
+
serializer,
|
|
591
|
+
};
|
|
592
|
+
//# sourceMappingURL=siteCertificates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"siteCertificates.js","sourceRoot":"","sources":["../../../src/operations/siteCertificates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA6BtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,IAAY,EACZ,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC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AAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SiteCertificates } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { WebSiteManagementClient } from \"../webSiteManagementClient.js\";\nimport {\n Certificate,\n SiteCertificatesListNextOptionalParams,\n SiteCertificatesListOptionalParams,\n SiteCertificatesListResponse,\n SiteCertificatesListSlotNextOptionalParams,\n SiteCertificatesListSlotOptionalParams,\n SiteCertificatesListSlotResponse,\n SiteCertificatesGetOptionalParams,\n SiteCertificatesGetResponse,\n SiteCertificatesCreateOrUpdateOptionalParams,\n SiteCertificatesCreateOrUpdateResponse,\n SiteCertificatesDeleteOptionalParams,\n CertificatePatchResource,\n SiteCertificatesUpdateOptionalParams,\n SiteCertificatesUpdateResponse,\n SiteCertificatesGetSlotOptionalParams,\n SiteCertificatesGetSlotResponse,\n SiteCertificatesCreateOrUpdateSlotOptionalParams,\n SiteCertificatesCreateOrUpdateSlotResponse,\n SiteCertificatesDeleteSlotOptionalParams,\n SiteCertificatesUpdateSlotOptionalParams,\n SiteCertificatesUpdateSlotResponse,\n SiteCertificatesListNextResponse,\n SiteCertificatesListSlotNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SiteCertificates operations. */\nexport class SiteCertificatesImpl implements SiteCertificates {\n private readonly client: WebSiteManagementClient;\n\n /**\n * Initialize a new instance of the class SiteCertificates class.\n * @param client Reference to the service client\n */\n constructor(client: WebSiteManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all certificates in a resource group under a site.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n name: string,\n options?: SiteCertificatesListOptionalParams,\n ): PagedAsyncIterableIterator<Certificate> {\n const iter = this.listPagingAll(resourceGroupName, name, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, name, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n name: string,\n options?: SiteCertificatesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Certificate[]> {\n let result: SiteCertificatesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, name, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n name,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n name: string,\n options?: SiteCertificatesListOptionalParams,\n ): AsyncIterableIterator<Certificate> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n name,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all certificates in a resource group for a given site and a deployment slot.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param options The options parameters.\n */\n public listSlot(\n resourceGroupName: string,\n name: string,\n slot: string,\n options?: SiteCertificatesListSlotOptionalParams,\n ): PagedAsyncIterableIterator<Certificate> {\n const iter = this.listSlotPagingAll(resourceGroupName, name, slot, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listSlotPagingPage(\n resourceGroupName,\n name,\n slot,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listSlotPagingPage(\n resourceGroupName: string,\n name: string,\n slot: string,\n options?: SiteCertificatesListSlotOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Certificate[]> {\n let result: SiteCertificatesListSlotResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listSlot(resourceGroupName, name, slot, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listSlotNext(\n resourceGroupName,\n name,\n slot,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listSlotPagingAll(\n resourceGroupName: string,\n name: string,\n slot: string,\n options?: SiteCertificatesListSlotOptionalParams,\n ): AsyncIterableIterator<Certificate> {\n for await (const page of this.listSlotPagingPage(\n resourceGroupName,\n name,\n slot,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all certificates in a resource group under a site.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n name: string,\n options?: SiteCertificatesListOptionalParams,\n ): Promise<SiteCertificatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a certificate belonging to a given site.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param certificateName Name of the certificate.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n name: string,\n certificateName: string,\n options?: SiteCertificatesGetOptionalParams,\n ): Promise<SiteCertificatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, certificateName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update a certificate under a given site.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param certificateName Name of the certificate.\n * @param certificateEnvelope Details of certificate, if it exists already.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n name: string,\n certificateName: string,\n certificateEnvelope: Certificate,\n options?: SiteCertificatesCreateOrUpdateOptionalParams,\n ): Promise<SiteCertificatesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n name,\n certificateName,\n certificateEnvelope,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete a certificate from the site.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param certificateName Name of the certificate.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n name: string,\n certificateName: string,\n options?: SiteCertificatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, certificateName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Create or update a certificate under a given site.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param certificateName Name of the certificate.\n * @param certificateEnvelope Details of certificate, if it exists already.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n name: string,\n certificateName: string,\n certificateEnvelope: CertificatePatchResource,\n options?: SiteCertificatesUpdateOptionalParams,\n ): Promise<SiteCertificatesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n name,\n certificateName,\n certificateEnvelope,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Get all certificates in a resource group for a given site and a deployment slot.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param options The options parameters.\n */\n private _listSlot(\n resourceGroupName: string,\n name: string,\n slot: string,\n options?: SiteCertificatesListSlotOptionalParams,\n ): Promise<SiteCertificatesListSlotResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, slot, options },\n listSlotOperationSpec,\n );\n }\n\n /**\n * Get a certificate for a given site and deployment slot.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param certificateName Name of the certificate.\n * @param options The options parameters.\n */\n getSlot(\n resourceGroupName: string,\n name: string,\n slot: string,\n certificateName: string,\n options?: SiteCertificatesGetSlotOptionalParams,\n ): Promise<SiteCertificatesGetSlotResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, slot, certificateName, options },\n getSlotOperationSpec,\n );\n }\n\n /**\n * Create or update a certificate in a given site and deployment slot.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param certificateName Name of the certificate.\n * @param certificateEnvelope Details of certificate, if it exists already.\n * @param options The options parameters.\n */\n createOrUpdateSlot(\n resourceGroupName: string,\n name: string,\n slot: string,\n certificateName: string,\n certificateEnvelope: Certificate,\n options?: SiteCertificatesCreateOrUpdateSlotOptionalParams,\n ): Promise<SiteCertificatesCreateOrUpdateSlotResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n name,\n slot,\n certificateName,\n certificateEnvelope,\n options,\n },\n createOrUpdateSlotOperationSpec,\n );\n }\n\n /**\n * Delete a certificate for a given site and deployment slot.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param certificateName Name of the certificate.\n * @param options The options parameters.\n */\n deleteSlot(\n resourceGroupName: string,\n name: string,\n slot: string,\n certificateName: string,\n options?: SiteCertificatesDeleteSlotOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, slot, certificateName, options },\n deleteSlotOperationSpec,\n );\n }\n\n /**\n * Create or update a certificate for a site and deployment slot.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param certificateName Name of the certificate.\n * @param certificateEnvelope Details of certificate, if it exists already.\n * @param options The options parameters.\n */\n updateSlot(\n resourceGroupName: string,\n name: string,\n slot: string,\n certificateName: string,\n certificateEnvelope: CertificatePatchResource,\n options?: SiteCertificatesUpdateSlotOptionalParams,\n ): Promise<SiteCertificatesUpdateSlotResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n name,\n slot,\n certificateName,\n certificateEnvelope,\n options,\n },\n updateSlotOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n name: string,\n nextLink: string,\n options?: SiteCertificatesListNextOptionalParams,\n ): Promise<SiteCertificatesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListSlotNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name Name of the site.\n * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding\n * for the production slot.\n * @param nextLink The nextLink from the previous successful call to the ListSlot method.\n * @param options The options parameters.\n */\n private _listSlotNext(\n resourceGroupName: string,\n name: string,\n slot: string,\n nextLink: string,\n options?: SiteCertificatesListSlotNextOptionalParams,\n ): Promise<SiteCertificatesListSlotNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, slot, nextLink, options },\n listSlotNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName2,\n Parameters.name3,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName2,\n Parameters.name3,\n Parameters.certificateName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n 201: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName2,\n Parameters.name3,\n Parameters.certificateName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.name,\n Parameters.resourceGroupName2,\n Parameters.certificateName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.name,\n Parameters.resourceGroupName2,\n Parameters.certificateName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listSlotOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.slot,\n Parameters.resourceGroupName2,\n Parameters.name3,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSlotOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.slot,\n Parameters.resourceGroupName2,\n Parameters.name3,\n Parameters.certificateName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateSlotOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n 201: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.name,\n Parameters.slot,\n Parameters.resourceGroupName2,\n Parameters.certificateName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteSlotOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.name,\n Parameters.slot,\n Parameters.resourceGroupName2,\n Parameters.certificateName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateSlotOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.name,\n Parameters.slot,\n Parameters.resourceGroupName2,\n Parameters.certificateName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName2,\n Parameters.name3,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listSlotNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.slot,\n Parameters.resourceGroupName2,\n Parameters.name3,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|