@azure/arm-serialconsole 2.1.1-alpha.20250217.1 → 2.1.1-alpha.20250219.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/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  68. package/dist/esm/index.d.ts +4 -0
  69. package/dist/esm/index.d.ts.map +1 -0
  70. package/{src/index.ts → dist/esm/index.js} +4 -4
  71. package/dist/esm/index.js.map +1 -0
  72. package/dist/esm/microsoftSerialConsoleClient.d.ts +44 -0
  73. package/dist/esm/microsoftSerialConsoleClient.d.ts.map +1 -0
  74. package/dist/esm/microsoftSerialConsoleClient.js +206 -0
  75. package/dist/esm/microsoftSerialConsoleClient.js.map +1 -0
  76. package/dist/esm/models/index.d.ts +151 -0
  77. package/dist/esm/models/index.d.ts.map +1 -0
  78. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -2
  79. package/dist/esm/models/index.js.map +1 -0
  80. package/dist/esm/models/mappers.d.ts +16 -0
  81. package/dist/esm/models/mappers.d.ts.map +1 -0
  82. package/dist/esm/models/mappers.js +285 -0
  83. package/dist/esm/models/mappers.js.map +1 -0
  84. package/dist/esm/models/parameters.d.ts +14 -0
  85. package/dist/esm/models/parameters.d.ts.map +1 -0
  86. package/dist/esm/models/parameters.js +128 -0
  87. package/dist/esm/models/parameters.js.map +1 -0
  88. package/dist/esm/operations/index.d.ts +2 -0
  89. package/dist/esm/operations/index.d.ts.map +1 -0
  90. package/dist/esm/operations/index.js +9 -0
  91. package/dist/esm/operations/index.js.map +1 -0
  92. package/dist/esm/operations/serialPorts.d.ts +78 -0
  93. package/dist/esm/operations/serialPorts.d.ts.map +1 -0
  94. package/dist/esm/operations/serialPorts.js +270 -0
  95. package/dist/esm/operations/serialPorts.js.map +1 -0
  96. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  97. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  98. package/dist/esm/operationsInterfaces/index.js +9 -0
  99. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  100. package/dist/esm/operationsInterfaces/serialPorts.d.ts +70 -0
  101. package/dist/esm/operationsInterfaces/serialPorts.d.ts.map +1 -0
  102. package/dist/esm/operationsInterfaces/serialPorts.js +9 -0
  103. package/dist/esm/operationsInterfaces/serialPorts.js.map +1 -0
  104. package/dist/esm/package.json +3 -0
  105. package/dist/react-native/index.d.ts +4 -0
  106. package/dist/react-native/index.d.ts.map +1 -0
  107. package/dist/react-native/index.js +11 -0
  108. package/dist/react-native/index.js.map +1 -0
  109. package/dist/react-native/microsoftSerialConsoleClient.d.ts +44 -0
  110. package/dist/react-native/microsoftSerialConsoleClient.d.ts.map +1 -0
  111. package/dist/react-native/microsoftSerialConsoleClient.js +206 -0
  112. package/dist/react-native/microsoftSerialConsoleClient.js.map +1 -0
  113. package/dist/react-native/models/index.d.ts +151 -0
  114. package/dist/react-native/models/index.d.ts.map +1 -0
  115. package/{src/operationsInterfaces/index.ts → dist/react-native/models/index.js} +2 -2
  116. package/dist/react-native/models/index.js.map +1 -0
  117. package/dist/react-native/models/mappers.d.ts +16 -0
  118. package/dist/react-native/models/mappers.d.ts.map +1 -0
  119. package/dist/react-native/models/mappers.js +285 -0
  120. package/dist/react-native/models/mappers.js.map +1 -0
  121. package/dist/react-native/models/parameters.d.ts +14 -0
  122. package/dist/react-native/models/parameters.d.ts.map +1 -0
  123. package/dist/react-native/models/parameters.js +128 -0
  124. package/dist/react-native/models/parameters.js.map +1 -0
  125. package/dist/react-native/operations/index.d.ts +2 -0
  126. package/dist/react-native/operations/index.d.ts.map +1 -0
  127. package/dist/react-native/operations/index.js +9 -0
  128. package/dist/react-native/operations/index.js.map +1 -0
  129. package/dist/react-native/operations/serialPorts.d.ts +78 -0
  130. package/dist/react-native/operations/serialPorts.d.ts.map +1 -0
  131. package/dist/react-native/operations/serialPorts.js +270 -0
  132. package/dist/react-native/operations/serialPorts.js.map +1 -0
  133. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  134. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  135. package/dist/react-native/operationsInterfaces/index.js +9 -0
  136. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  137. package/dist/react-native/operationsInterfaces/serialPorts.d.ts +70 -0
  138. package/dist/react-native/operationsInterfaces/serialPorts.d.ts.map +1 -0
  139. package/dist/react-native/operationsInterfaces/serialPorts.js +9 -0
  140. package/dist/react-native/operationsInterfaces/serialPorts.js.map +1 -0
  141. package/dist/react-native/package.json +3 -0
  142. package/package.json +65 -34
  143. package/dist/index.js +0 -930
  144. package/dist/index.js.map +0 -1
  145. package/dist/index.min.js +0 -1
  146. package/dist/index.min.js.map +0 -1
  147. package/dist-esm/samples-dev/disableConsoleSample.d.ts +0 -2
  148. package/dist-esm/samples-dev/disableConsoleSample.d.ts.map +0 -1
  149. package/dist-esm/samples-dev/disableConsoleSample.js +0 -28
  150. package/dist-esm/samples-dev/disableConsoleSample.js.map +0 -1
  151. package/dist-esm/samples-dev/enableConsoleSample.d.ts +0 -2
  152. package/dist-esm/samples-dev/enableConsoleSample.d.ts.map +0 -1
  153. package/dist-esm/samples-dev/enableConsoleSample.js +0 -28
  154. package/dist-esm/samples-dev/enableConsoleSample.js.map +0 -1
  155. package/dist-esm/samples-dev/getConsoleStatusSample.d.ts +0 -2
  156. package/dist-esm/samples-dev/getConsoleStatusSample.d.ts.map +0 -1
  157. package/dist-esm/samples-dev/getConsoleStatusSample.js +0 -28
  158. package/dist-esm/samples-dev/getConsoleStatusSample.js.map +0 -1
  159. package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
  160. package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
  161. package/dist-esm/samples-dev/listOperationsSample.js +0 -27
  162. package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
  163. package/dist-esm/samples-dev/serialPortsConnectSample.d.ts +0 -2
  164. package/dist-esm/samples-dev/serialPortsConnectSample.d.ts.map +0 -1
  165. package/dist-esm/samples-dev/serialPortsConnectSample.js +0 -53
  166. package/dist-esm/samples-dev/serialPortsConnectSample.js.map +0 -1
  167. package/dist-esm/samples-dev/serialPortsCreateSample.d.ts +0 -2
  168. package/dist-esm/samples-dev/serialPortsCreateSample.d.ts.map +0 -1
  169. package/dist-esm/samples-dev/serialPortsCreateSample.js +0 -26
  170. package/dist-esm/samples-dev/serialPortsCreateSample.js.map +0 -1
  171. package/dist-esm/samples-dev/serialPortsDeleteSample.d.ts +0 -2
  172. package/dist-esm/samples-dev/serialPortsDeleteSample.d.ts.map +0 -1
  173. package/dist-esm/samples-dev/serialPortsDeleteSample.js +0 -32
  174. package/dist-esm/samples-dev/serialPortsDeleteSample.js.map +0 -1
  175. package/dist-esm/samples-dev/serialPortsGetSample.d.ts +0 -2
  176. package/dist-esm/samples-dev/serialPortsGetSample.d.ts.map +0 -1
  177. package/dist-esm/samples-dev/serialPortsGetSample.js +0 -32
  178. package/dist-esm/samples-dev/serialPortsGetSample.js.map +0 -1
  179. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.d.ts +0 -2
  180. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.d.ts.map +0 -1
  181. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.js +0 -27
  182. package/dist-esm/samples-dev/serialPortsListBySubscriptionsSample.js.map +0 -1
  183. package/dist-esm/samples-dev/serialPortsListSample.d.ts +0 -2
  184. package/dist-esm/samples-dev/serialPortsListSample.d.ts.map +0 -1
  185. package/dist-esm/samples-dev/serialPortsListSample.js +0 -31
  186. package/dist-esm/samples-dev/serialPortsListSample.js.map +0 -1
  187. package/dist-esm/src/index.d.ts +0 -4
  188. package/dist-esm/src/index.d.ts.map +0 -1
  189. package/dist-esm/src/index.js.map +0 -1
  190. package/dist-esm/src/microsoftSerialConsoleClient.d.ts.map +0 -1
  191. package/dist-esm/src/microsoftSerialConsoleClient.js.map +0 -1
  192. package/dist-esm/src/models/index.js.map +0 -1
  193. package/dist-esm/src/models/mappers.js.map +0 -1
  194. package/dist-esm/src/models/parameters.js.map +0 -1
  195. package/dist-esm/src/operations/index.d.ts +0 -2
  196. package/dist-esm/src/operations/index.js.map +0 -1
  197. package/dist-esm/src/operations/serialPorts.d.ts.map +0 -1
  198. package/dist-esm/src/operations/serialPorts.js.map +0 -1
  199. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  200. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  201. package/dist-esm/src/operationsInterfaces/serialPorts.d.ts.map +0 -1
  202. package/dist-esm/src/operationsInterfaces/serialPorts.js.map +0 -1
  203. package/dist-esm/test/sampleTest.d.ts +0 -2
  204. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  205. package/dist-esm/test/sampleTest.js +0 -42
  206. package/dist-esm/test/sampleTest.js.map +0 -1
  207. package/src/microsoftSerialConsoleClient.ts +0 -287
  208. package/src/models/index.ts +0 -193
  209. package/src/models/mappers.ts +0 -305
  210. package/src/models/parameters.ts +0 -145
  211. package/src/operations/serialPorts.ts +0 -357
  212. package/src/operationsInterfaces/serialPorts.ts +0 -128
  213. package/tsconfig.json +0 -33
  214. package/types/arm-serialconsole.d.ts +0 -297
  215. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  216. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  217. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  218. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  219. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  220. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  221. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  222. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  223. /package/{dist-esm/src → dist/browser}/operationsInterfaces/serialPorts.js +0 -0
