@azure/arm-managedapplications 1.0.2 → 2.0.0-alpha.20211011.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 (160) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +66 -72
  4. package/dist/index.js +2896 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/esm/applicationClient.d.ts +50 -0
  9. package/esm/applicationClient.d.ts.map +1 -0
  10. package/esm/applicationClient.js +190 -0
  11. package/esm/applicationClient.js.map +1 -0
  12. package/esm/applicationClientContext.d.ts +16 -0
  13. package/esm/applicationClientContext.d.ts.map +1 -0
  14. package/esm/applicationClientContext.js +49 -0
  15. package/esm/applicationClientContext.js.map +1 -0
  16. package/esm/coreClientLro.d.ts +26 -0
  17. package/esm/coreClientLro.d.ts.map +1 -0
  18. package/esm/coreClientLro.js +186 -0
  19. package/esm/coreClientLro.js.map +1 -0
  20. package/esm/index.d.ts +770 -0
  21. package/esm/index.d.ts.map +1 -0
  22. package/esm/index.js +13 -0
  23. package/esm/index.js.map +1 -0
  24. package/esm/lro/azureAsyncPolling.d.ts +3 -0
  25. package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
  26. package/esm/lro/azureAsyncPolling.js +67 -0
  27. package/esm/lro/azureAsyncPolling.js.map +1 -0
  28. package/esm/lro/bodyPolling.d.ts +8 -0
  29. package/esm/lro/bodyPolling.d.ts.map +1 -0
  30. package/esm/lro/bodyPolling.js +37 -0
  31. package/esm/lro/bodyPolling.js.map +1 -0
  32. package/esm/lro/index.d.ts +4 -0
  33. package/esm/lro/index.d.ts.map +1 -0
  34. package/esm/lro/index.js +12 -0
  35. package/esm/lro/index.js.map +1 -0
  36. package/esm/lro/locationPolling.d.ts +3 -0
  37. package/esm/lro/locationPolling.d.ts.map +1 -0
  38. package/esm/lro/locationPolling.js +19 -0
  39. package/esm/lro/locationPolling.js.map +1 -0
  40. package/esm/lro/lroEngine.d.ts +14 -0
  41. package/esm/lro/lroEngine.d.ts.map +1 -0
  42. package/esm/lro/lroEngine.js +41 -0
  43. package/esm/lro/lroEngine.js.map +1 -0
  44. package/esm/lro/models.d.ts +138 -0
  45. package/esm/lro/models.d.ts.map +1 -0
  46. package/esm/lro/models.js +14 -0
  47. package/esm/lro/models.js.map +1 -0
  48. package/esm/lro/operation.d.ts +36 -0
  49. package/esm/lro/operation.d.ts.map +1 -0
  50. package/esm/lro/operation.js +82 -0
  51. package/esm/lro/operation.js.map +1 -0
  52. package/esm/lro/passthrough.d.ts +3 -0
  53. package/esm/lro/passthrough.d.ts.map +1 -0
  54. package/esm/lro/passthrough.js +15 -0
  55. package/esm/lro/passthrough.js.map +1 -0
  56. package/esm/lro/requestUtils.d.ts +16 -0
  57. package/esm/lro/requestUtils.d.ts.map +1 -0
  58. package/esm/lro/requestUtils.js +73 -0
  59. package/esm/lro/requestUtils.js.map +1 -0
  60. package/esm/lro/stateMachine.d.ts +18 -0
  61. package/esm/lro/stateMachine.d.ts.map +1 -0
  62. package/esm/lro/stateMachine.js +84 -0
  63. package/esm/lro/stateMachine.js.map +1 -0
  64. package/esm/models/index.d.ts +360 -762
  65. package/esm/models/index.d.ts.map +1 -1
  66. package/esm/models/index.js +17 -2
  67. package/esm/models/index.js.map +1 -1
  68. package/esm/models/mappers.d.ts +18 -20
  69. package/esm/models/mappers.d.ts.map +1 -1
  70. package/esm/models/mappers.js +296 -318
  71. package/esm/models/mappers.js.map +1 -1
  72. package/esm/models/parameters.d.ts +15 -10
  73. package/esm/models/parameters.d.ts.map +1 -1
  74. package/esm/models/parameters.js +77 -49
  75. package/esm/models/parameters.js.map +1 -1
  76. package/esm/operations/applicationDefinitions.d.ts +128 -0
  77. package/esm/operations/applicationDefinitions.d.ts.map +1 -0
  78. package/esm/operations/applicationDefinitions.js +574 -0
  79. package/esm/operations/applicationDefinitions.js.map +1 -0
  80. package/esm/operations/applications.d.ts +182 -0
  81. package/esm/operations/applications.d.ts.map +1 -0
  82. package/esm/operations/applications.js +802 -0
  83. package/esm/operations/applications.js.map +1 -0
  84. package/esm/operations/index.d.ts +2 -2
  85. package/esm/operations/index.d.ts.map +1 -1
  86. package/esm/operations/index.js +5 -7
  87. package/esm/operations/index.js.map +1 -1
  88. package/esm/operationsInterfaces/applicationDefinitions.d.ts +95 -0
  89. package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  90. package/esm/operationsInterfaces/applicationDefinitions.js +9 -0
  91. package/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
  92. package/esm/operationsInterfaces/applications.d.ts +128 -0
  93. package/esm/operationsInterfaces/applications.d.ts.map +1 -0
  94. package/esm/operationsInterfaces/applications.js +9 -0
  95. package/esm/operationsInterfaces/applications.js.map +1 -0
  96. package/esm/operationsInterfaces/index.d.ts +3 -0
  97. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  98. package/esm/operationsInterfaces/index.js +10 -0
  99. package/esm/operationsInterfaces/index.js.map +1 -0
  100. package/package.json +56 -16
  101. package/review/arm-managedapplications.api.md +443 -0
  102. package/rollup.config.js +181 -30
  103. package/src/applicationClient.ts +222 -0
  104. package/src/applicationClientContext.ts +70 -0
  105. package/src/coreClientLro.ts +323 -0
  106. package/src/index.ts +13 -0
  107. package/src/lro/azureAsyncPolling.ts +96 -0
  108. package/src/lro/bodyPolling.ts +54 -0
  109. package/src/lro/index.ts +26 -0
  110. package/src/lro/locationPolling.ts +30 -0
  111. package/src/lro/lroEngine.ts +61 -0
  112. package/src/lro/models.ts +173 -0
  113. package/src/lro/operation.ts +120 -0
  114. package/src/lro/passthrough.ts +23 -0
  115. package/src/lro/requestUtils.ts +105 -0
  116. package/src/lro/stateMachine.ts +138 -0
  117. package/src/models/index.ts +402 -794
  118. package/src/models/mappers.ts +290 -311
  119. package/src/models/parameters.ts +99 -50
  120. package/src/operations/applicationDefinitions.ts +810 -0
  121. package/src/operations/applications.ts +1069 -0
  122. package/src/operations/index.ts +5 -7
  123. package/src/operationsInterfaces/applicationDefinitions.ts +179 -0
  124. package/src/operationsInterfaces/applications.ts +225 -0
  125. package/src/operationsInterfaces/index.ts +10 -0
  126. package/tsconfig.json +3 -2
  127. package/dist/arm-managedapplications.js +0 -1855
  128. package/dist/arm-managedapplications.js.map +0 -1
  129. package/dist/arm-managedapplications.min.js +0 -1
  130. package/dist/arm-managedapplications.min.js.map +0 -1
  131. package/esm/managedApplicationClient.d.ts +0 -52
  132. package/esm/managedApplicationClient.d.ts.map +0 -1
  133. package/esm/managedApplicationClient.js +0 -87
  134. package/esm/managedApplicationClient.js.map +0 -1
  135. package/esm/managedApplicationClientContext.d.ts +0 -16
  136. package/esm/managedApplicationClientContext.d.ts.map +0 -1
  137. package/esm/managedApplicationClientContext.js +0 -56
  138. package/esm/managedApplicationClientContext.js.map +0 -1
  139. package/esm/models/applianceDefinitionsMappers.d.ts +0 -2
  140. package/esm/models/applianceDefinitionsMappers.d.ts.map +0 -1
  141. package/esm/models/applianceDefinitionsMappers.js +0 -9
  142. package/esm/models/applianceDefinitionsMappers.js.map +0 -1
  143. package/esm/models/appliancesMappers.d.ts +0 -2
  144. package/esm/models/appliancesMappers.d.ts.map +0 -1
  145. package/esm/models/appliancesMappers.js +0 -9
  146. package/esm/models/appliancesMappers.js.map +0 -1
  147. package/esm/operations/applianceDefinitions.d.ts +0 -167
  148. package/esm/operations/applianceDefinitions.d.ts.map +0 -1
  149. package/esm/operations/applianceDefinitions.js +0 -358
  150. package/esm/operations/applianceDefinitions.js.map +0 -1
  151. package/esm/operations/appliances.d.ts +0 -247
  152. package/esm/operations/appliances.d.ts.map +0 -1
  153. package/esm/operations/appliances.js +0 -482
  154. package/esm/operations/appliances.js.map +0 -1
  155. package/src/managedApplicationClient.ts +0 -138
  156. package/src/managedApplicationClientContext.ts +0 -62
  157. package/src/models/applianceDefinitionsMappers.ts +0 -24
  158. package/src/models/appliancesMappers.ts +0 -24
  159. package/src/operations/applianceDefinitions.ts +0 -492
  160. package/src/operations/appliances.ts +0 -716
