@azure/arm-standbypool 1.0.0-beta.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 (161) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2605 -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/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +53 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js +57 -0
  15. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js +39 -0
  19. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js +39 -0
  23. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js +54 -0
  27. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js +53 -0
  31. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js +56 -0
  35. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js +48 -0
  39. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js +39 -0
  43. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js.map +1 -0
  44. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js +39 -0
  47. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js.map +1 -0
  48. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js +54 -0
  51. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js.map +1 -0
  52. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js +53 -0
  55. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js.map +1 -0
  56. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js +47 -0
  59. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js +40 -0
  63. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js.map +1 -0
  64. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +55 -0
  67. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js.map +1 -0
  68. package/dist-esm/src/index.d.ts +6 -0
  69. package/dist-esm/src/index.d.ts.map +1 -0
  70. package/dist-esm/src/index.js +13 -0
  71. package/dist-esm/src/index.js.map +1 -0
  72. package/dist-esm/src/lroImpl.d.ts +11 -0
  73. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  74. package/dist-esm/src/lroImpl.js +21 -0
  75. package/dist-esm/src/lroImpl.js.map +1 -0
  76. package/dist-esm/src/models/index.d.ts +581 -0
  77. package/dist-esm/src/models/index.d.ts.map +1 -0
  78. package/dist-esm/src/models/index.js +62 -0
  79. package/dist-esm/src/models/index.js.map +1 -0
  80. package/dist-esm/src/models/mappers.d.ts +38 -0
  81. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  82. package/dist-esm/src/models/mappers.js +877 -0
  83. package/dist-esm/src/models/mappers.js.map +1 -0
  84. package/dist-esm/src/models/parameters.d.ts +16 -0
  85. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  86. package/dist-esm/src/models/parameters.js +143 -0
  87. package/dist-esm/src/models/parameters.js.map +1 -0
  88. package/dist-esm/src/operations/index.d.ts +5 -0
  89. package/dist-esm/src/operations/index.d.ts.map +1 -0
  90. package/dist-esm/src/operations/index.js +12 -0
  91. package/dist-esm/src/operations/index.js.map +1 -0
  92. package/dist-esm/src/operations/operations.d.ts +32 -0
  93. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operations/operations.js +133 -0
  95. package/dist-esm/src/operations/operations.js.map +1 -0
  96. package/dist-esm/src/operations/standbyContainerGroupPools.d.ts +99 -0
  97. package/dist-esm/src/operations/standbyContainerGroupPools.d.ts.map +1 -0
  98. package/dist-esm/src/operations/standbyContainerGroupPools.js +502 -0
  99. package/dist-esm/src/operations/standbyContainerGroupPools.js.map +1 -0
  100. package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts +99 -0
  101. package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts.map +1 -0
  102. package/dist-esm/src/operations/standbyVirtualMachinePools.js +502 -0
  103. package/dist-esm/src/operations/standbyVirtualMachinePools.js.map +1 -0
  104. package/dist-esm/src/operations/standbyVirtualMachines.d.ts +47 -0
  105. package/dist-esm/src/operations/standbyVirtualMachines.d.ts.map +1 -0
  106. package/dist-esm/src/operations/standbyVirtualMachines.js +188 -0
  107. package/dist-esm/src/operations/standbyVirtualMachines.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  109. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  111. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  113. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts +63 -0
  117. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts +63 -0
  121. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts +21 -0
  125. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js.map +1 -0
  128. package/dist-esm/src/pagingHelper.d.ts +13 -0
  129. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  130. package/dist-esm/src/pagingHelper.js +32 -0
  131. package/dist-esm/src/pagingHelper.js.map +1 -0
  132. package/dist-esm/src/standbyPoolManagementClient.d.ts +23 -0
  133. package/dist-esm/src/standbyPoolManagementClient.d.ts.map +1 -0
  134. package/dist-esm/src/standbyPoolManagementClient.js +103 -0
  135. package/dist-esm/src/standbyPoolManagementClient.js.map +1 -0
  136. package/dist-esm/test/standbypool_operations_test.spec.d.ts +4 -0
  137. package/dist-esm/test/standbypool_operations_test.spec.d.ts.map +1 -0
  138. package/dist-esm/test/standbypool_operations_test.spec.js +73 -0
  139. package/dist-esm/test/standbypool_operations_test.spec.js.map +1 -0
  140. package/package.json +118 -0
  141. package/review/arm-standbypool.api.md +520 -0
  142. package/src/index.ts +13 -0
  143. package/src/lroImpl.ts +42 -0
  144. package/src/models/index.ts +695 -0
  145. package/src/models/mappers.ts +947 -0
  146. package/src/models/parameters.ts +167 -0
  147. package/src/operations/index.ts +12 -0
  148. package/src/operations/operations.ts +149 -0
  149. package/src/operations/standbyContainerGroupPools.ts +650 -0
  150. package/src/operations/standbyVirtualMachinePools.ts +650 -0
  151. package/src/operations/standbyVirtualMachines.ts +252 -0
  152. package/src/operationsInterfaces/index.ts +12 -0
  153. package/src/operationsInterfaces/operations.ts +22 -0
  154. package/src/operationsInterfaces/standbyContainerGroupPools.ts +127 -0
  155. package/src/operationsInterfaces/standbyVirtualMachinePools.ts +127 -0
  156. package/src/operationsInterfaces/standbyVirtualMachines.ts +44 -0
  157. package/src/pagingHelper.ts +39 -0
  158. package/src/standbyPoolManagementClient.ts +157 -0
  159. package/tsconfig.json +33 -0
  160. package/types/arm-standbypool.d.ts +853 -0
  161. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,502 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { createHttpPoller, } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing StandbyVirtualMachinePools operations. */