@@ -0,0 +1,270 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
+ /** Class containing SerialPorts operations. */
12
+ export class SerialPortsImpl {
13
+ /**
14
+ * Initialize a new instance of the class SerialPorts class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Lists all of the configured serial ports for a parent resource
22
+ * @param resourceGroupName The name of the resource group.
23
+ * @param resourceProviderNamespace The namespace of the resource provider.
24
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
25
+ * or 'virtualMachineScaleSets'
26
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
27
+ * example: the name of the virtual machine.
28
+ * @param options The options parameters.
29
+ */
30
+ list(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, options) {
31
+ return this.client.sendOperationRequest({
32
+ resourceGroupName,
33
+ resourceProviderNamespace,
34
+ parentResourceType,
35
+ parentResource,
36
+ options
37
+ }, listOperationSpec);
38
+ }
39
+ /**
40
+ * Gets the configured settings for a serial port
41
+ * @param resourceGroupName The name of the resource group.
42
+ * @param resourceProviderNamespace The namespace of the resource provider.
43
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
44
+ * or 'virtualMachineScaleSets'
45
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
46
+ * example: the name of the virtual machine.
47
+ * @param serialPort The name of the serial port to connect to.
48
+ * @param options The options parameters.
49
+ */
50
+ get(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
51
+ return this.client.sendOperationRequest({
52
+ resourceGroupName,
53
+ resourceProviderNamespace,
54
+ parentResourceType,
55
+ parentResource,
56
+ serialPort,
57
+ options
58
+ }, getOperationSpec);
59
+ }
60
+ /**
61
+ * Creates or updates a serial port
62
+ * @param resourceGroupName The name of the resource group.
63
+ * @param resourceProviderNamespace The namespace of the resource provider.
64
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
65
+ * or 'virtualMachineScaleSets'
66
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
67
+ * example: the name of the virtual machine.
68
+ * @param serialPort The name of the serial port to create.
69
+ * @param parameters Parameters supplied to create the serial port.
70
+ * @param options The options parameters.
71
+ */
72
+ create(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, parameters, options) {
73
+ return this.client.sendOperationRequest({
74
+ resourceGroupName,
75
+ resourceProviderNamespace,
76
+ parentResourceType,
77
+ parentResource,
78
+ serialPort,
79
+ parameters,
80
+ options
81
+ }, createOperationSpec);
82
+ }
83
+ /**
84
+ * Deletes a serial port
85
+ * @param resourceGroupName The name of the resource group.
86
+ * @param resourceProviderNamespace The namespace of the resource provider.
87
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
88
+ * or 'virtualMachineScaleSets'
89
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
90
+ * example: the name of the virtual machine.
91
+ * @param serialPort The name of the serial port to delete.
92
+ * @param options The options parameters.
93
+ */
94
+ delete(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
95
+ return this.client.sendOperationRequest({
96
+ resourceGroupName,
97
+ resourceProviderNamespace,
98
+ parentResourceType,
99
+ parentResource,
100
+ serialPort,
101
+ options
102
+ }, deleteOperationSpec);
103
+ }
104
+ /**
105
+ * Handles requests to list all SerialPort resources in a subscription.
106
+ * @param options The options parameters.
107
+ */
108
+ listBySubscriptions(options) {
109
+ return this.client.sendOperationRequest({ options }, listBySubscriptionsOperationSpec);
110
+ }
111
+ /**
112
+ * Connect to serial port of the target resource
113
+ * @param resourceGroupName The name of the resource group.
114
+ * @param resourceProviderNamespace The namespace of the resource provider.
115
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
116
+ * or 'virtualMachineScaleSets'
117
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
118
+ * example: the name of the virtual machine.
119
+ * @param serialPort The name of the serial port to connect to.
120
+ * @param options The options parameters.
121
+ */
122
+ connect(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
123
+ return this.client.sendOperationRequest({
124
+ resourceGroupName,
125
+ resourceProviderNamespace,
126
+ parentResourceType,
127
+ parentResource,
128
+ serialPort,
129
+ options
130
+ }, connectOperationSpec);
131
+ }
132
+ }
133
+ // Operation Specifications
134
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
135
+ const listOperationSpec = {
136
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts",
137
+ httpMethod: "GET",
138
+ responses: {
139
+ 200: {
140
+ bodyMapper: Mappers.SerialPortListResult
141
+ },
142
+ default: {
143
+ bodyMapper: Mappers.CloudError
144
+ }
145
+ },
146
+ queryParameters: [Parameters.apiVersion],
147
+ urlParameters: [
148
+ Parameters.$host,
149
+ Parameters.subscriptionId,
150
+ Parameters.resourceGroupName,
151
+ Parameters.resourceProviderNamespace,
152
+ Parameters.parentResourceType,
153
+ Parameters.parentResource
154
+ ],
155
+ headerParameters: [Parameters.accept],
156
+ serializer
157
+ };
158
+ const getOperationSpec = {
159
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
160
+ httpMethod: "GET",
161
+ responses: {
162
+ 200: {
163
+ bodyMapper: Mappers.SerialPort
164
+ },
165
+ default: {
166
+ bodyMapper: Mappers.CloudError
167
+ }
168
+ },
169
+ queryParameters: [Parameters.apiVersion],
170
+ urlParameters: [
171
+ Parameters.$host,
172
+ Parameters.subscriptionId,
173
+ Parameters.resourceGroupName,
174
+ Parameters.resourceProviderNamespace,
175
+ Parameters.parentResourceType,
176
+ Parameters.parentResource,
177
+ Parameters.serialPort
178
+ ],
179
+ headerParameters: [Parameters.accept],
180
+ serializer
181
+ };
182
+ const createOperationSpec = {
183
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
184
+ httpMethod: "PUT",
185
+ responses: {
186
+ 201: {
187
+ bodyMapper: Mappers.SerialPort
188
+ },
189
+ default: {
190
+ bodyMapper: Mappers.CloudError
191
+ }
192
+ },
193
+ requestBody: Parameters.parameters,
194
+ queryParameters: [Parameters.apiVersion],
195
+ urlParameters: [
196
+ Parameters.$host,
197
+ Parameters.subscriptionId,
198
+ Parameters.resourceGroupName,
199
+ Parameters.resourceProviderNamespace,
200
+ Parameters.parentResourceType,
201
+ Parameters.parentResource,
202
+ Parameters.serialPort
203
+ ],
204
+ headerParameters: [Parameters.accept, Parameters.contentType],
205
+ mediaType: "json",
206
+ serializer
207
+ };
208
+ const deleteOperationSpec = {
209
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
210
+ httpMethod: "DELETE",
211
+ responses: {
212
+ 200: {},
213
+ 204: {},
214
+ default: {
215
+ bodyMapper: Mappers.CloudError
216
+ }
217
+ },
218
+ queryParameters: [Parameters.apiVersion],
219
+ urlParameters: [
220
+ Parameters.$host,
221
+ Parameters.subscriptionId,
222
+ Parameters.resourceGroupName,
223
+ Parameters.resourceProviderNamespace,
224
+ Parameters.parentResourceType,
225
+ Parameters.parentResource,
226
+ Parameters.serialPort
227
+ ],
228
+ headerParameters: [Parameters.accept],
229
+ serializer
230
+ };
231
+ const listBySubscriptionsOperationSpec = {
232
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts",
233
+ httpMethod: "GET",
234
+ responses: {
235
+ 200: {
236
+ bodyMapper: Mappers.SerialPortListResult
237
+ },
238
+ default: {
239
+ bodyMapper: Mappers.CloudError
240
+ }
241
+ },
242
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
243
+ headerParameters: [Parameters.accept],
244
+ serializer
245
+ };
246
+ const connectOperationSpec = {
247
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect",
248
+ httpMethod: "POST",
249
+ responses: {
250
+ 200: {
251
+ bodyMapper: Mappers.SerialPortConnectResult
252
+ },
253
+ default: {
254
+ bodyMapper: Mappers.CloudError
255
+ }
256
+ },
257
+ queryParameters: [Parameters.apiVersion],
258
+ urlParameters: [
259
+ Parameters.$host,
260
+ Parameters.subscriptionId,
261
+ Parameters.resourceGroupName,
262
+ Parameters.resourceProviderNamespace,
263
+ Parameters.parentResourceType,
264
+ Parameters.parentResource,
265
+ Parameters.serialPort
266
+ ],
267
+ headerParameters: [Parameters.accept],
268
+ serializer
269
+ };
270
+ //# sourceMappingURL=serialPorts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialPorts.js","sourceRoot":"","sources":["../../../src/operations/serialPorts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAyB,EACzB,yBAAiC,EACjC,kBAA0B,EAC1B,cAAsB,EACtB,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oB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,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,+EAA+E;IACjF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EACF,mNAAmN;IACrN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SerialPorts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftSerialConsoleClient } from \"../microsoftSerialConsoleClient.js\";\nimport {\n SerialPortsListOptionalParams,\n SerialPortsListResponse,\n SerialPortsGetOptionalParams,\n SerialPortsGetResponse,\n SerialPort,\n SerialPortsCreateOptionalParams,\n SerialPortsCreateResponse,\n SerialPortsDeleteOptionalParams,\n SerialPortsListBySubscriptionsOptionalParams,\n SerialPortsListBySubscriptionsResponse,\n SerialPortsConnectOptionalParams,\n SerialPortsConnectResponse\n} from \"../models/index.js\";\n\n/** Class containing SerialPorts operations. */\nexport class SerialPortsImpl implements SerialPorts {\n private readonly client: MicrosoftSerialConsoleClient;\n\n /**\n * Initialize a new instance of the class SerialPorts class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftSerialConsoleClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the configured serial ports for a parent resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n options?: SerialPortsListOptionalParams\n ): Promise<SerialPortsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * Gets the configured settings for a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsGetOptionalParams\n ): Promise<SerialPortsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to create.\n * @param parameters Parameters supplied to create the serial port.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n parameters: SerialPort,\n options?: SerialPortsCreateOptionalParams\n ): Promise<SerialPortsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n parameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Deletes a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to delete.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Handles requests to list all SerialPort resources in a subscription.\n * @param options The options parameters.\n */\n listBySubscriptions(\n options?: SerialPortsListBySubscriptionsOptionalParams\n ): Promise<SerialPortsListBySubscriptionsResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionsOperationSpec\n );\n }\n\n /**\n * Connect to serial port of the target resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n connect(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsConnectOptionalParams\n ): Promise<SerialPortsConnectResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceProviderNamespace,\n parentResourceType,\n parentResource,\n serialPort,\n options\n },\n connectOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPortListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPort\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.SerialPort\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPortListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst connectOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SerialPortConnectResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceProviderNamespace,\n Parameters.parentResourceType,\n Parameters.parentResource,\n Parameters.serialPort\n ],\n headerParameters: [Parameters.accept],\n serializer\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/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./serialPorts.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,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\nexport * from \"./serialPorts.js\";\n"]}
@@ -0,0 +1,70 @@
1
+ import { SerialPortsListOptionalParams, SerialPortsListResponse, SerialPortsGetOptionalParams, SerialPortsGetResponse, SerialPort, SerialPortsCreateOptionalParams, SerialPortsCreateResponse, SerialPortsDeleteOptionalParams, SerialPortsListBySubscriptionsOptionalParams, SerialPortsListBySubscriptionsResponse, SerialPortsConnectOptionalParams, SerialPortsConnectResponse } from "../models/index.js";
2
+ /** Interface representing a SerialPorts. */
3
+ export interface SerialPorts {
4
+ /**
5
+ * Lists all of the configured serial ports for a parent resource
6
+ * @param resourceGroupName The name of the resource group.
7
+ * @param resourceProviderNamespace The namespace of the resource provider.
8
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
9
+ * or 'virtualMachineScaleSets'
10
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
11
+ * example: the name of the virtual machine.
12
+ * @param options The options parameters.
13
+ */
14
+ list(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, options?: SerialPortsListOptionalParams): Promise<SerialPortsListResponse>;
15
+ /**
16
+ * Gets the configured settings for a serial port
17
+ * @param resourceGroupName The name of the resource group.
18
+ * @param resourceProviderNamespace The namespace of the resource provider.
19
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
20
+ * or 'virtualMachineScaleSets'
21
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
22
+ * example: the name of the virtual machine.
23
+ * @param serialPort The name of the serial port to connect to.
24
+ * @param options The options parameters.
25
+ */
26
+ get(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsGetOptionalParams): Promise<SerialPortsGetResponse>;
27
+ /**
28
+ * Creates or updates a serial port
29
+ * @param resourceGroupName The name of the resource group.
30
+ * @param resourceProviderNamespace The namespace of the resource provider.
31
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
32
+ * or 'virtualMachineScaleSets'
33
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
34
+ * example: the name of the virtual machine.
35
+ * @param serialPort The name of the serial port to create.
36
+ * @param parameters Parameters supplied to create the serial port.
37
+ * @param options The options parameters.
38
+ */
39
+ create(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, parameters: SerialPort, options?: SerialPortsCreateOptionalParams): Promise<SerialPortsCreateResponse>;
40
+ /**
41
+ * Deletes a serial port
42
+ * @param resourceGroupName The name of the resource group.
43
+ * @param resourceProviderNamespace The namespace of the resource provider.
44
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
45
+ * or 'virtualMachineScaleSets'
46
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
47
+ * example: the name of the virtual machine.
48
+ * @param serialPort The name of the serial port to delete.
49
+ * @param options The options parameters.
50
+ */
51
+ delete(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsDeleteOptionalParams): Promise<void>;
52
+ /**
53
+ * Handles requests to list all SerialPort resources in a subscription.
54
+ * @param options The options parameters.
55
+ */
56
+ listBySubscriptions(options?: SerialPortsListBySubscriptionsOptionalParams): Promise<SerialPortsListBySubscriptionsResponse>;
57
+ /**
58
+ * Connect to serial port of the target resource
59
+ * @param resourceGroupName The name of the resource group.
60
+ * @param resourceProviderNamespace The namespace of the resource provider.
61
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
62
+ * or 'virtualMachineScaleSets'
63
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
64
+ * example: the name of the virtual machine.
65
+ * @param serialPort The name of the serial port to connect to.
66
+ * @param options The options parameters.
67
+ */
68
+ connect(resourceGroupName: string, resourceProviderNamespace: string, parentResourceType: string, parentResource: string, serialPort: string, options?: SerialPortsConnectOptionalParams): Promise<SerialPortsConnectResponse>;
69
+ }
70
+ //# sourceMappingURL=serialPorts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialPorts.d.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,CAAC,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CACjB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACnD;;;;;;;;;;OAUG;IACH,OAAO,CACL,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=serialPorts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialPorts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/serialPorts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 SerialPortsListOptionalParams,\n SerialPortsListResponse,\n SerialPortsGetOptionalParams,\n SerialPortsGetResponse,\n SerialPort,\n SerialPortsCreateOptionalParams,\n SerialPortsCreateResponse,\n SerialPortsDeleteOptionalParams,\n SerialPortsListBySubscriptionsOptionalParams,\n SerialPortsListBySubscriptionsResponse,\n SerialPortsConnectOptionalParams,\n SerialPortsConnectResponse\n} from \"../models/index.js\";\n\n/** Interface representing a SerialPorts. */\nexport interface SerialPorts {\n /**\n * Lists all of the configured serial ports for a parent resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n options?: SerialPortsListOptionalParams\n ): Promise<SerialPortsListResponse>;\n /**\n * Gets the configured settings for a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsGetOptionalParams\n ): Promise<SerialPortsGetResponse>;\n /**\n * Creates or updates a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to create.\n * @param parameters Parameters supplied to create the serial port.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n parameters: SerialPort,\n options?: SerialPortsCreateOptionalParams\n ): Promise<SerialPortsCreateResponse>;\n /**\n * Deletes a serial port\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to delete.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsDeleteOptionalParams\n ): Promise<void>;\n /**\n * Handles requests to list all SerialPort resources in a subscription.\n * @param options The options parameters.\n */\n listBySubscriptions(\n options?: SerialPortsListBySubscriptionsOptionalParams\n ): Promise<SerialPortsListBySubscriptionsResponse>;\n /**\n * Connect to serial port of the target resource\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'\n * or 'virtualMachineScaleSets'\n * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For\n * example: the name of the virtual machine.\n * @param serialPort The name of the serial port to connect to.\n * @param options The options parameters.\n */\n connect(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourceType: string,\n parentResource: string,\n serialPort: string,\n options?: SerialPortsConnectOptionalParams\n ): Promise<SerialPortsConnectResponse>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MicrosoftSerialConsoleClient.",
6
- "version": "2.1.1-alpha.20250217.1",
6
+ "version": "2.1.1-alpha.20250219.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-auth": "^1.3.0",
12
- "@azure/core-client": "^1.6.1",
13
- "@azure/core-rest-pipeline": "^1.8.0",
14
- "tslib": "^2.2.0"
11
+ "@azure/core-auth": "^1.9.0",
12
+ "@azure/core-client": "^1.9.2",
13
+ "@azure/core-rest-pipeline": "^1.19.0",
14
+ "tslib": "^2.8.1"
15
15
  },