@@ -1,716 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/appliancesMappers";
15
- import * as Parameters from "../models/parameters";
16
- import { ManagedApplicationClientContext } from "../managedApplicationClientContext";
17
-
18
- /** Class representing a Appliances. */
19
- export class Appliances {
20
- private readonly client: ManagedApplicationClientContext;
21
-
22
- /**
23
- * Create a Appliances.
24
- * @param {ManagedApplicationClientContext} client Reference to the service client.
25
- */
26
- constructor(client: ManagedApplicationClientContext) {
27
- this.client = client;
28
- }
29
-
30
- /**
31
- * Gets the appliance.
32
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
- * @param applianceName The name of the appliance.
34
- * @param [options] The optional parameters
35
- * @returns Promise<Models.AppliancesGetResponse>
36
- */
37
- get(resourceGroupName: string, applianceName: string, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesGetResponse>;
38
- /**
39
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
- * @param applianceName The name of the appliance.
41
- * @param callback The callback
42
- */
43
- get(resourceGroupName: string, applianceName: string, callback: msRest.ServiceCallback<Models.Appliance>): void;
44
- /**
45
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
- * @param applianceName The name of the appliance.
47
- * @param options The optional parameters
48
- * @param callback The callback
49
- */
50
- get(resourceGroupName: string, applianceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Appliance>): void;
51
- get(resourceGroupName: string, applianceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Appliance>, callback?: msRest.ServiceCallback<Models.Appliance>): Promise<Models.AppliancesGetResponse> {
52
- return this.client.sendOperationRequest(
53
- {
54
- resourceGroupName,
55
- applianceName,
56
- options
57
- },
58
- getOperationSpec,
59
- callback) as Promise<Models.AppliancesGetResponse>;
60
- }
61
-
62
- /**
63
- * Deletes the appliance.
64
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
- * @param applianceName The name of the appliance.
66
- * @param [options] The optional parameters
67
- * @returns Promise<msRest.RestResponse>
68
- */
69
- deleteMethod(resourceGroupName: string, applianceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
70
- return this.beginDeleteMethod(resourceGroupName,applianceName,options)
71
- .then(lroPoller => lroPoller.pollUntilFinished());
72
- }
73
-
74
- /**
75
- * Creates a new appliance.
76
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
- * @param applianceName The name of the appliance.
78
- * @param parameters Parameters supplied to the create or update an appliance.
79
- * @param [options] The optional parameters
80
- * @returns Promise<Models.AppliancesCreateOrUpdateResponse>
81
- */
82
- createOrUpdate(resourceGroupName: string, applianceName: string, parameters: Models.Appliance, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesCreateOrUpdateResponse> {
83
- return this.beginCreateOrUpdate(resourceGroupName,applianceName,parameters,options)
84
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AppliancesCreateOrUpdateResponse>;
85
- }
86
-
87
- /**
88
- * Updates an existing appliance. The only value that can be updated via PATCH currently is the
89
- * tags.
90
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
- * @param applianceName The name of the appliance.
92
- * @param [options] The optional parameters
93
- * @returns Promise<Models.AppliancesUpdateResponse>
94
- */
95
- update(resourceGroupName: string, applianceName: string, options?: Models.AppliancesUpdateOptionalParams): Promise<Models.AppliancesUpdateResponse>;
96
- /**
97
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
98
- * @param applianceName The name of the appliance.
99
- * @param callback The callback
100
- */
101
- update(resourceGroupName: string, applianceName: string, callback: msRest.ServiceCallback<Models.Appliance>): void;
102
- /**
103
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
104
- * @param applianceName The name of the appliance.
105
- * @param options The optional parameters
106
- * @param callback The callback
107
- */
108
- update(resourceGroupName: string, applianceName: string, options: Models.AppliancesUpdateOptionalParams, callback: msRest.ServiceCallback<Models.Appliance>): void;
109
- update(resourceGroupName: string, applianceName: string, options?: Models.AppliancesUpdateOptionalParams | msRest.ServiceCallback<Models.Appliance>, callback?: msRest.ServiceCallback<Models.Appliance>): Promise<Models.AppliancesUpdateResponse> {
110
- return this.client.sendOperationRequest(
111
- {
112
- resourceGroupName,
113
- applianceName,
114
- options
115
- },
116
- updateOperationSpec,
117
- callback) as Promise<Models.AppliancesUpdateResponse>;
118
- }
119
-
120
- /**
121
- * Gets all the appliances within a resource group.
122
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
123
- * @param [options] The optional parameters
124
- * @returns Promise<Models.AppliancesListByResourceGroupResponse>
125
- */
126
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesListByResourceGroupResponse>;
127
- /**
128
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
129
- * @param callback The callback
130
- */
131
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
132
- /**
133
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
134
- * @param options The optional parameters
135
- * @param callback The callback
136
- */
137
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
138
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceListResult>, callback?: msRest.ServiceCallback<Models.ApplianceListResult>): Promise<Models.AppliancesListByResourceGroupResponse> {
139
- return this.client.sendOperationRequest(
140
- {
141
- resourceGroupName,
142
- options
143
- },
144
- listByResourceGroupOperationSpec,
145
- callback) as Promise<Models.AppliancesListByResourceGroupResponse>;
146
- }
147
-
148
- /**
149
- * Gets all the appliances within a subscription.
150
- * @param [options] The optional parameters
151
- * @returns Promise<Models.AppliancesListBySubscriptionResponse>
152
- */
153
- listBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.AppliancesListBySubscriptionResponse>;
154
- /**
155
- * @param callback The callback
156
- */
157
- listBySubscription(callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
158
- /**
159
- * @param options The optional parameters
160
- * @param callback The callback
161
- */
162
- listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
163
- listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceListResult>, callback?: msRest.ServiceCallback<Models.ApplianceListResult>): Promise<Models.AppliancesListBySubscriptionResponse> {
164
- return this.client.sendOperationRequest(
165
- {
166
- options
167
- },
168
- listBySubscriptionOperationSpec,
169
- callback) as Promise<Models.AppliancesListBySubscriptionResponse>;
170
- }
171
-
172
- /**
173
- * Gets the appliance.
174
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
175
- * appliance resource type. Use the format,
176
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
177
- * @param [options] The optional parameters
178
- * @returns Promise<Models.AppliancesGetByIdResponse>
179
- */
180
- getById(applianceId: string, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesGetByIdResponse>;
181
- /**
182
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
183
- * appliance resource type. Use the format,
184
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
185
- * @param callback The callback
186
- */
187
- getById(applianceId: string, callback: msRest.ServiceCallback<Models.Appliance>): void;
188
- /**
189
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
190
- * appliance resource type. Use the format,
191
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
192
- * @param options The optional parameters
193
- * @param callback The callback
194
- */
195
- getById(applianceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Appliance>): void;
196
- getById(applianceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Appliance>, callback?: msRest.ServiceCallback<Models.Appliance>): Promise<Models.AppliancesGetByIdResponse> {
197
- return this.client.sendOperationRequest(
198
- {
199
- applianceId,
200
- options
201
- },
202
- getByIdOperationSpec,
203
- callback) as Promise<Models.AppliancesGetByIdResponse>;
204
- }
205
-
206
- /**
207
- * Deletes the appliance.
208
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
209
- * appliance resource type. Use the format,
210
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
211
- * @param [options] The optional parameters
212
- * @returns Promise<msRest.RestResponse>
213
- */
214
- deleteById(applianceId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
215
- return this.beginDeleteById(applianceId,options)
216
- .then(lroPoller => lroPoller.pollUntilFinished());
217
- }
218
-
219
- /**
220
- * Creates a new appliance.
221
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
222
- * appliance resource type. Use the format,
223
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
224
- * @param parameters Parameters supplied to the create or update an appliance.
225
- * @param [options] The optional parameters
226
- * @returns Promise<Models.AppliancesCreateOrUpdateByIdResponse>
227
- */
228
- createOrUpdateById(applianceId: string, parameters: Models.Appliance, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesCreateOrUpdateByIdResponse> {
229
- return this.beginCreateOrUpdateById(applianceId,parameters,options)
230
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AppliancesCreateOrUpdateByIdResponse>;
231
- }
232
-
233
- /**
234
- * Updates an existing appliance. The only value that can be updated via PATCH currently is the
235
- * tags.
236
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
237
- * appliance resource type. Use the format,
238
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
239
- * @param [options] The optional parameters
240
- * @returns Promise<Models.AppliancesUpdateByIdResponse>
241
- */
242
- updateById(applianceId: string, options?: Models.AppliancesUpdateByIdOptionalParams): Promise<Models.AppliancesUpdateByIdResponse>;
243
- /**
244
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
245
- * appliance resource type. Use the format,
246
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
247
- * @param callback The callback
248
- */
249
- updateById(applianceId: string, callback: msRest.ServiceCallback<Models.Appliance>): void;
250
- /**
251
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
252
- * appliance resource type. Use the format,
253
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
254
- * @param options The optional parameters
255
- * @param callback The callback
256
- */
257
- updateById(applianceId: string, options: Models.AppliancesUpdateByIdOptionalParams, callback: msRest.ServiceCallback<Models.Appliance>): void;
258
- updateById(applianceId: string, options?: Models.AppliancesUpdateByIdOptionalParams | msRest.ServiceCallback<Models.Appliance>, callback?: msRest.ServiceCallback<Models.Appliance>): Promise<Models.AppliancesUpdateByIdResponse> {
259
- return this.client.sendOperationRequest(
260
- {
261
- applianceId,
262
- options
263
- },
264
- updateByIdOperationSpec,
265
- callback) as Promise<Models.AppliancesUpdateByIdResponse>;
266
- }
267
-
268
- /**
269
- * Deletes the appliance.
270
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
271
- * @param applianceName The name of the appliance.
272
- * @param [options] The optional parameters
273
- * @returns Promise<msRestAzure.LROPoller>
274
- */
275
- beginDeleteMethod(resourceGroupName: string, applianceName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
276
- return this.client.sendLRORequest(
277
- {
278
- resourceGroupName,
279
- applianceName,
280
- options
281
- },
282
- beginDeleteMethodOperationSpec,
283
- options);
284
- }
285
-
286
- /**
287
- * Creates a new appliance.
288
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
289
- * @param applianceName The name of the appliance.
290
- * @param parameters Parameters supplied to the create or update an appliance.
291
- * @param [options] The optional parameters
292
- * @returns Promise<msRestAzure.LROPoller>
293
- */
294
- beginCreateOrUpdate(resourceGroupName: string, applianceName: string, parameters: Models.Appliance, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
295
- return this.client.sendLRORequest(
296
- {
297
- resourceGroupName,
298
- applianceName,
299
- parameters,
300
- options
301
- },
302
- beginCreateOrUpdateOperationSpec,
303
- options);
304
- }
305
-
306
- /**
307
- * Deletes the appliance.
308
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
309
- * appliance resource type. Use the format,
310
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
311
- * @param [options] The optional parameters
312
- * @returns Promise<msRestAzure.LROPoller>
313
- */
314
- beginDeleteById(applianceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
315
- return this.client.sendLRORequest(
316
- {
317
- applianceId,
318
- options
319
- },
320
- beginDeleteByIdOperationSpec,
321
- options);
322
- }
323
-
324
- /**
325
- * Creates a new appliance.
326
- * @param applianceId The fully qualified ID of the appliance, including the appliance name and the
327
- * appliance resource type. Use the format,
328
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name}
329
- * @param parameters Parameters supplied to the create or update an appliance.
330
- * @param [options] The optional parameters
331
- * @returns Promise<msRestAzure.LROPoller>
332
- */
333
- beginCreateOrUpdateById(applianceId: string, parameters: Models.Appliance, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
334
- return this.client.sendLRORequest(
335
- {
336
- applianceId,
337
- parameters,
338
- options
339
- },
340
- beginCreateOrUpdateByIdOperationSpec,
341
- options);
342
- }
343
-
344
- /**
345
- * Gets all the appliances within a resource group.
346
- * @param nextPageLink The NextLink from the previous successful call to List operation.
347
- * @param [options] The optional parameters
348
- * @returns Promise<Models.AppliancesListByResourceGroupNextResponse>
349
- */
350
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesListByResourceGroupNextResponse>;
351
- /**
352
- * @param nextPageLink The NextLink from the previous successful call to List operation.
353
- * @param callback The callback
354
- */
355
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
356
- /**
357
- * @param nextPageLink The NextLink from the previous successful call to List operation.
358
- * @param options The optional parameters
359
- * @param callback The callback
360
- */
361
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
362
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceListResult>, callback?: msRest.ServiceCallback<Models.ApplianceListResult>): Promise<Models.AppliancesListByResourceGroupNextResponse> {
363
- return this.client.sendOperationRequest(
364
- {
365
- nextPageLink,
366
- options
367
- },
368
- listByResourceGroupNextOperationSpec,
369
- callback) as Promise<Models.AppliancesListByResourceGroupNextResponse>;
370
- }
371
-
372
- /**
373
- * Gets all the appliances within a subscription.
374
- * @param nextPageLink The NextLink from the previous successful call to List operation.
375
- * @param [options] The optional parameters
376
- * @returns Promise<Models.AppliancesListBySubscriptionNextResponse>
377
- */
378
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AppliancesListBySubscriptionNextResponse>;
379
- /**
380
- * @param nextPageLink The NextLink from the previous successful call to List operation.
381
- * @param callback The callback
382
- */
383
- listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
384
- /**
385
- * @param nextPageLink The NextLink from the previous successful call to List operation.
386
- * @param options The optional parameters
387
- * @param callback The callback
388
- */
389
- listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceListResult>): void;
390
- listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceListResult>, callback?: msRest.ServiceCallback<Models.ApplianceListResult>): Promise<Models.AppliancesListBySubscriptionNextResponse> {
391
- return this.client.sendOperationRequest(
392
- {
393
- nextPageLink,
394
- options
395
- },
396
- listBySubscriptionNextOperationSpec,
397
- callback) as Promise<Models.AppliancesListBySubscriptionNextResponse>;
398
- }
399
- }
400
-
401
- // Operation Specifications
402
- const serializer = new msRest.Serializer(Mappers);
403
- const getOperationSpec: msRest.OperationSpec = {
404
- httpMethod: "GET",
405
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}",
406
- urlParameters: [
407
- Parameters.resourceGroupName,
408
- Parameters.applianceName,
409
- Parameters.subscriptionId
410
- ],
411
- queryParameters: [
412
- Parameters.apiVersion
413
- ],
414
- headerParameters: [
415
- Parameters.acceptLanguage
416
- ],
417
- responses: {
418
- 200: {
419
- bodyMapper: Mappers.Appliance
420
- },
421
- 404: {},
422
- default: {
423
- bodyMapper: Mappers.ErrorResponse
424
- }
425
- },
426
- serializer
427
- };
428
-
429
- const updateOperationSpec: msRest.OperationSpec = {
430
- httpMethod: "PATCH",
431
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}",
432
- urlParameters: [
433
- Parameters.resourceGroupName,
434
- Parameters.applianceName,
435
- Parameters.subscriptionId
436
- ],
437
- queryParameters: [
438
- Parameters.apiVersion
439
- ],
440
- headerParameters: [
441
- Parameters.acceptLanguage
442
- ],
443
- requestBody: {
444
- parameterPath: [
445
- "options",
446
- "parameters"
447
- ],
448
- mapper: Mappers.Appliance
449
- },
450
- responses: {
451
- 200: {
452
- bodyMapper: Mappers.Appliance
453
- },
454
- default: {
455
- bodyMapper: Mappers.ErrorResponse
456
- }
457
- },
458
- serializer
459
- };
460
-
461
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
462
- httpMethod: "GET",
463
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances",
464
- urlParameters: [
465
- Parameters.resourceGroupName,
466
- Parameters.subscriptionId
467
- ],
468
- queryParameters: [
469
- Parameters.apiVersion
470
- ],
471
- headerParameters: [
472
- Parameters.acceptLanguage
473
- ],
474
- responses: {
475
- 200: {
476
- bodyMapper: Mappers.ApplianceListResult
477
- },
478
- default: {
479
- bodyMapper: Mappers.ErrorResponse
480
- }
481
- },
482
- serializer
483
- };
484
-
485
- const listBySubscriptionOperationSpec: msRest.OperationSpec = {
486
- httpMethod: "GET",
487
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Solutions/appliances",
488
- urlParameters: [
489
- Parameters.subscriptionId
490
- ],
491
- queryParameters: [
492
- Parameters.apiVersion
493
- ],
494
- headerParameters: [
495
- Parameters.acceptLanguage
496
- ],
497
- responses: {
498
- 200: {
499
- bodyMapper: Mappers.ApplianceListResult
500
- },
501
- default: {
502
- bodyMapper: Mappers.ErrorResponse
503
- }
504
- },
505
- serializer
506
- };
507
-
508
- const getByIdOperationSpec: msRest.OperationSpec = {
509
- httpMethod: "GET",
510
- path: "{applianceId}",
511
- urlParameters: [
512
- Parameters.applianceId
513
- ],
514
- queryParameters: [
515
- Parameters.apiVersion
516
- ],
517
- headerParameters: [
518
- Parameters.acceptLanguage
519
- ],
520
- responses: {
521
- 200: {
522
- bodyMapper: Mappers.Appliance
523
- },
524
- 404: {},
525
- default: {
526
- bodyMapper: Mappers.ErrorResponse
527
- }
528
- },
529
- serializer
530
- };
531
-
532
- const updateByIdOperationSpec: msRest.OperationSpec = {
533
- httpMethod: "PATCH",
534
- path: "{applianceId}",
535
- urlParameters: [
536
- Parameters.applianceId
537
- ],
538
- queryParameters: [
539
- Parameters.apiVersion
540
- ],
541
- headerParameters: [
542
- Parameters.acceptLanguage
543
- ],
544
- requestBody: {
545
- parameterPath: [
546
- "options",
547
- "parameters"
548
- ],
549
- mapper: Mappers.Appliance
550
- },
551
- responses: {
552
- 200: {
553
- bodyMapper: Mappers.Appliance
554
- },
555
- default: {
556
- bodyMapper: Mappers.ErrorResponse
557
- }
558
- },
559
- serializer
560
- };
561
-
562
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
563
- httpMethod: "DELETE",
564
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}",
565
- urlParameters: [
566
- Parameters.resourceGroupName,
567
- Parameters.applianceName,
568
- Parameters.subscriptionId
569
- ],
570
- queryParameters: [
571
- Parameters.apiVersion
572
- ],
573
- headerParameters: [
574
- Parameters.acceptLanguage
575
- ],
576
- responses: {
577
- 202: {},
578
- 204: {},
579
- default: {
580
- bodyMapper: Mappers.ErrorResponse
581
- }
582
- },
583
- serializer
584
- };
585
-
586
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
587
- httpMethod: "PUT",
588
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}",
589
- urlParameters: [
590
- Parameters.resourceGroupName,
591
- Parameters.applianceName,
592
- Parameters.subscriptionId
593
- ],
594
- queryParameters: [
595
- Parameters.apiVersion
596
- ],
597
- headerParameters: [
598
- Parameters.acceptLanguage
599
- ],
600
- requestBody: {
601
- parameterPath: "parameters",
602
- mapper: {
603
- ...Mappers.Appliance,
604
- required: true
605
- }
606
- },
607
- responses: {
608
- 200: {
609
- bodyMapper: Mappers.Appliance
610
- },
611
- 201: {
612
- bodyMapper: Mappers.Appliance
613
- },
614
- default: {
615
- bodyMapper: Mappers.ErrorResponse
616
- }
617
- },
618
- serializer
619
- };
620
-
621
- const beginDeleteByIdOperationSpec: msRest.OperationSpec = {
622
- httpMethod: "DELETE",
623
- path: "{applianceId}",
624
- urlParameters: [
625
- Parameters.applianceId
626
- ],
627
- queryParameters: [
628
- Parameters.apiVersion
629
- ],
630
- headerParameters: [
631
- Parameters.acceptLanguage
632
- ],
633
- responses: {
634
- 202: {},
635
- 204: {},
636
- default: {
637
- bodyMapper: Mappers.ErrorResponse
638
- }
639
- },
640
- serializer
641
- };
642
-
643
- const beginCreateOrUpdateByIdOperationSpec: msRest.OperationSpec = {
644
- httpMethod: "PUT",
645
- path: "{applianceId}",
646
- urlParameters: [
647
- Parameters.applianceId
648
- ],
649
- queryParameters: [
650
- Parameters.apiVersion
651
- ],
652
- headerParameters: [
653
- Parameters.acceptLanguage
654
- ],
655
- requestBody: {
656
- parameterPath: "parameters",
657
- mapper: {
658
- ...Mappers.Appliance,
659
- required: true
660
- }
661
- },
662
- responses: {
663
- 200: {
664
- bodyMapper: Mappers.Appliance
665
- },
666
- 201: {
667
- bodyMapper: Mappers.Appliance
668
- },
669
- default: {
670
- bodyMapper: Mappers.ErrorResponse
671
- }
672
- },
673
- serializer
674
- };
675
-
676
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
677
- httpMethod: "GET",
678
- baseUrl: "https://management.azure.com",
679
- path: "{nextLink}",
680
- urlParameters: [
681
- Parameters.nextPageLink
682
- ],
683
- headerParameters: [
684
- Parameters.acceptLanguage
685
- ],
686
- responses: {
687
- 200: {
688
- bodyMapper: Mappers.ApplianceListResult
689
- },
690
- default: {
691
- bodyMapper: Mappers.ErrorResponse
692
- }
693
- },
694
- serializer
695
- };
696
-
697
- const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
698
- httpMethod: "GET",
699
- baseUrl: "https://management.azure.com",
700
- path: "{nextLink}",
701
- urlParameters: [
702
- Parameters.nextPageLink
703
- ],
704
- headerParameters: [
705
- Parameters.acceptLanguage
706
- ],
707
- responses: {
708
- 200: {
709
- bodyMapper: Mappers.ApplianceListResult
710
- },
711
- default: {
712
- bodyMapper: Mappers.ErrorResponse
713
- }
714
- },
715
- serializer
716
- };