@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,275 @@
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.SerialPortsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
+ /** Class containing SerialPorts operations. */
16
+ class SerialPortsImpl {
17
+ /**
18
+ * Initialize a new instance of the class SerialPorts class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Lists all of the configured serial ports for a parent resource
26
+ * @param resourceGroupName The name of the resource group.
27
+ * @param resourceProviderNamespace The namespace of the resource provider.
28
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
29
+ * or 'virtualMachineScaleSets'
30
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
31
+ * example: the name of the virtual machine.
32
+ * @param options The options parameters.
33
+ */
34
+ list(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, options) {
35
+ return this.client.sendOperationRequest({
36
+ resourceGroupName,
37
+ resourceProviderNamespace,
38
+ parentResourceType,
39
+ parentResource,
40
+ options
41
+ }, listOperationSpec);
42
+ }
43
+ /**
44
+ * Gets the configured settings for a serial port
45
+ * @param resourceGroupName The name of the resource group.
46
+ * @param resourceProviderNamespace The namespace of the resource provider.
47
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
48
+ * or 'virtualMachineScaleSets'
49
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
50
+ * example: the name of the virtual machine.
51
+ * @param serialPort The name of the serial port to connect to.
52
+ * @param options The options parameters.
53
+ */
54
+ get(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
55
+ return this.client.sendOperationRequest({
56
+ resourceGroupName,
57
+ resourceProviderNamespace,
58
+ parentResourceType,
59
+ parentResource,
60
+ serialPort,
61
+ options
62
+ }, getOperationSpec);
63
+ }
64
+ /**
65
+ * Creates or updates a serial port
66
+ * @param resourceGroupName The name of the resource group.
67
+ * @param resourceProviderNamespace The namespace of the resource provider.
68
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
69
+ * or 'virtualMachineScaleSets'
70
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
71
+ * example: the name of the virtual machine.
72
+ * @param serialPort The name of the serial port to create.
73
+ * @param parameters Parameters supplied to create the serial port.
74
+ * @param options The options parameters.
75
+ */
76
+ create(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, parameters, options) {
77
+ return this.client.sendOperationRequest({
78
+ resourceGroupName,
79
+ resourceProviderNamespace,
80
+ parentResourceType,
81
+ parentResource,
82
+ serialPort,
83
+ parameters,
84
+ options
85
+ }, createOperationSpec);
86
+ }
87
+ /**
88
+ * Deletes a serial port
89
+ * @param resourceGroupName The name of the resource group.
90
+ * @param resourceProviderNamespace The namespace of the resource provider.
91
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
92
+ * or 'virtualMachineScaleSets'
93
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
94
+ * example: the name of the virtual machine.
95
+ * @param serialPort The name of the serial port to delete.
96
+ * @param options The options parameters.
97
+ */
98
+ delete(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
99
+ return this.client.sendOperationRequest({
100
+ resourceGroupName,
101
+ resourceProviderNamespace,
102
+ parentResourceType,
103
+ parentResource,
104
+ serialPort,
105
+ options
106
+ }, deleteOperationSpec);
107
+ }
108
+ /**
109
+ * Handles requests to list all SerialPort resources in a subscription.
110
+ * @param options The options parameters.
111
+ */
112
+ listBySubscriptions(options) {
113
+ return this.client.sendOperationRequest({ options }, listBySubscriptionsOperationSpec);
114
+ }
115
+ /**
116
+ * Connect to serial port of the target resource
117
+ * @param resourceGroupName The name of the resource group.
118
+ * @param resourceProviderNamespace The namespace of the resource provider.
119
+ * @param parentResourceType The resource type of the parent resource. For example: 'virtualMachines'
120
+ * or 'virtualMachineScaleSets'
121
+ * @param parentResource The resource name, or subordinate path, for the parent of the serial port. For
122
+ * example: the name of the virtual machine.
123
+ * @param serialPort The name of the serial port to connect to.
124
+ * @param options The options parameters.
125
+ */
126
+ connect(resourceGroupName, resourceProviderNamespace, parentResourceType, parentResource, serialPort, options) {
127
+ return this.client.sendOperationRequest({
128
+ resourceGroupName,
129
+ resourceProviderNamespace,
130
+ parentResourceType,
131
+ parentResource,
132
+ serialPort,
133
+ options
134
+ }, connectOperationSpec);
135
+ }
136
+ }
137
+ exports.SerialPortsImpl = SerialPortsImpl;
138
+ // Operation Specifications
139
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
140
+ const listOperationSpec = {
141
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts",
142
+ httpMethod: "GET",
143
+ responses: {
144
+ 200: {
145
+ bodyMapper: Mappers.SerialPortListResult
146
+ },
147
+ default: {
148
+ bodyMapper: Mappers.CloudError
149
+ }
150
+ },
151
+ queryParameters: [Parameters.apiVersion],
152
+ urlParameters: [
153
+ Parameters.$host,
154
+ Parameters.subscriptionId,
155
+ Parameters.resourceGroupName,
156
+ Parameters.resourceProviderNamespace,
157
+ Parameters.parentResourceType,
158
+ Parameters.parentResource
159
+ ],
160
+ headerParameters: [Parameters.accept],
161
+ serializer
162
+ };
163
+ const getOperationSpec = {
164
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
165
+ httpMethod: "GET",
166
+ responses: {
167
+ 200: {
168
+ bodyMapper: Mappers.SerialPort
169
+ },
170
+ default: {
171
+ bodyMapper: Mappers.CloudError
172
+ }
173
+ },
174
+ queryParameters: [Parameters.apiVersion],
175
+ urlParameters: [
176
+ Parameters.$host,
177
+ Parameters.subscriptionId,
178
+ Parameters.resourceGroupName,
179
+ Parameters.resourceProviderNamespace,
180
+ Parameters.parentResourceType,
181
+ Parameters.parentResource,
182
+ Parameters.serialPort
183
+ ],
184
+ headerParameters: [Parameters.accept],
185
+ serializer
186
+ };
187
+ const createOperationSpec = {
188
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
189
+ httpMethod: "PUT",
190
+ responses: {
191
+ 201: {
192
+ bodyMapper: Mappers.SerialPort
193
+ },
194
+ default: {
195
+ bodyMapper: Mappers.CloudError
196
+ }
197
+ },
198
+ requestBody: Parameters.parameters,
199
+ queryParameters: [Parameters.apiVersion],
200
+ urlParameters: [
201
+ Parameters.$host,
202
+ Parameters.subscriptionId,
203
+ Parameters.resourceGroupName,
204
+ Parameters.resourceProviderNamespace,
205
+ Parameters.parentResourceType,
206
+ Parameters.parentResource,
207
+ Parameters.serialPort
208
+ ],
209
+ headerParameters: [Parameters.accept, Parameters.contentType],
210
+ mediaType: "json",
211
+ serializer
212
+ };
213
+ const deleteOperationSpec = {
214
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}",
215
+ httpMethod: "DELETE",
216
+ responses: {
217
+ 200: {},
218
+ 204: {},
219
+ default: {
220
+ bodyMapper: Mappers.CloudError
221
+ }
222
+ },
223
+ queryParameters: [Parameters.apiVersion],
224
+ urlParameters: [
225
+ Parameters.$host,
226
+ Parameters.subscriptionId,
227
+ Parameters.resourceGroupName,
228
+ Parameters.resourceProviderNamespace,
229
+ Parameters.parentResourceType,
230
+ Parameters.parentResource,
231
+ Parameters.serialPort
232
+ ],
233
+ headerParameters: [Parameters.accept],
234
+ serializer
235
+ };
236
+ const listBySubscriptionsOperationSpec = {
237
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts",
238
+ httpMethod: "GET",
239
+ responses: {
240
+ 200: {
241
+ bodyMapper: Mappers.SerialPortListResult
242
+ },
243
+ default: {
244
+ bodyMapper: Mappers.CloudError
245
+ }
246
+ },
247
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
248
+ headerParameters: [Parameters.accept],
249
+ serializer
250
+ };
251
+ const connectOperationSpec = {
252
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect",
253
+ httpMethod: "POST",
254
+ responses: {
255
+ 200: {
256
+ bodyMapper: Mappers.SerialPortConnectResult
257
+ },
258
+ default: {
259
+ bodyMapper: Mappers.CloudError
260
+ }
261
+ },
262
+ queryParameters: [Parameters.apiVersion],
263
+ urlParameters: [
264
+ Parameters.$host,
265
+ Parameters.subscriptionId,
266
+ Parameters.resourceGroupName,
267
+ Parameters.resourceProviderNamespace,
268
+ Parameters.parentResourceType,
269
+ Parameters.parentResource,
270
+ Parameters.serialPort
271
+ ],
272
+ headerParameters: [Parameters.accept],
273
+ serializer
274
+ };
275
+ //# sourceMappingURL=serialPorts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialPorts.js","sourceRoot":"","sources":["../../../src/operations/serialPorts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAiBtD,+CAA+C;AAC/C,MAAa,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,iBAAyB,EACzB,yBAAiC,EACjC,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AU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,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,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/operationsInterfaces/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,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.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/serialPorts.ts"],"names":[],"mappings":"AAQA,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,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;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,CAAC;IACpC;;;;;;;;;;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,CAAC;IACnC;;;;;;;;;;;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,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,yBAAyB,EAAE,MAAM,EACjC,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,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,10 @@
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
+ //# 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": "commonjs"
3
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./models/index.js";
2
+ export { MicrosoftSerialConsoleClient } from "./microsoftSerialConsoleClient.js";
3
+ export * from "./operationsInterfaces/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,CAAC"}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
- export * from "./models";
10
- export { MicrosoftSerialConsoleClient } from "./microsoftSerialConsoleClient";
11
- export * from "./operationsInterfaces";
8
+ export * from "./models/index.js";
9
+ export { MicrosoftSerialConsoleClient } from "./microsoftSerialConsoleClient.js";
10
+ export * from "./operationsInterfaces/index.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,cAAc,iCAAiC,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 \"./models/index.js\";\nexport { MicrosoftSerialConsoleClient } from \"./microsoftSerialConsoleClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,44 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { SerialPorts } from "./operationsInterfaces/index.js";
4
+ import { MicrosoftSerialConsoleClientOptionalParams, ListOperationsOptionalParams, ListOperationsResponse, GetConsoleStatusOptionalParams, GetConsoleStatusResponse, DisableConsoleOptionalParams, DisableConsoleResponse, EnableConsoleOptionalParams, EnableConsoleResponse } from "./models/index.js";
5
+ export declare class MicrosoftSerialConsoleClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the MicrosoftSerialConsoleClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId Subscription ID which uniquely identifies the Microsoft Azure subscription.
13
+ * The subscription ID forms part of the URI for every service call requiring it.
14
+ * @param options The parameter options
15
+ */
16
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftSerialConsoleClientOptionalParams);
17
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
18
+ private addCustomApiVersionPolicy;
19
+ /**
20
+ * Gets a list of Serial Console API operations.
21
+ * @param options The options parameters.
22
+ */
23
+ listOperations(options?: ListOperationsOptionalParams): Promise<ListOperationsResponse>;
24
+ /**
25
+ * Gets whether or not Serial Console is disabled for a given subscription
26
+ * @param defaultParam Default parameter. Leave the value as "default".
27
+ * @param options The options parameters.
28
+ */
29
+ getConsoleStatus(defaultParam: string, options?: GetConsoleStatusOptionalParams): Promise<GetConsoleStatusResponse>;
30
+ /**
31
+ * Disables the Serial Console service for all VMs and VM scale sets in the provided subscription
32
+ * @param defaultParam Default parameter. Leave the value as "default".
33
+ * @param options The options parameters.
34
+ */
35
+ disableConsole(defaultParam: string, options?: DisableConsoleOptionalParams): Promise<DisableConsoleResponse>;
36
+ /**
37
+ * Enables the Serial Console service for all VMs and VM scale sets in the provided subscription
38
+ * @param defaultParam Default parameter. Leave the value as "default".
39
+ * @param options The options parameters.
40
+ */
41
+ enableConsole(defaultParam: string, options?: EnableConsoleOptionalParams): Promise<EnableConsoleResponse>;
42
+ serialPorts: SerialPorts;
43
+ }
44
+ //# sourceMappingURL=microsoftSerialConsoleClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoftSerialConsoleClient.d.ts","sourceRoot":"","sources":["../../src/microsoftSerialConsoleClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,OAAO,EACL,0CAA0C,EAC1C,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0CAA0C;IA4EtD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;OAGG;IACH,cAAc,CACZ,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAIlC;;;;OAIG;IACH,gBAAgB,CACd,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;;OAIG;IACH,cAAc,CACZ,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;OAIG;IACH,aAAa,CACX,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAOjC,WAAW,EAAE,WAAW,CAAC;CAC1B"}