16
16
  "keywords": [
17
17
  "node",
@@ -21,21 +21,22 @@
21
21
  "isomorphic"
22
22
  ],
23
23
  "license": "MIT",
24
- "main": "./dist/index.js",
25
- "module": "./dist-esm/src/index.js",
26
- "types": "./types/arm-serialconsole.d.ts",
24
+ "main": "./dist/commonjs/index.js",
25
+ "module": "./dist/esm/index.js",
26
+ "types": "./dist/commonjs/index.d.ts",
27
27
  "devDependencies": {
28
- "@azure-tools/test-credential": "^1.0.0",
29
- "@azure-tools/test-recorder": "^3.0.0",
28
+ "@azure-tools/test-credential": "^2.0.0",
29
+ "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
30
+ "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
30
31
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
31
- "@azure/identity": "^4.0.1",
32
- "@types/chai": "^4.2.8",
33
- "@types/mocha": "^10.0.0",
32
+ "@azure/identity": "^4.6.0",
33
+ "@azure/logger": "^1.1.4",
34
34
  "@types/node": "^18.0.0",
35
- "chai": "^4.2.0",
36
- "mocha": "^11.0.2",
37
- "ts-node": "^10.0.0",
38
- "typescript": "~5.7.2"
35
+ "@vitest/browser": "^3.0.5",
36
+ "@vitest/coverage-istanbul": "^3.0.5",
37
+ "playwright": "^1.50.1",
38
+ "typescript": "~5.7.2",
39
+ "vitest": "^3.0.5"
39
40
  },
