@azure/arm-labservices 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/LICENSE.txt +1 -1
  2. package/README.md +11 -14
  3. package/dist/arm-labservices.js +2913 -3372
  4. package/dist/arm-labservices.js.map +1 -1
  5. package/dist/arm-labservices.min.js +1 -1
  6. package/dist/arm-labservices.min.js.map +1 -1
  7. package/esm/{managedLabsClient.d.ts → labServicesClient.d.ts} +12 -13
  8. package/esm/labServicesClient.d.ts.map +1 -0
  9. package/esm/{managedLabsClient.js → labServicesClient.js} +17 -19
  10. package/esm/labServicesClient.js.map +1 -0
  11. package/esm/{managedLabsClientContext.d.ts → labServicesClientContext.d.ts} +6 -6
  12. package/esm/labServicesClientContext.d.ts.map +1 -0
  13. package/esm/{managedLabsClientContext.js → labServicesClientContext.js} +12 -13
  14. package/esm/labServicesClientContext.js.map +1 -0
  15. package/esm/models/imagesMappers.d.ts +2 -0
  16. package/esm/models/imagesMappers.d.ts.map +1 -0
  17. package/esm/models/imagesMappers.js +9 -0
  18. package/esm/models/imagesMappers.js.map +1 -0
  19. package/esm/models/index.d.ts +977 -1070
  20. package/esm/models/index.d.ts.map +1 -1
  21. package/esm/models/index.js +2 -2
  22. package/esm/models/labPlansMappers.d.ts +2 -0
  23. package/esm/models/labPlansMappers.d.ts.map +1 -0
  24. package/esm/models/labPlansMappers.js +9 -0
  25. package/esm/models/labPlansMappers.js.map +1 -0
  26. package/esm/models/labsMappers.d.ts +1 -1
  27. package/esm/models/labsMappers.d.ts.map +1 -1
  28. package/esm/models/labsMappers.js +3 -3
  29. package/esm/models/labsMappers.js.map +1 -1
  30. package/esm/models/mappers.d.ts +50 -65
  31. package/esm/models/mappers.d.ts.map +1 -1
  32. package/esm/models/mappers.js +1182 -1209
  33. package/esm/models/mappers.js.map +1 -1
  34. package/esm/models/operationResultsMappers.d.ts +2 -0
  35. package/esm/models/operationResultsMappers.d.ts.map +1 -0
  36. package/esm/models/operationResultsMappers.js +9 -0
  37. package/esm/models/operationResultsMappers.js.map +1 -0
  38. package/esm/models/operationsMappers.d.ts +1 -1
  39. package/esm/models/operationsMappers.d.ts.map +1 -1
  40. package/esm/models/operationsMappers.js +3 -3
  41. package/esm/models/operationsMappers.js.map +1 -1
  42. package/esm/models/parameters.d.ts +5 -9
  43. package/esm/models/parameters.d.ts.map +1 -1
  44. package/esm/models/parameters.js +69 -74
  45. package/esm/models/parameters.js.map +1 -1
  46. package/esm/models/schedulesMappers.d.ts +2 -0
  47. package/esm/models/schedulesMappers.d.ts.map +1 -0
  48. package/esm/models/schedulesMappers.js +9 -0
  49. package/esm/models/schedulesMappers.js.map +1 -0
  50. package/esm/models/usersMappers.d.ts +1 -1
  51. package/esm/models/usersMappers.d.ts.map +1 -1
  52. package/esm/models/usersMappers.js +3 -3
  53. package/esm/models/usersMappers.js.map +1 -1
  54. package/esm/models/virtualMachinesMappers.d.ts +2 -0
  55. package/esm/models/virtualMachinesMappers.d.ts.map +1 -0
  56. package/esm/models/virtualMachinesMappers.js +9 -0
  57. package/esm/models/virtualMachinesMappers.js.map +1 -0
  58. package/esm/operations/images.d.ts +147 -0
  59. package/esm/operations/images.d.ts.map +1 -0
  60. package/esm/operations/images.js +198 -0
  61. package/esm/operations/images.js.map +1 -0
  62. package/esm/operations/index.d.ts +5 -6
  63. package/esm/operations/index.d.ts.map +1 -1
  64. package/esm/operations/index.js +7 -9
  65. package/esm/operations/index.js.map +1 -1
  66. package/esm/operations/labPlans.d.ts +202 -0
  67. package/esm/operations/labPlans.d.ts.map +1 -0
  68. package/esm/operations/labPlans.js +419 -0
  69. package/esm/operations/labPlans.js.map +1 -0
  70. package/esm/operations/labs.d.ts +135 -117
  71. package/esm/operations/labs.d.ts.map +1 -1
  72. package/esm/operations/labs.js +233 -92
  73. package/esm/operations/labs.js.map +1 -1
  74. package/esm/operations/operationResults.d.ts +32 -0
  75. package/esm/operations/operationResults.d.ts.map +1 -0
  76. package/esm/operations/operationResults.js +56 -0
  77. package/esm/operations/operationResults.js.map +1 -0
  78. package/esm/operations/operations.d.ts +28 -14
  79. package/esm/operations/operations.d.ts.map +1 -1
  80. package/esm/operations/operations.js +36 -15
  81. package/esm/operations/operations.js.map +1 -1
  82. package/esm/operations/schedules.d.ts +181 -0
  83. package/esm/operations/schedules.d.ts.map +1 -0
  84. package/esm/operations/schedules.js +260 -0
  85. package/esm/operations/schedules.js.map +1 -0
  86. package/esm/operations/users.d.ts +123 -95
  87. package/esm/operations/users.d.ts.map +1 -1
  88. package/esm/operations/users.js +190 -69
  89. package/esm/operations/users.js.map +1 -1
  90. package/esm/operations/virtualMachines.d.ts +217 -0
  91. package/esm/operations/virtualMachines.d.ts.map +1 -0
  92. package/esm/operations/virtualMachines.js +425 -0
  93. package/esm/operations/virtualMachines.js.map +1 -0
  94. package/package.json +13 -13
  95. package/rollup.config.js +4 -4
  96. package/src/{managedLabsClient.ts → labServicesClient.ts} +21 -24
  97. package/src/{managedLabsClientContext.ts → labServicesClientContext.ts} +9 -10
  98. package/src/models/imagesMappers.ts +47 -0
  99. package/src/models/index.ts +992 -1091
  100. package/src/models/labPlansMappers.ts +50 -0
  101. package/src/models/labsMappers.ts +37 -28
  102. package/src/models/mappers.ts +1192 -1234
  103. package/src/models/operationResultsMappers.ts +14 -0
  104. package/src/models/operationsMappers.ts +8 -5
  105. package/src/models/parameters.ts +69 -74
  106. package/src/models/schedulesMappers.ts +47 -0
  107. package/src/models/usersMappers.ts +36 -27
  108. package/src/models/virtualMachinesMappers.ts +47 -0
  109. package/src/operations/images.ts +365 -0
  110. package/src/operations/index.ts +7 -9
  111. package/src/operations/labPlans.ts +578 -0
  112. package/src/operations/labs.ts +297 -215
  113. package/src/operations/operationResults.ts +83 -0
  114. package/src/operations/operations.ts +70 -30
  115. package/src/operations/schedules.ts +443 -0
  116. package/src/operations/users.ts +238 -160
  117. package/src/operations/virtualMachines.ts +551 -0
  118. package/tsconfig.json +1 -1
  119. package/esm/managedLabsClient.d.ts.map +0 -1
  120. package/esm/managedLabsClient.js.map +0 -1
  121. package/esm/managedLabsClientContext.d.ts.map +0 -1
  122. package/esm/managedLabsClientContext.js.map +0 -1
  123. package/esm/models/environmentSettingsMappers.d.ts +0 -2
  124. package/esm/models/environmentSettingsMappers.d.ts.map +0 -1
  125. package/esm/models/environmentSettingsMappers.js +0 -9
  126. package/esm/models/environmentSettingsMappers.js.map +0 -1
  127. package/esm/models/environmentsMappers.d.ts +0 -2
  128. package/esm/models/environmentsMappers.d.ts.map +0 -1
  129. package/esm/models/environmentsMappers.js +0 -9
  130. package/esm/models/environmentsMappers.js.map +0 -1
  131. package/esm/models/galleryImagesMappers.d.ts +0 -2
  132. package/esm/models/galleryImagesMappers.d.ts.map +0 -1
  133. package/esm/models/galleryImagesMappers.js +0 -9
  134. package/esm/models/galleryImagesMappers.js.map +0 -1
  135. package/esm/models/globalUsersMappers.d.ts +0 -2
  136. package/esm/models/globalUsersMappers.d.ts.map +0 -1
  137. package/esm/models/globalUsersMappers.js +0 -9
  138. package/esm/models/globalUsersMappers.js.map +0 -1
  139. package/esm/models/labAccountsMappers.d.ts +0 -2
  140. package/esm/models/labAccountsMappers.d.ts.map +0 -1
  141. package/esm/models/labAccountsMappers.js +0 -9
  142. package/esm/models/labAccountsMappers.js.map +0 -1
  143. package/esm/models/providerOperationsMappers.d.ts +0 -2
  144. package/esm/models/providerOperationsMappers.d.ts.map +0 -1
  145. package/esm/models/providerOperationsMappers.js +0 -9
  146. package/esm/models/providerOperationsMappers.js.map +0 -1
  147. package/esm/operations/environmentSettings.d.ts +0 -262
  148. package/esm/operations/environmentSettings.d.ts.map +0 -1
  149. package/esm/operations/environmentSettings.js +0 -479
  150. package/esm/operations/environmentSettings.js.map +0 -1
  151. package/esm/operations/environments.d.ts +0 -279
  152. package/esm/operations/environments.d.ts.map +0 -1
  153. package/esm/operations/environments.js +0 -504
  154. package/esm/operations/environments.js.map +0 -1
  155. package/esm/operations/galleryImages.d.ts +0 -154
  156. package/esm/operations/galleryImages.d.ts.map +0 -1
  157. package/esm/operations/galleryImages.js +0 -234
  158. package/esm/operations/galleryImages.js.map +0 -1
  159. package/esm/operations/globalUsers.d.ts +0 -220
  160. package/esm/operations/globalUsers.d.ts.map +0 -1
  161. package/esm/operations/globalUsers.js +0 -411
  162. package/esm/operations/globalUsers.js.map +0 -1
  163. package/esm/operations/labAccounts.d.ts +0 -216
  164. package/esm/operations/labAccounts.d.ts.map +0 -1
  165. package/esm/operations/labAccounts.js +0 -364
  166. package/esm/operations/labAccounts.js.map +0 -1
  167. package/esm/operations/providerOperations.d.ts +0 -46
  168. package/esm/operations/providerOperations.d.ts.map +0 -1
  169. package/esm/operations/providerOperations.js +0 -77
  170. package/esm/operations/providerOperations.js.map +0 -1
  171. package/src/models/environmentSettingsMappers.ts +0 -40
  172. package/src/models/environmentsMappers.ts +0 -40
  173. package/src/models/galleryImagesMappers.ts +0 -39
  174. package/src/models/globalUsersMappers.ts +0 -29
  175. package/src/models/labAccountsMappers.ts +0 -47
  176. package/src/models/providerOperationsMappers.ts +0 -14
  177. package/src/operations/environmentSettings.ts +0 -705
  178. package/src/operations/environments.ts +0 -741
  179. package/src/operations/galleryImages.ts +0 -413
  180. package/src/operations/globalUsers.ts +0 -644
  181. package/src/operations/labAccounts.ts +0 -613
  182. package/src/operations/providerOperations.ts +0 -123