17
+ export class StandbyVirtualMachinePoolsImpl {
18
+ /**
19
+ * Initialize a new instance of the class StandbyVirtualMachinePools class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * List StandbyVirtualMachinePoolResource resources by subscription ID
27
+ * @param options The options parameters.
28
+ */
29
+ listBySubscription(options) {
30
+ const iter = this.listBySubscriptionPagingAll(options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listBySubscriptionPagingPage(options, settings);
43
+ },
44
+ };
45
+ }
46
+ listBySubscriptionPagingPage(options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listBySubscription(options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listBySubscriptionPagingAll(options) {
67
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ const page = _c;
74
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
+ }
76
+ }
77
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
+ finally {
79
+ try {
80
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
+ }
82
+ finally { if (e_1) throw e_1.error; }
83
+ }
84
+ });
85
+ }
86
+ /**
87
+ * List StandbyVirtualMachinePoolResource resources by resource group
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
+ * @param options The options parameters.
90
+ */
91
+ listByResourceGroup(resourceGroupName, options) {
92
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
93
+ return {
94
+ next() {
95
+ return iter.next();
96
+ },
97
+ [Symbol.asyncIterator]() {
98
+ return this;
99
+ },
100
+ byPage: (settings) => {
101
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
102
+ throw new Error("maxPageSize is not supported by this operation.");
103
+ }
104
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
+ },
106
+ };
107
+ }
108
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
+ let result;
111
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
+ if (!continuationToken) {
113
+ result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
+ let page = result.value || [];
115
+ continuationToken = result.nextLink;
116
+ setContinuationToken(page, continuationToken);
117
+ yield yield __await(page);
118
+ }
119
+ while (continuationToken) {
120
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
+ continuationToken = result.nextLink;
122
+ let page = result.value || [];
123
+ setContinuationToken(page, continuationToken);
124
+ yield yield __await(page);
125
+ }
126
+ });
127
+ }
128
+ listByResourceGroupPagingAll(resourceGroupName, options) {
129
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
+ var _a, e_2, _b, _c;
131
+ try {
132
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
+ _c = _f.value;
134
+ _d = false;
135
+ const page = _c;
136
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
+ }
138
+ }
139
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
+ finally {
141
+ try {
142
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
+ }
144
+ finally { if (e_2) throw e_2.error; }
145
+ }
146
+ });
147
+ }
148
+ /**
149
+ * List StandbyVirtualMachinePoolResource resources by subscription ID
150
+ * @param options The options parameters.
151
+ */
152
+ _listBySubscription(options) {
153
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
154
+ }
155
+ /**
156
+ * List StandbyVirtualMachinePoolResource resources by resource group
157
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
158
+ * @param options The options parameters.
159
+ */
160
+ _listByResourceGroup(resourceGroupName, options) {
161
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
162
+ }
163
+ /**
164
+ * Get a StandbyVirtualMachinePoolResource
165
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
166
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
167
+ * @param options The options parameters.
168
+ */
169
+ get(resourceGroupName, standbyVirtualMachinePoolName, options) {
170
+ return this.client.sendOperationRequest({ resourceGroupName, standbyVirtualMachinePoolName, options }, getOperationSpec);
171
+ }
172
+ /**
173
+ * Create a StandbyVirtualMachinePoolResource
174
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
176
+ * @param resource Resource create parameters.
177
+ * @param options The options parameters.
178
+ */
179
+ beginCreateOrUpdate(resourceGroupName, standbyVirtualMachinePoolName, resource, options) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
182
+ return this.client.sendOperationRequest(args, spec);
183
+ });
184
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
185
+ var _a;
186
+ let currentRawResponse = undefined;
187
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
188
+ const callback = (rawResponse, flatResponse) => {
189
+ currentRawResponse = rawResponse;
190
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
191
+ };
192
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
193
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
194
+ return {
195
+ flatResponse,
196
+ rawResponse: {
197
+ statusCode: currentRawResponse.status,
198
+ body: currentRawResponse.parsedBody,
199
+ headers: currentRawResponse.headers.toJSON(),
200
+ },
201
+ };
202
+ });
203
+ const lro = createLroSpec({
204
+ sendOperationFn,
205
+ args: {
206
+ resourceGroupName,
207
+ standbyVirtualMachinePoolName,
208
+ resource,
209
+ options,
210
+ },
211
+ spec: createOrUpdateOperationSpec,
212
+ });
213
+ const poller = yield createHttpPoller(lro, {
214
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
215
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
216
+ resourceLocationConfig: "azure-async-operation",
217
+ });
218
+ yield poller.poll();
219
+ return poller;
220
+ });
221
+ }
222
+ /**
223
+ * Create a StandbyVirtualMachinePoolResource
224
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
225
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
226
+ * @param resource Resource create parameters.
227
+ * @param options The options parameters.
228
+ */
229
+ beginCreateOrUpdateAndWait(resourceGroupName, standbyVirtualMachinePoolName, resource, options) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, standbyVirtualMachinePoolName, resource, options);
232
+ return poller.pollUntilDone();
233
+ });
234
+ }
235
+ /**
236
+ * Update a StandbyVirtualMachinePoolResource
237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
239
+ * @param properties The resource properties to be updated.
240
+ * @param options The options parameters.
241
+ */
242
+ update(resourceGroupName, standbyVirtualMachinePoolName, properties, options) {
243
+ return this.client.sendOperationRequest({ resourceGroupName, standbyVirtualMachinePoolName, properties, options }, updateOperationSpec);
244
+ }
245
+ /**
246
+ * Delete a StandbyVirtualMachinePoolResource
247
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
248
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
249
+ * @param options The options parameters.
250
+ */
251
+ beginDelete(resourceGroupName, standbyVirtualMachinePoolName, options) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
254
+ return this.client.sendOperationRequest(args, spec);
255
+ });
256
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
257
+ var _a;
258
+ let currentRawResponse = undefined;
259
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
260
+ const callback = (rawResponse, flatResponse) => {
261
+ currentRawResponse = rawResponse;
262
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
263
+ };
264
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
265
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
266
+ return {
267
+ flatResponse,
268
+ rawResponse: {
269
+ statusCode: currentRawResponse.status,
270
+ body: currentRawResponse.parsedBody,
271
+ headers: currentRawResponse.headers.toJSON(),
272
+ },
273
+ };
274
+ });
275
+ const lro = createLroSpec({
276
+ sendOperationFn,
277
+ args: { resourceGroupName, standbyVirtualMachinePoolName, options },
278
+ spec: deleteOperationSpec,
279
+ });
280
+ const poller = yield createHttpPoller(lro, {
281
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
282
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
283
+ resourceLocationConfig: "location",
284
+ });
285
+ yield poller.poll();
286
+ return poller;
287
+ });
288
+ }
289
+ /**
290
+ * Delete a StandbyVirtualMachinePoolResource
291
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
292
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
293
+ * @param options The options parameters.
294
+ */
295
+ beginDeleteAndWait(resourceGroupName, standbyVirtualMachinePoolName, options) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ const poller = yield this.beginDelete(resourceGroupName, standbyVirtualMachinePoolName, options);
298
+ return poller.pollUntilDone();
299
+ });
300
+ }
301
+ /**
302
+ * ListBySubscriptionNext
303
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
304
+ * @param options The options parameters.
305
+ */
306
+ _listBySubscriptionNext(nextLink, options) {
307
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
308
+ }
309
+ /**
310
+ * ListByResourceGroupNext
311
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
312
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
313
+ * @param options The options parameters.
314
+ */
315
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
316
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
317
+ }
318
+ }
319
+ // Operation Specifications
320
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
321
+ const listBySubscriptionOperationSpec = {
322
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools",
323
+ httpMethod: "GET",
324
+ responses: {
325
+ 200: {
326
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResourceListResult,
327
+ },
328
+ default: {
329
+ bodyMapper: Mappers.ErrorResponse,
330
+ },
331
+ },
332
+ queryParameters: [Parameters.apiVersion],
333
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
334
+ headerParameters: [Parameters.accept],
335
+ serializer,
336
+ };
337
+ const listByResourceGroupOperationSpec = {
338
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools",
339
+ httpMethod: "GET",
340
+ responses: {
341
+ 200: {
342
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResourceListResult,
343
+ },
344
+ default: {
345
+ bodyMapper: Mappers.ErrorResponse,
346
+ },
347
+ },
348
+ queryParameters: [Parameters.apiVersion],
349
+ urlParameters: [
350
+ Parameters.$host,
351
+ Parameters.subscriptionId,
352
+ Parameters.resourceGroupName,
353
+ ],
354
+ headerParameters: [Parameters.accept],
355
+ serializer,
356
+ };
357
+ const getOperationSpec = {
358
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
359
+ httpMethod: "GET",
360
+ responses: {
361
+ 200: {
362
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResource,
363
+ },
364
+ default: {
365
+ bodyMapper: Mappers.ErrorResponse,
366
+ },
367
+ },
368
+ queryParameters: [Parameters.apiVersion],
369
+ urlParameters: [
370
+ Parameters.$host,
371
+ Parameters.subscriptionId,
372
+ Parameters.resourceGroupName,
373
+ Parameters.standbyVirtualMachinePoolName,
374
+ ],
375
+ headerParameters: [Parameters.accept],
376
+ serializer,
377
+ };
378
+ const createOrUpdateOperationSpec = {
379
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
380
+ httpMethod: "PUT",
381
+ responses: {
382
+ 200: {
383
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResource,
384
+ },
385
+ 201: {
386
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResource,
387
+ },
388
+ 202: {
389
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResource,
390
+ },
391
+ 204: {
392
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResource,
393
+ },
394
+ default: {
395
+ bodyMapper: Mappers.ErrorResponse,
396
+ },
397
+ },
398
+ requestBody: Parameters.resource1,
399
+ queryParameters: [Parameters.apiVersion],
400
+ urlParameters: [
401
+ Parameters.$host,
402
+ Parameters.subscriptionId,
403
+ Parameters.resourceGroupName,
404
+ Parameters.standbyVirtualMachinePoolName,
405
+ ],
406
+ headerParameters: [Parameters.accept, Parameters.contentType],
407
+ mediaType: "json",
408
+ serializer,
409
+ };
410
+ const updateOperationSpec = {
411
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
412
+ httpMethod: "PATCH",
413
+ responses: {
414
+ 200: {
415
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResource,
416
+ },
417
+ default: {
418
+ bodyMapper: Mappers.ErrorResponse,
419
+ },
420
+ },
421
+ requestBody: Parameters.properties1,
422
+ queryParameters: [Parameters.apiVersion],
423
+ urlParameters: [
424
+ Parameters.$host,
425
+ Parameters.subscriptionId,
426
+ Parameters.resourceGroupName,
427
+ Parameters.standbyVirtualMachinePoolName,
428
+ ],
429
+ headerParameters: [Parameters.accept, Parameters.contentType],
430
+ mediaType: "json",
431
+ serializer,
432
+ };
433
+ const deleteOperationSpec = {
434
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}",
435
+ httpMethod: "DELETE",
436
+ responses: {
437
+ 200: {
438
+ headersMapper: Mappers.StandbyVirtualMachinePoolsDeleteHeaders,
439
+ },
440
+ 201: {
441
+ headersMapper: Mappers.StandbyVirtualMachinePoolsDeleteHeaders,
442
+ },
443
+ 202: {
444
+ headersMapper: Mappers.StandbyVirtualMachinePoolsDeleteHeaders,
445
+ },
446
+ 204: {
447
+ headersMapper: Mappers.StandbyVirtualMachinePoolsDeleteHeaders,
448
+ },
449
+ default: {
450
+ bodyMapper: Mappers.ErrorResponse,
451
+ },
452
+ },
453
+ queryParameters: [Parameters.apiVersion],
454
+ urlParameters: [
455
+ Parameters.$host,
456
+ Parameters.subscriptionId,
457
+ Parameters.resourceGroupName,
458
+ Parameters.standbyVirtualMachinePoolName,
459
+ ],
460
+ headerParameters: [Parameters.accept],
461
+ serializer,
462
+ };
463
+ const listBySubscriptionNextOperationSpec = {
464
+ path: "{nextLink}",
465
+ httpMethod: "GET",
466
+ responses: {
467
+ 200: {
468
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResourceListResult,
469
+ },
470
+ default: {
471
+ bodyMapper: Mappers.ErrorResponse,
472
+ },
473
+ },
474
+ urlParameters: [
475
+ Parameters.$host,
476
+ Parameters.nextLink,
477
+ Parameters.subscriptionId,
478
+ ],
479
+ headerParameters: [Parameters.accept],
480
+ serializer,
481
+ };
482
+ const listByResourceGroupNextOperationSpec = {
483
+ path: "{nextLink}",
484
+ httpMethod: "GET",
485
+ responses: {
486
+ 200: {
487
+ bodyMapper: Mappers.StandbyVirtualMachinePoolResourceListResult,
488
+ },
489
+ default: {
490
+ bodyMapper: Mappers.ErrorResponse,
491
+ },
492
+ },
493
+ urlParameters: [
494
+ Parameters.$host,
495
+ Parameters.nextLink,
496
+ Parameters.subscriptionId,
497
+ Parameters.resourceGroupName,
498
+ ],
499
+ headerParameters: [Parameters.accept],
500
+ serializer,
501
+ };
502
+ //# sourceMappingURL=standbyVirtualMachinePools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standbyVirtualMachinePools.js","sourceRoot":"","sources":["../../../src/operations/standbyVirtualMachinePools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAsB3C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAKzC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAoE;QAEpE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA4B,CACzC,OAAoE,EACpE,QAAuB;;YAEv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KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { StandbyVirtualMachines } from "../operationsInterfaces";
3
+ import { StandbyPoolManagementClient } from "../standbyPoolManagementClient";
4
+ import { StandbyVirtualMachineResource, StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, StandbyVirtualMachinesGetOptionalParams, StandbyVirtualMachinesGetResponse } from "../models";
5
+ /** Class containing StandbyVirtualMachines operations. */
6
+ export declare class StandbyVirtualMachinesImpl implements StandbyVirtualMachines {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class StandbyVirtualMachines class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: StandbyPoolManagementClient);
13
+ /**
14
+ * List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
17
+ * @param options The options parameters.
18
+ */
19
+ listByStandbyVirtualMachinePoolResource(resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachineResource>;
20
+ private listByStandbyVirtualMachinePoolResourcePagingPage;
21
+ private listByStandbyVirtualMachinePoolResourcePagingAll;
22
+ /**
23
+ * List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
26
+ * @param options The options parameters.
27
+ */
28
+ private _listByStandbyVirtualMachinePoolResource;
29
+ /**
30
+ * Get a StandbyVirtualMachineResource
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
33
+ * @param standbyVirtualMachineName Name of the standby virtual machine
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, standbyVirtualMachinePoolName: string, standbyVirtualMachineName: string, options?: StandbyVirtualMachinesGetOptionalParams): Promise<StandbyVirtualMachinesGetResponse>;
37
+ /**
38
+ * ListByStandbyVirtualMachinePoolResourceNext
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param standbyVirtualMachinePoolName Name of the standby virtual machine pool
41
+ * @param nextLink The nextLink from the previous successful call to the
42
+ * ListByStandbyVirtualMachinePoolResource method.
43
+ * @param options The options parameters.
44
+ */
45
+ private _listByStandbyVirtualMachinePoolResourceNext;
46
+ }
47
+ //# sourceMappingURL=standbyVirtualMachines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standbyVirtualMachines.d.ts","sourceRoot":"","sources":["../../../src/operations/standbyVirtualMachines.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAIjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,6BAA6B,EAE7B,2EAA2E,EAE3E,uCAAuC,EACvC,iCAAiC,EAElC,MAAM,WAAW,CAAC;AAGnB,0DAA0D;AAC1D,qBAAa,0BAA2B,YAAW,sBAAsB;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;gBACS,MAAM,EAAE,2BAA2B;IAI/C;;;;;OAKG;IACI,uCAAuC,CAC5C,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2EAA2E,GACpF,0BAA0B,CAAC,6BAA6B,CAAC;YA2B7C,iDAAiD;YAiCjD,gDAAgD;IAc/D;;;;;OAKG;IACH,OAAO,CAAC,wCAAwC;IAWhD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAY7C;;;;;;;OAOG;IACH,OAAO,CAAC,4CAA4C;CAWrD"}