40
41
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/serialconsole/arm-serialconsole",
41
42
  "repository": {
@@ -46,24 +47,14 @@
46
47
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
47
48
  },
48
49
  "files": [
49
- "dist/**/*.js",
50
- "dist/**/*.js.map",
51
- "dist/**/*.d.ts",
52
- "dist/**/*.d.ts.map",
53
- "dist-esm/**/*.js",
54
- "dist-esm/**/*.js.map",
55
- "dist-esm/**/*.d.ts",
56
- "dist-esm/**/*.d.ts.map",
57
- "src/**/*.ts",
50
+ "dist/",
58
51
  "README.md",
59
52
  "LICENSE",
60
- "tsconfig.json",
61
- "review/*",
62
- "CHANGELOG.md",
63
- "types/*"
53
+ "review/",
54
+ "CHANGELOG.md"
64
55
  ],
65
56
  "scripts": {
66
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && npm run extract-api",
57
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
67
58
  "build:browser": "echo skipped",
68
59
  "build:node": "echo skipped",
69
60
  "build:samples": "echo skipped.",
@@ -75,7 +66,7 @@
75
66
  "format": "echo skipped",
76
67
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
77
68
  "integration-test:browser": "echo skipped",
78
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
69
+ "integration-test:node": "dev-tool run test:vitest --esm",
79
70
  "lint": "echo skipped",
80
71
  "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
81
72
  "pack": "npm pack 2>&1",
@@ -85,8 +76,8 @@
85
76
  "test:node": "echo skipped",
86
77
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
87
78
  "unit-test:browser": "echo skipped",
88
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
89
- "update-snippets": "echo skipped"
79
+ "unit-test:node": "dev-tool run test:vitest",
80
+ "update-snippets": "dev-tool run update-snippets"
90
81
  },
