@azure/arm-serialconsole 2.1.1-alpha.20250214.1 → 2.1.1-alpha.20250218.1

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 (223) hide show
  1. package/README.md +21 -12
  2. package/dist/browser/index.d.ts +4 -0
  3. package/dist/browser/index.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/index.js +3 -3
  5. package/dist/browser/index.js.map +1 -0
  6. package/{dist-esm/src → dist/browser}/microsoftSerialConsoleClient.d.ts +2 -2
  7. package/dist/browser/microsoftSerialConsoleClient.d.ts.map +1 -0
  8. package/{dist-esm/src → dist/browser}/microsoftSerialConsoleClient.js +17 -20
  9. package/dist/browser/microsoftSerialConsoleClient.js.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/dist/browser/operations/index.d.ts +2 -0
  15. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  16. package/{dist-esm/src → dist/browser}/operations/index.js +1 -1
  17. package/dist/browser/operations/index.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/serialPorts.d.ts +3 -3
  19. package/dist/browser/operations/serialPorts.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/serialPorts.js +2 -2
  21. package/dist/browser/operations/serialPorts.js.map +1 -0
  22. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  23. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  24. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +1 -1
  25. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operationsInterfaces/serialPorts.d.ts +1 -1
  27. package/dist/browser/operationsInterfaces/serialPorts.d.ts.map +1 -0
  28. package/dist/browser/operationsInterfaces/serialPorts.js.map +1 -0
  29. package/dist/browser/package.json +3 -0
  30. package/dist/commonjs/index.d.ts +4 -0
  31. package/dist/commonjs/index.d.ts.map +1 -0
  32. package/dist/commonjs/index.js +16 -0
  33. package/dist/commonjs/index.js.map +1 -0
  34. package/dist/commonjs/microsoftSerialConsoleClient.d.ts +44 -0
  35. package/dist/commonjs/microsoftSerialConsoleClient.d.ts.map +1 -0
  36. package/dist/commonjs/microsoftSerialConsoleClient.js +211 -0
  37. package/dist/commonjs/microsoftSerialConsoleClient.js.map +1 -0
  38. package/dist/commonjs/models/index.d.ts +151 -0
  39. package/dist/commonjs/models/index.d.ts.map +1 -0
  40. package/dist/commonjs/models/index.js +10 -0
  41. package/dist/commonjs/models/index.js.map +1 -0
  42. package/dist/commonjs/models/mappers.d.ts +16 -0
  43. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  44. package/dist/commonjs/models/mappers.js +288 -0
  45. package/dist/commonjs/models/mappers.js.map +1 -0
  46. package/dist/commonjs/models/parameters.d.ts +14 -0
  47. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  48. package/dist/commonjs/models/parameters.js +131 -0
  49. package/dist/commonjs/models/parameters.js.map +1 -0
  50. package/dist/commonjs/operations/index.d.ts +2 -0
  51. package/dist/commonjs/operations/index.d.ts.map +1 -0
  52. package/dist/commonjs/operations/index.js +12 -0
  53. package/dist/commonjs/operations/index.js.map +1 -0
  54. package/dist/commonjs/operations/serialPorts.d.ts +78 -0
  55. package/dist/commonjs/operations/serialPorts.d.ts.map +1 -0
  56. package/dist/commonjs/operations/serialPorts.js +275 -0
  57. package/dist/commonjs/operations/serialPorts.js.map +1 -0
  58. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  59. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  60. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  61. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  62. package/dist/commonjs/operationsInterfaces/serialPorts.d.ts +70 -0
  63. package/dist/commonjs/operationsInterfaces/serialPorts.d.ts.map +1 -0
  64. package/dist/commonjs/operationsInterfaces/serialPorts.js +10 -0
  65. package/dist/commonjs/operationsInterfaces/serialPorts.js.map +1 -0
  66. package/dist/commonjs/package.json +3 -0
  67. package/dist/esm/index.d.ts +4 -0
  68. package/dist/esm/index.d.ts.map +1 -0
  69. package/{src/index.ts → dist/esm/index.js} +4 -4
  70. package/dist/esm/index.js.map +1 -0
  71. package/dist/esm/microsoftSerialConsoleClient.d.ts +44 -0
  72. package/dist/esm/microsoftSerialConsoleClient.d.ts.map +1 -0
  73. package/dist/esm/microsoftSerialConsoleClient.js +206 -0
  74. package/dist/esm/microsoftSerialConsoleClient.js.map +1 -0
  75. package/dist/esm/models/index.d.ts +151 -0
  76. package/dist/esm/models/index.d.ts.map +1 -0
  77. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -2
  78. package/dist/esm/models/index.js.map +1 -0
  79. package/dist/esm/models/mappers.d.ts +16 -0
  80. package/dist/esm/models/mappers.d.ts.map +1 -0
  81. package/dist/esm/models/mappers.js +285 -0
  82. package/dist/esm/models/mappers.js.map +1 -0
  83. package/dist/esm/models/parameters.d.ts +14 -0
  84. package/dist/esm/models/parameters.d.ts.map +1 -0
  85. package/dist/esm/models/parameters.js +128 -0
  86. package/dist/esm/models/parameters.js.map +1 -0
  87. package/dist/esm/operations/index.d.ts +2 -0
  88. package/dist/esm/operations/index.d.ts.map +1 -0
  89. package/dist/esm/operations/index.js +9 -0
  90. package/dist/esm/operations/index.js.map +1 -0
  91. package/dist/esm/operations/serialPorts.d.ts +78 -0
  92. package/dist/esm/operations/serialPorts.d.ts.map +1 -0
  93. package/dist/esm/operations/serialPorts.js +270 -0
  94. package/dist/esm/operations/serialPorts.js.map +1 -0
  95. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  96. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  97. package/dist/esm/operationsInterfaces/index.js +9 -0
  98. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  99. package/dist/esm/operationsInterfaces/serialPorts.d.ts +70 -0
  100. package/dist/esm/operationsInterfaces/serialPorts.d.ts.map +1 -0
  101. package/dist/esm/operationsInterfaces/serialPorts.js +9 -0
  102. package/dist/esm/operationsInterfaces/serialPorts.js.map +1 -0
  103. package/dist/esm/package.json +3 -0
  104. package/dist/react-native/index.d.ts +4 -0
  105. package/dist/react-native/index.d.ts.map +1 -0
  106. package/dist/react-native/index.js +11 -0
  107. package/dist/react-native/index.js.map +1 -0
  108. package/dist/react-native/microsoftSerialConsoleClient.d.ts +44 -0
  109. package/dist/react-native/microsoftSerialConsoleClient.d.ts.map +1 -0
  110. package/dist/react-native/microsoftSerialConsoleClient.js +206 -0
  111. package/dist/react-native/microsoftSerialConsoleClient.js.map +1 -0
  112. package/dist/react-native/models/index.d.ts +151 -0
  113. package/dist/react-native/models/index.d.ts.map +1 -0
  114. package/{src/operationsInterfaces/index.ts → dist/react-native/models/index.js} +2 -2
  115. package/dist/react-native/models/index.js.map +1 -0
  116. package/dist/react-native/models/mappers.d.ts +16 -0
  117. package/dist/react-native/models/mappers.d.ts.map +1 -0
  118. package/dist/react-native/models/mappers.js +285 -0
  119. package/dist/react-native/models/mappers.js.map +1 -0
  120. package/dist/react-native/models/parameters.d.ts +14 -0
  121. package/dist/react-native/models/parameters.d.ts.map +1 -0
  122. package/dist/react-native/models/parameters.js +128 -0
  123. package/dist/react-native/models/parameters.js.map +1 -0
  124. package/dist/react-native/operations/index.d.ts +2 -0
  125. package/dist/react-native/operations/index.d.ts.map +1 -0
  126. package/dist/react-native/operations/index.js +9 -0
  127. package/dist/react-native/operations/index.js.map +1 -0
  128. package/dist/react-native/operations/serialPorts.d.ts +78 -0
  129. package/dist/react-native/operations/serialPorts.d.ts.map +1 -0
  130. package/dist/react-native/operations/serialPorts.js +270 -0
  131. package/dist/react-native/operations/serialPorts.js.map +1 -0
  132. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  133. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  134. package/dist/react-native/operationsInterfaces/index.js +9 -0
  135. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  136. package/dist/react-native/operationsInterfaces/serialPorts.d.ts +70 -0
  137. package/dist/react-native/operationsInterfaces/serialPorts.d.ts.map +1 -0
  138. package/dist/react-native/operationsInterfaces/serialPorts.js +9 -0
  139. package/dist/react-native/operationsInterfaces/serialPorts.js.map +1 -0
  140. package/dist/react-native/package.json +3 -0
  141. package/package.json +65 -34
  142. package/dist/index.js +0 -930
  143. package/dist/index.js.map +0 -1
  144. package/dist/index.min.js +0 -1
  145. package/dist/index.min.js.map +0 -1
  146. package/dist-esm/samples-dev/disableConsoleSample.d.ts +0 -2
  147. package/dist-esm/samples-dev/disableConsoleSample.d.ts.map +0 -1
  148. package/dist-esm/samples-dev/disableConsoleSample.js +0 -28
  149. package/dist-esm/samples-dev/disableConsoleSample.js.map +0 -1
  150. package/dist-esm/samples-dev/enableConsoleSample.d.ts +0 -2
  151. package/dist-esm/samples-dev/enableConsoleSample.d.ts.map +0 -1
  152. package/dist-esm/samples-dev/enableConsoleSample.js +0 -28
  153. package/dist-esm/samples-dev/enableConsoleSample.js.map +0 -1
  154. package/dist-esm/samples-dev/getConsoleStatusSample.d.ts +0 -2
  155. package/dist-esm/samples-dev/getConsoleStatusSample.d.ts.map +0 -1
  156. package/dist-esm/samples-dev/getConsoleStatusSample.js +0 -28
  157. package/dist-esm/samples-dev/getConsoleStatusSample.js.map +0 -1
  158. package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
  159. package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
  160. package/dist-esm/samples-dev/listOperationsSample.js +0 -27
  161. package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
  162. package/dist-esm/samples-dev/serialPortsConnectSample.d.ts +0 -2
  163. package/dist-esm/samples-dev/serialPortsConnectSample.d.ts.map +0 -1
  164. package/dist-esm/samples-dev/serialPortsConnectSample.js +0 -53
  165. package/dist-esm/samples-dev/serialPortsConnectSample.js.map +0 -1
  166. package/dist-esm/samples-dev/serialPortsCreateSample.d.ts +0 -2
  167. package/dist-esm/samples-dev/serialPortsCreateSample.d.ts.map +0 -1
  168. package/dist-esm/samples-dev/serialPortsCreateSample.js +0 -26
  169. package/dist-esm/samples-dev/serialPortsCreateSample.js.map +0 -1
  170. package/dist-esm/samples-dev/serialPortsDeleteSample.d.ts +0 -2
  171. package/dist-esm/samples-dev/serialPortsDeleteSample.d.ts.map +0 -1
  172. package/dist-esm/samples-dev/serialPortsDeleteSample.js +0 -32
  173. package/dist-esm/samples-dev/serialPortsDeleteSample.js.map +0 -1
  174. package/dist-esm/samples-dev/serialPortsGetSample.d.ts +0 -2
  175. package/dist-esm/samples-dev/serialPortsGetSample.d.ts.map +0 -1
  176. package/dist-esm/samples-dev/serialPortsGetSample.js +0 -32
  177. package/dist-esm/samples-dev/serialPortsGetSample.js.map +0 -1
  178. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.d.ts +0 -2
  179. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.d.ts.map +0 -1
  180. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.js +0 -27
  181. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.js.map +0 -1
  182. package/dist-esm/samples-dev/serialPortsListSample.d.ts +0 -2
  183. package/dist-esm/samples-dev/serialPortsListSample.d.ts.map +0 -1
  184. package/dist-esm/samples-dev/serialPortsListSample.js +0 -31
  185. package/dist-esm/samples-dev/serialPortsListSample.js.map +0 -1
  186. package/dist-esm/src/index.d.ts +0 -4
  187. package/dist-esm/src/index.d.ts.map +0 -1
  188. package/dist-esm/src/index.js.map +0 -1
  189. package/dist-esm/src/microsoftSerialConsoleClient.d.ts.map +0 -1
  190. package/dist-esm/src/microsoftSerialConsoleClient.js.map +0 -1
  191. package/dist-esm/src/models/index.js.map +0 -1
  192. package/dist-esm/src/models/mappers.js.map +0 -1
  193. package/dist-esm/src/models/parameters.js.map +0 -1
  194. package/dist-esm/src/operations/index.d.ts +0 -2
  195. package/dist-esm/src/operations/index.js.map +0 -1
  196. package/dist-esm/src/operations/serialPorts.d.ts.map +0 -1
  197. package/dist-esm/src/operations/serialPorts.js.map +0 -1
  198. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  199. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  200. package/dist-esm/src/operationsInterfaces/serialPorts.d.ts.map +0 -1
  201. package/dist-esm/src/operationsInterfaces/serialPorts.js.map +0 -1
  202. package/dist-esm/test/sampleTest.d.ts +0 -2
  203. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  204. package/dist-esm/test/sampleTest.js +0 -42
  205. package/dist-esm/test/sampleTest.js.map +0 -1
  206. package/src/microsoftSerialConsoleClient.ts +0 -287
  207. package/src/models/index.ts +0 -193
  208. package/src/models/mappers.ts +0 -305
  209. package/src/models/parameters.ts +0 -145
  210. package/src/operations/serialPorts.ts +0 -357
  211. package/src/operationsInterfaces/serialPorts.ts +0 -128
  212. package/tsconfig.json +0 -33
  213. package/types/arm-serialconsole.d.ts +0 -297
  214. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  215. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  216. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  217. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  218. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  219. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  220. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  221. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  222. /package/{dist-esm/src → dist/browser}/operationsInterfaces/serialPorts.js +0 -0
  223. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SerialPort = exports.ProxyResource = exports.SerialPortConnectResult = exports.CloudErrorBody = exports.CloudError = exports.Resource = exports.SerialPortListResult = exports.EnableSerialConsoleResult = exports.DisableSerialConsoleResult = exports.GetSerialConsoleSubscriptionNotFound = exports.SerialConsoleStatus = exports.SerialConsoleOperationsValueItemDisplay = exports.SerialConsoleOperationsValueItem = exports.SerialConsoleOperations = void 0;