@@ -0,0 +1,217 @@
1
+ import * as msRest from "@azure/ms-rest-js";
2
+ import * as msRestAzure from "@azure/ms-rest-azure-js";
3
+ import * as Models from "../models";
4
+ import { LabServicesClientContext } from "../labServicesClientContext";
5
+ /** Class representing a VirtualMachines. */
6
+ export declare class VirtualMachines {
7
+ private readonly client;
8
+ /**
9
+ * Create a VirtualMachines.
10
+ * @param {LabServicesClientContext} client Reference to the service client.
11
+ */
12
+ constructor(client: LabServicesClientContext);
13
+ /**
14
+ * Returns a list of all virtual machines for a lab.
15
+ * @summary Get all virtual machines for a lab.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
18
+ * Used in resource URIs.
19
+ * @param [options] The optional parameters
20
+ * @returns Promise<Models.VirtualMachinesListByLabResponse>
21
+ */
22
+ listByLab(resourceGroupName: string, labName: string, options?: Models.VirtualMachinesListByLabOptionalParams): Promise<Models.VirtualMachinesListByLabResponse>;
23
+ /**
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
26
+ * Used in resource URIs.
27
+ * @param callback The callback
28
+ */
29
+ listByLab(resourceGroupName: string, labName: string, callback: msRest.ServiceCallback<Models.PagedVirtualMachines>): void;
30
+ /**
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
33
+ * Used in resource URIs.
34
+ * @param options The optional parameters
35
+ * @param callback The callback
36
+ */
37
+ listByLab(resourceGroupName: string, labName: string, options: Models.VirtualMachinesListByLabOptionalParams, callback: msRest.ServiceCallback<Models.PagedVirtualMachines>): void;
38
+ /**
39
+ * Returns the properties for a lab virtual machine.
40
+ * @summary Get a lab virtual machine.
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
43
+ * Used in resource URIs.
44
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
45
+ * containing lab. Used in resource URIs.
46
+ * @param [options] The optional parameters
47
+ * @returns Promise<Models.VirtualMachinesGetResponse>
48
+ */
49
+ get(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesGetResponse>;
50
+ /**
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
53
+ * Used in resource URIs.
54
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
55
+ * containing lab. Used in resource URIs.
56
+ * @param callback The callback
57
+ */
58
+ get(resourceGroupName: string, labName: string, virtualMachineName: string, callback: msRest.ServiceCallback<Models.VirtualMachine>): void;
59
+ /**
60
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
61
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
62
+ * Used in resource URIs.
63
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
64
+ * containing lab. Used in resource URIs.
65
+ * @param options The optional parameters
66
+ * @param callback The callback
67
+ */
68
+ get(resourceGroupName: string, labName: string, virtualMachineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VirtualMachine>): void;
69
+ /**
70
+ * Action to start a lab virtual machine.
71
+ * @summary Start a lab virtual machine.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
74
+ * Used in resource URIs.
75
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
76
+ * containing lab. Used in resource URIs.
77
+ * @param [options] The optional parameters
78
+ * @returns Promise<msRest.RestResponse>
79
+ */
80
+ start(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
81
+ /**
82
+ * Action to stop a lab virtual machine.
83
+ * @summary Stop a lab virtual machine.
84
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
85
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
86
+ * Used in resource URIs.
87
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
88
+ * containing lab. Used in resource URIs.
89
+ * @param [options] The optional parameters
90
+ * @returns Promise<msRest.RestResponse>
91
+ */
92
+ stop(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
93
+ /**
94
+ * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the
95
+ * latest published snapshot of the reference environment of the lab.
96
+ * @summary Re-image a lab virtual machine.
97
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
98
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
99
+ * Used in resource URIs.
100
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
101
+ * containing lab. Used in resource URIs.
102
+ * @param [options] The optional parameters
103
+ * @returns Promise<msRest.RestResponse>
104
+ */
105
+ reimage(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
106
+ /**
107
+ * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting
108
+ * connectivity.
109
+ * @summary Redeploy a lab virtual machine to a different compute node. For troubleshooting
110
+ * connectivity.
111
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
112
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
113
+ * Used in resource URIs.
114
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
115
+ * containing lab. Used in resource URIs.
116
+ * @param [options] The optional parameters
117
+ * @returns Promise<msRest.RestResponse>
118
+ */
119
+ redeploy(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
120
+ /**
121
+ * Resets a lab virtual machine password.
122
+ * @summary Reset a lab virtual machine password.
123
+ * @param body The request body.
124
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
125
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
126
+ * Used in resource URIs.
127
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
128
+ * containing lab. Used in resource URIs.
129
+ * @param [options] The optional parameters
130
+ * @returns Promise<msRest.RestResponse>
131
+ */
132
+ resetPassword(body: Models.ResetPasswordBody, resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
133
+ /**
134
+ * Action to start a lab virtual machine.
135
+ * @summary Start a lab virtual machine.
136
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
137
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
138
+ * Used in resource URIs.
139
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
140
+ * containing lab. Used in resource URIs.
141
+ * @param [options] The optional parameters
142
+ * @returns Promise<msRestAzure.LROPoller>
143
+ */
144
+ beginStart(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
145
+ /**
146
+ * Action to stop a lab virtual machine.
147
+ * @summary Stop a lab virtual machine.
148
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
149
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
150
+ * Used in resource URIs.
151
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
152
+ * containing lab. Used in resource URIs.
153
+ * @param [options] The optional parameters
154
+ * @returns Promise<msRestAzure.LROPoller>
155
+ */
156
+ beginStop(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
157
+ /**
158
+ * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the
159
+ * latest published snapshot of the reference environment of the lab.
160
+ * @summary Re-image a lab virtual machine.
161
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
162
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
163
+ * Used in resource URIs.
164
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
165
+ * containing lab. Used in resource URIs.
166
+ * @param [options] The optional parameters
167
+ * @returns Promise<msRestAzure.LROPoller>
168
+ */
169
+ beginReimage(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
170
+ /**
171
+ * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting
172
+ * connectivity.
173
+ * @summary Redeploy a lab virtual machine to a different compute node. For troubleshooting
174
+ * connectivity.
175
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
176
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
177
+ * Used in resource URIs.
178
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
179
+ * containing lab. Used in resource URIs.
180
+ * @param [options] The optional parameters
181
+ * @returns Promise<msRestAzure.LROPoller>
182
+ */
183
+ beginRedeploy(resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
184
+ /**
185
+ * Resets a lab virtual machine password.
186
+ * @summary Reset a lab virtual machine password.
187
+ * @param body The request body.
188
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
189
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
190
+ * Used in resource URIs.
191
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
192
+ * containing lab. Used in resource URIs.
193
+ * @param [options] The optional parameters
194
+ * @returns Promise<msRestAzure.LROPoller>
195
+ */
196
+ beginResetPassword(body: Models.ResetPasswordBody, resourceGroupName: string, labName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
197
+ /**
198
+ * Returns a list of all virtual machines for a lab.
199
+ * @summary Get all virtual machines for a lab.
200
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
201
+ * @param [options] The optional parameters
202
+ * @returns Promise<Models.VirtualMachinesListByLabNextResponse>
203
+ */
204
+ listByLabNext(nextPageLink: string, options?: Models.VirtualMachinesListByLabNextOptionalParams): Promise<Models.VirtualMachinesListByLabNextResponse>;
205
+ /**
206
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
207
+ * @param callback The callback
208
+ */
209
+ listByLabNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PagedVirtualMachines>): void;
210
+ /**
211
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
212
+ * @param options The optional parameters
213
+ * @param callback The callback
214
+ */
215
+ listByLabNext(nextPageLink: string, options: Models.VirtualMachinesListByLabNextOptionalParams, callback: msRest.ServiceCallback<Models.PagedVirtualMachines>): void;
216
+ }
217
+ //# sourceMappingURL=virtualMachines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualMachines.d.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,OAAO,CAAC,MAAM,CAAC,oCAAoC,CAAC;IACtJ;;;OAGG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,oBAAoB,CAAC,GAAG,IAAI;IACxG;;;;OAIG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,0CAA0C,EAAE,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,oBAAoB,CAAC,GAAG,IAAI;CAUrK"}
@@ -0,0 +1,425 @@
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
7
+ * regenerated.
8
+ */
9
+ import { __assign } from "tslib";
10
+ import * as msRest from "@azure/ms-rest-js";
11
+ import * as Mappers from "../models/virtualMachinesMappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /** Class representing a VirtualMachines. */
14
+ var VirtualMachines = /** @class */ (function () {
15
+ /**
16
+ * Create a VirtualMachines.
17
+ * @param {LabServicesClientContext} client Reference to the service client.
18
+ */
19
+ function VirtualMachines(client) {
20
+ this.client = client;
21
+ }
22
+ VirtualMachines.prototype.listByLab = function (resourceGroupName, labName, options, callback) {
23
+ return this.client.sendOperationRequest({
24
+ resourceGroupName: resourceGroupName,
25
+ labName: labName,
26
+ options: options
27
+ }, listByLabOperationSpec, callback);
28
+ };
29
+ VirtualMachines.prototype.get = function (resourceGroupName, labName, virtualMachineName, options, callback) {
30
+ return this.client.sendOperationRequest({
31
+ resourceGroupName: resourceGroupName,
32
+ labName: labName,
33
+ virtualMachineName: virtualMachineName,
34
+ options: options
35
+ }, getOperationSpec, callback);
36
+ };
37
+ /**
38
+ * Action to start a lab virtual machine.
39
+ * @summary Start a lab virtual machine.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
42
+ * Used in resource URIs.
43
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
44
+ * containing lab. Used in resource URIs.
45
+ * @param [options] The optional parameters
46
+ * @returns Promise<msRest.RestResponse>
47
+ */
48
+ VirtualMachines.prototype.start = function (resourceGroupName, labName, virtualMachineName, options) {
49
+ return this.beginStart(resourceGroupName, labName, virtualMachineName, options)
50
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
51
+ };
52
+ /**
53
+ * Action to stop a lab virtual machine.
54
+ * @summary Stop a lab virtual machine.
55
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
56
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
57
+ * Used in resource URIs.
58
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
59
+ * containing lab. Used in resource URIs.
60
+ * @param [options] The optional parameters
61
+ * @returns Promise<msRest.RestResponse>
62
+ */
63
+ VirtualMachines.prototype.stop = function (resourceGroupName, labName, virtualMachineName, options) {
64
+ return this.beginStop(resourceGroupName, labName, virtualMachineName, options)
65
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
66
+ };
67
+ /**
68
+ * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the
69
+ * latest published snapshot of the reference environment of the lab.
70
+ * @summary Re-image a lab virtual machine.
71
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
72
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
73
+ * Used in resource URIs.
74
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
75
+ * containing lab. Used in resource URIs.
76
+ * @param [options] The optional parameters
77
+ * @returns Promise<msRest.RestResponse>
78
+ */
79
+ VirtualMachines.prototype.reimage = function (resourceGroupName, labName, virtualMachineName, options) {
80
+ return this.beginReimage(resourceGroupName, labName, virtualMachineName, options)
81
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
82
+ };
83
+ /**
84
+ * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting
85
+ * connectivity.
86
+ * @summary Redeploy a lab virtual machine to a different compute node. For troubleshooting
87
+ * connectivity.
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
90
+ * Used in resource URIs.
91
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
92
+ * containing lab. Used in resource URIs.
93
+ * @param [options] The optional parameters
94
+ * @returns Promise<msRest.RestResponse>
95
+ */
96
+ VirtualMachines.prototype.redeploy = function (resourceGroupName, labName, virtualMachineName, options) {
97
+ return this.beginRedeploy(resourceGroupName, labName, virtualMachineName, options)
98
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
99
+ };
100
+ /**
101
+ * Resets a lab virtual machine password.
102
+ * @summary Reset a lab virtual machine password.
103
+ * @param body The request body.
104
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
105
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
106
+ * Used in resource URIs.
107
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
108
+ * containing lab. Used in resource URIs.
109
+ * @param [options] The optional parameters
110
+ * @returns Promise<msRest.RestResponse>
111
+ */
112
+ VirtualMachines.prototype.resetPassword = function (body, resourceGroupName, labName, virtualMachineName, options) {
113
+ return this.beginResetPassword(body, resourceGroupName, labName, virtualMachineName, options)
114
+ .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
115
+ };
116
+ /**
117
+ * Action to start a lab virtual machine.
118
+ * @summary Start a lab virtual machine.
119
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
120
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
121
+ * Used in resource URIs.
122
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
123
+ * containing lab. Used in resource URIs.
124
+ * @param [options] The optional parameters
125
+ * @returns Promise<msRestAzure.LROPoller>
126
+ */
127
+ VirtualMachines.prototype.beginStart = function (resourceGroupName, labName, virtualMachineName, options) {
128
+ return this.client.sendLRORequest({
129
+ resourceGroupName: resourceGroupName,
130
+ labName: labName,
131
+ virtualMachineName: virtualMachineName,
132
+ options: options
133
+ }, beginStartOperationSpec, options);
134
+ };
135
+ /**
136
+ * Action to stop a lab virtual machine.
137
+ * @summary Stop a lab virtual machine.
138
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
139
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
140
+ * Used in resource URIs.
141
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
142
+ * containing lab. Used in resource URIs.
143
+ * @param [options] The optional parameters
144
+ * @returns Promise<msRestAzure.LROPoller>
145
+ */
146
+ VirtualMachines.prototype.beginStop = function (resourceGroupName, labName, virtualMachineName, options) {
147
+ return this.client.sendLRORequest({
148
+ resourceGroupName: resourceGroupName,
149
+ labName: labName,
150
+ virtualMachineName: virtualMachineName,
151
+ options: options
152
+ }, beginStopOperationSpec, options);
153
+ };
154
+ /**
155
+ * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the
156
+ * latest published snapshot of the reference environment of the lab.
157
+ * @summary Re-image a lab virtual machine.
158
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
159
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
160
+ * Used in resource URIs.
161
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
162
+ * containing lab. Used in resource URIs.
163
+ * @param [options] The optional parameters
164
+ * @returns Promise<msRestAzure.LROPoller>
165
+ */
166
+ VirtualMachines.prototype.beginReimage = function (resourceGroupName, labName, virtualMachineName, options) {
167
+ return this.client.sendLRORequest({
168
+ resourceGroupName: resourceGroupName,
169
+ labName: labName,
170
+ virtualMachineName: virtualMachineName,
171
+ options: options
172
+ }, beginReimageOperationSpec, options);
173
+ };
174
+ /**
175
+ * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting
176
+ * connectivity.
177
+ * @summary Redeploy a lab virtual machine to a different compute node. For troubleshooting
178
+ * connectivity.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
181
+ * Used in resource URIs.
182
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
183
+ * containing lab. Used in resource URIs.
184
+ * @param [options] The optional parameters
185
+ * @returns Promise<msRestAzure.LROPoller>
186
+ */
187
+ VirtualMachines.prototype.beginRedeploy = function (resourceGroupName, labName, virtualMachineName, options) {
188
+ return this.client.sendLRORequest({
189
+ resourceGroupName: resourceGroupName,
190
+ labName: labName,
191
+ virtualMachineName: virtualMachineName,
192
+ options: options
193
+ }, beginRedeployOperationSpec, options);
194
+ };
195
+ /**
196
+ * Resets a lab virtual machine password.
197
+ * @summary Reset a lab virtual machine password.
198
+ * @param body The request body.
199
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
200
+ * @param labName The name of the lab that uniquely identifies it within containing lab account.
201
+ * Used in resource URIs.
202
+ * @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the
203
+ * containing lab. Used in resource URIs.
204
+ * @param [options] The optional parameters
205
+ * @returns Promise<msRestAzure.LROPoller>
206
+ */
207
+ VirtualMachines.prototype.beginResetPassword = function (body, resourceGroupName, labName, virtualMachineName, options) {
208
+ return this.client.sendLRORequest({
209
+ body: body,
210
+ resourceGroupName: resourceGroupName,
211
+ labName: labName,
212
+ virtualMachineName: virtualMachineName,
213
+ options: options
214
+ }, beginResetPasswordOperationSpec, options);
215
+ };
216
+ VirtualMachines.prototype.listByLabNext = function (nextPageLink, options, callback) {
217
+ return this.client.sendOperationRequest({
218
+ nextPageLink: nextPageLink,
219
+ options: options
220
+ }, listByLabNextOperationSpec, callback);
221
+ };
222
+ return VirtualMachines;
223
+ }());
224
+ export { VirtualMachines };
225
+ // Operation Specifications
226
+ var serializer = new msRest.Serializer(Mappers);
227
+ var listByLabOperationSpec = {
228
+ httpMethod: "GET",
229
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines",
230
+ urlParameters: [
231
+ Parameters.subscriptionId,
232
+ Parameters.resourceGroupName,
233
+ Parameters.labName
234
+ ],
235
+ queryParameters: [
236
+ Parameters.apiVersion,
237
+ Parameters.filter
238
+ ],
239
+ headerParameters: [
240
+ Parameters.acceptLanguage
241
+ ],
242
+ responses: {
243
+ 200: {
244
+ bodyMapper: Mappers.PagedVirtualMachines
245
+ },
246
+ default: {
247
+ bodyMapper: Mappers.ErrorResponse
248
+ }
249
+ },
250
+ serializer: serializer
251
+ };
252
+ var getOperationSpec = {
253
+ httpMethod: "GET",
254
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}",
255
+ urlParameters: [
256
+ Parameters.subscriptionId,
257
+ Parameters.resourceGroupName,
258
+ Parameters.labName,
259
+ Parameters.virtualMachineName
260
+ ],
261
+ queryParameters: [
262
+ Parameters.apiVersion
263
+ ],
264
+ headerParameters: [
265
+ Parameters.acceptLanguage
266
+ ],
267
+ responses: {
268
+ 200: {
269
+ bodyMapper: Mappers.VirtualMachine
270
+ },
271
+ default: {
272
+ bodyMapper: Mappers.ErrorResponse
273
+ }
274
+ },
275
+ serializer: serializer
276
+ };
277
+ var beginStartOperationSpec = {
278
+ httpMethod: "POST",
279
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/start",
280
+ urlParameters: [
281
+ Parameters.subscriptionId,
282
+ Parameters.resourceGroupName,
283
+ Parameters.labName,
284
+ Parameters.virtualMachineName
285
+ ],
286
+ queryParameters: [
287
+ Parameters.apiVersion
288
+ ],
289
+ headerParameters: [
290
+ Parameters.acceptLanguage
291
+ ],
292
+ responses: {
293
+ 200: {},
294
+ 202: {},
295
+ default: {
296
+ bodyMapper: Mappers.ErrorResponse
297
+ }
298
+ },
299
+ serializer: serializer
300
+ };
301
+ var beginStopOperationSpec = {
302
+ httpMethod: "POST",
303
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/stop",
304
+ urlParameters: [
305
+ Parameters.subscriptionId,
306
+ Parameters.resourceGroupName,
307
+ Parameters.labName,
308
+ Parameters.virtualMachineName
309
+ ],
310
+ queryParameters: [
311
+ Parameters.apiVersion
312
+ ],
313
+ headerParameters: [
314
+ Parameters.acceptLanguage
315
+ ],
316
+ responses: {
317
+ 200: {},
318
+ 202: {},
319
+ default: {
320
+ bodyMapper: Mappers.ErrorResponse
321
+ }
322
+ },
323
+ serializer: serializer
324
+ };
325
+ var beginReimageOperationSpec = {
326
+ httpMethod: "POST",
327
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/reimage",
328
+ urlParameters: [
329
+ Parameters.subscriptionId,
330
+ Parameters.resourceGroupName,
331
+ Parameters.labName,
332
+ Parameters.virtualMachineName
333
+ ],
334
+ queryParameters: [
335
+ Parameters.apiVersion
336
+ ],
337
+ headerParameters: [
338
+ Parameters.acceptLanguage
339
+ ],
340
+ responses: {
341
+ 200: {},
342
+ 202: {},
343
+ default: {
344
+ bodyMapper: Mappers.ErrorResponse
345
+ }
346
+ },
347
+ serializer: serializer
348
+ };
349
+ var beginRedeployOperationSpec = {
350
+ httpMethod: "POST",
351
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/redeploy",
352
+ urlParameters: [
353
+ Parameters.subscriptionId,
354
+ Parameters.resourceGroupName,
355
+ Parameters.labName,
356
+ Parameters.virtualMachineName
357
+ ],
358
+ queryParameters: [
359
+ Parameters.apiVersion
360
+ ],
361
+ headerParameters: [
362
+ Parameters.acceptLanguage
363
+ ],
364
+ responses: {
365
+ 200: {},
366
+ 202: {},
367
+ default: {
368
+ bodyMapper: Mappers.ErrorResponse
369
+ }
370
+ },
371
+ serializer: serializer
372
+ };
373
+ var beginResetPasswordOperationSpec = {
374
+ httpMethod: "POST",
375
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/virtualMachines/{virtualMachineName}/resetPassword",
376
+ urlParameters: [
377
+ Parameters.subscriptionId,
378
+ Parameters.resourceGroupName,
379
+ Parameters.labName,
380
+ Parameters.virtualMachineName
381
+ ],
382
+ queryParameters: [
383
+ Parameters.apiVersion
384
+ ],
385
+ headerParameters: [
386
+ Parameters.acceptLanguage
387
+ ],
388
+ requestBody: {
389
+ parameterPath: "body",
390
+ mapper: __assign(__assign({}, Mappers.ResetPasswordBody), { required: true })
391
+ },
392
+ responses: {
393
+ 200: {},
394
+ 202: {},
395
+ default: {
396
+ bodyMapper: Mappers.ErrorResponse
397
+ }
398
+ },
399
+ serializer: serializer
400
+ };
401
+ var listByLabNextOperationSpec = {
402
+ httpMethod: "GET",
403
+ baseUrl: "https://management.azure.com",
404
+ path: "{nextLink}",
405
+ urlParameters: [
406
+ Parameters.nextPageLink
407
+ ],
408
+ queryParameters: [
409
+ Parameters.apiVersion,
410
+ Parameters.filter
411
+ ],
412
+ headerParameters: [
413
+ Parameters.acceptLanguage
414
+ ],
415
+ responses: {
416
+ 200: {
417
+ bodyMapper: Mappers.PagedVirtualMachines
418
+ },
419
+ default: {
420
+ bodyMapper: Mappers.ErrorResponse
421
+ }
422
+ },
423
+ serializer: serializer
424
+ };
425
+ //# sourceMappingURL=virtualMachines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualMachines.js","sourceRoot":"","sources":["../../src/operations/virtualMachines.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAG5C,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA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