91
82
  "sideEffects": false,
92
83
  "//metadata": {
@@ -105,5 +96,45 @@
105
96
  ],
106
97
  "disableDocsMs": true,
107
98
  "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-serialconsole?view=azure-node-preview"
99
+ },
100
+ "type": "module",
101
+ "tshy": {
102
+ "project": "./tsconfig.src.json",
103
+ "exports": {
104
+ "./package.json": "./package.json",
105
+ ".": "./src/index.ts"
106
+ },
107
+ "dialects": [
108
+ "esm",
109
+ "commonjs"
110
+ ],
111
+ "esmDialects": [
112
+ "browser",
113
+ "react-native"
114
+ ],
115
+ "selfLink": false
116
+ },
117
+ "browser": "./dist/browser/index.js",
118
+ "react-native": "./dist/react-native/index.js",
119
+ "exports": {
120
+ "./package.json": "./package.json",
121
+ ".": {
122
+ "browser": {
123
+ "types": "./dist/browser/index.d.ts",
124
+ "default": "./dist/browser/index.js"
125
+ },
126
+ "react-native": {
127
+ "types": "./dist/react-native/index.d.ts",
128
+ "default": "./dist/react-native/index.js"
129
+ },
130
+ "import": {
131
+ "types": "./dist/esm/index.d.ts",
132
+ "default": "./dist/esm/index.js"
133
+ },
134
+ "require": {
135
+ "types": "./dist/commonjs/index.d.ts",
136
+ "default": "./dist/commonjs/index.js"
137
+ }
138
+ }
108
139
  }
109
140
  }