11
+ exports.SerialConsoleOperations = {
12
+ type: {
13
+ name: "Composite",
14
+ className: "SerialConsoleOperations",
15
+ modelProperties: {
16
+ value: {
17
+ serializedName: "value",
18
+ type: {
19
+ name: "Sequence",
20
+ element: {
21
+ type: {
22
+ name: "Composite",
23
+ className: "SerialConsoleOperationsValueItem"
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
30
+ };
31
+ exports.SerialConsoleOperationsValueItem = {
32
+ type: {
33
+ name: "Composite",
34
+ className: "SerialConsoleOperationsValueItem",
35
+ modelProperties: {
36
+ name: {
37
+ serializedName: "name",
38
+ type: {
39
+ name: "String"
40
+ }
41
+ },
42
+ isDataAction: {
43
+ serializedName: "isDataAction",
44
+ type: {
45
+ name: "String"
46
+ }
47
+ },
48
+ display: {
49
+ serializedName: "display",
50
+ type: {
51
+ name: "Composite",
52
+ className: "SerialConsoleOperationsValueItemDisplay"
53
+ }
54
+ }
55
+ }
56
+ }
57
+ };
58
+ exports.SerialConsoleOperationsValueItemDisplay = {
59
+ type: {
60
+ name: "Composite",
61
+ className: "SerialConsoleOperationsValueItemDisplay",
62
+ modelProperties: {
63
+ provider: {
64
+ serializedName: "provider",
65
+ type: {
66
+ name: "String"
67
+ }
68
+ },
69
+ resource: {
70
+ serializedName: "resource",
71
+ type: {
72
+ name: "String"
73
+ }
74
+ },
75
+ operation: {
76
+ serializedName: "operation",
77
+ type: {
78
+ name: "String"
79
+ }
80
+ },
81
+ description: {
82
+ serializedName: "description",
83
+ type: {
84
+ name: "String"
85
+ }
86
+ }
87
+ }
88
+ }
89
+ };
90
+ exports.SerialConsoleStatus = {
91
+ type: {
92
+ name: "Composite",
93
+ className: "SerialConsoleStatus",
94
+ modelProperties: {
95
+ disabled: {
96
+ serializedName: "disabled",
97
+ type: {
98
+ name: "Boolean"
99
+ }
100
+ }
101
+ }
102
+ }
103
+ };
104
+ exports.GetSerialConsoleSubscriptionNotFound = {
105
+ type: {
106
+ name: "Composite",
107
+ className: "GetSerialConsoleSubscriptionNotFound",
108
+ modelProperties: {
109
+ code: {
110
+ serializedName: "code",
111
+ type: {
112
+ name: "String"
113
+ }
114
+ },
115
+ message: {
116
+ serializedName: "message",
117
+ type: {
118
+ name: "String"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ };
124
+ exports.DisableSerialConsoleResult = {
125
+ type: {
126
+ name: "Composite",
127
+ className: "DisableSerialConsoleResult",
128
+ modelProperties: {
129
+ disabled: {
130
+ serializedName: "disabled",
131
+ type: {
132
+ name: "Boolean"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ };
138
+ exports.EnableSerialConsoleResult = {
139
+ type: {
140
+ name: "Composite",
141
+ className: "EnableSerialConsoleResult",
142
+ modelProperties: {
143
+ disabled: {
144
+ serializedName: "disabled",
145
+ type: {
146
+ name: "Boolean"
147
+ }
148
+ }
149
+ }
150
+ }
151
+ };
152
+ exports.SerialPortListResult = {
153
+ type: {
154
+ name: "Composite",
155
+ className: "SerialPortListResult",
156
+ modelProperties: {
157
+ value: {
158
+ serializedName: "value",
159
+ type: {
160
+ name: "Sequence",
161
+ element: {
162
+ type: {
163
+ name: "Composite",
164
+ className: "SerialPort"
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ };
172
+ exports.Resource = {
173
+ type: {
174
+ name: "Composite",
175
+ className: "Resource",
176
+ modelProperties: {
177
+ id: {
178
+ serializedName: "id",
179
+ readOnly: true,
180
+ type: {
181
+ name: "String"
182
+ }
183
+ },
184
+ name: {
185
+ serializedName: "name",
186
+ readOnly: true,
187
+ type: {
188
+ name: "String"
189
+ }
190
+ },
191
+ type: {
192
+ serializedName: "type",
193
+ readOnly: true,
194
+ type: {
195
+ name: "String"
196
+ }
197
+ }
198
+ }
199
+ }
200
+ };
201
+ exports.CloudError = {
202
+ type: {
203
+ name: "Composite",
204
+ className: "CloudError",
205
+ modelProperties: {
206
+ error: {
207
+ serializedName: "error",
208
+ type: {
209
+ name: "Composite",
210
+ className: "CloudErrorBody"
211
+ }
212
+ }
213
+ }
214
+ }
215
+ };
216
+ exports.CloudErrorBody = {
217
+ type: {
218
+ name: "Composite",
219
+ className: "CloudErrorBody",
220
+ modelProperties: {
221
+ code: {
222
+ serializedName: "code",
223
+ type: {
224
+ name: "String"
225
+ }
226
+ },
227
+ message: {
228
+ serializedName: "message",
229
+ type: {
230
+ name: "String"
231
+ }
232
+ },
233
+ target: {
234
+ serializedName: "target",
235
+ type: {
236
+ name: "String"
237
+ }
238
+ },
239
+ details: {
240
+ serializedName: "details",
241
+ type: {
242
+ name: "Sequence",
243
+ element: {
244
+ type: {
245
+ name: "Composite",
246
+ className: "CloudErrorBody"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ };
254
+ exports.SerialPortConnectResult = {
255
+ type: {
256
+ name: "Composite",
257
+ className: "SerialPortConnectResult",
258
+ modelProperties: {
259
+ connectionString: {
260
+ serializedName: "connectionString",
261
+ type: {
262
+ name: "String"
263
+ }
264
+ }
265
+ }
266
+ }
267
+ };
268
+ exports.ProxyResource = {
269
+ type: {
270
+ name: "Composite",
271
+ className: "ProxyResource",
272
+ modelProperties: Object.assign({}, exports.Resource.type.modelProperties)
273
+ }
274
+ };
275
+ exports.SerialPort = {
276
+ type: {
277
+ name: "Composite",
278
+ className: "SerialPort",
279
+ modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { state: {
280
+ serializedName: "properties.state",
281
+ type: {
282
+ name: "Enum",
283
+ allowedValues: ["enabled", "disabled"]
284
+ }
285
+ } })
286
+ }
287
+ };
288
+ //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kCAAkC;yBAC9C;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,gCAAgC,GAA+B;IAC1E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kCAAkC;QAC7C,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,yCAAyC;iBACrD;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,uCAAuC,GAA+B;IACjF,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yCAAyC;QACpD,eAAe,EAAE;YACf,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,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AAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,aAAa,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;iBACvC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const SerialConsoleOperations: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperations\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItem\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SerialConsoleOperationsValueItem: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItem\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItemDisplay\"\n }\n }\n }\n }\n};\n\nexport const SerialConsoleOperationsValueItemDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleOperationsValueItemDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const SerialConsoleStatus: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialConsoleStatus\",\n modelProperties: {\n disabled: {\n serializedName: \"disabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const GetSerialConsoleSubscriptionNotFound: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GetSerialConsoleSubscriptionNotFound\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DisableSerialConsoleResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DisableSerialConsoleResult\",\n modelProperties: {\n disabled: {\n serializedName: \"disabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const EnableSerialConsoleResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EnableSerialConsoleResult\",\n modelProperties: {\n disabled: {\n serializedName: \"disabled\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const SerialPortListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialPortListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SerialPort\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n};\n\nexport const CloudErrorBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const SerialPortConnectResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialPortConnectResult\",\n modelProperties: {\n connectionString: {\n serializedName: \"connectionString\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties\n }\n }\n};\n\nexport const SerialPort: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SerialPort\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n state: {\n serializedName: \"properties.state\",\n type: {\n name: \"Enum\",\n allowedValues: [\"enabled\", \"disabled\"]\n }\n }\n }\n }\n};\n"]}
@@ -0,0 +1,14 @@
1
+ import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
2
+ export declare const accept: OperationParameter;
3
+ export declare const $host: OperationURLParameter;
4
+ export declare const apiVersion: OperationQueryParameter;
5
+ export declare const subscriptionId: OperationURLParameter;
6
+ export declare const defaultParam: OperationURLParameter;
7
+ export declare const resourceGroupName: OperationURLParameter;
8
+ export declare const resourceProviderNamespace: OperationURLParameter;
9
+ export declare const parentResourceType: OperationURLParameter;
10
+ export declare const parentResource: OperationURLParameter;
11
+ export declare const serialPort: OperationURLParameter;
12
+ export declare const contentType: OperationParameter;
13
+ export declare const parameters: OperationParameter;
14
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAS5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,qBAS1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAS/B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,qBASvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,qBAUhC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAS5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,qBASxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.parameters = exports.contentType = exports.serialPort = exports.parentResource = exports.parentResourceType = exports.resourceProviderNamespace = exports.resourceGroupName = exports.defaultParam = exports.subscriptionId = exports.apiVersion = exports.$host = exports.accept = void 0;
11
+ const mappers_js_1 = require("../models/mappers.js");
12
+ exports.accept = {
13
+ parameterPath: "accept",
14
+ mapper: {
15
+ defaultValue: "application/json",
16
+ isConstant: true,
17
+ serializedName: "Accept",
18
+ type: {
19
+ name: "String"
20
+ }
21
+ }
22
+ };
23
+ exports.$host = {
24
+ parameterPath: "$host",
25
+ mapper: {
26
+ serializedName: "$host",
27
+ required: true,
28
+ type: {
29
+ name: "String"
30
+ }
31
+ },
32
+ skipEncoding: true
33
+ };
34
+ exports.apiVersion = {
35
+ parameterPath: "apiVersion",
36
+ mapper: {
37
+ defaultValue: "2018-05-01",
38
+ isConstant: true,
39
+ serializedName: "api-version",
40
+ type: {
41
+ name: "String"
42
+ }
43
+ }
44
+ };
45
+ exports.subscriptionId = {
46
+ parameterPath: "subscriptionId",
47
+ mapper: {
48
+ serializedName: "subscriptionId",
49
+ required: true,
50
+ type: {
51
+ name: "String"
52
+ }
53
+ }
54
+ };
55
+ exports.defaultParam = {
56
+ parameterPath: "defaultParam",
57
+ mapper: {
58
+ serializedName: "default",
59
+ required: true,
60
+ type: {
61
+ name: "String"
62
+ }
63
+ }
64
+ };
65
+ exports.resourceGroupName = {
66
+ parameterPath: "resourceGroupName",
67
+ mapper: {
68
+ serializedName: "resourceGroupName",
69
+ required: true,
70
+ type: {
71
+ name: "String"
72
+ }
73
+ }
74
+ };
75
+ exports.resourceProviderNamespace = {
76
+ parameterPath: "resourceProviderNamespace",
77
+ mapper: {
78
+ serializedName: "resourceProviderNamespace",
79
+ required: true,
80
+ type: {
81
+ name: "String"
82
+ }
83
+ }
84
+ };
85
+ exports.parentResourceType = {
86
+ parameterPath: "parentResourceType",
87
+ mapper: {
88
+ serializedName: "parentResourceType",
89
+ required: true,
90
+ type: {
91
+ name: "String"
92
+ }
93
+ },
94
+ skipEncoding: true
95
+ };
96
+ exports.parentResource = {
97
+ parameterPath: "parentResource",
98
+ mapper: {
99
+ serializedName: "parentResource",
100
+ required: true,
101
+ type: {
102
+ name: "String"
103
+ }
104
+ }
105
+ };
106
+ exports.serialPort = {
107
+ parameterPath: "serialPort",
108
+ mapper: {
109
+ serializedName: "serialPort",
110
+ required: true,
111
+ type: {
112
+ name: "String"
113
+ }
114
+ }
115
+ };
116
+ exports.contentType = {
117
+ parameterPath: ["options", "contentType"],
118
+ mapper: {
119
+ defaultValue: "application/json",
120
+ isConstant: true,
121
+ serializedName: "Content-Type",
122
+ type: {
123
+ name: "String"
124
+ }
125
+ }
126
+ };
127
+ exports.parameters = {
128
+ parameterPath: "parameters",
129
+ mapper: mappers_js_1.SerialPort
130
+ };
131
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,qDAAsE;AAEzD,QAAA,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEW,QAAA,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,cAAc,GAA0B;IACnD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,YAAY,GAA0B;IACjD,aAAa,EAAE,cAAc;IAC7B,MAAM,EAAE;QACN,cAAc,EAAE,SAAS;QACzB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,iBAAiB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BAAgB;CACzB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { SerialPort as SerialPortMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2018-05-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const defaultParam: OperationURLParameter = {\n parameterPath: \"defaultParam\",\n mapper: {\n serializedName: \"default\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceProviderNamespace: OperationURLParameter = {\n parameterPath: \"resourceProviderNamespace\",\n mapper: {\n serializedName: \"resourceProviderNamespace\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parentResourceType: OperationURLParameter = {\n parameterPath: \"parentResourceType\",\n mapper: {\n serializedName: \"parentResourceType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const parentResource: OperationURLParameter = {\n parameterPath: \"parentResource\",\n mapper: {\n serializedName: \"parentResource\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const serialPort: OperationURLParameter = {\n parameterPath: \"serialPort\",\n mapper: {\n serializedName: \"serialPort\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: SerialPortMapper\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./serialPorts.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./serialPorts.js"), exports);
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,2DAAiC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./serialPorts.js\";\n"]}
@@ -0,0 +1,78 @@
1
+ import { SerialPorts } from "../operationsInterfaces/index.js";
2
+ import { MicrosoftSerialConsoleClient } from "../microsoftSerialConsoleClient.js";
3
+ import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models/index.js";
4
+ /** Class containing SerialPorts operations. */
5
+ export declare class SerialPortsImpl implements SerialPorts {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class SerialPorts class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: MicrosoftSerialConsoleClient);
12
+ /**
13
+ * Lists all of the configured serial ports for a parent resource
14
+ * @param resourceGroupName The name of the resource group.
15
+ * @param resourceProviderNamespace The namespace of the resource provider.
16
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
17
+ * or 'virtualMachineScaleSets'
18
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
19
+ * example: the name of the virtual machine.
20
+ * @param options The options parameters.
21
+ */
22
+ list(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, options?: SerialPortsListOptionalParams): Promise<SerialPortsListResponse>;
23
+ /**
24
+ * Gets the configured settings for a serial port
25
+ * @param resourceGroupName The name of the resource group.
26
+ * @param resourceProviderNamespace The namespace of the resource provider.
27
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
28
+ * or 'virtualMachineScaleSets'
29
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
30
+ * example: the name of the virtual machine.
31
+ * @param serialPort The name of the serial port to connect to.
32
+ * @param options The options parameters.
33
+ */
34
+ get(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsGetOptionalParams): Promise<SerialPortsGetResponse>;
35
+ /**
36
+ * Creates or updates a serial port
37
+ * @param resourceGroupName The name of the resource group.
38
+ * @param resourceProviderNamespace The namespace of the resource provider.
39
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
40
+ * or 'virtualMachineScaleSets'
41
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
42
+ * example: the name of the virtual machine.
43
+ * @param serialPort The name of the serial port to create.
44
+ * @param parameters Parameters supplied to create the serial port.
45
+ * @param options The options parameters.
46
+ */
47
+ create(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, parameters: SerialPort, options?: SerialPortsCreateOptionalParams): Promise<SerialPortsCreateResponse>;
48
+ /**
49
+ * Deletes a serial port
50
+ * @param resourceGroupName The name of the resource group.
51
+ * @param resourceProviderNamespace The namespace of the resource provider.
52
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
53
+ * or 'virtualMachineScaleSets'
54
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
55
+ * example: the name of the virtual machine.
56
+ * @param serialPort The name of the serial port to delete.
57
+ * @param options The options parameters.
58
+ */
59
+ delete(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsDeleteOptionalParams): Promise<void>;
60
+ /**
61
+ * Handles requests to list all SerialPort resources in a subscription.
62
+ * @param options The options parameters.
63
+ */
64
+ listBySubscriptions(options?: SerialPortsListBySubscriptionsOptionalParams): Promise<SerialPortsListBySubscriptionsResponse>;
65
+ /**
66
+ * Connect to serial port of the target resource
67
+ * @param resourceGroupName The name of the resource group.
68
+ * @param resourceProviderNamespace The namespace of the resource provider.
69
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
70
+ * or 'virtualMachineScaleSets'
71
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
72
+ * example: the name of the virtual machine.
73
+ * @param serialPort The name of the serial port to connect to.
74
+ * @param options The options parameters.
75
+ */
76
+ connect(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsConnectOptionalParams): Promise<SerialPortsConnectResponse>;
77
+ }
78
+ //# sourceMappingURL=serialPorts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialPorts.d.ts","sourceRoot":"","sources":["../../../src/operations/serialPorts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,UAAU,EACV,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,4CAA4C,EAC5C,sCAAsC,EACtC,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,+CAA+C;AAC/C,qBAAa,eAAgB,YAAW,WAAW;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAanC;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAclC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,UAAU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