@azure/arm-communication 2.0.0 → 3.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -70
- package/dist/index.js +1489 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/communicationServiceManagementClient.d.ts +19 -0
- package/dist-esm/src/communicationServiceManagementClient.d.ts.map +1 -0
- package/dist-esm/src/communicationServiceManagementClient.js +52 -0
- package/dist-esm/src/communicationServiceManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +422 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +41 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +22 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +201 -379
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +122 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/communicationService.d.ts +124 -0
- package/dist-esm/src/operations/communicationService.d.ts.map +1 -0
- package/dist-esm/src/operations/communicationService.js +570 -0
- package/dist-esm/src/operations/communicationService.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -3
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/communicationService.d.ts +88 -0
- package/dist-esm/src/operationsInterfaces/communicationService.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/communicationService.js} +2 -9
- package/dist-esm/src/operationsInterfaces/communicationService.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/communication_examples.d.ts +4 -0
- package/dist-esm/test/communication_examples.d.ts.map +1 -0
- package/dist-esm/test/communication_examples.js +106 -0
- package/dist-esm/test/communication_examples.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-communication.api.md +363 -0
- package/rollup.config.js +181 -30
- package/src/communicationServiceManagementClient.ts +62 -30
- package/{esm/models/operationStatusesMappers.js → src/index.ts} +5 -2
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +338 -738
- package/src/models/mappers.ts +207 -387
- package/src/models/parameters.ts +81 -45
- package/src/operations/communicationService.ts +517 -506
- package/src/operations/index.ts +1 -3
- package/src/operations/operations.ts +85 -75
- package/src/operationsInterfaces/communicationService.ts +166 -0
- package/src/{models/operationStatusesMappers.ts → operationsInterfaces/index.ts} +2 -6
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +3 -3
- package/types/arm-communication.d.ts +594 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-communication.js +0 -1663
- package/dist/arm-communication.js.map +0 -1
- package/dist/arm-communication.min.js +0 -1
- package/dist/arm-communication.min.js.map +0 -1
- package/esm/communicationServiceManagementClient.d.ts +0 -20
- package/esm/communicationServiceManagementClient.d.ts.map +0 -1
- package/esm/communicationServiceManagementClient.js +0 -34
- package/esm/communicationServiceManagementClient.js.map +0 -1
- package/esm/communicationServiceManagementClientContext.d.ts +0 -16
- package/esm/communicationServiceManagementClientContext.d.ts.map +0 -1
- package/esm/communicationServiceManagementClientContext.js +0 -55
- package/esm/communicationServiceManagementClientContext.js.map +0 -1
- package/esm/models/communicationServiceMappers.d.ts +0 -2
- package/esm/models/communicationServiceMappers.d.ts.map +0 -1
- package/esm/models/communicationServiceMappers.js +0 -9
- package/esm/models/communicationServiceMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -823
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -28
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationStatusesMappers.d.ts +0 -2
- package/esm/models/operationStatusesMappers.d.ts.map +0 -1
- package/esm/models/operationStatusesMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -106
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/communicationService.d.ts +0 -253
- package/esm/operations/communicationService.d.ts.map +0 -1
- package/esm/operations/communicationService.js +0 -471
- package/esm/operations/communicationService.js.map +0 -1
- package/esm/operations/index.d.ts +0 -4
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operationStatuses.d.ts +0 -35
- package/esm/operations/operationStatuses.d.ts.map +0 -1
- package/esm/operations/operationStatuses.js +0 -56
- package/esm/operations/operationStatuses.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -48
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/src/communicationServiceManagementClientContext.ts +0 -61
- package/src/models/communicationServiceMappers.ts +0 -24
- package/src/operations/operationStatuses.ts +0 -86
|
@@ -0,0 +1,570 @@
|
|
|
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, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing CommunicationService operations. */
|
|
16
|
+
export class CommunicationServiceImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class CommunicationService class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Handles requests to list all resources in a subscription.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listBySubscription(options) {
|
|
29
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listBySubscriptionPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listBySubscriptionPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listBySubscription(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listBySubscriptionPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Handles requests to list all resources in a resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Checks that the CommunicationService name is valid and is not already in use.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
checkNameAvailability(options) {
|
|
126
|
+
return this.client.sendOperationRequest({ options }, checkNameAvailabilityOperationSpec);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Links an Azure Notification Hub to this communication service.
|
|
130
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
131
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
132
|
+
* @param options The options parameters.
|
|
133
|
+
*/
|
|
134
|
+
linkNotificationHub(resourceGroupName, communicationServiceName, options) {
|
|
135
|
+
return this.client.sendOperationRequest({ resourceGroupName, communicationServiceName, options }, linkNotificationHubOperationSpec);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Handles requests to list all resources in a subscription.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
_listBySubscription(options) {
|
|
142
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Handles requests to list all resources in a resource group.
|
|
146
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
150
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Operation to update an existing CommunicationService.
|
|
154
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
155
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
update(resourceGroupName, communicationServiceName, options) {
|
|
159
|
+
return this.client.sendOperationRequest({ resourceGroupName, communicationServiceName, options }, updateOperationSpec);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Get the CommunicationService and its properties.
|
|
163
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
164
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
get(resourceGroupName, communicationServiceName, options) {
|
|
168
|
+
return this.client.sendOperationRequest({ resourceGroupName, communicationServiceName, options }, getOperationSpec);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Create a new CommunicationService or update an existing CommunicationService.
|
|
172
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
173
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
beginCreateOrUpdate(resourceGroupName, communicationServiceName, options) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
return this.client.sendOperationRequest(args, spec);
|
|
180
|
+
});
|
|
181
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
var _a;
|
|
183
|
+
let currentRawResponse = undefined;
|
|
184
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
185
|
+
const callback = (rawResponse, flatResponse) => {
|
|
186
|
+
currentRawResponse = rawResponse;
|
|
187
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
188
|
+
};
|
|
189
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
190
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
191
|
+
return {
|
|
192
|
+
flatResponse,
|
|
193
|
+
rawResponse: {
|
|
194
|
+
statusCode: currentRawResponse.status,
|
|
195
|
+
body: currentRawResponse.parsedBody,
|
|
196
|
+
headers: currentRawResponse.headers.toJSON()
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
});
|
|
200
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, communicationServiceName, options }, createOrUpdateOperationSpec);
|
|
201
|
+
return new LroEngine(lro, {
|
|
202
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
203
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
204
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Create a new CommunicationService or update an existing CommunicationService.
|
|
210
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
211
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
212
|
+
* @param options The options parameters.
|
|
213
|
+
*/
|
|
214
|
+
beginCreateOrUpdateAndWait(resourceGroupName, communicationServiceName, options) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, communicationServiceName, options);
|
|
217
|
+
return poller.pollUntilDone();
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Operation to delete a CommunicationService.
|
|
222
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
223
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
224
|
+
* @param options The options parameters.
|
|
225
|
+
*/
|
|
226
|
+
beginDelete(resourceGroupName, communicationServiceName, options) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
return this.client.sendOperationRequest(args, spec);
|
|
230
|
+
});
|
|
231
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
var _a;
|
|
233
|
+
let currentRawResponse = undefined;
|
|
234
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
235
|
+
const callback = (rawResponse, flatResponse) => {
|
|
236
|
+
currentRawResponse = rawResponse;
|
|
237
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
238
|
+
};
|
|
239
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
240
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
241
|
+
return {
|
|
242
|
+
flatResponse,
|
|
243
|
+
rawResponse: {
|
|
244
|
+
statusCode: currentRawResponse.status,
|
|
245
|
+
body: currentRawResponse.parsedBody,
|
|
246
|
+
headers: currentRawResponse.headers.toJSON()
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
});
|
|
250
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, communicationServiceName, options }, deleteOperationSpec);
|
|
251
|
+
return new LroEngine(lro, {
|
|
252
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
253
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
254
|
+
lroResourceLocationConfig: "location"
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Operation to delete a CommunicationService.
|
|
260
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
261
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
262
|
+
* @param options The options parameters.
|
|
263
|
+
*/
|
|
264
|
+
beginDeleteAndWait(resourceGroupName, communicationServiceName, options) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const poller = yield this.beginDelete(resourceGroupName, communicationServiceName, options);
|
|
267
|
+
return poller.pollUntilDone();
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Get the access keys of the CommunicationService resource.
|
|
272
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
273
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
274
|
+
* @param options The options parameters.
|
|
275
|
+
*/
|
|
276
|
+
listKeys(resourceGroupName, communicationServiceName, options) {
|
|
277
|
+
return this.client.sendOperationRequest({ resourceGroupName, communicationServiceName, options }, listKeysOperationSpec);
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the
|
|
281
|
+
* same time.
|
|
282
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
283
|
+
* @param communicationServiceName The name of the CommunicationService resource.
|
|
284
|
+
* @param parameters Parameter that describes the Regenerate Key Operation.
|
|
285
|
+
* @param options The options parameters.
|
|
286
|
+
*/
|
|
287
|
+
regenerateKey(resourceGroupName, communicationServiceName, parameters, options) {
|
|
288
|
+
return this.client.sendOperationRequest({ resourceGroupName, communicationServiceName, parameters, options }, regenerateKeyOperationSpec);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* ListBySubscriptionNext
|
|
292
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
293
|
+
* @param options The options parameters.
|
|
294
|
+
*/
|
|
295
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
296
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* ListByResourceGroupNext
|
|
300
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
301
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
302
|
+
* @param options The options parameters.
|
|
303
|
+
*/
|
|
304
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
305
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
// Operation Specifications
|
|
309
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
310
|
+
const checkNameAvailabilityOperationSpec = {
|
|
311
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Communication/checkNameAvailability",
|
|
312
|
+
httpMethod: "POST",
|
|
313
|
+
responses: {
|
|
314
|
+
200: {
|
|
315
|
+
bodyMapper: Mappers.NameAvailability
|
|
316
|
+
},
|
|
317
|
+
default: {
|
|
318
|
+
bodyMapper: Mappers.ErrorResponse
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
requestBody: Parameters.nameAvailabilityParameters,
|
|
322
|
+
queryParameters: [Parameters.apiVersion],
|
|
323
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
324
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
325
|
+
mediaType: "json",
|
|
326
|
+
serializer
|
|
327
|
+
};
|
|
328
|
+
const linkNotificationHubOperationSpec = {
|
|
329
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub",
|
|
330
|
+
httpMethod: "POST",
|
|
331
|
+
responses: {
|
|
332
|
+
200: {
|
|
333
|
+
bodyMapper: Mappers.LinkedNotificationHub
|
|
334
|
+
},
|
|
335
|
+
default: {
|
|
336
|
+
bodyMapper: Mappers.ErrorResponse
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
requestBody: Parameters.linkNotificationHubParameters,
|
|
340
|
+
queryParameters: [Parameters.apiVersion],
|
|
341
|
+
urlParameters: [
|
|
342
|
+
Parameters.$host,
|
|
343
|
+
Parameters.subscriptionId,
|
|
344
|
+
Parameters.resourceGroupName,
|
|
345
|
+
Parameters.communicationServiceName
|
|
346
|
+
],
|
|
347
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
348
|
+
mediaType: "json",
|
|
349
|
+
serializer
|
|
350
|
+
};
|
|
351
|
+
const listBySubscriptionOperationSpec = {
|
|
352
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Communication/communicationServices",
|
|
353
|
+
httpMethod: "GET",
|
|
354
|
+
responses: {
|
|
355
|
+
200: {
|
|
356
|
+
bodyMapper: Mappers.CommunicationServiceResourceList
|
|
357
|
+
},
|
|
358
|
+
default: {
|
|
359
|
+
bodyMapper: Mappers.ErrorResponse
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
queryParameters: [Parameters.apiVersion],
|
|
363
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
364
|
+
headerParameters: [Parameters.accept],
|
|
365
|
+
serializer
|
|
366
|
+
};
|
|
367
|
+
const listByResourceGroupOperationSpec = {
|
|
368
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices",
|
|
369
|
+
httpMethod: "GET",
|
|
370
|
+
responses: {
|
|
371
|
+
200: {
|
|
372
|
+
bodyMapper: Mappers.CommunicationServiceResourceList
|
|
373
|
+
},
|
|
374
|
+
default: {
|
|
375
|
+
bodyMapper: Mappers.ErrorResponse
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
|
+
urlParameters: [
|
|
380
|
+
Parameters.$host,
|
|
381
|
+
Parameters.subscriptionId,
|
|
382
|
+
Parameters.resourceGroupName
|
|
383
|
+
],
|
|
384
|
+
headerParameters: [Parameters.accept],
|
|
385
|
+
serializer
|
|
386
|
+
};
|
|
387
|
+
const updateOperationSpec = {
|
|
388
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
|
|
389
|
+
httpMethod: "PATCH",
|
|
390
|
+
responses: {
|
|
391
|
+
200: {
|
|
392
|
+
bodyMapper: Mappers.CommunicationServiceResource
|
|
393
|
+
},
|
|
394
|
+
default: {
|
|
395
|
+
bodyMapper: Mappers.ErrorResponse
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
requestBody: Parameters.parameters,
|
|
399
|
+
queryParameters: [Parameters.apiVersion],
|
|
400
|
+
urlParameters: [
|
|
401
|
+
Parameters.$host,
|
|
402
|
+
Parameters.subscriptionId,
|
|
403
|
+
Parameters.resourceGroupName,
|
|
404
|
+
Parameters.communicationServiceName
|
|
405
|
+
],
|
|
406
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
407
|
+
mediaType: "json",
|
|
408
|
+
serializer
|
|
409
|
+
};
|
|
410
|
+
const getOperationSpec = {
|
|
411
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
|
|
412
|
+
httpMethod: "GET",
|
|
413
|
+
responses: {
|
|
414
|
+
200: {
|
|
415
|
+
bodyMapper: Mappers.CommunicationServiceResource
|
|
416
|
+
},
|
|
417
|
+
default: {
|
|
418
|
+
bodyMapper: Mappers.ErrorResponse
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
queryParameters: [Parameters.apiVersion],
|
|
422
|
+
urlParameters: [
|
|
423
|
+
Parameters.$host,
|
|
424
|
+
Parameters.subscriptionId,
|
|
425
|
+
Parameters.resourceGroupName,
|
|
426
|
+
Parameters.communicationServiceName
|
|
427
|
+
],
|
|
428
|
+
headerParameters: [Parameters.accept],
|
|
429
|
+
serializer
|
|
430
|
+
};
|
|
431
|
+
const createOrUpdateOperationSpec = {
|
|
432
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
|
|
433
|
+
httpMethod: "PUT",
|
|
434
|
+
responses: {
|
|
435
|
+
200: {
|
|
436
|
+
bodyMapper: Mappers.CommunicationServiceResource
|
|
437
|
+
},
|
|
438
|
+
201: {
|
|
439
|
+
bodyMapper: Mappers.CommunicationServiceResource
|
|
440
|
+
},
|
|
441
|
+
202: {
|
|
442
|
+
bodyMapper: Mappers.CommunicationServiceResource
|
|
443
|
+
},
|
|
444
|
+
204: {
|
|
445
|
+
bodyMapper: Mappers.CommunicationServiceResource
|
|
446
|
+
},
|
|
447
|
+
default: {
|
|
448
|
+
bodyMapper: Mappers.ErrorResponse
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
requestBody: Parameters.parameters,
|
|
452
|
+
queryParameters: [Parameters.apiVersion],
|
|
453
|
+
urlParameters: [
|
|
454
|
+
Parameters.$host,
|
|
455
|
+
Parameters.subscriptionId,
|
|
456
|
+
Parameters.resourceGroupName,
|
|
457
|
+
Parameters.communicationServiceName
|
|
458
|
+
],
|
|
459
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
460
|
+
mediaType: "json",
|
|
461
|
+
serializer
|
|
462
|
+
};
|
|
463
|
+
const deleteOperationSpec = {
|
|
464
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
|
|
465
|
+
httpMethod: "DELETE",
|
|
466
|
+
responses: {
|
|
467
|
+
200: {},
|
|
468
|
+
201: {},
|
|
469
|
+
202: {},
|
|
470
|
+
204: {},
|
|
471
|
+
default: {
|
|
472
|
+
bodyMapper: Mappers.ErrorResponse
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
queryParameters: [Parameters.apiVersion],
|
|
476
|
+
urlParameters: [
|
|
477
|
+
Parameters.$host,
|
|
478
|
+
Parameters.subscriptionId,
|
|
479
|
+
Parameters.resourceGroupName,
|
|
480
|
+
Parameters.communicationServiceName
|
|
481
|
+
],
|
|
482
|
+
headerParameters: [Parameters.accept],
|
|
483
|
+
serializer
|
|
484
|
+
};
|
|
485
|
+
const listKeysOperationSpec = {
|
|
486
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/listKeys",
|
|
487
|
+
httpMethod: "POST",
|
|
488
|
+
responses: {
|
|
489
|
+
200: {
|
|
490
|
+
bodyMapper: Mappers.CommunicationServiceKeys
|
|
491
|
+
},
|
|
492
|
+
default: {
|
|
493
|
+
bodyMapper: Mappers.ErrorResponse
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
queryParameters: [Parameters.apiVersion],
|
|
497
|
+
urlParameters: [
|
|
498
|
+
Parameters.$host,
|
|
499
|
+
Parameters.subscriptionId,
|
|
500
|
+
Parameters.resourceGroupName,
|
|
501
|
+
Parameters.communicationServiceName
|
|
502
|
+
],
|
|
503
|
+
headerParameters: [Parameters.accept],
|
|
504
|
+
serializer
|
|
505
|
+
};
|
|
506
|
+
const regenerateKeyOperationSpec = {
|
|
507
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey",
|
|
508
|
+
httpMethod: "POST",
|
|
509
|
+
responses: {
|
|
510
|
+
200: {
|
|
511
|
+
bodyMapper: Mappers.CommunicationServiceKeys
|
|
512
|
+
},
|
|
513
|
+
default: {
|
|
514
|
+
bodyMapper: Mappers.ErrorResponse
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
requestBody: Parameters.parameters1,
|
|
518
|
+
queryParameters: [Parameters.apiVersion],
|
|
519
|
+
urlParameters: [
|
|
520
|
+
Parameters.$host,
|
|
521
|
+
Parameters.subscriptionId,
|
|
522
|
+
Parameters.resourceGroupName,
|
|
523
|
+
Parameters.communicationServiceName
|
|
524
|
+
],
|
|
525
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
526
|
+
mediaType: "json",
|
|
527
|
+
serializer
|
|
528
|
+
};
|
|
529
|
+
const listBySubscriptionNextOperationSpec = {
|
|
530
|
+
path: "{nextLink}",
|
|
531
|
+
httpMethod: "GET",
|
|
532
|
+
responses: {
|
|
533
|
+
200: {
|
|
534
|
+
bodyMapper: Mappers.CommunicationServiceResourceList
|
|
535
|
+
},
|
|
536
|
+
default: {
|
|
537
|
+
bodyMapper: Mappers.ErrorResponse
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
queryParameters: [Parameters.apiVersion],
|
|
541
|
+
urlParameters: [
|
|
542
|
+
Parameters.$host,
|
|
543
|
+
Parameters.nextLink,
|
|
544
|
+
Parameters.subscriptionId
|
|
545
|
+
],
|
|
546
|
+
headerParameters: [Parameters.accept],
|
|
547
|
+
serializer
|
|
548
|
+
};
|
|
549
|
+
const listByResourceGroupNextOperationSpec = {
|
|
550
|
+
path: "{nextLink}",
|
|
551
|
+
httpMethod: "GET",
|
|
552
|
+
responses: {
|
|
553
|
+
200: {
|
|
554
|
+
bodyMapper: Mappers.CommunicationServiceResourceList
|
|
555
|
+
},
|
|
556
|
+
default: {
|
|
557
|
+
bodyMapper: Mappers.ErrorResponse
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
queryParameters: [Parameters.apiVersion],
|
|
561
|
+
urlParameters: [
|
|
562
|
+
Parameters.$host,
|
|
563
|
+
Parameters.nextLink,
|
|
564
|
+
Parameters.subscriptionId,
|
|
565
|
+
Parameters.resourceGroupName
|
|
566
|
+
],
|
|
567
|
+
headerParameters: [Parameters.accept],
|
|
568
|
+
serializer
|
|
569
|
+
};
|
|
570
|
+
//# sourceMappingURL=communicationService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communicationService.js","sourceRoot":"","sources":["../../../src/operations/communicationService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA6BrC,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IAC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UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
export * from "./operations";
|
|
10
9
|
export * from "./communicationService";
|
|
11
|
-
export * from "./operationStatuses";
|
|
12
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { CommunicationServiceManagementClient } from "../communicationServiceManagementClient";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: CommunicationServiceManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all of the available REST API operations of the Microsoft.Communication provider.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists all of the available REST API operations of the Microsoft.Communication provider.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,oCAAoC,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuC;IAE9D;;;OAGG;gBACS,MAAM,EAAE,oCAAoC;IAIxD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|