@azure/arm-relay 0.1.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.
Files changed (166) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +21 -21
  3. package/README.md +98 -96
  4. package/dist/index.js +2907 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +493 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +9 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +23 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +369 -416
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +20 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +169 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/hybridConnections.d.ts +137 -0
  29. package/dist-esm/src/operations/hybridConnections.d.ts.map +1 -0
  30. package/dist-esm/src/operations/hybridConnections.js +571 -0
  31. package/dist-esm/src/operations/hybridConnections.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +3 -5
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/namespaces.d.ts +174 -0
  37. package/dist-esm/src/operations/namespaces.d.ts.map +1 -0
  38. package/dist-esm/src/operations/namespaces.js +771 -0
  39. package/dist-esm/src/operations/namespaces.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/wCFRelays.d.ts +137 -0
  45. package/dist-esm/src/operations/wCFRelays.d.ts.map +1 -0
  46. package/dist-esm/src/operations/wCFRelays.js +554 -0
  47. package/dist-esm/src/operations/wCFRelays.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/hybridConnections.d.ts +93 -0
  49. package/dist-esm/src/operationsInterfaces/hybridConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/hybridConnections.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/hybridConnections.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/namespaces.d.ts +121 -0
  57. package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/namespaces.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/namespaces.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/wCFRelays.d.ts +93 -0
  65. package/dist-esm/src/operationsInterfaces/wCFRelays.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/wCFRelays.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/wCFRelays.js.map +1 -0
  68. package/dist-esm/src/relayAPI.d.ts +22 -0
  69. package/dist-esm/src/relayAPI.d.ts.map +1 -0
  70. package/dist-esm/src/relayAPI.js +55 -0
  71. package/dist-esm/src/relayAPI.js.map +1 -0
  72. package/dist-esm/test/relay_examples.d.ts +4 -0
  73. package/dist-esm/test/relay_examples.d.ts.map +1 -0
  74. package/dist-esm/test/relay_examples.js +240 -0
  75. package/dist-esm/test/relay_examples.js.map +1 -0
  76. package/package.json +71 -34
  77. package/review/arm-relay.api.md +539 -0
  78. package/rollup.config.js +184 -27
  79. package/src/index.ts +12 -0
  80. package/src/lroImpl.ts +34 -0
  81. package/src/models/index.ts +611 -0
  82. package/{lib → src}/models/mappers.ts +366 -413
  83. package/src/models/parameters.ts +200 -0
  84. package/src/operations/hybridConnections.ts +780 -0
  85. package/{lib → src}/operations/index.ts +3 -5
  86. package/src/operations/namespaces.ts +1028 -0
  87. package/src/operations/operations.ts +137 -0
  88. package/src/operations/wCFRelays.ts +763 -0
  89. package/src/operationsInterfaces/hybridConnections.ts +179 -0
  90. package/src/operationsInterfaces/index.ts +12 -0
  91. package/src/operationsInterfaces/namespaces.ts +228 -0
  92. package/src/operationsInterfaces/operations.ts +22 -0
  93. package/src/operationsInterfaces/wCFRelays.ts +179 -0
  94. package/src/relayAPI.ts +92 -0
  95. package/tsconfig.json +4 -4
  96. package/types/arm-relay.d.ts +931 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-relay.js +0 -2593
  99. package/dist/arm-relay.js.map +0 -1
  100. package/dist/arm-relay.min.js +0 -1
  101. package/dist/arm-relay.min.js.map +0 -1
  102. package/esm/models/hybridConnectionsMappers.d.ts +0 -2
  103. package/esm/models/hybridConnectionsMappers.d.ts.map +0 -1
  104. package/esm/models/hybridConnectionsMappers.js +0 -11
  105. package/esm/models/hybridConnectionsMappers.js.map +0 -1
  106. package/esm/models/index.d.ts +0 -1231
  107. package/esm/models/index.d.ts.map +0 -1
  108. package/esm/models/index.js +0 -10
  109. package/esm/models/index.js.map +0 -1
  110. package/esm/models/mappers.d.ts +0 -25
  111. package/esm/models/mappers.d.ts.map +0 -1
  112. package/esm/models/mappers.js.map +0 -1
  113. package/esm/models/namespacesMappers.d.ts +0 -2
  114. package/esm/models/namespacesMappers.d.ts.map +0 -1
  115. package/esm/models/namespacesMappers.js +0 -11
  116. package/esm/models/namespacesMappers.js.map +0 -1
  117. package/esm/models/operationsMappers.d.ts +0 -2
  118. package/esm/models/operationsMappers.d.ts.map +0 -1
  119. package/esm/models/operationsMappers.js +0 -11
  120. package/esm/models/operationsMappers.js.map +0 -1
  121. package/esm/models/parameters.d.ts +0 -11
  122. package/esm/models/parameters.d.ts.map +0 -1
  123. package/esm/models/parameters.js +0 -118
  124. package/esm/models/parameters.js.map +0 -1
  125. package/esm/models/wCFRelaysMappers.d.ts +0 -2
  126. package/esm/models/wCFRelaysMappers.d.ts.map +0 -1
  127. package/esm/models/wCFRelaysMappers.js +0 -11
  128. package/esm/models/wCFRelaysMappers.js.map +0 -1
  129. package/esm/operations/hybridConnections.d.ts +0 -310
  130. package/esm/operations/hybridConnections.d.ts.map +0 -1
  131. package/esm/operations/hybridConnections.js +0 -431
  132. package/esm/operations/hybridConnections.js.map +0 -1
  133. package/esm/operations/index.d.ts.map +0 -1
  134. package/esm/operations/index.js.map +0 -1
  135. package/esm/operations/namespaces.d.ts +0 -348
  136. package/esm/operations/namespaces.d.ts.map +0 -1
  137. package/esm/operations/namespaces.js +0 -579
  138. package/esm/operations/namespaces.js.map +0 -1
  139. package/esm/operations/operations.d.ts +0 -46
  140. package/esm/operations/operations.d.ts.map +0 -1
  141. package/esm/operations/operations.js +0 -77
  142. package/esm/operations/operations.js.map +0 -1
  143. package/esm/operations/wCFRelays.d.ts +0 -310
  144. package/esm/operations/wCFRelays.d.ts.map +0 -1
  145. package/esm/operations/wCFRelays.js +0 -432
  146. package/esm/operations/wCFRelays.js.map +0 -1
  147. package/esm/relayManagementClient.d.ts +0 -22
  148. package/esm/relayManagementClient.d.ts.map +0 -1
  149. package/esm/relayManagementClient.js +0 -37
  150. package/esm/relayManagementClient.js.map +0 -1
  151. package/esm/relayManagementClientContext.d.ts +0 -17
  152. package/esm/relayManagementClientContext.d.ts.map +0 -1
  153. package/esm/relayManagementClientContext.js +0 -57
  154. package/esm/relayManagementClientContext.js.map +0 -1
  155. package/lib/models/hybridConnectionsMappers.ts +0 -28
  156. package/lib/models/index.ts +0 -1304
  157. package/lib/models/namespacesMappers.ts +0 -30
  158. package/lib/models/operationsMappers.ts +0 -17
  159. package/lib/models/parameters.ts +0 -120
  160. package/lib/models/wCFRelaysMappers.ts +0 -29
  161. package/lib/operations/hybridConnections.ts +0 -799
  162. package/lib/operations/namespaces.ts +0 -977
  163. package/lib/operations/operations.ts +0 -123
  164. package/lib/operations/wCFRelays.ts +0 -800
  165. package/lib/relayManagementClient.ts +0 -49
  166. package/lib/relayManagementClientContext.ts +0 -63
package/dist/arm-relay.js DELETED
@@ -1,2593 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
12
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
13
- (factory((global.Azure = global.Azure || {}, global.Azure.ArmRelay = {}),global.msRestAzure,global.msRest));
14
- }(this, (function (exports,msRestAzure,msRest) { 'use strict';
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation. All rights reserved.
18
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
19
- this file except in compliance with the License. You may obtain a copy of the
20
- License at http://www.apache.org/licenses/LICENSE-2.0
21
-
22
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
24
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
25
- MERCHANTABLITY OR NON-INFRINGEMENT.
26
-
27
- See the Apache Version 2.0 License for specific language governing permissions
28
- and limitations under the License.
29
- ***************************************************************************** */
30
- /* global Reflect, Promise */
31
-
32
- var extendStatics = function(d, b) {
33
- extendStatics = Object.setPrototypeOf ||
34
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
35
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36
- return extendStatics(d, b);
37
- };
38
-
39
- function __extends(d, b) {
40
- extendStatics(d, b);
41
- function __() { this.constructor = d; }
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- }
44
-
45
- var __assign = function() {
46
- __assign = Object.assign || function __assign(t) {
47
- for (var s, i = 1, n = arguments.length; i < n; i++) {
48
- s = arguments[i];
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
55
-
56
- /*
57
- * Copyright (c) Microsoft Corporation. All rights reserved.
58
- * Licensed under the MIT License. See License.txt in the project root for
59
- * license information.
60
- *
61
- * Code generated by Microsoft (R) AutoRest Code Generator.
62
- * Changes may cause incorrect behavior and will be lost if the code is
63
- * regenerated.
64
- */
65
-
66
- var index = /*#__PURE__*/Object.freeze({
67
-
68
- });
69
-
70
- /*
71
- * Copyright (c) Microsoft Corporation. All rights reserved.
72
- * Licensed under the MIT License. See License.txt in the project root for
73
- * license information.
74
- *
75
- * Code generated by Microsoft (R) AutoRest Code Generator.
76
- * Changes may cause incorrect behavior and will be lost if the code is
77
- * regenerated.
78
- */
79
- var CloudError = msRestAzure.CloudErrorMapper;
80
- var BaseResource = msRestAzure.BaseResourceMapper;
81
- var Resource = {
82
- serializedName: "Resource",
83
- type: {
84
- name: "Composite",
85
- className: "Resource",
86
- modelProperties: {
87
- id: {
88
- readOnly: true,
89
- serializedName: "id",
90
- type: {
91
- name: "String"
92
- }
93
- },
94
- name: {
95
- readOnly: true,
96
- serializedName: "name",
97
- type: {
98
- name: "String"
99
- }
100
- },
101
- type: {
102
- readOnly: true,
103
- serializedName: "type",
104
- type: {
105
- name: "String"
106
- }
107
- }
108
- }
109
- }
110
- };
111
- var TrackedResource = {
112
- serializedName: "TrackedResource",
113
- type: {
114
- name: "Composite",
115
- className: "TrackedResource",
116
- modelProperties: __assign({}, Resource.type.modelProperties, { location: {
117
- required: true,
118
- serializedName: "location",
119
- type: {
120
- name: "String"
121
- }
122
- }, tags: {
123
- serializedName: "tags",
124
- type: {
125
- name: "Dictionary",
126
- value: {
127
- type: {
128
- name: "String"
129
- }
130
- }
131
- }
132
- } })
133
- }
134
- };
135
- var ResourceNamespacePatch = {
136
- serializedName: "ResourceNamespacePatch",
137
- type: {
138
- name: "Composite",
139
- className: "ResourceNamespacePatch",
140
- modelProperties: __assign({}, Resource.type.modelProperties, { tags: {
141
- serializedName: "tags",
142
- type: {
143
- name: "Dictionary",
144
- value: {
145
- type: {
146
- name: "String"
147
- }
148
- }
149
- }
150
- } })
151
- }
152
- };
153
- var HybridConnection = {
154
- serializedName: "HybridConnection",
155
- type: {
156
- name: "Composite",
157
- className: "HybridConnection",
158
- modelProperties: __assign({}, Resource.type.modelProperties, { createdAt: {
159
- readOnly: true,
160
- serializedName: "properties.createdAt",
161
- type: {
162
- name: "DateTime"
163
- }
164
- }, updatedAt: {
165
- readOnly: true,
166
- serializedName: "properties.updatedAt",
167
- type: {
168
- name: "DateTime"
169
- }
170
- }, listenerCount: {
171
- readOnly: true,
172
- serializedName: "properties.listenerCount",
173
- constraints: {
174
- InclusiveMaximum: 25,
175
- InclusiveMinimum: 0
176
- },
177
- type: {
178
- name: "Number"
179
- }
180
- }, requiresClientAuthorization: {
181
- serializedName: "properties.requiresClientAuthorization",
182
- type: {
183
- name: "Boolean"
184
- }
185
- }, userMetadata: {
186
- serializedName: "properties.userMetadata",
187
- type: {
188
- name: "String"
189
- }
190
- } })
191
- }
192
- };
193
- var WcfRelay = {
194
- serializedName: "WcfRelay",
195
- type: {
196
- name: "Composite",
197
- className: "WcfRelay",
198
- modelProperties: __assign({}, Resource.type.modelProperties, { isDynamic: {
199
- readOnly: true,
200
- serializedName: "properties.isDynamic",
201
- type: {
202
- name: "Boolean"
203
- }
204
- }, createdAt: {
205
- readOnly: true,
206
- serializedName: "properties.createdAt",
207
- type: {
208
- name: "DateTime"
209
- }
210
- }, updatedAt: {
211
- readOnly: true,
212
- serializedName: "properties.updatedAt",
213
- type: {
214
- name: "DateTime"
215
- }
216
- }, listenerCount: {
217
- readOnly: true,
218
- serializedName: "properties.listenerCount",
219
- constraints: {
220
- InclusiveMaximum: 25,
221
- InclusiveMinimum: 0
222
- },
223
- type: {
224
- name: "Number"
225
- }
226
- }, relayType: {
227
- serializedName: "properties.relayType",
228
- type: {
229
- name: "Enum",
230
- allowedValues: [
231
- "NetTcp",
232
- "Http"
233
- ]
234
- }
235
- }, requiresClientAuthorization: {
236
- serializedName: "properties.requiresClientAuthorization",
237
- type: {
238
- name: "Boolean"
239
- }
240
- }, requiresTransportSecurity: {
241
- serializedName: "properties.requiresTransportSecurity",
242
- type: {
243
- name: "Boolean"
244
- }
245
- }, userMetadata: {
246
- serializedName: "properties.userMetadata",
247
- type: {
248
- name: "String"
249
- }
250
- } })
251
- }
252
- };
253
- var Sku = {
254
- serializedName: "Sku",
255
- type: {
256
- name: "Composite",
257
- className: "Sku",
258
- modelProperties: {
259
- name: {
260
- required: true,
261
- isConstant: true,
262
- serializedName: "name",
263
- defaultValue: 'Standard',
264
- type: {
265
- name: "String"
266
- }
267
- },
268
- tier: {
269
- serializedName: "tier",
270
- type: {
271
- name: "Enum",
272
- allowedValues: [
273
- "Standard"
274
- ]
275
- }
276
- }
277
- }
278
- }
279
- };
280
- var RelayNamespace = {
281
- serializedName: "RelayNamespace",
282
- type: {
283
- name: "Composite",
284
- className: "RelayNamespace",
285
- modelProperties: __assign({}, TrackedResource.type.modelProperties, { sku: {
286
- serializedName: "sku",
287
- type: {
288
- name: "Composite",
289
- className: "Sku"
290
- }
291
- }, provisioningState: {
292
- readOnly: true,
293
- serializedName: "properties.provisioningState",
294
- type: {
295
- name: "Enum",
296
- allowedValues: [
297
- "Created",
298
- "Succeeded",
299
- "Deleted",
300
- "Failed",
301
- "Updating",
302
- "Unknown"
303
- ]
304
- }
305
- }, createdAt: {
306
- readOnly: true,
307
- serializedName: "properties.createdAt",
308
- type: {
309
- name: "DateTime"
310
- }
311
- }, updatedAt: {
312
- readOnly: true,
313
- serializedName: "properties.updatedAt",
314
- type: {
315
- name: "DateTime"
316
- }
317
- }, serviceBusEndpoint: {
318
- readOnly: true,
319
- serializedName: "properties.serviceBusEndpoint",
320
- type: {
321
- name: "String"
322
- }
323
- }, metricId: {
324
- readOnly: true,
325
- serializedName: "properties.metricId",
326
- type: {
327
- name: "String"
328
- }
329
- } })
330
- }
331
- };
332
- var RelayUpdateParameters = {
333
- serializedName: "RelayUpdateParameters",
334
- type: {
335
- name: "Composite",
336
- className: "RelayUpdateParameters",
337
- modelProperties: __assign({}, ResourceNamespacePatch.type.modelProperties, { sku: {
338
- serializedName: "sku",
339
- type: {
340
- name: "Composite",
341
- className: "Sku"
342
- }
343
- }, provisioningState: {
344
- readOnly: true,
345
- serializedName: "properties.provisioningState",
346
- type: {
347
- name: "Enum",
348
- allowedValues: [
349
- "Created",
350
- "Succeeded",
351
- "Deleted",
352
- "Failed",
353
- "Updating",
354
- "Unknown"
355
- ]
356
- }
357
- }, createdAt: {
358
- readOnly: true,
359
- serializedName: "properties.createdAt",
360
- type: {
361
- name: "DateTime"
362
- }
363
- }, updatedAt: {
364
- readOnly: true,
365
- serializedName: "properties.updatedAt",
366
- type: {
367
- name: "DateTime"
368
- }
369
- }, serviceBusEndpoint: {
370
- readOnly: true,
371
- serializedName: "properties.serviceBusEndpoint",
372
- type: {
373
- name: "String"
374
- }
375
- }, metricId: {
376
- readOnly: true,
377
- serializedName: "properties.metricId",
378
- type: {
379
- name: "String"
380
- }
381
- } })
382
- }
383
- };
384
- var AuthorizationRule = {
385
- serializedName: "AuthorizationRule",
386
- type: {
387
- name: "Composite",
388
- className: "AuthorizationRule",
389
- modelProperties: __assign({}, Resource.type.modelProperties, { rights: {
390
- required: true,
391
- serializedName: "properties.rights",
392
- constraints: {
393
- UniqueItems: true
394
- },
395
- type: {
396
- name: "Sequence",
397
- element: {
398
- type: {
399
- name: "Enum",
400
- allowedValues: [
401
- "Manage",
402
- "Send",
403
- "Listen"
404
- ]
405
- }
406
- }
407
- }
408
- } })
409
- }
410
- };
411
- var AccessKeys = {
412
- serializedName: "AccessKeys",
413
- type: {
414
- name: "Composite",
415
- className: "AccessKeys",
416
- modelProperties: {
417
- primaryConnectionString: {
418
- serializedName: "primaryConnectionString",
419
- type: {
420
- name: "String"
421
- }
422
- },
423
- secondaryConnectionString: {
424
- serializedName: "secondaryConnectionString",
425
- type: {
426
- name: "String"
427
- }
428
- },
429
- primaryKey: {
430
- serializedName: "primaryKey",
431
- type: {
432
- name: "String"
433
- }
434
- },
435
- secondaryKey: {
436
- serializedName: "secondaryKey",
437
- type: {
438
- name: "String"
439
- }
440
- },
441
- keyName: {
442
- serializedName: "keyName",
443
- type: {
444
- name: "String"
445
- }
446
- }
447
- }
448
- }
449
- };
450
- var RegenerateAccessKeyParameters = {
451
- serializedName: "RegenerateAccessKeyParameters",
452
- type: {
453
- name: "Composite",
454
- className: "RegenerateAccessKeyParameters",
455
- modelProperties: {
456
- keyType: {
457
- required: true,
458
- serializedName: "keyType",
459
- type: {
460
- name: "Enum",
461
- allowedValues: [
462
- "PrimaryKey",
463
- "SecondaryKey"
464
- ]
465
- }
466
- },
467
- key: {
468
- serializedName: "key",
469
- type: {
470
- name: "String"
471
- }
472
- }
473
- }
474
- }
475
- };
476
- var CheckNameAvailability = {
477
- serializedName: "CheckNameAvailability",
478
- type: {
479
- name: "Composite",
480
- className: "CheckNameAvailability",
481
- modelProperties: {
482
- name: {
483
- required: true,
484
- serializedName: "name",
485
- type: {
486
- name: "String"
487
- }
488
- }
489
- }
490
- }
491
- };
492
- var CheckNameAvailabilityResult = {
493
- serializedName: "CheckNameAvailabilityResult",
494
- type: {
495
- name: "Composite",
496
- className: "CheckNameAvailabilityResult",
497
- modelProperties: {
498
- message: {
499
- readOnly: true,
500
- serializedName: "message",
501
- type: {
502
- name: "String"
503
- }
504
- },
505
- nameAvailable: {
506
- serializedName: "nameAvailable",
507
- type: {
508
- name: "Boolean"
509
- }
510
- },
511
- reason: {
512
- serializedName: "reason",
513
- type: {
514
- name: "Enum",
515
- allowedValues: [
516
- "None",
517
- "InvalidName",
518
- "SubscriptionIsDisabled",
519
- "NameInUse",
520
- "NameInLockdown",
521
- "TooManyNamespaceInCurrentSubscription"
522
- ]
523
- }
524
- }
525
- }
526
- }
527
- };
528
- var OperationDisplay = {
529
- serializedName: "Operation_display",
530
- type: {
531
- name: "Composite",
532
- className: "OperationDisplay",
533
- modelProperties: {
534
- provider: {
535
- readOnly: true,
536
- serializedName: "provider",
537
- type: {
538
- name: "String"
539
- }
540
- },
541
- resource: {
542
- readOnly: true,
543
- serializedName: "resource",
544
- type: {
545
- name: "String"
546
- }
547
- },
548
- operation: {
549
- readOnly: true,
550
- serializedName: "operation",
551
- type: {
552
- name: "String"
553
- }
554
- }
555
- }
556
- }
557
- };
558
- var Operation = {
559
- serializedName: "Operation",
560
- type: {
561
- name: "Composite",
562
- className: "Operation",
563
- modelProperties: {
564
- name: {
565
- readOnly: true,
566
- serializedName: "name",
567
- type: {
568
- name: "String"
569
- }
570
- },
571
- display: {
572
- serializedName: "display",
573
- type: {
574
- name: "Composite",
575
- className: "OperationDisplay"
576
- }
577
- }
578
- }
579
- }
580
- };
581
- var ErrorResponse = {
582
- serializedName: "ErrorResponse",
583
- type: {
584
- name: "Composite",
585
- className: "ErrorResponse",
586
- modelProperties: {
587
- code: {
588
- serializedName: "code",
589
- type: {
590
- name: "String"
591
- }
592
- },
593
- message: {
594
- serializedName: "message",
595
- type: {
596
- name: "String"
597
- }
598
- }
599
- }
600
- }
601
- };
602
- var OperationListResult = {
603
- serializedName: "OperationListResult",
604
- type: {
605
- name: "Composite",
606
- className: "OperationListResult",
607
- modelProperties: {
608
- value: {
609
- readOnly: true,
610
- serializedName: "",
611
- type: {
612
- name: "Sequence",
613
- element: {
614
- type: {
615
- name: "Composite",
616
- className: "Operation"
617
- }
618
- }
619
- }
620
- },
621
- nextLink: {
622
- readOnly: true,
623
- serializedName: "nextLink",
624
- type: {
625
- name: "String"
626
- }
627
- }
628
- }
629
- }
630
- };
631
- var RelayNamespaceListResult = {
632
- serializedName: "RelayNamespaceListResult",
633
- type: {
634
- name: "Composite",
635
- className: "RelayNamespaceListResult",
636
- modelProperties: {
637
- value: {
638
- serializedName: "",
639
- type: {
640
- name: "Sequence",
641
- element: {
642
- type: {
643
- name: "Composite",
644
- className: "RelayNamespace"
645
- }
646
- }
647
- }
648
- },
649
- nextLink: {
650
- serializedName: "nextLink",
651
- type: {
652
- name: "String"
653
- }
654
- }
655
- }
656
- }
657
- };
658
- var AuthorizationRuleListResult = {
659
- serializedName: "AuthorizationRuleListResult",
660
- type: {
661
- name: "Composite",
662
- className: "AuthorizationRuleListResult",
663
- modelProperties: {
664
- value: {
665
- serializedName: "",
666
- type: {
667
- name: "Sequence",
668
- element: {
669
- type: {
670
- name: "Composite",
671
- className: "AuthorizationRule"
672
- }
673
- }
674
- }
675
- },
676
- nextLink: {
677
- serializedName: "nextLink",
678
- type: {
679
- name: "String"
680
- }
681
- }
682
- }
683
- }
684
- };
685
- var HybridConnectionListResult = {
686
- serializedName: "HybridConnectionListResult",
687
- type: {
688
- name: "Composite",
689
- className: "HybridConnectionListResult",
690
- modelProperties: {
691
- value: {
692
- serializedName: "",
693
- type: {
694
- name: "Sequence",
695
- element: {
696
- type: {
697
- name: "Composite",
698
- className: "HybridConnection"
699
- }
700
- }
701
- }
702
- },
703
- nextLink: {
704
- serializedName: "nextLink",
705
- type: {
706
- name: "String"
707
- }
708
- }
709
- }
710
- }
711
- };
712
- var WcfRelaysListResult = {
713
- serializedName: "WcfRelaysListResult",
714
- type: {
715
- name: "Composite",
716
- className: "WcfRelaysListResult",
717
- modelProperties: {
718
- value: {
719
- serializedName: "",
720
- type: {
721
- name: "Sequence",
722
- element: {
723
- type: {
724
- name: "Composite",
725
- className: "WcfRelay"
726
- }
727
- }
728
- }
729
- },
730
- nextLink: {
731
- serializedName: "nextLink",
732
- type: {
733
- name: "String"
734
- }
735
- }
736
- }
737
- }
738
- };
739
-
740
- var mappers = /*#__PURE__*/Object.freeze({
741
- CloudError: CloudError,
742
- BaseResource: BaseResource,
743
- Resource: Resource,
744
- TrackedResource: TrackedResource,
745
- ResourceNamespacePatch: ResourceNamespacePatch,
746
- HybridConnection: HybridConnection,
747
- WcfRelay: WcfRelay,
748
- Sku: Sku,
749
- RelayNamespace: RelayNamespace,
750
- RelayUpdateParameters: RelayUpdateParameters,
751
- AuthorizationRule: AuthorizationRule,
752
- AccessKeys: AccessKeys,
753
- RegenerateAccessKeyParameters: RegenerateAccessKeyParameters,
754
- CheckNameAvailability: CheckNameAvailability,
755
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
756
- OperationDisplay: OperationDisplay,
757
- Operation: Operation,
758
- ErrorResponse: ErrorResponse,
759
- OperationListResult: OperationListResult,
760
- RelayNamespaceListResult: RelayNamespaceListResult,
761
- AuthorizationRuleListResult: AuthorizationRuleListResult,
762
- HybridConnectionListResult: HybridConnectionListResult,
763
- WcfRelaysListResult: WcfRelaysListResult
764
- });
765
-
766
- /*
767
- * Copyright (c) Microsoft Corporation. All rights reserved.
768
- * Licensed under the MIT License. See License.txt in the project root for
769
- * license information.
770
- *
771
- * Code generated by Microsoft (R) AutoRest Code Generator.
772
- * Changes may cause incorrect behavior and will be lost if the code is
773
- * regenerated.
774
- */
775
-
776
- var Mappers = /*#__PURE__*/Object.freeze({
777
- OperationListResult: OperationListResult,
778
- Operation: Operation,
779
- OperationDisplay: OperationDisplay,
780
- ErrorResponse: ErrorResponse
781
- });
782
-
783
- /*
784
- * Copyright (c) Microsoft Corporation. All rights reserved.
785
- * Licensed under the MIT License. See License.txt in the project root for
786
- * license information.
787
- *
788
- * Code generated by Microsoft (R) AutoRest Code Generator.
789
- * Changes may cause incorrect behavior and will be lost if the code is
790
- * regenerated.
791
- */
792
- var acceptLanguage = {
793
- parameterPath: "acceptLanguage",
794
- mapper: {
795
- serializedName: "accept-language",
796
- defaultValue: 'en-US',
797
- type: {
798
- name: "String"
799
- }
800
- }
801
- };
802
- var apiVersion = {
803
- parameterPath: "apiVersion",
804
- mapper: {
805
- required: true,
806
- serializedName: "api-version",
807
- type: {
808
- name: "String"
809
- }
810
- }
811
- };
812
- var authorizationRuleName = {
813
- parameterPath: "authorizationRuleName",
814
- mapper: {
815
- required: true,
816
- serializedName: "authorizationRuleName",
817
- constraints: {
818
- MinLength: 1
819
- },
820
- type: {
821
- name: "String"
822
- }
823
- }
824
- };
825
- var hybridConnectionName = {
826
- parameterPath: "hybridConnectionName",
827
- mapper: {
828
- required: true,
829
- serializedName: "hybridConnectionName",
830
- constraints: {
831
- MinLength: 1
832
- },
833
- type: {
834
- name: "String"
835
- }
836
- }
837
- };
838
- var namespaceName = {
839
- parameterPath: "namespaceName",
840
- mapper: {
841
- required: true,
842
- serializedName: "namespaceName",
843
- constraints: {
844
- MaxLength: 50,
845
- MinLength: 6
846
- },
847
- type: {
848
- name: "String"
849
- }
850
- }
851
- };
852
- var nextPageLink = {
853
- parameterPath: "nextPageLink",
854
- mapper: {
855
- required: true,
856
- serializedName: "nextLink",
857
- type: {
858
- name: "String"
859
- }
860
- },
861
- skipEncoding: true
862
- };
863
- var relayName = {
864
- parameterPath: "relayName",
865
- mapper: {
866
- required: true,
867
- serializedName: "relayName",
868
- constraints: {
869
- MinLength: 1
870
- },
871
- type: {
872
- name: "String"
873
- }
874
- }
875
- };
876
- var resourceGroupName = {
877
- parameterPath: "resourceGroupName",
878
- mapper: {
879
- required: true,
880
- serializedName: "resourceGroupName",
881
- constraints: {
882
- MaxLength: 90,
883
- MinLength: 1
884
- },
885
- type: {
886
- name: "String"
887
- }
888
- }
889
- };
890
- var subscriptionId = {
891
- parameterPath: "subscriptionId",
892
- mapper: {
893
- required: true,
894
- serializedName: "subscriptionId",
895
- type: {
896
- name: "String"
897
- }
898
- }
899
- };
900
-
901
- /*
902
- * Copyright (c) Microsoft Corporation. All rights reserved.
903
- * Licensed under the MIT License. See License.txt in the project root for
904
- * license information.
905
- *
906
- * Code generated by Microsoft (R) AutoRest Code Generator.
907
- * Changes may cause incorrect behavior and will be lost if the code is
908
- * regenerated.
909
- */
910
- /** Class representing a Operations. */
911
- var Operations = /** @class */ (function () {
912
- /**
913
- * Create a Operations.
914
- * @param {RelayManagementClientContext} client Reference to the service client.
915
- */
916
- function Operations(client) {
917
- this.client = client;
918
- }
919
- Operations.prototype.list = function (options, callback) {
920
- return this.client.sendOperationRequest({
921
- options: options
922
- }, listOperationSpec, callback);
923
- };
924
- Operations.prototype.listNext = function (nextPageLink$$1, options, callback) {
925
- return this.client.sendOperationRequest({
926
- nextPageLink: nextPageLink$$1,
927
- options: options
928
- }, listNextOperationSpec, callback);
929
- };
930
- return Operations;
931
- }());
932
- // Operation Specifications
933
- var serializer = new msRest.Serializer(Mappers);
934
- var listOperationSpec = {
935
- httpMethod: "GET",
936
- path: "providers/Microsoft.Relay/operations",
937
- queryParameters: [
938
- apiVersion
939
- ],
940
- headerParameters: [
941
- acceptLanguage
942
- ],
943
- responses: {
944
- 200: {
945
- bodyMapper: OperationListResult
946
- },
947
- default: {
948
- bodyMapper: ErrorResponse
949
- }
950
- },
951
- serializer: serializer
952
- };
953
- var listNextOperationSpec = {
954
- httpMethod: "GET",
955
- baseUrl: "https://management.azure.com",
956
- path: "{nextLink}",
957
- urlParameters: [
958
- nextPageLink
959
- ],
960
- headerParameters: [
961
- acceptLanguage
962
- ],
963
- responses: {
964
- 200: {
965
- bodyMapper: OperationListResult
966
- },
967
- default: {
968
- bodyMapper: ErrorResponse
969
- }
970
- },
971
- serializer: serializer
972
- };
973
-
974
- /*
975
- * Copyright (c) Microsoft Corporation. All rights reserved.
976
- * Licensed under the MIT License. See License.txt in the project root for
977
- * license information.
978
- *
979
- * Code generated by Microsoft (R) AutoRest Code Generator.
980
- * Changes may cause incorrect behavior and will be lost if the code is
981
- * regenerated.
982
- */
983
-
984
- var Mappers$1 = /*#__PURE__*/Object.freeze({
985
- CheckNameAvailability: CheckNameAvailability,
986
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
987
- ErrorResponse: ErrorResponse,
988
- RelayNamespaceListResult: RelayNamespaceListResult,
989
- RelayNamespace: RelayNamespace,
990
- TrackedResource: TrackedResource,
991
- Resource: Resource,
992
- BaseResource: BaseResource,
993
- Sku: Sku,
994
- RelayUpdateParameters: RelayUpdateParameters,
995
- ResourceNamespacePatch: ResourceNamespacePatch,
996
- AuthorizationRuleListResult: AuthorizationRuleListResult,
997
- AuthorizationRule: AuthorizationRule,
998
- AccessKeys: AccessKeys,
999
- RegenerateAccessKeyParameters: RegenerateAccessKeyParameters,
1000
- HybridConnection: HybridConnection,
1001
- WcfRelay: WcfRelay
1002
- });
1003
-
1004
- /*
1005
- * Copyright (c) Microsoft Corporation. All rights reserved.
1006
- * Licensed under the MIT License. See License.txt in the project root for
1007
- * license information.
1008
- *
1009
- * Code generated by Microsoft (R) AutoRest Code Generator.
1010
- * Changes may cause incorrect behavior and will be lost if the code is
1011
- * regenerated.
1012
- */
1013
- /** Class representing a Namespaces. */
1014
- var Namespaces = /** @class */ (function () {
1015
- /**
1016
- * Create a Namespaces.
1017
- * @param {RelayManagementClientContext} client Reference to the service client.
1018
- */
1019
- function Namespaces(client) {
1020
- this.client = client;
1021
- }
1022
- Namespaces.prototype.checkNameAvailabilityMethod = function (parameters, options, callback) {
1023
- return this.client.sendOperationRequest({
1024
- parameters: parameters,
1025
- options: options
1026
- }, checkNameAvailabilityMethodOperationSpec, callback);
1027
- };
1028
- Namespaces.prototype.list = function (options, callback) {
1029
- return this.client.sendOperationRequest({
1030
- options: options
1031
- }, listOperationSpec$1, callback);
1032
- };
1033
- Namespaces.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
1034
- return this.client.sendOperationRequest({
1035
- resourceGroupName: resourceGroupName$$1,
1036
- options: options
1037
- }, listByResourceGroupOperationSpec, callback);
1038
- };
1039
- /**
1040
- * Create Azure Relay namespace.
1041
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
1042
- * @param namespaceName The namespace name
1043
- * @param parameters Parameters supplied to create a namespace resource.
1044
- * @param [options] The optional parameters
1045
- * @returns Promise<Models.NamespacesCreateOrUpdateResponse>
1046
- */
1047
- Namespaces.prototype.createOrUpdate = function (resourceGroupName$$1, namespaceName$$1, parameters, options) {
1048
- return this.beginCreateOrUpdate(resourceGroupName$$1, namespaceName$$1, parameters, options)
1049
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1050
- };
1051
- /**
1052
- * Deletes an existing namespace. This operation also removes all associated resources under the
1053
- * namespace.
1054
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
1055
- * @param namespaceName The namespace name
1056
- * @param [options] The optional parameters
1057
- * @returns Promise<msRest.RestResponse>
1058
- */
1059
- Namespaces.prototype.deleteMethod = function (resourceGroupName$$1, namespaceName$$1, options) {
1060
- return this.beginDeleteMethod(resourceGroupName$$1, namespaceName$$1, options)
1061
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1062
- };
1063
- Namespaces.prototype.get = function (resourceGroupName$$1, namespaceName$$1, options, callback) {
1064
- return this.client.sendOperationRequest({
1065
- resourceGroupName: resourceGroupName$$1,
1066
- namespaceName: namespaceName$$1,
1067
- options: options
1068
- }, getOperationSpec, callback);
1069
- };
1070
- Namespaces.prototype.update = function (resourceGroupName$$1, namespaceName$$1, parameters, options, callback) {
1071
- return this.client.sendOperationRequest({
1072
- resourceGroupName: resourceGroupName$$1,
1073
- namespaceName: namespaceName$$1,
1074
- parameters: parameters,
1075
- options: options
1076
- }, updateOperationSpec, callback);
1077
- };
1078
- Namespaces.prototype.listAuthorizationRules = function (resourceGroupName$$1, namespaceName$$1, options, callback) {
1079
- return this.client.sendOperationRequest({
1080
- resourceGroupName: resourceGroupName$$1,
1081
- namespaceName: namespaceName$$1,
1082
- options: options
1083
- }, listAuthorizationRulesOperationSpec, callback);
1084
- };
1085
- Namespaces.prototype.createOrUpdateAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, authorizationRuleName$$1, parameters, options, callback) {
1086
- return this.client.sendOperationRequest({
1087
- resourceGroupName: resourceGroupName$$1,
1088
- namespaceName: namespaceName$$1,
1089
- authorizationRuleName: authorizationRuleName$$1,
1090
- parameters: parameters,
1091
- options: options
1092
- }, createOrUpdateAuthorizationRuleOperationSpec, callback);
1093
- };
1094
- Namespaces.prototype.deleteAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, authorizationRuleName$$1, options, callback) {
1095
- return this.client.sendOperationRequest({
1096
- resourceGroupName: resourceGroupName$$1,
1097
- namespaceName: namespaceName$$1,
1098
- authorizationRuleName: authorizationRuleName$$1,
1099
- options: options
1100
- }, deleteAuthorizationRuleOperationSpec, callback);
1101
- };
1102
- Namespaces.prototype.getAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, authorizationRuleName$$1, options, callback) {
1103
- return this.client.sendOperationRequest({
1104
- resourceGroupName: resourceGroupName$$1,
1105
- namespaceName: namespaceName$$1,
1106
- authorizationRuleName: authorizationRuleName$$1,
1107
- options: options
1108
- }, getAuthorizationRuleOperationSpec, callback);
1109
- };
1110
- Namespaces.prototype.listKeys = function (resourceGroupName$$1, namespaceName$$1, authorizationRuleName$$1, options, callback) {
1111
- return this.client.sendOperationRequest({
1112
- resourceGroupName: resourceGroupName$$1,
1113
- namespaceName: namespaceName$$1,
1114
- authorizationRuleName: authorizationRuleName$$1,
1115
- options: options
1116
- }, listKeysOperationSpec, callback);
1117
- };
1118
- Namespaces.prototype.regenerateKeys = function (resourceGroupName$$1, namespaceName$$1, authorizationRuleName$$1, parameters, options, callback) {
1119
- return this.client.sendOperationRequest({
1120
- resourceGroupName: resourceGroupName$$1,
1121
- namespaceName: namespaceName$$1,
1122
- authorizationRuleName: authorizationRuleName$$1,
1123
- parameters: parameters,
1124
- options: options
1125
- }, regenerateKeysOperationSpec, callback);
1126
- };
1127
- /**
1128
- * Create Azure Relay namespace.
1129
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
1130
- * @param namespaceName The namespace name
1131
- * @param parameters Parameters supplied to create a namespace resource.
1132
- * @param [options] The optional parameters
1133
- * @returns Promise<msRestAzure.LROPoller>
1134
- */
1135
- Namespaces.prototype.beginCreateOrUpdate = function (resourceGroupName$$1, namespaceName$$1, parameters, options) {
1136
- return this.client.sendLRORequest({
1137
- resourceGroupName: resourceGroupName$$1,
1138
- namespaceName: namespaceName$$1,
1139
- parameters: parameters,
1140
- options: options
1141
- }, beginCreateOrUpdateOperationSpec, options);
1142
- };
1143
- /**
1144
- * Deletes an existing namespace. This operation also removes all associated resources under the
1145
- * namespace.
1146
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
1147
- * @param namespaceName The namespace name
1148
- * @param [options] The optional parameters
1149
- * @returns Promise<msRestAzure.LROPoller>
1150
- */
1151
- Namespaces.prototype.beginDeleteMethod = function (resourceGroupName$$1, namespaceName$$1, options) {
1152
- return this.client.sendLRORequest({
1153
- resourceGroupName: resourceGroupName$$1,
1154
- namespaceName: namespaceName$$1,
1155
- options: options
1156
- }, beginDeleteMethodOperationSpec, options);
1157
- };
1158
- Namespaces.prototype.listNext = function (nextPageLink$$1, options, callback) {
1159
- return this.client.sendOperationRequest({
1160
- nextPageLink: nextPageLink$$1,
1161
- options: options
1162
- }, listNextOperationSpec$1, callback);
1163
- };
1164
- Namespaces.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
1165
- return this.client.sendOperationRequest({
1166
- nextPageLink: nextPageLink$$1,
1167
- options: options
1168
- }, listByResourceGroupNextOperationSpec, callback);
1169
- };
1170
- Namespaces.prototype.listAuthorizationRulesNext = function (nextPageLink$$1, options, callback) {
1171
- return this.client.sendOperationRequest({
1172
- nextPageLink: nextPageLink$$1,
1173
- options: options
1174
- }, listAuthorizationRulesNextOperationSpec, callback);
1175
- };
1176
- return Namespaces;
1177
- }());
1178
- // Operation Specifications
1179
- var serializer$1 = new msRest.Serializer(Mappers$1);
1180
- var checkNameAvailabilityMethodOperationSpec = {
1181
- httpMethod: "POST",
1182
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Relay/checkNameAvailability",
1183
- urlParameters: [
1184
- subscriptionId
1185
- ],
1186
- queryParameters: [
1187
- apiVersion
1188
- ],
1189
- headerParameters: [
1190
- acceptLanguage
1191
- ],
1192
- requestBody: {
1193
- parameterPath: "parameters",
1194
- mapper: __assign({}, CheckNameAvailability, { required: true })
1195
- },
1196
- responses: {
1197
- 200: {
1198
- bodyMapper: CheckNameAvailabilityResult
1199
- },
1200
- default: {
1201
- bodyMapper: ErrorResponse
1202
- }
1203
- },
1204
- serializer: serializer$1
1205
- };
1206
- var listOperationSpec$1 = {
1207
- httpMethod: "GET",
1208
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces",
1209
- urlParameters: [
1210
- subscriptionId
1211
- ],
1212
- queryParameters: [
1213
- apiVersion
1214
- ],
1215
- headerParameters: [
1216
- acceptLanguage
1217
- ],
1218
- responses: {
1219
- 200: {
1220
- bodyMapper: RelayNamespaceListResult
1221
- },
1222
- default: {
1223
- bodyMapper: ErrorResponse
1224
- }
1225
- },
1226
- serializer: serializer$1
1227
- };
1228
- var listByResourceGroupOperationSpec = {
1229
- httpMethod: "GET",
1230
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces",
1231
- urlParameters: [
1232
- resourceGroupName,
1233
- subscriptionId
1234
- ],
1235
- queryParameters: [
1236
- apiVersion
1237
- ],
1238
- headerParameters: [
1239
- acceptLanguage
1240
- ],
1241
- responses: {
1242
- 200: {
1243
- bodyMapper: RelayNamespaceListResult
1244
- },
1245
- default: {
1246
- bodyMapper: ErrorResponse
1247
- }
1248
- },
1249
- serializer: serializer$1
1250
- };
1251
- var getOperationSpec = {
1252
- httpMethod: "GET",
1253
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}",
1254
- urlParameters: [
1255
- resourceGroupName,
1256
- namespaceName,
1257
- subscriptionId
1258
- ],
1259
- queryParameters: [
1260
- apiVersion
1261
- ],
1262
- headerParameters: [
1263
- acceptLanguage
1264
- ],
1265
- responses: {
1266
- 200: {
1267
- bodyMapper: RelayNamespace
1268
- },
1269
- default: {
1270
- bodyMapper: ErrorResponse
1271
- }
1272
- },
1273
- serializer: serializer$1
1274
- };
1275
- var updateOperationSpec = {
1276
- httpMethod: "PATCH",
1277
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}",
1278
- urlParameters: [
1279
- resourceGroupName,
1280
- namespaceName,
1281
- subscriptionId
1282
- ],
1283
- queryParameters: [
1284
- apiVersion
1285
- ],
1286
- headerParameters: [
1287
- acceptLanguage
1288
- ],
1289
- requestBody: {
1290
- parameterPath: "parameters",
1291
- mapper: __assign({}, RelayUpdateParameters, { required: true })
1292
- },
1293
- responses: {
1294
- 200: {
1295
- bodyMapper: RelayNamespace
1296
- },
1297
- 201: {
1298
- bodyMapper: RelayNamespace
1299
- },
1300
- default: {
1301
- bodyMapper: ErrorResponse
1302
- }
1303
- },
1304
- serializer: serializer$1
1305
- };
1306
- var listAuthorizationRulesOperationSpec = {
1307
- httpMethod: "GET",
1308
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/authorizationRules",
1309
- urlParameters: [
1310
- resourceGroupName,
1311
- namespaceName,
1312
- subscriptionId
1313
- ],
1314
- queryParameters: [
1315
- apiVersion
1316
- ],
1317
- headerParameters: [
1318
- acceptLanguage
1319
- ],
1320
- responses: {
1321
- 200: {
1322
- bodyMapper: AuthorizationRuleListResult
1323
- },
1324
- default: {
1325
- bodyMapper: ErrorResponse
1326
- }
1327
- },
1328
- serializer: serializer$1
1329
- };
1330
- var createOrUpdateAuthorizationRuleOperationSpec = {
1331
- httpMethod: "PUT",
1332
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}",
1333
- urlParameters: [
1334
- resourceGroupName,
1335
- namespaceName,
1336
- authorizationRuleName,
1337
- subscriptionId
1338
- ],
1339
- queryParameters: [
1340
- apiVersion
1341
- ],
1342
- headerParameters: [
1343
- acceptLanguage
1344
- ],
1345
- requestBody: {
1346
- parameterPath: "parameters",
1347
- mapper: __assign({}, AuthorizationRule, { required: true })
1348
- },
1349
- responses: {
1350
- 200: {
1351
- bodyMapper: AuthorizationRule
1352
- },
1353
- default: {
1354
- bodyMapper: ErrorResponse
1355
- }
1356
- },
1357
- serializer: serializer$1
1358
- };
1359
- var deleteAuthorizationRuleOperationSpec = {
1360
- httpMethod: "DELETE",
1361
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}",
1362
- urlParameters: [
1363
- resourceGroupName,
1364
- namespaceName,
1365
- authorizationRuleName,
1366
- subscriptionId
1367
- ],
1368
- queryParameters: [
1369
- apiVersion
1370
- ],
1371
- headerParameters: [
1372
- acceptLanguage
1373
- ],
1374
- responses: {
1375
- 200: {},
1376
- 204: {},
1377
- default: {
1378
- bodyMapper: ErrorResponse
1379
- }
1380
- },
1381
- serializer: serializer$1
1382
- };
1383
- var getAuthorizationRuleOperationSpec = {
1384
- httpMethod: "GET",
1385
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}",
1386
- urlParameters: [
1387
- resourceGroupName,
1388
- namespaceName,
1389
- authorizationRuleName,
1390
- subscriptionId
1391
- ],
1392
- queryParameters: [
1393
- apiVersion
1394
- ],
1395
- headerParameters: [
1396
- acceptLanguage
1397
- ],
1398
- responses: {
1399
- 200: {
1400
- bodyMapper: AuthorizationRule
1401
- },
1402
- default: {
1403
- bodyMapper: ErrorResponse
1404
- }
1405
- },
1406
- serializer: serializer$1
1407
- };
1408
- var listKeysOperationSpec = {
1409
- httpMethod: "POST",
1410
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys",
1411
- urlParameters: [
1412
- resourceGroupName,
1413
- namespaceName,
1414
- authorizationRuleName,
1415
- subscriptionId
1416
- ],
1417
- queryParameters: [
1418
- apiVersion
1419
- ],
1420
- headerParameters: [
1421
- acceptLanguage
1422
- ],
1423
- responses: {
1424
- 200: {
1425
- bodyMapper: AccessKeys
1426
- },
1427
- default: {
1428
- bodyMapper: ErrorResponse
1429
- }
1430
- },
1431
- serializer: serializer$1
1432
- };
1433
- var regenerateKeysOperationSpec = {
1434
- httpMethod: "POST",
1435
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
1436
- urlParameters: [
1437
- resourceGroupName,
1438
- namespaceName,
1439
- authorizationRuleName,
1440
- subscriptionId
1441
- ],
1442
- queryParameters: [
1443
- apiVersion
1444
- ],
1445
- headerParameters: [
1446
- acceptLanguage
1447
- ],
1448
- requestBody: {
1449
- parameterPath: "parameters",
1450
- mapper: __assign({}, RegenerateAccessKeyParameters, { required: true })
1451
- },
1452
- responses: {
1453
- 200: {
1454
- bodyMapper: AccessKeys
1455
- },
1456
- default: {
1457
- bodyMapper: ErrorResponse
1458
- }
1459
- },
1460
- serializer: serializer$1
1461
- };
1462
- var beginCreateOrUpdateOperationSpec = {
1463
- httpMethod: "PUT",
1464
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}",
1465
- urlParameters: [
1466
- resourceGroupName,
1467
- namespaceName,
1468
- subscriptionId
1469
- ],
1470
- queryParameters: [
1471
- apiVersion
1472
- ],
1473
- headerParameters: [
1474
- acceptLanguage
1475
- ],
1476
- requestBody: {
1477
- parameterPath: "parameters",
1478
- mapper: __assign({}, RelayNamespace, { required: true })
1479
- },
1480
- responses: {
1481
- 200: {
1482
- bodyMapper: RelayNamespace
1483
- },
1484
- 201: {
1485
- bodyMapper: RelayNamespace
1486
- },
1487
- default: {
1488
- bodyMapper: ErrorResponse
1489
- }
1490
- },
1491
- serializer: serializer$1
1492
- };
1493
- var beginDeleteMethodOperationSpec = {
1494
- httpMethod: "DELETE",
1495
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}",
1496
- urlParameters: [
1497
- resourceGroupName,
1498
- namespaceName,
1499
- subscriptionId
1500
- ],
1501
- queryParameters: [
1502
- apiVersion
1503
- ],
1504
- headerParameters: [
1505
- acceptLanguage
1506
- ],
1507
- responses: {
1508
- 200: {},
1509
- 202: {},
1510
- 204: {},
1511
- default: {
1512
- bodyMapper: ErrorResponse
1513
- }
1514
- },
1515
- serializer: serializer$1
1516
- };
1517
- var listNextOperationSpec$1 = {
1518
- httpMethod: "GET",
1519
- baseUrl: "https://management.azure.com",
1520
- path: "{nextLink}",
1521
- urlParameters: [
1522
- nextPageLink
1523
- ],
1524
- headerParameters: [
1525
- acceptLanguage
1526
- ],
1527
- responses: {
1528
- 200: {
1529
- bodyMapper: RelayNamespaceListResult
1530
- },
1531
- default: {
1532
- bodyMapper: ErrorResponse
1533
- }
1534
- },
1535
- serializer: serializer$1
1536
- };
1537
- var listByResourceGroupNextOperationSpec = {
1538
- httpMethod: "GET",
1539
- baseUrl: "https://management.azure.com",
1540
- path: "{nextLink}",
1541
- urlParameters: [
1542
- nextPageLink
1543
- ],
1544
- headerParameters: [
1545
- acceptLanguage
1546
- ],
1547
- responses: {
1548
- 200: {
1549
- bodyMapper: RelayNamespaceListResult
1550
- },
1551
- default: {
1552
- bodyMapper: ErrorResponse
1553
- }
1554
- },
1555
- serializer: serializer$1
1556
- };
1557
- var listAuthorizationRulesNextOperationSpec = {
1558
- httpMethod: "GET",
1559
- baseUrl: "https://management.azure.com",
1560
- path: "{nextLink}",
1561
- urlParameters: [
1562
- nextPageLink
1563
- ],
1564
- headerParameters: [
1565
- acceptLanguage
1566
- ],
1567
- responses: {
1568
- 200: {
1569
- bodyMapper: AuthorizationRuleListResult
1570
- },
1571
- default: {
1572
- bodyMapper: ErrorResponse
1573
- }
1574
- },
1575
- serializer: serializer$1
1576
- };
1577
-
1578
- /*
1579
- * Copyright (c) Microsoft Corporation. All rights reserved.
1580
- * Licensed under the MIT License. See License.txt in the project root for
1581
- * license information.
1582
- *
1583
- * Code generated by Microsoft (R) AutoRest Code Generator.
1584
- * Changes may cause incorrect behavior and will be lost if the code is
1585
- * regenerated.
1586
- */
1587
-
1588
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1589
- HybridConnectionListResult: HybridConnectionListResult,
1590
- HybridConnection: HybridConnection,
1591
- Resource: Resource,
1592
- BaseResource: BaseResource,
1593
- ErrorResponse: ErrorResponse,
1594
- AuthorizationRuleListResult: AuthorizationRuleListResult,
1595
- AuthorizationRule: AuthorizationRule,
1596
- AccessKeys: AccessKeys,
1597
- RegenerateAccessKeyParameters: RegenerateAccessKeyParameters,
1598
- TrackedResource: TrackedResource,
1599
- ResourceNamespacePatch: ResourceNamespacePatch,
1600
- WcfRelay: WcfRelay,
1601
- RelayNamespace: RelayNamespace,
1602
- Sku: Sku,
1603
- RelayUpdateParameters: RelayUpdateParameters
1604
- });
1605
-
1606
- /*
1607
- * Copyright (c) Microsoft Corporation. All rights reserved.
1608
- * Licensed under the MIT License. See License.txt in the project root for
1609
- * license information.
1610
- *
1611
- * Code generated by Microsoft (R) AutoRest Code Generator.
1612
- * Changes may cause incorrect behavior and will be lost if the code is
1613
- * regenerated.
1614
- */
1615
- /** Class representing a HybridConnections. */
1616
- var HybridConnections = /** @class */ (function () {
1617
- /**
1618
- * Create a HybridConnections.
1619
- * @param {RelayManagementClientContext} client Reference to the service client.
1620
- */
1621
- function HybridConnections(client) {
1622
- this.client = client;
1623
- }
1624
- HybridConnections.prototype.listByNamespace = function (resourceGroupName$$1, namespaceName$$1, options, callback) {
1625
- return this.client.sendOperationRequest({
1626
- resourceGroupName: resourceGroupName$$1,
1627
- namespaceName: namespaceName$$1,
1628
- options: options
1629
- }, listByNamespaceOperationSpec, callback);
1630
- };
1631
- HybridConnections.prototype.createOrUpdate = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, parameters, options, callback) {
1632
- return this.client.sendOperationRequest({
1633
- resourceGroupName: resourceGroupName$$1,
1634
- namespaceName: namespaceName$$1,
1635
- hybridConnectionName: hybridConnectionName$$1,
1636
- parameters: parameters,
1637
- options: options
1638
- }, createOrUpdateOperationSpec, callback);
1639
- };
1640
- HybridConnections.prototype.deleteMethod = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, options, callback) {
1641
- return this.client.sendOperationRequest({
1642
- resourceGroupName: resourceGroupName$$1,
1643
- namespaceName: namespaceName$$1,
1644
- hybridConnectionName: hybridConnectionName$$1,
1645
- options: options
1646
- }, deleteMethodOperationSpec, callback);
1647
- };
1648
- HybridConnections.prototype.get = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, options, callback) {
1649
- return this.client.sendOperationRequest({
1650
- resourceGroupName: resourceGroupName$$1,
1651
- namespaceName: namespaceName$$1,
1652
- hybridConnectionName: hybridConnectionName$$1,
1653
- options: options
1654
- }, getOperationSpec$1, callback);
1655
- };
1656
- HybridConnections.prototype.listAuthorizationRules = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, options, callback) {
1657
- return this.client.sendOperationRequest({
1658
- resourceGroupName: resourceGroupName$$1,
1659
- namespaceName: namespaceName$$1,
1660
- hybridConnectionName: hybridConnectionName$$1,
1661
- options: options
1662
- }, listAuthorizationRulesOperationSpec$1, callback);
1663
- };
1664
- HybridConnections.prototype.createOrUpdateAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, authorizationRuleName$$1, parameters, options, callback) {
1665
- return this.client.sendOperationRequest({
1666
- resourceGroupName: resourceGroupName$$1,
1667
- namespaceName: namespaceName$$1,
1668
- hybridConnectionName: hybridConnectionName$$1,
1669
- authorizationRuleName: authorizationRuleName$$1,
1670
- parameters: parameters,
1671
- options: options
1672
- }, createOrUpdateAuthorizationRuleOperationSpec$1, callback);
1673
- };
1674
- HybridConnections.prototype.deleteAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, authorizationRuleName$$1, options, callback) {
1675
- return this.client.sendOperationRequest({
1676
- resourceGroupName: resourceGroupName$$1,
1677
- namespaceName: namespaceName$$1,
1678
- hybridConnectionName: hybridConnectionName$$1,
1679
- authorizationRuleName: authorizationRuleName$$1,
1680
- options: options
1681
- }, deleteAuthorizationRuleOperationSpec$1, callback);
1682
- };
1683
- HybridConnections.prototype.getAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, authorizationRuleName$$1, options, callback) {
1684
- return this.client.sendOperationRequest({
1685
- resourceGroupName: resourceGroupName$$1,
1686
- namespaceName: namespaceName$$1,
1687
- hybridConnectionName: hybridConnectionName$$1,
1688
- authorizationRuleName: authorizationRuleName$$1,
1689
- options: options
1690
- }, getAuthorizationRuleOperationSpec$1, callback);
1691
- };
1692
- HybridConnections.prototype.listKeys = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, authorizationRuleName$$1, options, callback) {
1693
- return this.client.sendOperationRequest({
1694
- resourceGroupName: resourceGroupName$$1,
1695
- namespaceName: namespaceName$$1,
1696
- hybridConnectionName: hybridConnectionName$$1,
1697
- authorizationRuleName: authorizationRuleName$$1,
1698
- options: options
1699
- }, listKeysOperationSpec$1, callback);
1700
- };
1701
- HybridConnections.prototype.regenerateKeys = function (resourceGroupName$$1, namespaceName$$1, hybridConnectionName$$1, authorizationRuleName$$1, parameters, options, callback) {
1702
- return this.client.sendOperationRequest({
1703
- resourceGroupName: resourceGroupName$$1,
1704
- namespaceName: namespaceName$$1,
1705
- hybridConnectionName: hybridConnectionName$$1,
1706
- authorizationRuleName: authorizationRuleName$$1,
1707
- parameters: parameters,
1708
- options: options
1709
- }, regenerateKeysOperationSpec$1, callback);
1710
- };
1711
- HybridConnections.prototype.listByNamespaceNext = function (nextPageLink$$1, options, callback) {
1712
- return this.client.sendOperationRequest({
1713
- nextPageLink: nextPageLink$$1,
1714
- options: options
1715
- }, listByNamespaceNextOperationSpec, callback);
1716
- };
1717
- HybridConnections.prototype.listAuthorizationRulesNext = function (nextPageLink$$1, options, callback) {
1718
- return this.client.sendOperationRequest({
1719
- nextPageLink: nextPageLink$$1,
1720
- options: options
1721
- }, listAuthorizationRulesNextOperationSpec$1, callback);
1722
- };
1723
- return HybridConnections;
1724
- }());
1725
- // Operation Specifications
1726
- var serializer$2 = new msRest.Serializer(Mappers$2);
1727
- var listByNamespaceOperationSpec = {
1728
- httpMethod: "GET",
1729
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections",
1730
- urlParameters: [
1731
- resourceGroupName,
1732
- namespaceName,
1733
- subscriptionId
1734
- ],
1735
- queryParameters: [
1736
- apiVersion
1737
- ],
1738
- headerParameters: [
1739
- acceptLanguage
1740
- ],
1741
- responses: {
1742
- 200: {
1743
- bodyMapper: HybridConnectionListResult
1744
- },
1745
- default: {
1746
- bodyMapper: ErrorResponse
1747
- }
1748
- },
1749
- serializer: serializer$2
1750
- };
1751
- var createOrUpdateOperationSpec = {
1752
- httpMethod: "PUT",
1753
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}",
1754
- urlParameters: [
1755
- resourceGroupName,
1756
- namespaceName,
1757
- hybridConnectionName,
1758
- subscriptionId
1759
- ],
1760
- queryParameters: [
1761
- apiVersion
1762
- ],
1763
- headerParameters: [
1764
- acceptLanguage
1765
- ],
1766
- requestBody: {
1767
- parameterPath: "parameters",
1768
- mapper: __assign({}, HybridConnection, { required: true })
1769
- },
1770
- responses: {
1771
- 200: {
1772
- bodyMapper: HybridConnection
1773
- },
1774
- default: {
1775
- bodyMapper: ErrorResponse
1776
- }
1777
- },
1778
- serializer: serializer$2
1779
- };
1780
- var deleteMethodOperationSpec = {
1781
- httpMethod: "DELETE",
1782
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}",
1783
- urlParameters: [
1784
- resourceGroupName,
1785
- namespaceName,
1786
- hybridConnectionName,
1787
- subscriptionId
1788
- ],
1789
- queryParameters: [
1790
- apiVersion
1791
- ],
1792
- headerParameters: [
1793
- acceptLanguage
1794
- ],
1795
- responses: {
1796
- 200: {},
1797
- 204: {},
1798
- default: {
1799
- bodyMapper: ErrorResponse
1800
- }
1801
- },
1802
- serializer: serializer$2
1803
- };
1804
- var getOperationSpec$1 = {
1805
- httpMethod: "GET",
1806
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}",
1807
- urlParameters: [
1808
- resourceGroupName,
1809
- namespaceName,
1810
- hybridConnectionName,
1811
- subscriptionId
1812
- ],
1813
- queryParameters: [
1814
- apiVersion
1815
- ],
1816
- headerParameters: [
1817
- acceptLanguage
1818
- ],
1819
- responses: {
1820
- 200: {
1821
- bodyMapper: HybridConnection
1822
- },
1823
- default: {
1824
- bodyMapper: ErrorResponse
1825
- }
1826
- },
1827
- serializer: serializer$2
1828
- };
1829
- var listAuthorizationRulesOperationSpec$1 = {
1830
- httpMethod: "GET",
1831
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules",
1832
- urlParameters: [
1833
- resourceGroupName,
1834
- namespaceName,
1835
- hybridConnectionName,
1836
- subscriptionId
1837
- ],
1838
- queryParameters: [
1839
- apiVersion
1840
- ],
1841
- headerParameters: [
1842
- acceptLanguage
1843
- ],
1844
- responses: {
1845
- 200: {
1846
- bodyMapper: AuthorizationRuleListResult
1847
- },
1848
- default: {
1849
- bodyMapper: ErrorResponse
1850
- }
1851
- },
1852
- serializer: serializer$2
1853
- };
1854
- var createOrUpdateAuthorizationRuleOperationSpec$1 = {
1855
- httpMethod: "PUT",
1856
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}",
1857
- urlParameters: [
1858
- resourceGroupName,
1859
- namespaceName,
1860
- hybridConnectionName,
1861
- authorizationRuleName,
1862
- subscriptionId
1863
- ],
1864
- queryParameters: [
1865
- apiVersion
1866
- ],
1867
- headerParameters: [
1868
- acceptLanguage
1869
- ],
1870
- requestBody: {
1871
- parameterPath: "parameters",
1872
- mapper: __assign({}, AuthorizationRule, { required: true })
1873
- },
1874
- responses: {
1875
- 200: {
1876
- bodyMapper: AuthorizationRule
1877
- },
1878
- default: {
1879
- bodyMapper: ErrorResponse
1880
- }
1881
- },
1882
- serializer: serializer$2
1883
- };
1884
- var deleteAuthorizationRuleOperationSpec$1 = {
1885
- httpMethod: "DELETE",
1886
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}",
1887
- urlParameters: [
1888
- resourceGroupName,
1889
- namespaceName,
1890
- hybridConnectionName,
1891
- authorizationRuleName,
1892
- subscriptionId
1893
- ],
1894
- queryParameters: [
1895
- apiVersion
1896
- ],
1897
- headerParameters: [
1898
- acceptLanguage
1899
- ],
1900
- responses: {
1901
- 200: {},
1902
- 204: {},
1903
- default: {
1904
- bodyMapper: ErrorResponse
1905
- }
1906
- },
1907
- serializer: serializer$2
1908
- };
1909
- var getAuthorizationRuleOperationSpec$1 = {
1910
- httpMethod: "GET",
1911
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}",
1912
- urlParameters: [
1913
- resourceGroupName,
1914
- namespaceName,
1915
- hybridConnectionName,
1916
- authorizationRuleName,
1917
- subscriptionId
1918
- ],
1919
- queryParameters: [
1920
- apiVersion
1921
- ],
1922
- headerParameters: [
1923
- acceptLanguage
1924
- ],
1925
- responses: {
1926
- 200: {
1927
- bodyMapper: AuthorizationRule
1928
- },
1929
- default: {
1930
- bodyMapper: ErrorResponse
1931
- }
1932
- },
1933
- serializer: serializer$2
1934
- };
1935
- var listKeysOperationSpec$1 = {
1936
- httpMethod: "POST",
1937
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/listKeys",
1938
- urlParameters: [
1939
- resourceGroupName,
1940
- namespaceName,
1941
- hybridConnectionName,
1942
- authorizationRuleName,
1943
- subscriptionId
1944
- ],
1945
- queryParameters: [
1946
- apiVersion
1947
- ],
1948
- headerParameters: [
1949
- acceptLanguage
1950
- ],
1951
- responses: {
1952
- 200: {
1953
- bodyMapper: AccessKeys
1954
- },
1955
- default: {
1956
- bodyMapper: ErrorResponse
1957
- }
1958
- },
1959
- serializer: serializer$2
1960
- };
1961
- var regenerateKeysOperationSpec$1 = {
1962
- httpMethod: "POST",
1963
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
1964
- urlParameters: [
1965
- resourceGroupName,
1966
- namespaceName,
1967
- hybridConnectionName,
1968
- authorizationRuleName,
1969
- subscriptionId
1970
- ],
1971
- queryParameters: [
1972
- apiVersion
1973
- ],
1974
- headerParameters: [
1975
- acceptLanguage
1976
- ],
1977
- requestBody: {
1978
- parameterPath: "parameters",
1979
- mapper: __assign({}, RegenerateAccessKeyParameters, { required: true })
1980
- },
1981
- responses: {
1982
- 200: {
1983
- bodyMapper: AccessKeys
1984
- },
1985
- default: {
1986
- bodyMapper: ErrorResponse
1987
- }
1988
- },
1989
- serializer: serializer$2
1990
- };
1991
- var listByNamespaceNextOperationSpec = {
1992
- httpMethod: "GET",
1993
- baseUrl: "https://management.azure.com",
1994
- path: "{nextLink}",
1995
- urlParameters: [
1996
- nextPageLink
1997
- ],
1998
- headerParameters: [
1999
- acceptLanguage
2000
- ],
2001
- responses: {
2002
- 200: {
2003
- bodyMapper: HybridConnectionListResult
2004
- },
2005
- default: {
2006
- bodyMapper: ErrorResponse
2007
- }
2008
- },
2009
- serializer: serializer$2
2010
- };
2011
- var listAuthorizationRulesNextOperationSpec$1 = {
2012
- httpMethod: "GET",
2013
- baseUrl: "https://management.azure.com",
2014
- path: "{nextLink}",
2015
- urlParameters: [
2016
- nextPageLink
2017
- ],
2018
- headerParameters: [
2019
- acceptLanguage
2020
- ],
2021
- responses: {
2022
- 200: {
2023
- bodyMapper: AuthorizationRuleListResult
2024
- },
2025
- default: {
2026
- bodyMapper: ErrorResponse
2027
- }
2028
- },
2029
- serializer: serializer$2
2030
- };
2031
-
2032
- /*
2033
- * Copyright (c) Microsoft Corporation. All rights reserved.
2034
- * Licensed under the MIT License. See License.txt in the project root for
2035
- * license information.
2036
- *
2037
- * Code generated by Microsoft (R) AutoRest Code Generator.
2038
- * Changes may cause incorrect behavior and will be lost if the code is
2039
- * regenerated.
2040
- */
2041
-
2042
- var Mappers$3 = /*#__PURE__*/Object.freeze({
2043
- WcfRelaysListResult: WcfRelaysListResult,
2044
- WcfRelay: WcfRelay,
2045
- Resource: Resource,
2046
- BaseResource: BaseResource,
2047
- ErrorResponse: ErrorResponse,
2048
- AuthorizationRuleListResult: AuthorizationRuleListResult,
2049
- AuthorizationRule: AuthorizationRule,
2050
- CloudError: CloudError,
2051
- AccessKeys: AccessKeys,
2052
- RegenerateAccessKeyParameters: RegenerateAccessKeyParameters,
2053
- TrackedResource: TrackedResource,
2054
- ResourceNamespacePatch: ResourceNamespacePatch,
2055
- HybridConnection: HybridConnection,
2056
- RelayNamespace: RelayNamespace,
2057
- Sku: Sku,
2058
- RelayUpdateParameters: RelayUpdateParameters
2059
- });
2060
-
2061
- /*
2062
- * Copyright (c) Microsoft Corporation. All rights reserved.
2063
- * Licensed under the MIT License. See License.txt in the project root for
2064
- * license information.
2065
- *
2066
- * Code generated by Microsoft (R) AutoRest Code Generator.
2067
- * Changes may cause incorrect behavior and will be lost if the code is
2068
- * regenerated.
2069
- */
2070
- /** Class representing a WCFRelays. */
2071
- var WCFRelays = /** @class */ (function () {
2072
- /**
2073
- * Create a WCFRelays.
2074
- * @param {RelayManagementClientContext} client Reference to the service client.
2075
- */
2076
- function WCFRelays(client) {
2077
- this.client = client;
2078
- }
2079
- WCFRelays.prototype.listByNamespace = function (resourceGroupName$$1, namespaceName$$1, options, callback) {
2080
- return this.client.sendOperationRequest({
2081
- resourceGroupName: resourceGroupName$$1,
2082
- namespaceName: namespaceName$$1,
2083
- options: options
2084
- }, listByNamespaceOperationSpec$1, callback);
2085
- };
2086
- WCFRelays.prototype.createOrUpdate = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, parameters, options, callback) {
2087
- return this.client.sendOperationRequest({
2088
- resourceGroupName: resourceGroupName$$1,
2089
- namespaceName: namespaceName$$1,
2090
- relayName: relayName$$1,
2091
- parameters: parameters,
2092
- options: options
2093
- }, createOrUpdateOperationSpec$1, callback);
2094
- };
2095
- WCFRelays.prototype.deleteMethod = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, options, callback) {
2096
- return this.client.sendOperationRequest({
2097
- resourceGroupName: resourceGroupName$$1,
2098
- namespaceName: namespaceName$$1,
2099
- relayName: relayName$$1,
2100
- options: options
2101
- }, deleteMethodOperationSpec$1, callback);
2102
- };
2103
- WCFRelays.prototype.get = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, options, callback) {
2104
- return this.client.sendOperationRequest({
2105
- resourceGroupName: resourceGroupName$$1,
2106
- namespaceName: namespaceName$$1,
2107
- relayName: relayName$$1,
2108
- options: options
2109
- }, getOperationSpec$2, callback);
2110
- };
2111
- WCFRelays.prototype.listAuthorizationRules = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, options, callback) {
2112
- return this.client.sendOperationRequest({
2113
- resourceGroupName: resourceGroupName$$1,
2114
- namespaceName: namespaceName$$1,
2115
- relayName: relayName$$1,
2116
- options: options
2117
- }, listAuthorizationRulesOperationSpec$2, callback);
2118
- };
2119
- WCFRelays.prototype.createOrUpdateAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, authorizationRuleName$$1, parameters, options, callback) {
2120
- return this.client.sendOperationRequest({
2121
- resourceGroupName: resourceGroupName$$1,
2122
- namespaceName: namespaceName$$1,
2123
- relayName: relayName$$1,
2124
- authorizationRuleName: authorizationRuleName$$1,
2125
- parameters: parameters,
2126
- options: options
2127
- }, createOrUpdateAuthorizationRuleOperationSpec$2, callback);
2128
- };
2129
- WCFRelays.prototype.deleteAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, authorizationRuleName$$1, options, callback) {
2130
- return this.client.sendOperationRequest({
2131
- resourceGroupName: resourceGroupName$$1,
2132
- namespaceName: namespaceName$$1,
2133
- relayName: relayName$$1,
2134
- authorizationRuleName: authorizationRuleName$$1,
2135
- options: options
2136
- }, deleteAuthorizationRuleOperationSpec$2, callback);
2137
- };
2138
- WCFRelays.prototype.getAuthorizationRule = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, authorizationRuleName$$1, options, callback) {
2139
- return this.client.sendOperationRequest({
2140
- resourceGroupName: resourceGroupName$$1,
2141
- namespaceName: namespaceName$$1,
2142
- relayName: relayName$$1,
2143
- authorizationRuleName: authorizationRuleName$$1,
2144
- options: options
2145
- }, getAuthorizationRuleOperationSpec$2, callback);
2146
- };
2147
- WCFRelays.prototype.listKeys = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, authorizationRuleName$$1, options, callback) {
2148
- return this.client.sendOperationRequest({
2149
- resourceGroupName: resourceGroupName$$1,
2150
- namespaceName: namespaceName$$1,
2151
- relayName: relayName$$1,
2152
- authorizationRuleName: authorizationRuleName$$1,
2153
- options: options
2154
- }, listKeysOperationSpec$2, callback);
2155
- };
2156
- WCFRelays.prototype.regenerateKeys = function (resourceGroupName$$1, namespaceName$$1, relayName$$1, authorizationRuleName$$1, parameters, options, callback) {
2157
- return this.client.sendOperationRequest({
2158
- resourceGroupName: resourceGroupName$$1,
2159
- namespaceName: namespaceName$$1,
2160
- relayName: relayName$$1,
2161
- authorizationRuleName: authorizationRuleName$$1,
2162
- parameters: parameters,
2163
- options: options
2164
- }, regenerateKeysOperationSpec$2, callback);
2165
- };
2166
- WCFRelays.prototype.listByNamespaceNext = function (nextPageLink$$1, options, callback) {
2167
- return this.client.sendOperationRequest({
2168
- nextPageLink: nextPageLink$$1,
2169
- options: options
2170
- }, listByNamespaceNextOperationSpec$1, callback);
2171
- };
2172
- WCFRelays.prototype.listAuthorizationRulesNext = function (nextPageLink$$1, options, callback) {
2173
- return this.client.sendOperationRequest({
2174
- nextPageLink: nextPageLink$$1,
2175
- options: options
2176
- }, listAuthorizationRulesNextOperationSpec$2, callback);
2177
- };
2178
- return WCFRelays;
2179
- }());
2180
- // Operation Specifications
2181
- var serializer$3 = new msRest.Serializer(Mappers$3);
2182
- var listByNamespaceOperationSpec$1 = {
2183
- httpMethod: "GET",
2184
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays",
2185
- urlParameters: [
2186
- resourceGroupName,
2187
- namespaceName,
2188
- subscriptionId
2189
- ],
2190
- queryParameters: [
2191
- apiVersion
2192
- ],
2193
- headerParameters: [
2194
- acceptLanguage
2195
- ],
2196
- responses: {
2197
- 200: {
2198
- bodyMapper: WcfRelaysListResult
2199
- },
2200
- default: {
2201
- bodyMapper: ErrorResponse
2202
- }
2203
- },
2204
- serializer: serializer$3
2205
- };
2206
- var createOrUpdateOperationSpec$1 = {
2207
- httpMethod: "PUT",
2208
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}",
2209
- urlParameters: [
2210
- resourceGroupName,
2211
- namespaceName,
2212
- relayName,
2213
- subscriptionId
2214
- ],
2215
- queryParameters: [
2216
- apiVersion
2217
- ],
2218
- headerParameters: [
2219
- acceptLanguage
2220
- ],
2221
- requestBody: {
2222
- parameterPath: "parameters",
2223
- mapper: __assign({}, WcfRelay, { required: true })
2224
- },
2225
- responses: {
2226
- 200: {
2227
- bodyMapper: WcfRelay
2228
- },
2229
- default: {
2230
- bodyMapper: ErrorResponse
2231
- }
2232
- },
2233
- serializer: serializer$3
2234
- };
2235
- var deleteMethodOperationSpec$1 = {
2236
- httpMethod: "DELETE",
2237
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}",
2238
- urlParameters: [
2239
- resourceGroupName,
2240
- namespaceName,
2241
- relayName,
2242
- subscriptionId
2243
- ],
2244
- queryParameters: [
2245
- apiVersion
2246
- ],
2247
- headerParameters: [
2248
- acceptLanguage
2249
- ],
2250
- responses: {
2251
- 200: {},
2252
- 204: {},
2253
- default: {
2254
- bodyMapper: ErrorResponse
2255
- }
2256
- },
2257
- serializer: serializer$3
2258
- };
2259
- var getOperationSpec$2 = {
2260
- httpMethod: "GET",
2261
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}",
2262
- urlParameters: [
2263
- resourceGroupName,
2264
- namespaceName,
2265
- relayName,
2266
- subscriptionId
2267
- ],
2268
- queryParameters: [
2269
- apiVersion
2270
- ],
2271
- headerParameters: [
2272
- acceptLanguage
2273
- ],
2274
- responses: {
2275
- 200: {
2276
- bodyMapper: WcfRelay
2277
- },
2278
- 204: {},
2279
- default: {
2280
- bodyMapper: ErrorResponse
2281
- }
2282
- },
2283
- serializer: serializer$3
2284
- };
2285
- var listAuthorizationRulesOperationSpec$2 = {
2286
- httpMethod: "GET",
2287
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules",
2288
- urlParameters: [
2289
- resourceGroupName,
2290
- namespaceName,
2291
- relayName,
2292
- subscriptionId
2293
- ],
2294
- queryParameters: [
2295
- apiVersion
2296
- ],
2297
- headerParameters: [
2298
- acceptLanguage
2299
- ],
2300
- responses: {
2301
- 200: {
2302
- bodyMapper: AuthorizationRuleListResult
2303
- },
2304
- default: {
2305
- bodyMapper: CloudError
2306
- }
2307
- },
2308
- serializer: serializer$3
2309
- };
2310
- var createOrUpdateAuthorizationRuleOperationSpec$2 = {
2311
- httpMethod: "PUT",
2312
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules/{authorizationRuleName}",
2313
- urlParameters: [
2314
- resourceGroupName,
2315
- namespaceName,
2316
- relayName,
2317
- authorizationRuleName,
2318
- subscriptionId
2319
- ],
2320
- queryParameters: [
2321
- apiVersion
2322
- ],
2323
- headerParameters: [
2324
- acceptLanguage
2325
- ],
2326
- requestBody: {
2327
- parameterPath: "parameters",
2328
- mapper: __assign({}, AuthorizationRule, { required: true })
2329
- },
2330
- responses: {
2331
- 200: {
2332
- bodyMapper: AuthorizationRule
2333
- },
2334
- default: {
2335
- bodyMapper: ErrorResponse
2336
- }
2337
- },
2338
- serializer: serializer$3
2339
- };
2340
- var deleteAuthorizationRuleOperationSpec$2 = {
2341
- httpMethod: "DELETE",
2342
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules/{authorizationRuleName}",
2343
- urlParameters: [
2344
- resourceGroupName,
2345
- namespaceName,
2346
- relayName,
2347
- authorizationRuleName,
2348
- subscriptionId
2349
- ],
2350
- queryParameters: [
2351
- apiVersion
2352
- ],
2353
- headerParameters: [
2354
- acceptLanguage
2355
- ],
2356
- responses: {
2357
- 200: {},
2358
- 204: {},
2359
- default: {
2360
- bodyMapper: ErrorResponse
2361
- }
2362
- },
2363
- serializer: serializer$3
2364
- };
2365
- var getAuthorizationRuleOperationSpec$2 = {
2366
- httpMethod: "GET",
2367
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules/{authorizationRuleName}",
2368
- urlParameters: [
2369
- resourceGroupName,
2370
- namespaceName,
2371
- relayName,
2372
- authorizationRuleName,
2373
- subscriptionId
2374
- ],
2375
- queryParameters: [
2376
- apiVersion
2377
- ],
2378
- headerParameters: [
2379
- acceptLanguage
2380
- ],
2381
- responses: {
2382
- 200: {
2383
- bodyMapper: AuthorizationRule
2384
- },
2385
- default: {
2386
- bodyMapper: ErrorResponse
2387
- }
2388
- },
2389
- serializer: serializer$3
2390
- };
2391
- var listKeysOperationSpec$2 = {
2392
- httpMethod: "POST",
2393
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules/{authorizationRuleName}/listKeys",
2394
- urlParameters: [
2395
- resourceGroupName,
2396
- namespaceName,
2397
- relayName,
2398
- authorizationRuleName,
2399
- subscriptionId
2400
- ],
2401
- queryParameters: [
2402
- apiVersion
2403
- ],
2404
- headerParameters: [
2405
- acceptLanguage
2406
- ],
2407
- responses: {
2408
- 200: {
2409
- bodyMapper: AccessKeys
2410
- },
2411
- default: {
2412
- bodyMapper: ErrorResponse
2413
- }
2414
- },
2415
- serializer: serializer$3
2416
- };
2417
- var regenerateKeysOperationSpec$2 = {
2418
- httpMethod: "POST",
2419
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
2420
- urlParameters: [
2421
- resourceGroupName,
2422
- namespaceName,
2423
- relayName,
2424
- authorizationRuleName,
2425
- subscriptionId
2426
- ],
2427
- queryParameters: [
2428
- apiVersion
2429
- ],
2430
- headerParameters: [
2431
- acceptLanguage
2432
- ],
2433
- requestBody: {
2434
- parameterPath: "parameters",
2435
- mapper: __assign({}, RegenerateAccessKeyParameters, { required: true })
2436
- },
2437
- responses: {
2438
- 200: {
2439
- bodyMapper: AccessKeys
2440
- },
2441
- default: {
2442
- bodyMapper: ErrorResponse
2443
- }
2444
- },
2445
- serializer: serializer$3
2446
- };
2447
- var listByNamespaceNextOperationSpec$1 = {
2448
- httpMethod: "GET",
2449
- baseUrl: "https://management.azure.com",
2450
- path: "{nextLink}",
2451
- urlParameters: [
2452
- nextPageLink
2453
- ],
2454
- headerParameters: [
2455
- acceptLanguage
2456
- ],
2457
- responses: {
2458
- 200: {
2459
- bodyMapper: WcfRelaysListResult
2460
- },
2461
- default: {
2462
- bodyMapper: ErrorResponse
2463
- }
2464
- },
2465
- serializer: serializer$3
2466
- };
2467
- var listAuthorizationRulesNextOperationSpec$2 = {
2468
- httpMethod: "GET",
2469
- baseUrl: "https://management.azure.com",
2470
- path: "{nextLink}",
2471
- urlParameters: [
2472
- nextPageLink
2473
- ],
2474
- headerParameters: [
2475
- acceptLanguage
2476
- ],
2477
- responses: {
2478
- 200: {
2479
- bodyMapper: AuthorizationRuleListResult
2480
- },
2481
- default: {
2482
- bodyMapper: CloudError
2483
- }
2484
- },
2485
- serializer: serializer$3
2486
- };
2487
-
2488
- /*
2489
- * Copyright (c) Microsoft Corporation. All rights reserved.
2490
- * Licensed under the MIT License. See License.txt in the project root for
2491
- * license information.
2492
- *
2493
- * Code generated by Microsoft (R) AutoRest Code Generator.
2494
- * Changes may cause incorrect behavior and will be lost if the code is
2495
- * regenerated.
2496
- */
2497
-
2498
- /*
2499
- * Copyright (c) Microsoft Corporation. All rights reserved.
2500
- * Licensed under the MIT License. See License.txt in the project root for
2501
- * license information.
2502
- *
2503
- * Code generated by Microsoft (R) AutoRest Code Generator.
2504
- * Changes may cause incorrect behavior and will be lost if the code is
2505
- * regenerated.
2506
- */
2507
- var packageName = "@azure/arm-relay";
2508
- var packageVersion = "0.1.0";
2509
- var RelayManagementClientContext = /** @class */ (function (_super) {
2510
- __extends(RelayManagementClientContext, _super);
2511
- /**
2512
- * Initializes a new instance of the RelayManagementClient class.
2513
- * @param credentials Credentials needed for the client to connect to Azure.
2514
- * @param subscriptionId Subscription credentials which uniquely identify the Microsoft Azure
2515
- * subscription. The subscription ID forms part of the URI for every service call.
2516
- * @param [options] The parameter options
2517
- */
2518
- function RelayManagementClientContext(credentials, subscriptionId, options) {
2519
- var _this = this;
2520
- if (credentials == undefined) {
2521
- throw new Error('\'credentials\' cannot be null.');
2522
- }
2523
- if (subscriptionId == undefined) {
2524
- throw new Error('\'subscriptionId\' cannot be null.');
2525
- }
2526
- if (!options) {
2527
- options = {};
2528
- }
2529
- if (!options.userAgent) {
2530
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
2531
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2532
- }
2533
- _this = _super.call(this, credentials, options) || this;
2534
- _this.apiVersion = '2017-04-01';
2535
- _this.acceptLanguage = 'en-US';
2536
- _this.longRunningOperationRetryTimeout = 30;
2537
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
2538
- _this.requestContentType = "application/json; charset=utf-8";
2539
- _this.credentials = credentials;
2540
- _this.subscriptionId = subscriptionId;
2541
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
2542
- _this.acceptLanguage = options.acceptLanguage;
2543
- }
2544
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
2545
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
2546
- }
2547
- return _this;
2548
- }
2549
- return RelayManagementClientContext;
2550
- }(msRestAzure.AzureServiceClient));
2551
-
2552
- /*
2553
- * Copyright (c) Microsoft Corporation. All rights reserved.
2554
- * Licensed under the MIT License. See License.txt in the project root for
2555
- * license information.
2556
- *
2557
- * Code generated by Microsoft (R) AutoRest Code Generator.
2558
- * Changes may cause incorrect behavior and will be lost if the code is
2559
- * regenerated.
2560
- */
2561
- var RelayManagementClient = /** @class */ (function (_super) {
2562
- __extends(RelayManagementClient, _super);
2563
- /**
2564
- * Initializes a new instance of the RelayManagementClient class.
2565
- * @param credentials Credentials needed for the client to connect to Azure.
2566
- * @param subscriptionId Subscription credentials which uniquely identify the Microsoft Azure
2567
- * subscription. The subscription ID forms part of the URI for every service call.
2568
- * @param [options] The parameter options
2569
- */
2570
- function RelayManagementClient(credentials, subscriptionId, options) {
2571
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
2572
- _this.operations = new Operations(_this);
2573
- _this.namespaces = new Namespaces(_this);
2574
- _this.hybridConnections = new HybridConnections(_this);
2575
- _this.wCFRelays = new WCFRelays(_this);
2576
- return _this;
2577
- }
2578
- return RelayManagementClient;
2579
- }(RelayManagementClientContext));
2580
-
2581
- exports.RelayManagementClient = RelayManagementClient;
2582
- exports.RelayManagementClientContext = RelayManagementClientContext;
2583
- exports.RelayManagementModels = index;
2584
- exports.RelayManagementMappers = mappers;
2585
- exports.Operations = Operations;
2586
- exports.Namespaces = Namespaces;
2587
- exports.HybridConnections = HybridConnections;
2588
- exports.WCFRelays = WCFRelays;
2589
-
2590
- Object.defineProperty(exports, '__esModule', { value: true });
2591
-
2592
- })));
2593
- //# sourceMappingURL=arm-relay.js.map