@azure/arm-resourcemover 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 (230) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +3878 -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/moveCollectionsBulkRemove.d.ts +2 -0
  9. package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/moveCollectionsBulkRemove.js +38 -0
  11. package/dist-esm/samples-dev/moveCollectionsBulkRemove.js.map +1 -0
  12. package/dist-esm/samples-dev/moveCollectionsCommit.d.ts +2 -0
  13. package/dist-esm/samples-dev/moveCollectionsCommit.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/moveCollectionsCommit.js +38 -0
  15. package/dist-esm/samples-dev/moveCollectionsCommit.js.map +1 -0
  16. package/dist-esm/samples-dev/moveCollectionsCreate.d.ts +2 -0
  17. package/dist-esm/samples-dev/moveCollectionsCreate.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/moveCollectionsCreate.js +37 -0
  19. package/dist-esm/samples-dev/moveCollectionsCreate.js.map +1 -0
  20. package/dist-esm/samples-dev/moveCollectionsDelete.d.ts +2 -0
  21. package/dist-esm/samples-dev/moveCollectionsDelete.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/moveCollectionsDelete.js +31 -0
  23. package/dist-esm/samples-dev/moveCollectionsDelete.js.map +1 -0
  24. package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts +2 -0
  25. package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/moveCollectionsDiscard.js +38 -0
  27. package/dist-esm/samples-dev/moveCollectionsDiscard.js.map +1 -0
  28. package/dist-esm/samples-dev/moveCollectionsGet.d.ts +2 -0
  29. package/dist-esm/samples-dev/moveCollectionsGet.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/moveCollectionsGet.js +31 -0
  31. package/dist-esm/samples-dev/moveCollectionsGet.js.map +1 -0
  32. package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts +2 -0
  33. package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/moveCollectionsInitiateMove.js +38 -0
  35. package/dist-esm/samples-dev/moveCollectionsInitiateMove.js.map +1 -0
  36. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts +2 -0
  37. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js +44 -0
  39. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js.map +1 -0
  40. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts +2 -0
  41. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js +43 -0
  43. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js.map +1 -0
  44. package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts +2 -0
  45. package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/moveCollectionsPrepare.js +38 -0
  47. package/dist-esm/samples-dev/moveCollectionsPrepare.js.map +1 -0
  48. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts +2 -0
  49. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js +31 -0
  51. package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js.map +1 -0
  52. package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts +2 -0
  53. package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/moveCollectionsUpdate.js +36 -0
  55. package/dist-esm/samples-dev/moveCollectionsUpdate.js.map +1 -0
  56. package/dist-esm/samples-dev/moveResourcesCreate.d.ts +2 -0
  57. package/dist-esm/samples-dev/moveResourcesCreate.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/moveResourcesCreate.js +54 -0
  59. package/dist-esm/samples-dev/moveResourcesCreate.js.map +1 -0
  60. package/dist-esm/samples-dev/moveResourcesDelete.d.ts +2 -0
  61. package/dist-esm/samples-dev/moveResourcesDelete.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/moveResourcesDelete.js +32 -0
  63. package/dist-esm/samples-dev/moveResourcesDelete.js.map +1 -0
  64. package/dist-esm/samples-dev/moveResourcesGet.d.ts +2 -0
  65. package/dist-esm/samples-dev/moveResourcesGet.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/moveResourcesGet.js +32 -0
  67. package/dist-esm/samples-dev/moveResourcesGet.js.map +1 -0
  68. package/dist-esm/samples-dev/moveResourcesList.d.ts +2 -0
  69. package/dist-esm/samples-dev/moveResourcesList.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/moveResourcesList.js +45 -0
  71. package/dist-esm/samples-dev/moveResourcesList.js.map +1 -0
  72. package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts +2 -0
  73. package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/operationsDiscoveryGet.js +29 -0
  75. package/dist-esm/samples-dev/operationsDiscoveryGet.js.map +1 -0
  76. package/dist-esm/samples-dev/requiredForGet.d.ts +2 -0
  77. package/dist-esm/samples-dev/requiredForGet.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/requiredForGet.js +32 -0
  79. package/dist-esm/samples-dev/requiredForGet.js.map +1 -0
  80. package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts +2 -0
  81. package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/unresolvedDependenciesGet.js +45 -0
  83. package/dist-esm/samples-dev/unresolvedDependenciesGet.js.map +1 -0
  84. package/dist-esm/src/index.d.ts +5 -0
  85. package/dist-esm/src/index.d.ts.map +1 -0
  86. package/{esm/models/unresolvedDependenciesMappers.js → dist-esm/src/index.js} +5 -2
  87. package/dist-esm/src/index.js.map +1 -0
  88. package/dist-esm/src/lroImpl.d.ts +16 -0
  89. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  90. package/dist-esm/src/lroImpl.js +29 -0
  91. package/dist-esm/src/lroImpl.js.map +1 -0
  92. package/dist-esm/src/models/index.d.ts +1273 -0
  93. package/dist-esm/src/models/index.d.ts.map +1 -0
  94. package/dist-esm/src/models/index.js +93 -0
  95. package/dist-esm/src/models/index.js.map +1 -0
  96. package/dist-esm/src/models/mappers.d.ts +88 -0
  97. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  98. package/{esm → dist-esm/src}/models/mappers.js +1091 -983
  99. package/dist-esm/src/models/mappers.js.map +1 -0
  100. package/dist-esm/src/models/parameters.d.ts +23 -0
  101. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  102. package/dist-esm/src/models/parameters.js +173 -0
  103. package/dist-esm/src/models/parameters.js.map +1 -0
  104. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  105. package/dist-esm/src/operations/index.d.ts.map +1 -0
  106. package/{esm → dist-esm/src}/operations/index.js +1 -2
  107. package/dist-esm/src/operations/index.js.map +1 -0
  108. package/dist-esm/src/operations/moveCollections.d.ts +211 -0
  109. package/dist-esm/src/operations/moveCollections.d.ts.map +1 -0
  110. package/dist-esm/src/operations/moveCollections.js +961 -0
  111. package/dist-esm/src/operations/moveCollections.js.map +1 -0
  112. package/dist-esm/src/operations/moveResources.d.ts +79 -0
  113. package/dist-esm/src/operations/moveResources.d.ts.map +1 -0
  114. package/dist-esm/src/operations/moveResources.js +339 -0
  115. package/dist-esm/src/operations/moveResources.js.map +1 -0
  116. package/dist-esm/src/operations/operationsDiscoveryOperations.d.ts +15 -0
  117. package/dist-esm/src/operations/operationsDiscoveryOperations.d.ts.map +1 -0
  118. package/dist-esm/src/operations/operationsDiscoveryOperations.js +43 -0
  119. package/dist-esm/src/operations/operationsDiscoveryOperations.js.map +1 -0
  120. package/dist-esm/src/operations/unresolvedDependencies.d.ts +38 -0
  121. package/dist-esm/src/operations/unresolvedDependencies.d.ts.map +1 -0
  122. package/dist-esm/src/operations/unresolvedDependencies.js +147 -0
  123. package/dist-esm/src/operations/unresolvedDependencies.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/moveCollections.d.ts +173 -0
  129. package/dist-esm/src/operationsInterfaces/moveCollections.d.ts.map +1 -0
  130. package/{src/models/operationsDiscoveryOperationsMappers.ts → dist-esm/src/operationsInterfaces/moveCollections.js} +2 -8
  131. package/dist-esm/src/operationsInterfaces/moveCollections.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/moveResources.d.ts +54 -0
  133. package/dist-esm/src/operationsInterfaces/moveResources.d.ts.map +1 -0
  134. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/moveResources.js} +2 -1
  135. package/dist-esm/src/operationsInterfaces/moveResources.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.d.ts +7 -0
  137. package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.d.ts.map +1 -0
  138. package/{esm/models/operationsDiscoveryOperationsMappers.js → dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.js} +2 -2
  139. package/dist-esm/src/operationsInterfaces/operationsDiscoveryOperations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/unresolvedDependencies.d.ts +13 -0
  141. package/dist-esm/src/operationsInterfaces/unresolvedDependencies.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/unresolvedDependencies.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/unresolvedDependencies.js.map +1 -0
  144. package/dist-esm/src/resourceMoverServiceAPI.d.ts +21 -0
  145. package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +1 -0
  146. package/dist-esm/src/resourceMoverServiceAPI.js +54 -0
  147. package/dist-esm/src/resourceMoverServiceAPI.js.map +1 -0
  148. package/dist-esm/test/sampleTest.d.ts +2 -0
  149. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  150. package/dist-esm/test/sampleTest.js +40 -0
  151. package/dist-esm/test/sampleTest.js.map +1 -0
  152. package/package.json +77 -33
  153. package/review/arm-resourcemover.api.md +946 -0
  154. package/rollup.config.js +181 -30
  155. package/src/index.ts +12 -0
  156. package/src/lroImpl.ts +34 -0
  157. package/src/models/index.ts +1043 -1764
  158. package/src/models/mappers.ts +1096 -976
  159. package/src/models/parameters.ts +128 -48
  160. package/src/operations/index.ts +1 -2
  161. package/src/operations/moveCollections.ts +1014 -621
  162. package/src/operations/moveResources.ts +357 -203
  163. package/src/operations/operationsDiscoveryOperations.ts +28 -43
  164. package/src/operations/unresolvedDependencies.ts +142 -87
  165. package/src/{models/unresolvedDependenciesMappers.ts → operationsInterfaces/index.ts} +4 -8
  166. package/src/operationsInterfaces/moveCollections.ts +321 -0
  167. package/src/operationsInterfaces/moveResources.ts +111 -0
  168. package/src/operationsInterfaces/operationsDiscoveryOperations.ts +20 -0
  169. package/src/operationsInterfaces/unresolvedDependencies.ts +29 -0
  170. package/src/resourceMoverServiceAPI.ts +78 -38
  171. package/tsconfig.json +5 -4
  172. package/types/arm-resourcemover.d.ts +1673 -0
  173. package/types/tsdoc-metadata.json +11 -0
  174. package/dist/arm-resourcemover.js +0 -3490
  175. package/dist/arm-resourcemover.js.map +0 -1
  176. package/dist/arm-resourcemover.min.js +0 -1
  177. package/dist/arm-resourcemover.min.js.map +0 -1
  178. package/esm/models/index.d.ts +0 -1997
  179. package/esm/models/index.d.ts.map +0 -1
  180. package/esm/models/index.js.map +0 -1
  181. package/esm/models/mappers.d.ts +0 -87
  182. package/esm/models/mappers.d.ts.map +0 -1
  183. package/esm/models/mappers.js.map +0 -1
  184. package/esm/models/moveCollectionsMappers.d.ts +0 -2
  185. package/esm/models/moveCollectionsMappers.d.ts.map +0 -1
  186. package/esm/models/moveCollectionsMappers.js +0 -9
  187. package/esm/models/moveCollectionsMappers.js.map +0 -1
  188. package/esm/models/moveResourcesMappers.d.ts +0 -2
  189. package/esm/models/moveResourcesMappers.d.ts.map +0 -1
  190. package/esm/models/moveResourcesMappers.js +0 -9
  191. package/esm/models/moveResourcesMappers.js.map +0 -1
  192. package/esm/models/operationsDiscoveryOperationsMappers.d.ts +0 -2
  193. package/esm/models/operationsDiscoveryOperationsMappers.d.ts.map +0 -1
  194. package/esm/models/operationsDiscoveryOperationsMappers.js.map +0 -1
  195. package/esm/models/parameters.d.ts +0 -13
  196. package/esm/models/parameters.d.ts.map +0 -1
  197. package/esm/models/parameters.js +0 -126
  198. package/esm/models/parameters.js.map +0 -1
  199. package/esm/models/unresolvedDependenciesMappers.d.ts +0 -2
  200. package/esm/models/unresolvedDependenciesMappers.d.ts.map +0 -1
  201. package/esm/models/unresolvedDependenciesMappers.js.map +0 -1
  202. package/esm/operations/index.d.ts.map +0 -1
  203. package/esm/operations/index.js.map +0 -1
  204. package/esm/operations/moveCollections.d.ts +0 -316
  205. package/esm/operations/moveCollections.d.ts.map +0 -1
  206. package/esm/operations/moveCollections.js +0 -699
  207. package/esm/operations/moveCollections.js.map +0 -1
  208. package/esm/operations/moveResources.d.ts +0 -113
  209. package/esm/operations/moveResources.d.ts.map +0 -1
  210. package/esm/operations/moveResources.js +0 -239
  211. package/esm/operations/moveResources.js.map +0 -1
  212. package/esm/operations/operationsDiscoveryOperations.d.ts +0 -27
  213. package/esm/operations/operationsDiscoveryOperations.d.ts.map +0 -1
  214. package/esm/operations/operationsDiscoveryOperations.js +0 -50
  215. package/esm/operations/operationsDiscoveryOperations.js.map +0 -1
  216. package/esm/operations/unresolvedDependencies.d.ts +0 -52
  217. package/esm/operations/unresolvedDependencies.d.ts.map +0 -1
  218. package/esm/operations/unresolvedDependencies.js +0 -92
  219. package/esm/operations/unresolvedDependencies.js.map +0 -1
  220. package/esm/resourceMoverServiceAPI.d.ts +0 -27
  221. package/esm/resourceMoverServiceAPI.d.ts.map +0 -1
  222. package/esm/resourceMoverServiceAPI.js +0 -40
  223. package/esm/resourceMoverServiceAPI.js.map +0 -1
  224. package/esm/resourceMoverServiceAPIContext.d.ts +0 -22
  225. package/esm/resourceMoverServiceAPIContext.d.ts.map +0 -1
  226. package/esm/resourceMoverServiceAPIContext.js +0 -60
  227. package/esm/resourceMoverServiceAPIContext.js.map +0 -1
  228. package/src/models/moveCollectionsMappers.ts +0 -68
  229. package/src/models/moveResourcesMappers.ts +0 -63
  230. package/src/resourceMoverServiceAPIContext.ts +0 -67
package/dist/index.js ADDED
@@ -0,0 +1,3878 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+ var coreLro = require('@azure/core-lro');
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation.
11
+ * Licensed under the MIT License.
12
+ *
13
+ * Code generated by Microsoft (R) AutoRest Code Generator.
14
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
+ */
16
+ (function (KnownResourceIdentityType) {
17
+ KnownResourceIdentityType["None"] = "None";
18
+ KnownResourceIdentityType["SystemAssigned"] = "SystemAssigned";
19
+ KnownResourceIdentityType["UserAssigned"] = "UserAssigned";
20
+ })(exports.KnownResourceIdentityType || (exports.KnownResourceIdentityType = {}));
21
+ (function (KnownProvisioningState) {
22
+ KnownProvisioningState["Succeeded"] = "Succeeded";
23
+ KnownProvisioningState["Updating"] = "Updating";
24
+ KnownProvisioningState["Creating"] = "Creating";
25
+ KnownProvisioningState["Failed"] = "Failed";
26
+ })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
27
+ (function (KnownCreatedByType) {
28
+ KnownCreatedByType["User"] = "User";
29
+ KnownCreatedByType["Application"] = "Application";
30
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
31
+ KnownCreatedByType["Key"] = "Key";
32
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
33
+ (function (KnownMoveResourceInputType) {
34
+ KnownMoveResourceInputType["MoveResourceId"] = "MoveResourceId";
35
+ KnownMoveResourceInputType["MoveResourceSourceId"] = "MoveResourceSourceId";
36
+ })(exports.KnownMoveResourceInputType || (exports.KnownMoveResourceInputType = {}));
37
+ (function (KnownMoveState) {
38
+ KnownMoveState["AssignmentPending"] = "AssignmentPending";
39
+ KnownMoveState["PreparePending"] = "PreparePending";
40
+ KnownMoveState["PrepareInProgress"] = "PrepareInProgress";
41
+ KnownMoveState["PrepareFailed"] = "PrepareFailed";
42
+ KnownMoveState["MovePending"] = "MovePending";
43
+ KnownMoveState["MoveInProgress"] = "MoveInProgress";
44
+ KnownMoveState["MoveFailed"] = "MoveFailed";
45
+ KnownMoveState["DiscardInProgress"] = "DiscardInProgress";
46
+ KnownMoveState["DiscardFailed"] = "DiscardFailed";
47
+ KnownMoveState["CommitPending"] = "CommitPending";
48
+ KnownMoveState["CommitInProgress"] = "CommitInProgress";
49
+ KnownMoveState["CommitFailed"] = "CommitFailed";
50
+ KnownMoveState["Committed"] = "Committed";
51
+ KnownMoveState["DeleteSourcePending"] = "DeleteSourcePending";
52
+ KnownMoveState["ResourceMoveCompleted"] = "ResourceMoveCompleted";
53
+ })(exports.KnownMoveState || (exports.KnownMoveState = {}));
54
+ (function (KnownJobName) {
55
+ KnownJobName["InitialSync"] = "InitialSync";
56
+ })(exports.KnownJobName || (exports.KnownJobName = {}));
57
+ (function (KnownResolutionType) {
58
+ KnownResolutionType["Manual"] = "Manual";
59
+ KnownResolutionType["Automatic"] = "Automatic";
60
+ })(exports.KnownResolutionType || (exports.KnownResolutionType = {}));
61
+ (function (KnownDependencyType) {
62
+ KnownDependencyType["RequiredForPrepare"] = "RequiredForPrepare";
63
+ KnownDependencyType["RequiredForMove"] = "RequiredForMove";
64
+ })(exports.KnownDependencyType || (exports.KnownDependencyType = {}));
65
+ (function (KnownDependencyLevel) {
66
+ KnownDependencyLevel["Direct"] = "Direct";
67
+ KnownDependencyLevel["Descendant"] = "Descendant";
68
+ })(exports.KnownDependencyLevel || (exports.KnownDependencyLevel = {}));
69
+ (function (KnownTargetAvailabilityZone) {
70
+ KnownTargetAvailabilityZone["One"] = "1";
71
+ KnownTargetAvailabilityZone["Two"] = "2";
72
+ KnownTargetAvailabilityZone["Three"] = "3";
73
+ KnownTargetAvailabilityZone["NA"] = "NA";
74
+ })(exports.KnownTargetAvailabilityZone || (exports.KnownTargetAvailabilityZone = {}));
75
+ (function (KnownZoneRedundant) {
76
+ KnownZoneRedundant["Enable"] = "Enable";
77
+ KnownZoneRedundant["Disable"] = "Disable";
78
+ })(exports.KnownZoneRedundant || (exports.KnownZoneRedundant = {}));
79
+
80
+ /*
81
+ * Copyright (c) Microsoft Corporation.
82
+ * Licensed under the MIT License.
83
+ *
84
+ * Code generated by Microsoft (R) AutoRest Code Generator.
85
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
86
+ */
87
+ const MoveCollection = {
88
+ type: {
89
+ name: "Composite",
90
+ className: "MoveCollection",
91
+ modelProperties: {
92
+ id: {
93
+ serializedName: "id",
94
+ readOnly: true,
95
+ type: {
96
+ name: "String"
97
+ }
98
+ },
99
+ name: {
100
+ serializedName: "name",
101
+ readOnly: true,
102
+ type: {
103
+ name: "String"
104
+ }
105
+ },
106
+ type: {
107
+ serializedName: "type",
108
+ readOnly: true,
109
+ type: {
110
+ name: "String"
111
+ }
112
+ },
113
+ etag: {
114
+ serializedName: "etag",
115
+ readOnly: true,
116
+ type: {
117
+ name: "String"
118
+ }
119
+ },
120
+ tags: {
121
+ serializedName: "tags",
122
+ type: {
123
+ name: "Dictionary",
124
+ value: { type: { name: "String" } }
125
+ }
126
+ },
127
+ location: {
128
+ serializedName: "location",
129
+ type: {
130
+ name: "String"
131
+ }
132
+ },
133
+ identity: {
134
+ serializedName: "identity",
135
+ type: {
136
+ name: "Composite",
137
+ className: "Identity"
138
+ }
139
+ },
140
+ properties: {
141
+ serializedName: "properties",
142
+ type: {
143
+ name: "Composite",
144
+ className: "MoveCollectionProperties"
145
+ }
146
+ },
147
+ systemData: {
148
+ serializedName: "systemData",
149
+ type: {
150
+ name: "Composite",
151
+ className: "SystemData"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ };
157
+ const Identity = {
158
+ type: {
159
+ name: "Composite",
160
+ className: "Identity",
161
+ modelProperties: {
162
+ type: {
163
+ serializedName: "type",
164
+ type: {
165
+ name: "String"
166
+ }
167
+ },
168
+ principalId: {
169
+ serializedName: "principalId",
170
+ type: {
171
+ name: "String"
172
+ }
173
+ },
174
+ tenantId: {
175
+ serializedName: "tenantId",
176
+ type: {
177
+ name: "String"
178
+ }
179
+ }
180
+ }
181
+ }
182
+ };
183
+ const MoveCollectionProperties = {
184
+ type: {
185
+ name: "Composite",
186
+ className: "MoveCollectionProperties",
187
+ modelProperties: {
188
+ sourceRegion: {
189
+ serializedName: "sourceRegion",
190
+ required: true,
191
+ type: {
192
+ name: "String"
193
+ }
194
+ },
195
+ targetRegion: {
196
+ serializedName: "targetRegion",
197
+ required: true,
198
+ type: {
199
+ name: "String"
200
+ }
201
+ },
202
+ provisioningState: {
203
+ serializedName: "provisioningState",
204
+ readOnly: true,
205
+ type: {
206
+ name: "String"
207
+ }
208
+ },
209
+ errors: {
210
+ serializedName: "errors",
211
+ type: {
212
+ name: "Composite",
213
+ className: "MoveCollectionPropertiesErrors"
214
+ }
215
+ }
216
+ }
217
+ }
218
+ };
219
+ const MoveResourceError = {
220
+ type: {
221
+ name: "Composite",
222
+ className: "MoveResourceError",
223
+ modelProperties: {
224
+ properties: {
225
+ serializedName: "properties",
226
+ type: {
227
+ name: "Composite",
228
+ className: "MoveResourceErrorBody"
229
+ }
230
+ }
231
+ }
232
+ }
233
+ };
234
+ const MoveResourceErrorBody = {
235
+ type: {
236
+ name: "Composite",
237
+ className: "MoveResourceErrorBody",
238
+ modelProperties: {
239
+ code: {
240
+ serializedName: "code",
241
+ readOnly: true,
242
+ type: {
243
+ name: "String"
244
+ }
245
+ },
246
+ message: {
247
+ serializedName: "message",
248
+ readOnly: true,
249
+ type: {
250
+ name: "String"
251
+ }
252
+ },
253
+ target: {
254
+ serializedName: "target",
255
+ readOnly: true,
256
+ type: {
257
+ name: "String"
258
+ }
259
+ },
260
+ details: {
261
+ serializedName: "details",
262
+ readOnly: true,
263
+ type: {
264
+ name: "Sequence",
265
+ element: {
266
+ type: {
267
+ name: "Composite",
268
+ className: "MoveResourceErrorBody"
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ }
275
+ };
276
+ const SystemData = {
277
+ type: {
278
+ name: "Composite",
279
+ className: "SystemData",
280
+ modelProperties: {
281
+ createdBy: {
282
+ serializedName: "createdBy",
283
+ type: {
284
+ name: "String"
285
+ }
286
+ },
287
+ createdByType: {
288
+ serializedName: "createdByType",
289
+ type: {
290
+ name: "String"
291
+ }
292
+ },
293
+ createdAt: {
294
+ serializedName: "createdAt",
295
+ type: {
296
+ name: "DateTime"
297
+ }
298
+ },
299
+ lastModifiedBy: {
300
+ serializedName: "lastModifiedBy",
301
+ type: {
302
+ name: "String"
303
+ }
304
+ },
305
+ lastModifiedByType: {
306
+ serializedName: "lastModifiedByType",
307
+ type: {
308
+ name: "String"
309
+ }
310
+ },
311
+ lastModifiedAt: {
312
+ serializedName: "lastModifiedAt",
313
+ type: {
314
+ name: "DateTime"
315
+ }
316
+ }
317
+ }
318
+ }
319
+ };
320
+ const CloudError = {
321
+ type: {
322
+ name: "Composite",
323
+ className: "CloudError",
324
+ modelProperties: {
325
+ error: {
326
+ serializedName: "error",
327
+ type: {
328
+ name: "Composite",
329
+ className: "CloudErrorBody"
330
+ }
331
+ }
332
+ }
333
+ }
334
+ };
335
+ const CloudErrorBody = {
336
+ type: {
337
+ name: "Composite",
338
+ className: "CloudErrorBody",
339
+ modelProperties: {
340
+ code: {
341
+ serializedName: "code",
342
+ type: {
343
+ name: "String"
344
+ }
345
+ },
346
+ message: {
347
+ serializedName: "message",
348
+ type: {
349
+ name: "String"
350
+ }
351
+ },
352
+ target: {
353
+ serializedName: "target",
354
+ type: {
355
+ name: "String"
356
+ }
357
+ },
358
+ details: {
359
+ serializedName: "details",
360
+ type: {
361
+ name: "Sequence",
362
+ element: {
363
+ type: {
364
+ name: "Composite",
365
+ className: "CloudErrorBody"
366
+ }
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ };
373
+ const UpdateMoveCollectionRequest = {
374
+ type: {
375
+ name: "Composite",
376
+ className: "UpdateMoveCollectionRequest",
377
+ modelProperties: {
378
+ tags: {
379
+ serializedName: "tags",
380
+ type: {
381
+ name: "Dictionary",
382
+ value: { type: { name: "String" } }
383
+ }
384
+ },
385
+ identity: {
386
+ serializedName: "identity",
387
+ type: {
388
+ name: "Composite",
389
+ className: "Identity"
390
+ }
391
+ }
392
+ }
393
+ }
394
+ };
395
+ const OperationStatus = {
396
+ type: {
397
+ name: "Composite",
398
+ className: "OperationStatus",
399
+ modelProperties: {
400
+ id: {
401
+ serializedName: "id",
402
+ readOnly: true,
403
+ type: {
404
+ name: "String"
405
+ }
406
+ },
407
+ name: {
408
+ serializedName: "name",
409
+ readOnly: true,
410
+ type: {
411
+ name: "String"
412
+ }
413
+ },
414
+ status: {
415
+ serializedName: "status",
416
+ readOnly: true,
417
+ type: {
418
+ name: "String"
419
+ }
420
+ },
421
+ startTime: {
422
+ serializedName: "startTime",
423
+ readOnly: true,
424
+ type: {
425
+ name: "String"
426
+ }
427
+ },
428
+ endTime: {
429
+ serializedName: "endTime",
430
+ readOnly: true,
431
+ type: {
432
+ name: "String"
433
+ }
434
+ },
435
+ error: {
436
+ serializedName: "error",
437
+ type: {
438
+ name: "Composite",
439
+ className: "OperationStatusError"
440
+ }
441
+ },
442
+ properties: {
443
+ serializedName: "properties",
444
+ readOnly: true,
445
+ type: {
446
+ name: "Dictionary",
447
+ value: { type: { name: "any" } }
448
+ }
449
+ }
450
+ }
451
+ }
452
+ };
453
+ const OperationStatusError = {
454
+ type: {
455
+ name: "Composite",
456
+ className: "OperationStatusError",
457
+ modelProperties: {
458
+ code: {
459
+ serializedName: "code",
460
+ readOnly: true,
461
+ type: {
462
+ name: "String"
463
+ }
464
+ },
465
+ message: {
466
+ serializedName: "message",
467
+ readOnly: true,
468
+ type: {
469
+ name: "String"
470
+ }
471
+ },
472
+ details: {
473
+ serializedName: "details",
474
+ readOnly: true,
475
+ type: {
476
+ name: "Sequence",
477
+ element: {
478
+ type: {
479
+ name: "Composite",
480
+ className: "OperationStatusError"
481
+ }
482
+ }
483
+ }
484
+ },
485
+ additionalInfo: {
486
+ serializedName: "additionalInfo",
487
+ readOnly: true,
488
+ type: {
489
+ name: "Sequence",
490
+ element: {
491
+ type: {
492
+ name: "Composite",
493
+ className: "OperationErrorAdditionalInfo"
494
+ }
495
+ }
496
+ }
497
+ }
498
+ }
499
+ }
500
+ };
501
+ const OperationErrorAdditionalInfo = {
502
+ type: {
503
+ name: "Composite",
504
+ className: "OperationErrorAdditionalInfo",
505
+ modelProperties: {
506
+ type: {
507
+ serializedName: "type",
508
+ readOnly: true,
509
+ type: {
510
+ name: "String"
511
+ }
512
+ },
513
+ info: {
514
+ serializedName: "info",
515
+ type: {
516
+ name: "Composite",
517
+ className: "MoveErrorInfo"
518
+ }
519
+ }
520
+ }
521
+ }
522
+ };
523
+ const MoveErrorInfo = {
524
+ type: {
525
+ name: "Composite",
526
+ className: "MoveErrorInfo",
527
+ modelProperties: {
528
+ moveResources: {
529
+ serializedName: "moveResources",
530
+ readOnly: true,
531
+ type: {
532
+ name: "Sequence",
533
+ element: {
534
+ type: {
535
+ name: "Composite",
536
+ className: "AffectedMoveResource"
537
+ }
538
+ }
539
+ }
540
+ }
541
+ }
542
+ }
543
+ };
544
+ const AffectedMoveResource = {
545
+ type: {
546
+ name: "Composite",
547
+ className: "AffectedMoveResource",
548
+ modelProperties: {
549
+ id: {
550
+ serializedName: "id",
551
+ readOnly: true,
552
+ type: {
553
+ name: "String"
554
+ }
555
+ },
556
+ sourceId: {
557
+ serializedName: "sourceId",
558
+ readOnly: true,
559
+ type: {
560
+ name: "String"
561
+ }
562
+ },
563
+ moveResources: {
564
+ serializedName: "moveResources",
565
+ readOnly: true,
566
+ type: {
567
+ name: "Sequence",
568
+ element: {
569
+ type: {
570
+ name: "Composite",
571
+ className: "AffectedMoveResource"
572
+ }
573
+ }
574
+ }
575
+ }
576
+ }
577
+ }
578
+ };
579
+ const PrepareRequest = {
580
+ type: {
581
+ name: "Composite",
582
+ className: "PrepareRequest",
583
+ modelProperties: {
584
+ validateOnly: {
585
+ serializedName: "validateOnly",
586
+ type: {
587
+ name: "Boolean"
588
+ }
589
+ },
590
+ moveResources: {
591
+ serializedName: "moveResources",
592
+ required: true,
593
+ type: {
594
+ name: "Sequence",
595
+ element: {
596
+ type: {
597
+ name: "String"
598
+ }
599
+ }
600
+ }
601
+ },
602
+ moveResourceInputType: {
603
+ serializedName: "moveResourceInputType",
604
+ type: {
605
+ name: "String"
606
+ }
607
+ }
608
+ }
609
+ }
610
+ };
611
+ const ResourceMoveRequest = {
612
+ type: {
613
+ name: "Composite",
614
+ className: "ResourceMoveRequest",
615
+ modelProperties: {
616
+ validateOnly: {
617
+ serializedName: "validateOnly",
618
+ type: {
619
+ name: "Boolean"
620
+ }
621
+ },
622
+ moveResources: {
623
+ serializedName: "moveResources",
624
+ required: true,
625
+ type: {
626
+ name: "Sequence",
627
+ element: {
628
+ type: {
629
+ name: "String"
630
+ }
631
+ }
632
+ }
633
+ },
634
+ moveResourceInputType: {
635
+ serializedName: "moveResourceInputType",
636
+ type: {
637
+ name: "String"
638
+ }
639
+ }
640
+ }
641
+ }
642
+ };
643
+ const CommitRequest = {
644
+ type: {
645
+ name: "Composite",
646
+ className: "CommitRequest",
647
+ modelProperties: {
648
+ validateOnly: {
649
+ serializedName: "validateOnly",
650
+ type: {
651
+ name: "Boolean"
652
+ }
653
+ },
654
+ moveResources: {
655
+ serializedName: "moveResources",
656
+ required: true,
657
+ type: {
658
+ name: "Sequence",
659
+ element: {
660
+ type: {
661
+ name: "String"
662
+ }
663
+ }
664
+ }
665
+ },
666
+ moveResourceInputType: {
667
+ serializedName: "moveResourceInputType",
668
+ type: {
669
+ name: "String"
670
+ }
671
+ }
672
+ }
673
+ }
674
+ };
675
+ const DiscardRequest = {
676
+ type: {
677
+ name: "Composite",
678
+ className: "DiscardRequest",
679
+ modelProperties: {
680
+ validateOnly: {
681
+ serializedName: "validateOnly",
682
+ type: {
683
+ name: "Boolean"
684
+ }
685
+ },
686
+ moveResources: {
687
+ serializedName: "moveResources",
688
+ required: true,
689
+ type: {
690
+ name: "Sequence",
691
+ element: {
692
+ type: {
693
+ name: "String"
694
+ }
695
+ }
696
+ }
697
+ },
698
+ moveResourceInputType: {
699
+ serializedName: "moveResourceInputType",
700
+ type: {
701
+ name: "String"
702
+ }
703
+ }
704
+ }
705
+ }
706
+ };
707
+ const MoveResourceCollection = {
708
+ type: {
709
+ name: "Composite",
710
+ className: "MoveResourceCollection",
711
+ modelProperties: {
712
+ value: {
713
+ serializedName: "value",
714
+ type: {
715
+ name: "Sequence",
716
+ element: {
717
+ type: {
718
+ name: "Composite",
719
+ className: "MoveResource"
720
+ }
721
+ }
722
+ }
723
+ },
724
+ nextLink: {
725
+ serializedName: "nextLink",
726
+ type: {
727
+ name: "String"
728
+ }
729
+ },
730
+ summaryCollection: {
731
+ serializedName: "summaryCollection",
732
+ type: {
733
+ name: "Composite",
734
+ className: "SummaryCollection"
735
+ }
736
+ },
737
+ totalCount: {
738
+ serializedName: "totalCount",
739
+ readOnly: true,
740
+ type: {
741
+ name: "Number"
742
+ }
743
+ }
744
+ }
745
+ }
746
+ };
747
+ const MoveResource = {
748
+ type: {
749
+ name: "Composite",
750
+ className: "MoveResource",
751
+ modelProperties: {
752
+ id: {
753
+ serializedName: "id",
754
+ readOnly: true,
755
+ type: {
756
+ name: "String"
757
+ }
758
+ },
759
+ name: {
760
+ serializedName: "name",
761
+ readOnly: true,
762
+ type: {
763
+ name: "String"
764
+ }
765
+ },
766
+ type: {
767
+ serializedName: "type",
768
+ readOnly: true,
769
+ type: {
770
+ name: "String"
771
+ }
772
+ },
773
+ properties: {
774
+ serializedName: "properties",
775
+ type: {
776
+ name: "Composite",
777
+ className: "MoveResourceProperties"
778
+ }
779
+ },
780
+ systemData: {
781
+ serializedName: "systemData",
782
+ type: {
783
+ name: "Composite",
784
+ className: "SystemData"
785
+ }
786
+ }
787
+ }
788
+ }
789
+ };
790
+ const MoveResourceProperties = {
791
+ type: {
792
+ name: "Composite",
793
+ className: "MoveResourceProperties",
794
+ modelProperties: {
795
+ provisioningState: {
796
+ serializedName: "provisioningState",
797
+ readOnly: true,
798
+ type: {
799
+ name: "String"
800
+ }
801
+ },
802
+ sourceId: {
803
+ serializedName: "sourceId",
804
+ required: true,
805
+ type: {
806
+ name: "String"
807
+ }
808
+ },
809
+ targetId: {
810
+ serializedName: "targetId",
811
+ readOnly: true,
812
+ type: {
813
+ name: "String"
814
+ }
815
+ },
816
+ existingTargetId: {
817
+ serializedName: "existingTargetId",
818
+ type: {
819
+ name: "String"
820
+ }
821
+ },
822
+ resourceSettings: {
823
+ serializedName: "resourceSettings",
824
+ type: {
825
+ name: "Composite",
826
+ className: "ResourceSettings"
827
+ }
828
+ },
829
+ sourceResourceSettings: {
830
+ serializedName: "sourceResourceSettings",
831
+ type: {
832
+ name: "Composite",
833
+ className: "ResourceSettings"
834
+ }
835
+ },
836
+ moveStatus: {
837
+ serializedName: "moveStatus",
838
+ type: {
839
+ name: "Composite",
840
+ className: "MoveResourcePropertiesMoveStatus"
841
+ }
842
+ },
843
+ dependsOn: {
844
+ serializedName: "dependsOn",
845
+ readOnly: true,
846
+ type: {
847
+ name: "Sequence",
848
+ element: {
849
+ type: {
850
+ name: "Composite",
851
+ className: "MoveResourceDependency"
852
+ }
853
+ }
854
+ }
855
+ },
856
+ dependsOnOverrides: {
857
+ serializedName: "dependsOnOverrides",
858
+ type: {
859
+ name: "Sequence",
860
+ element: {
861
+ type: {
862
+ name: "Composite",
863
+ className: "MoveResourceDependencyOverride"
864
+ }
865
+ }
866
+ }
867
+ },
868
+ isResolveRequired: {
869
+ serializedName: "isResolveRequired",
870
+ readOnly: true,
871
+ type: {
872
+ name: "Boolean"
873
+ }
874
+ },
875
+ errors: {
876
+ serializedName: "errors",
877
+ type: {
878
+ name: "Composite",
879
+ className: "MoveResourcePropertiesErrors"
880
+ }
881
+ }
882
+ }
883
+ }
884
+ };
885
+ const ResourceSettings = {
886
+ type: {
887
+ name: "Composite",
888
+ className: "ResourceSettings",
889
+ uberParent: "ResourceSettings",
890
+ polymorphicDiscriminator: {
891
+ serializedName: "resourceType",
892
+ clientName: "resourceType"
893
+ },
894
+ modelProperties: {
895
+ resourceType: {
896
+ serializedName: "resourceType",
897
+ required: true,
898
+ type: {
899
+ name: "String"
900
+ }
901
+ },
902
+ targetResourceName: {
903
+ serializedName: "targetResourceName",
904
+ required: true,
905
+ type: {
906
+ name: "String"
907
+ }
908
+ }
909
+ }
910
+ }
911
+ };
912
+ const MoveResourceStatus = {
913
+ type: {
914
+ name: "Composite",
915
+ className: "MoveResourceStatus",
916
+ modelProperties: {
917
+ moveState: {
918
+ serializedName: "moveState",
919
+ readOnly: true,
920
+ type: {
921
+ name: "String"
922
+ }
923
+ },
924
+ jobStatus: {
925
+ serializedName: "jobStatus",
926
+ type: {
927
+ name: "Composite",
928
+ className: "JobStatus"
929
+ }
930
+ },
931
+ errors: {
932
+ serializedName: "errors",
933
+ type: {
934
+ name: "Composite",
935
+ className: "MoveResourceError"
936
+ }
937
+ }
938
+ }
939
+ }
940
+ };
941
+ const JobStatus = {
942
+ type: {
943
+ name: "Composite",
944
+ className: "JobStatus",
945
+ modelProperties: {
946
+ jobName: {
947
+ serializedName: "jobName",
948
+ readOnly: true,
949
+ type: {
950
+ name: "String"
951
+ }
952
+ },
953
+ jobProgress: {
954
+ serializedName: "jobProgress",
955
+ readOnly: true,
956
+ type: {
957
+ name: "String"
958
+ }
959
+ }
960
+ }
961
+ }
962
+ };
963
+ const MoveResourceDependency = {
964
+ type: {
965
+ name: "Composite",
966
+ className: "MoveResourceDependency",
967
+ modelProperties: {
968
+ id: {
969
+ serializedName: "id",
970
+ type: {
971
+ name: "String"
972
+ }
973
+ },
974
+ resolutionStatus: {
975
+ serializedName: "resolutionStatus",
976
+ type: {
977
+ name: "String"
978
+ }
979
+ },
980
+ resolutionType: {
981
+ serializedName: "resolutionType",
982
+ type: {
983
+ name: "String"
984
+ }
985
+ },
986
+ dependencyType: {
987
+ serializedName: "dependencyType",
988
+ type: {
989
+ name: "String"
990
+ }
991
+ },
992
+ manualResolution: {
993
+ serializedName: "manualResolution",
994
+ type: {
995
+ name: "Composite",
996
+ className: "ManualResolutionProperties"
997
+ }
998
+ },
999
+ automaticResolution: {
1000
+ serializedName: "automaticResolution",
1001
+ type: {
1002
+ name: "Composite",
1003
+ className: "AutomaticResolutionProperties"
1004
+ }
1005
+ },
1006
+ isOptional: {
1007
+ serializedName: "isOptional",
1008
+ type: {
1009
+ name: "String"
1010
+ }
1011
+ }
1012
+ }
1013
+ }
1014
+ };
1015
+ const ManualResolutionProperties = {
1016
+ type: {
1017
+ name: "Composite",
1018
+ className: "ManualResolutionProperties",
1019
+ modelProperties: {
1020
+ targetId: {
1021
+ serializedName: "targetId",
1022
+ type: {
1023
+ name: "String"
1024
+ }
1025
+ }
1026
+ }
1027
+ }
1028
+ };
1029
+ const AutomaticResolutionProperties = {
1030
+ type: {
1031
+ name: "Composite",
1032
+ className: "AutomaticResolutionProperties",
1033
+ modelProperties: {
1034
+ moveResourceId: {
1035
+ serializedName: "moveResourceId",
1036
+ type: {
1037
+ name: "String"
1038
+ }
1039
+ }
1040
+ }
1041
+ }
1042
+ };
1043
+ const MoveResourceDependencyOverride = {
1044
+ type: {
1045
+ name: "Composite",
1046
+ className: "MoveResourceDependencyOverride",
1047
+ modelProperties: {
1048
+ id: {
1049
+ serializedName: "id",
1050
+ type: {
1051
+ name: "String"
1052
+ }
1053
+ },
1054
+ targetId: {
1055
+ serializedName: "targetId",
1056
+ type: {
1057
+ name: "String"
1058
+ }
1059
+ }
1060
+ }
1061
+ }
1062
+ };
1063
+ const SummaryCollection = {
1064
+ type: {
1065
+ name: "Composite",
1066
+ className: "SummaryCollection",
1067
+ modelProperties: {
1068
+ fieldName: {
1069
+ serializedName: "fieldName",
1070
+ type: {
1071
+ name: "String"
1072
+ }
1073
+ },
1074
+ summary: {
1075
+ serializedName: "summary",
1076
+ type: {
1077
+ name: "Sequence",
1078
+ element: {
1079
+ type: {
1080
+ name: "Composite",
1081
+ className: "Summary"
1082
+ }
1083
+ }
1084
+ }
1085
+ }
1086
+ }
1087
+ }
1088
+ };
1089
+ const Summary = {
1090
+ type: {
1091
+ name: "Composite",
1092
+ className: "Summary",
1093
+ modelProperties: {
1094
+ count: {
1095
+ serializedName: "count",
1096
+ type: {
1097
+ name: "Number"
1098
+ }
1099
+ },
1100
+ item: {
1101
+ serializedName: "item",
1102
+ type: {
1103
+ name: "String"
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ };
1109
+ const UnresolvedDependencyCollection = {
1110
+ type: {
1111
+ name: "Composite",
1112
+ className: "UnresolvedDependencyCollection",
1113
+ modelProperties: {
1114
+ value: {
1115
+ serializedName: "value",
1116
+ type: {
1117
+ name: "Sequence",
1118
+ element: {
1119
+ type: {
1120
+ name: "Composite",
1121
+ className: "UnresolvedDependency"
1122
+ }
1123
+ }
1124
+ }
1125
+ },
1126
+ nextLink: {
1127
+ serializedName: "nextLink",
1128
+ type: {
1129
+ name: "String"
1130
+ }
1131
+ },
1132
+ summaryCollection: {
1133
+ serializedName: "summaryCollection",
1134
+ type: {
1135
+ name: "Composite",
1136
+ className: "SummaryCollection"
1137
+ }
1138
+ },
1139
+ totalCount: {
1140
+ serializedName: "totalCount",
1141
+ readOnly: true,
1142
+ type: {
1143
+ name: "Number"
1144
+ }
1145
+ }
1146
+ }
1147
+ }
1148
+ };
1149
+ const UnresolvedDependency = {
1150
+ type: {
1151
+ name: "Composite",
1152
+ className: "UnresolvedDependency",
1153
+ modelProperties: {
1154
+ count: {
1155
+ serializedName: "count",
1156
+ type: {
1157
+ name: "Number"
1158
+ }
1159
+ },
1160
+ id: {
1161
+ serializedName: "id",
1162
+ type: {
1163
+ name: "String"
1164
+ }
1165
+ }
1166
+ }
1167
+ }
1168
+ };
1169
+ const BulkRemoveRequest = {
1170
+ type: {
1171
+ name: "Composite",
1172
+ className: "BulkRemoveRequest",
1173
+ modelProperties: {
1174
+ validateOnly: {
1175
+ serializedName: "validateOnly",
1176
+ type: {
1177
+ name: "Boolean"
1178
+ }
1179
+ },
1180
+ moveResources: {
1181
+ serializedName: "moveResources",
1182
+ type: {
1183
+ name: "Sequence",
1184
+ element: {
1185
+ type: {
1186
+ name: "String"
1187
+ }
1188
+ }
1189
+ }
1190
+ },
1191
+ moveResourceInputType: {
1192
+ serializedName: "moveResourceInputType",
1193
+ type: {
1194
+ name: "String"
1195
+ }
1196
+ }
1197
+ }
1198
+ }
1199
+ };
1200
+ const OperationsDiscoveryCollection = {
1201
+ type: {
1202
+ name: "Composite",
1203
+ className: "OperationsDiscoveryCollection",
1204
+ modelProperties: {
1205
+ value: {
1206
+ serializedName: "value",
1207
+ type: {
1208
+ name: "Sequence",
1209
+ element: {
1210
+ type: {
1211
+ name: "Composite",
1212
+ className: "OperationsDiscovery"
1213
+ }
1214
+ }
1215
+ }
1216
+ },
1217
+ nextLink: {
1218
+ serializedName: "nextLink",
1219
+ type: {
1220
+ name: "String"
1221
+ }
1222
+ }
1223
+ }
1224
+ }
1225
+ };
1226
+ const OperationsDiscovery = {
1227
+ type: {
1228
+ name: "Composite",
1229
+ className: "OperationsDiscovery",
1230
+ modelProperties: {
1231
+ name: {
1232
+ serializedName: "name",
1233
+ type: {
1234
+ name: "String"
1235
+ }
1236
+ },
1237
+ isDataAction: {
1238
+ serializedName: "isDataAction",
1239
+ type: {
1240
+ name: "Boolean"
1241
+ }
1242
+ },
1243
+ display: {
1244
+ serializedName: "display",
1245
+ type: {
1246
+ name: "Composite",
1247
+ className: "Display"
1248
+ }
1249
+ },
1250
+ origin: {
1251
+ serializedName: "origin",
1252
+ type: {
1253
+ name: "String"
1254
+ }
1255
+ },
1256
+ properties: {
1257
+ serializedName: "properties",
1258
+ type: {
1259
+ name: "Dictionary",
1260
+ value: { type: { name: "any" } }
1261
+ }
1262
+ }
1263
+ }
1264
+ }
1265
+ };
1266
+ const Display = {
1267
+ type: {
1268
+ name: "Composite",
1269
+ className: "Display",
1270
+ modelProperties: {
1271
+ provider: {
1272
+ serializedName: "provider",
1273
+ type: {
1274
+ name: "String"
1275
+ }
1276
+ },
1277
+ resource: {
1278
+ serializedName: "resource",
1279
+ type: {
1280
+ name: "String"
1281
+ }
1282
+ },
1283
+ operation: {
1284
+ serializedName: "operation",
1285
+ type: {
1286
+ name: "String"
1287
+ }
1288
+ },
1289
+ description: {
1290
+ serializedName: "description",
1291
+ type: {
1292
+ name: "String"
1293
+ }
1294
+ }
1295
+ }
1296
+ }
1297
+ };
1298
+ const MoveCollectionResultList = {
1299
+ type: {
1300
+ name: "Composite",
1301
+ className: "MoveCollectionResultList",
1302
+ modelProperties: {
1303
+ value: {
1304
+ serializedName: "value",
1305
+ type: {
1306
+ name: "Sequence",
1307
+ element: {
1308
+ type: {
1309
+ name: "Composite",
1310
+ className: "MoveCollection"
1311
+ }
1312
+ }
1313
+ }
1314
+ },
1315
+ nextLink: {
1316
+ serializedName: "nextLink",
1317
+ type: {
1318
+ name: "String"
1319
+ }
1320
+ }
1321
+ }
1322
+ }
1323
+ };
1324
+ const RequiredForResourcesCollection = {
1325
+ type: {
1326
+ name: "Composite",
1327
+ className: "RequiredForResourcesCollection",
1328
+ modelProperties: {
1329
+ sourceIds: {
1330
+ serializedName: "sourceIds",
1331
+ type: {
1332
+ name: "Sequence",
1333
+ element: {
1334
+ type: {
1335
+ name: "String"
1336
+ }
1337
+ }
1338
+ }
1339
+ }
1340
+ }
1341
+ }
1342
+ };
1343
+ const MoveResourceFilter = {
1344
+ type: {
1345
+ name: "Composite",
1346
+ className: "MoveResourceFilter",
1347
+ modelProperties: {
1348
+ properties: {
1349
+ serializedName: "properties",
1350
+ type: {
1351
+ name: "Composite",
1352
+ className: "MoveResourceFilterProperties"
1353
+ }
1354
+ }
1355
+ }
1356
+ }
1357
+ };
1358
+ const MoveResourceFilterProperties = {
1359
+ type: {
1360
+ name: "Composite",
1361
+ className: "MoveResourceFilterProperties",
1362
+ modelProperties: {
1363
+ provisioningState: {
1364
+ serializedName: "provisioningState",
1365
+ type: {
1366
+ name: "String"
1367
+ }
1368
+ }
1369
+ }
1370
+ }
1371
+ };
1372
+ const UnresolvedDependenciesFilter = {
1373
+ type: {
1374
+ name: "Composite",
1375
+ className: "UnresolvedDependenciesFilter",
1376
+ modelProperties: {
1377
+ properties: {
1378
+ serializedName: "properties",
1379
+ type: {
1380
+ name: "Composite",
1381
+ className: "UnresolvedDependenciesFilterProperties"
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+ };
1387
+ const UnresolvedDependenciesFilterProperties = {
1388
+ type: {
1389
+ name: "Composite",
1390
+ className: "UnresolvedDependenciesFilterProperties",
1391
+ modelProperties: {
1392
+ count: {
1393
+ serializedName: "count",
1394
+ type: {
1395
+ name: "Number"
1396
+ }
1397
+ }
1398
+ }
1399
+ }
1400
+ };
1401
+ const SubnetResourceSettings = {
1402
+ type: {
1403
+ name: "Composite",
1404
+ className: "SubnetResourceSettings",
1405
+ modelProperties: {
1406
+ name: {
1407
+ serializedName: "name",
1408
+ type: {
1409
+ name: "String"
1410
+ }
1411
+ },
1412
+ addressPrefix: {
1413
+ serializedName: "addressPrefix",
1414
+ type: {
1415
+ name: "String"
1416
+ }
1417
+ },
1418
+ networkSecurityGroup: {
1419
+ serializedName: "networkSecurityGroup",
1420
+ type: {
1421
+ name: "Composite",
1422
+ className: "NsgReference"
1423
+ }
1424
+ }
1425
+ }
1426
+ }
1427
+ };
1428
+ const AzureResourceReference = {
1429
+ type: {
1430
+ name: "Composite",
1431
+ className: "AzureResourceReference",
1432
+ modelProperties: {
1433
+ sourceArmResourceId: {
1434
+ serializedName: "sourceArmResourceId",
1435
+ required: true,
1436
+ type: {
1437
+ name: "String"
1438
+ }
1439
+ }
1440
+ }
1441
+ }
1442
+ };
1443
+ const NicIpConfigurationResourceSettings = {
1444
+ type: {
1445
+ name: "Composite",
1446
+ className: "NicIpConfigurationResourceSettings",
1447
+ modelProperties: {
1448
+ name: {
1449
+ serializedName: "name",
1450
+ type: {
1451
+ name: "String"
1452
+ }
1453
+ },
1454
+ privateIpAddress: {
1455
+ serializedName: "privateIpAddress",
1456
+ type: {
1457
+ name: "String"
1458
+ }
1459
+ },
1460
+ privateIpAllocationMethod: {
1461
+ serializedName: "privateIpAllocationMethod",
1462
+ type: {
1463
+ name: "String"
1464
+ }
1465
+ },
1466
+ subnet: {
1467
+ serializedName: "subnet",
1468
+ type: {
1469
+ name: "Composite",
1470
+ className: "SubnetReference"
1471
+ }
1472
+ },
1473
+ primary: {
1474
+ serializedName: "primary",
1475
+ type: {
1476
+ name: "Boolean"
1477
+ }
1478
+ },
1479
+ loadBalancerBackendAddressPools: {
1480
+ serializedName: "loadBalancerBackendAddressPools",
1481
+ type: {
1482
+ name: "Sequence",
1483
+ element: {
1484
+ type: {
1485
+ name: "Composite",
1486
+ className: "LoadBalancerBackendAddressPoolReference"
1487
+ }
1488
+ }
1489
+ }
1490
+ },
1491
+ loadBalancerNatRules: {
1492
+ serializedName: "loadBalancerNatRules",
1493
+ type: {
1494
+ name: "Sequence",
1495
+ element: {
1496
+ type: {
1497
+ name: "Composite",
1498
+ className: "LoadBalancerNatRuleReference"
1499
+ }
1500
+ }
1501
+ }
1502
+ },
1503
+ publicIp: {
1504
+ serializedName: "publicIp",
1505
+ type: {
1506
+ name: "Composite",
1507
+ className: "PublicIpReference"
1508
+ }
1509
+ }
1510
+ }
1511
+ }
1512
+ };
1513
+ const NsgSecurityRule = {
1514
+ type: {
1515
+ name: "Composite",
1516
+ className: "NsgSecurityRule",
1517
+ modelProperties: {
1518
+ name: {
1519
+ serializedName: "name",
1520
+ type: {
1521
+ name: "String"
1522
+ }
1523
+ },
1524
+ access: {
1525
+ serializedName: "access",
1526
+ type: {
1527
+ name: "String"
1528
+ }
1529
+ },
1530
+ description: {
1531
+ serializedName: "description",
1532
+ type: {
1533
+ name: "String"
1534
+ }
1535
+ },
1536
+ destinationAddressPrefix: {
1537
+ serializedName: "destinationAddressPrefix",
1538
+ type: {
1539
+ name: "String"
1540
+ }
1541
+ },
1542
+ destinationPortRange: {
1543
+ serializedName: "destinationPortRange",
1544
+ type: {
1545
+ name: "String"
1546
+ }
1547
+ },
1548
+ direction: {
1549
+ serializedName: "direction",
1550
+ type: {
1551
+ name: "String"
1552
+ }
1553
+ },
1554
+ priority: {
1555
+ serializedName: "priority",
1556
+ type: {
1557
+ name: "Number"
1558
+ }
1559
+ },
1560
+ protocol: {
1561
+ serializedName: "protocol",
1562
+ type: {
1563
+ name: "String"
1564
+ }
1565
+ },
1566
+ sourceAddressPrefix: {
1567
+ serializedName: "sourceAddressPrefix",
1568
+ type: {
1569
+ name: "String"
1570
+ }
1571
+ },
1572
+ sourcePortRange: {
1573
+ serializedName: "sourcePortRange",
1574
+ type: {
1575
+ name: "String"
1576
+ }
1577
+ }
1578
+ }
1579
+ }
1580
+ };
1581
+ const LBFrontendIPConfigurationResourceSettings = {
1582
+ type: {
1583
+ name: "Composite",
1584
+ className: "LBFrontendIPConfigurationResourceSettings",
1585
+ modelProperties: {
1586
+ name: {
1587
+ serializedName: "name",
1588
+ type: {
1589
+ name: "String"
1590
+ }
1591
+ },
1592
+ privateIpAddress: {
1593
+ serializedName: "privateIpAddress",
1594
+ type: {
1595
+ name: "String"
1596
+ }
1597
+ },
1598
+ privateIpAllocationMethod: {
1599
+ serializedName: "privateIpAllocationMethod",
1600
+ type: {
1601
+ name: "String"
1602
+ }
1603
+ },
1604
+ subnet: {
1605
+ serializedName: "subnet",
1606
+ type: {
1607
+ name: "Composite",
1608
+ className: "SubnetReference"
1609
+ }
1610
+ },
1611
+ zones: {
1612
+ serializedName: "zones",
1613
+ type: {
1614
+ name: "String"
1615
+ }
1616
+ }
1617
+ }
1618
+ }
1619
+ };
1620
+ const LBBackendAddressPoolResourceSettings = {
1621
+ type: {
1622
+ name: "Composite",
1623
+ className: "LBBackendAddressPoolResourceSettings",
1624
+ modelProperties: {
1625
+ name: {
1626
+ serializedName: "name",
1627
+ type: {
1628
+ name: "String"
1629
+ }
1630
+ }
1631
+ }
1632
+ }
1633
+ };
1634
+ const MoveCollectionPropertiesErrors = {
1635
+ type: {
1636
+ name: "Composite",
1637
+ className: "MoveCollectionPropertiesErrors",
1638
+ modelProperties: Object.assign({}, MoveResourceError.type.modelProperties)
1639
+ }
1640
+ };
1641
+ const MoveResourcePropertiesErrors = {
1642
+ type: {
1643
+ name: "Composite",
1644
+ className: "MoveResourcePropertiesErrors",
1645
+ modelProperties: Object.assign({}, MoveResourceError.type.modelProperties)
1646
+ }
1647
+ };
1648
+ const VirtualMachineResourceSettings = {
1649
+ serializedName: "Microsoft.Compute/virtualMachines",
1650
+ type: {
1651
+ name: "Composite",
1652
+ className: "VirtualMachineResourceSettings",
1653
+ uberParent: "ResourceSettings",
1654
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1655
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1656
+ serializedName: "tags",
1657
+ type: {
1658
+ name: "Dictionary",
1659
+ value: { type: { name: "String" } }
1660
+ }
1661
+ }, userManagedIdentities: {
1662
+ serializedName: "userManagedIdentities",
1663
+ type: {
1664
+ name: "Sequence",
1665
+ element: {
1666
+ type: {
1667
+ name: "String"
1668
+ }
1669
+ }
1670
+ }
1671
+ }, targetAvailabilityZone: {
1672
+ serializedName: "targetAvailabilityZone",
1673
+ type: {
1674
+ name: "String"
1675
+ }
1676
+ }, targetVmSize: {
1677
+ serializedName: "targetVmSize",
1678
+ type: {
1679
+ name: "String"
1680
+ }
1681
+ }, targetAvailabilitySetId: {
1682
+ serializedName: "targetAvailabilitySetId",
1683
+ type: {
1684
+ name: "String"
1685
+ }
1686
+ } })
1687
+ }
1688
+ };
1689
+ const AvailabilitySetResourceSettings = {
1690
+ serializedName: "Microsoft.Compute/availabilitySets",
1691
+ type: {
1692
+ name: "Composite",
1693
+ className: "AvailabilitySetResourceSettings",
1694
+ uberParent: "ResourceSettings",
1695
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1696
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1697
+ serializedName: "tags",
1698
+ type: {
1699
+ name: "Dictionary",
1700
+ value: { type: { name: "String" } }
1701
+ }
1702
+ }, faultDomain: {
1703
+ constraints: {
1704
+ InclusiveMinimum: 1
1705
+ },
1706
+ serializedName: "faultDomain",
1707
+ nullable: true,
1708
+ type: {
1709
+ name: "Number"
1710
+ }
1711
+ }, updateDomain: {
1712
+ constraints: {
1713
+ InclusiveMaximum: 20,
1714
+ InclusiveMinimum: 1
1715
+ },
1716
+ serializedName: "updateDomain",
1717
+ nullable: true,
1718
+ type: {
1719
+ name: "Number"
1720
+ }
1721
+ } })
1722
+ }
1723
+ };
1724
+ const VirtualNetworkResourceSettings = {
1725
+ serializedName: "Microsoft.Network/virtualNetworks",
1726
+ type: {
1727
+ name: "Composite",
1728
+ className: "VirtualNetworkResourceSettings",
1729
+ uberParent: "ResourceSettings",
1730
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1731
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1732
+ serializedName: "tags",
1733
+ type: {
1734
+ name: "Dictionary",
1735
+ value: { type: { name: "String" } }
1736
+ }
1737
+ }, enableDdosProtection: {
1738
+ serializedName: "enableDdosProtection",
1739
+ nullable: true,
1740
+ type: {
1741
+ name: "Boolean"
1742
+ }
1743
+ }, addressSpace: {
1744
+ serializedName: "addressSpace",
1745
+ type: {
1746
+ name: "Sequence",
1747
+ element: {
1748
+ type: {
1749
+ name: "String"
1750
+ }
1751
+ }
1752
+ }
1753
+ }, dnsServers: {
1754
+ serializedName: "dnsServers",
1755
+ type: {
1756
+ name: "Sequence",
1757
+ element: {
1758
+ type: {
1759
+ name: "String"
1760
+ }
1761
+ }
1762
+ }
1763
+ }, subnets: {
1764
+ serializedName: "subnets",
1765
+ type: {
1766
+ name: "Sequence",
1767
+ element: {
1768
+ type: {
1769
+ name: "Composite",
1770
+ className: "SubnetResourceSettings"
1771
+ }
1772
+ }
1773
+ }
1774
+ } })
1775
+ }
1776
+ };
1777
+ const NetworkInterfaceResourceSettings = {
1778
+ serializedName: "Microsoft.Network/networkInterfaces",
1779
+ type: {
1780
+ name: "Composite",
1781
+ className: "NetworkInterfaceResourceSettings",
1782
+ uberParent: "ResourceSettings",
1783
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1784
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1785
+ serializedName: "tags",
1786
+ type: {
1787
+ name: "Dictionary",
1788
+ value: { type: { name: "String" } }
1789
+ }
1790
+ }, ipConfigurations: {
1791
+ serializedName: "ipConfigurations",
1792
+ type: {
1793
+ name: "Sequence",
1794
+ element: {
1795
+ type: {
1796
+ name: "Composite",
1797
+ className: "NicIpConfigurationResourceSettings"
1798
+ }
1799
+ }
1800
+ }
1801
+ }, enableAcceleratedNetworking: {
1802
+ serializedName: "enableAcceleratedNetworking",
1803
+ nullable: true,
1804
+ type: {
1805
+ name: "Boolean"
1806
+ }
1807
+ } })
1808
+ }
1809
+ };
1810
+ const NetworkSecurityGroupResourceSettings = {
1811
+ serializedName: "Microsoft.Network/networkSecurityGroups",
1812
+ type: {
1813
+ name: "Composite",
1814
+ className: "NetworkSecurityGroupResourceSettings",
1815
+ uberParent: "ResourceSettings",
1816
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1817
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1818
+ serializedName: "tags",
1819
+ type: {
1820
+ name: "Dictionary",
1821
+ value: { type: { name: "String" } }
1822
+ }
1823
+ }, securityRules: {
1824
+ serializedName: "securityRules",
1825
+ type: {
1826
+ name: "Sequence",
1827
+ element: {
1828
+ type: {
1829
+ name: "Composite",
1830
+ className: "NsgSecurityRule"
1831
+ }
1832
+ }
1833
+ }
1834
+ } })
1835
+ }
1836
+ };
1837
+ const LoadBalancerResourceSettings = {
1838
+ serializedName: "Microsoft.Network/loadBalancers",
1839
+ type: {
1840
+ name: "Composite",
1841
+ className: "LoadBalancerResourceSettings",
1842
+ uberParent: "ResourceSettings",
1843
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1844
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1845
+ serializedName: "tags",
1846
+ type: {
1847
+ name: "Dictionary",
1848
+ value: { type: { name: "String" } }
1849
+ }
1850
+ }, sku: {
1851
+ serializedName: "sku",
1852
+ type: {
1853
+ name: "String"
1854
+ }
1855
+ }, frontendIPConfigurations: {
1856
+ serializedName: "frontendIPConfigurations",
1857
+ type: {
1858
+ name: "Sequence",
1859
+ element: {
1860
+ type: {
1861
+ name: "Composite",
1862
+ className: "LBFrontendIPConfigurationResourceSettings"
1863
+ }
1864
+ }
1865
+ }
1866
+ }, backendAddressPools: {
1867
+ serializedName: "backendAddressPools",
1868
+ type: {
1869
+ name: "Sequence",
1870
+ element: {
1871
+ type: {
1872
+ name: "Composite",
1873
+ className: "LBBackendAddressPoolResourceSettings"
1874
+ }
1875
+ }
1876
+ }
1877
+ }, zones: {
1878
+ serializedName: "zones",
1879
+ type: {
1880
+ name: "String"
1881
+ }
1882
+ } })
1883
+ }
1884
+ };
1885
+ const SqlServerResourceSettings = {
1886
+ serializedName: "Microsoft.Sql/servers",
1887
+ type: {
1888
+ name: "Composite",
1889
+ className: "SqlServerResourceSettings",
1890
+ uberParent: "ResourceSettings",
1891
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1892
+ modelProperties: Object.assign({}, ResourceSettings.type.modelProperties)
1893
+ }
1894
+ };
1895
+ const SqlElasticPoolResourceSettings = {
1896
+ serializedName: "Microsoft.Sql/servers/elasticPools",
1897
+ type: {
1898
+ name: "Composite",
1899
+ className: "SqlElasticPoolResourceSettings",
1900
+ uberParent: "ResourceSettings",
1901
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1902
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1903
+ serializedName: "tags",
1904
+ type: {
1905
+ name: "Dictionary",
1906
+ value: { type: { name: "String" } }
1907
+ }
1908
+ }, zoneRedundant: {
1909
+ serializedName: "zoneRedundant",
1910
+ type: {
1911
+ name: "String"
1912
+ }
1913
+ } })
1914
+ }
1915
+ };
1916
+ const SqlDatabaseResourceSettings = {
1917
+ serializedName: "Microsoft.Sql/servers/databases",
1918
+ type: {
1919
+ name: "Composite",
1920
+ className: "SqlDatabaseResourceSettings",
1921
+ uberParent: "ResourceSettings",
1922
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1923
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1924
+ serializedName: "tags",
1925
+ type: {
1926
+ name: "Dictionary",
1927
+ value: { type: { name: "String" } }
1928
+ }
1929
+ }, zoneRedundant: {
1930
+ serializedName: "zoneRedundant",
1931
+ type: {
1932
+ name: "String"
1933
+ }
1934
+ } })
1935
+ }
1936
+ };
1937
+ const ResourceGroupResourceSettings = {
1938
+ serializedName: "resourceGroups",
1939
+ type: {
1940
+ name: "Composite",
1941
+ className: "ResourceGroupResourceSettings",
1942
+ uberParent: "ResourceSettings",
1943
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1944
+ modelProperties: Object.assign({}, ResourceSettings.type.modelProperties)
1945
+ }
1946
+ };
1947
+ const PublicIPAddressResourceSettings = {
1948
+ serializedName: "Microsoft.Network/publicIPAddresses",
1949
+ type: {
1950
+ name: "Composite",
1951
+ className: "PublicIPAddressResourceSettings",
1952
+ uberParent: "ResourceSettings",
1953
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1954
+ modelProperties: Object.assign(Object.assign({}, ResourceSettings.type.modelProperties), { tags: {
1955
+ serializedName: "tags",
1956
+ type: {
1957
+ name: "Dictionary",
1958
+ value: { type: { name: "String" } }
1959
+ }
1960
+ }, domainNameLabel: {
1961
+ serializedName: "domainNameLabel",
1962
+ type: {
1963
+ name: "String"
1964
+ }
1965
+ }, fqdn: {
1966
+ serializedName: "fqdn",
1967
+ type: {
1968
+ name: "String"
1969
+ }
1970
+ }, publicIpAllocationMethod: {
1971
+ serializedName: "publicIpAllocationMethod",
1972
+ type: {
1973
+ name: "String"
1974
+ }
1975
+ }, sku: {
1976
+ serializedName: "sku",
1977
+ type: {
1978
+ name: "String"
1979
+ }
1980
+ }, zones: {
1981
+ serializedName: "zones",
1982
+ type: {
1983
+ name: "String"
1984
+ }
1985
+ } })
1986
+ }
1987
+ };
1988
+ const KeyVaultResourceSettings = {
1989
+ serializedName: "Microsoft.KeyVault/vaults",
1990
+ type: {
1991
+ name: "Composite",
1992
+ className: "KeyVaultResourceSettings",
1993
+ uberParent: "ResourceSettings",
1994
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
1995
+ modelProperties: Object.assign({}, ResourceSettings.type.modelProperties)
1996
+ }
1997
+ };
1998
+ const DiskEncryptionSetResourceSettings = {
1999
+ serializedName: "Microsoft.Compute/diskEncryptionSets",
2000
+ type: {
2001
+ name: "Composite",
2002
+ className: "DiskEncryptionSetResourceSettings",
2003
+ uberParent: "ResourceSettings",
2004
+ polymorphicDiscriminator: ResourceSettings.type.polymorphicDiscriminator,
2005
+ modelProperties: Object.assign({}, ResourceSettings.type.modelProperties)
2006
+ }
2007
+ };
2008
+ const MoveResourcePropertiesMoveStatus = {
2009
+ type: {
2010
+ name: "Composite",
2011
+ className: "MoveResourcePropertiesMoveStatus",
2012
+ modelProperties: Object.assign({}, MoveResourceStatus.type.modelProperties)
2013
+ }
2014
+ };
2015
+ const NsgReference = {
2016
+ type: {
2017
+ name: "Composite",
2018
+ className: "NsgReference",
2019
+ modelProperties: Object.assign({}, AzureResourceReference.type.modelProperties)
2020
+ }
2021
+ };
2022
+ const ProxyResourceReference = {
2023
+ type: {
2024
+ name: "Composite",
2025
+ className: "ProxyResourceReference",
2026
+ modelProperties: Object.assign(Object.assign({}, AzureResourceReference.type.modelProperties), { name: {
2027
+ serializedName: "name",
2028
+ type: {
2029
+ name: "String"
2030
+ }
2031
+ } })
2032
+ }
2033
+ };
2034
+ const PublicIpReference = {
2035
+ type: {
2036
+ name: "Composite",
2037
+ className: "PublicIpReference",
2038
+ modelProperties: Object.assign({}, AzureResourceReference.type.modelProperties)
2039
+ }
2040
+ };
2041
+ const SubnetReference = {
2042
+ type: {
2043
+ name: "Composite",
2044
+ className: "SubnetReference",
2045
+ modelProperties: Object.assign({}, ProxyResourceReference.type.modelProperties)
2046
+ }
2047
+ };
2048
+ const LoadBalancerBackendAddressPoolReference = {
2049
+ type: {
2050
+ name: "Composite",
2051
+ className: "LoadBalancerBackendAddressPoolReference",
2052
+ modelProperties: Object.assign({}, ProxyResourceReference.type.modelProperties)
2053
+ }
2054
+ };
2055
+ const LoadBalancerNatRuleReference = {
2056
+ type: {
2057
+ name: "Composite",
2058
+ className: "LoadBalancerNatRuleReference",
2059
+ modelProperties: Object.assign({}, ProxyResourceReference.type.modelProperties)
2060
+ }
2061
+ };
2062
+ let discriminators = {
2063
+ ResourceSettings: ResourceSettings,
2064
+ "ResourceSettings.Microsoft.Compute/virtualMachines": VirtualMachineResourceSettings,
2065
+ "ResourceSettings.Microsoft.Compute/availabilitySets": AvailabilitySetResourceSettings,
2066
+ "ResourceSettings.Microsoft.Network/virtualNetworks": VirtualNetworkResourceSettings,
2067
+ "ResourceSettings.Microsoft.Network/networkInterfaces": NetworkInterfaceResourceSettings,
2068
+ "ResourceSettings.Microsoft.Network/networkSecurityGroups": NetworkSecurityGroupResourceSettings,
2069
+ "ResourceSettings.Microsoft.Network/loadBalancers": LoadBalancerResourceSettings,
2070
+ "ResourceSettings.Microsoft.Sql/servers": SqlServerResourceSettings,
2071
+ "ResourceSettings.Microsoft.Sql/servers/elasticPools": SqlElasticPoolResourceSettings,
2072
+ "ResourceSettings.Microsoft.Sql/servers/databases": SqlDatabaseResourceSettings,
2073
+ "ResourceSettings.resourceGroups": ResourceGroupResourceSettings,
2074
+ "ResourceSettings.Microsoft.Network/publicIPAddresses": PublicIPAddressResourceSettings,
2075
+ "ResourceSettings.Microsoft.KeyVault/vaults": KeyVaultResourceSettings,
2076
+ "ResourceSettings.Microsoft.Compute/diskEncryptionSets": DiskEncryptionSetResourceSettings
2077
+ };
2078
+
2079
+ var Mappers = /*#__PURE__*/Object.freeze({
2080
+ __proto__: null,
2081
+ MoveCollection: MoveCollection,
2082
+ Identity: Identity,
2083
+ MoveCollectionProperties: MoveCollectionProperties,
2084
+ MoveResourceError: MoveResourceError,
2085
+ MoveResourceErrorBody: MoveResourceErrorBody,
2086
+ SystemData: SystemData,
2087
+ CloudError: CloudError,
2088
+ CloudErrorBody: CloudErrorBody,
2089
+ UpdateMoveCollectionRequest: UpdateMoveCollectionRequest,
2090
+ OperationStatus: OperationStatus,
2091
+ OperationStatusError: OperationStatusError,
2092
+ OperationErrorAdditionalInfo: OperationErrorAdditionalInfo,
2093
+ MoveErrorInfo: MoveErrorInfo,
2094
+ AffectedMoveResource: AffectedMoveResource,
2095
+ PrepareRequest: PrepareRequest,
2096
+ ResourceMoveRequest: ResourceMoveRequest,
2097
+ CommitRequest: CommitRequest,
2098
+ DiscardRequest: DiscardRequest,
2099
+ MoveResourceCollection: MoveResourceCollection,
2100
+ MoveResource: MoveResource,
2101
+ MoveResourceProperties: MoveResourceProperties,
2102
+ ResourceSettings: ResourceSettings,
2103
+ MoveResourceStatus: MoveResourceStatus,
2104
+ JobStatus: JobStatus,
2105
+ MoveResourceDependency: MoveResourceDependency,
2106
+ ManualResolutionProperties: ManualResolutionProperties,
2107
+ AutomaticResolutionProperties: AutomaticResolutionProperties,
2108
+ MoveResourceDependencyOverride: MoveResourceDependencyOverride,
2109
+ SummaryCollection: SummaryCollection,
2110
+ Summary: Summary,
2111
+ UnresolvedDependencyCollection: UnresolvedDependencyCollection,
2112
+ UnresolvedDependency: UnresolvedDependency,
2113
+ BulkRemoveRequest: BulkRemoveRequest,
2114
+ OperationsDiscoveryCollection: OperationsDiscoveryCollection,
2115
+ OperationsDiscovery: OperationsDiscovery,
2116
+ Display: Display,
2117
+ MoveCollectionResultList: MoveCollectionResultList,
2118
+ RequiredForResourcesCollection: RequiredForResourcesCollection,
2119
+ MoveResourceFilter: MoveResourceFilter,
2120
+ MoveResourceFilterProperties: MoveResourceFilterProperties,
2121
+ UnresolvedDependenciesFilter: UnresolvedDependenciesFilter,
2122
+ UnresolvedDependenciesFilterProperties: UnresolvedDependenciesFilterProperties,
2123
+ SubnetResourceSettings: SubnetResourceSettings,
2124
+ AzureResourceReference: AzureResourceReference,
2125
+ NicIpConfigurationResourceSettings: NicIpConfigurationResourceSettings,
2126
+ NsgSecurityRule: NsgSecurityRule,
2127
+ LBFrontendIPConfigurationResourceSettings: LBFrontendIPConfigurationResourceSettings,
2128
+ LBBackendAddressPoolResourceSettings: LBBackendAddressPoolResourceSettings,
2129
+ MoveCollectionPropertiesErrors: MoveCollectionPropertiesErrors,
2130
+ MoveResourcePropertiesErrors: MoveResourcePropertiesErrors,
2131
+ VirtualMachineResourceSettings: VirtualMachineResourceSettings,
2132
+ AvailabilitySetResourceSettings: AvailabilitySetResourceSettings,
2133
+ VirtualNetworkResourceSettings: VirtualNetworkResourceSettings,
2134
+ NetworkInterfaceResourceSettings: NetworkInterfaceResourceSettings,
2135
+ NetworkSecurityGroupResourceSettings: NetworkSecurityGroupResourceSettings,
2136
+ LoadBalancerResourceSettings: LoadBalancerResourceSettings,
2137
+ SqlServerResourceSettings: SqlServerResourceSettings,
2138
+ SqlElasticPoolResourceSettings: SqlElasticPoolResourceSettings,
2139
+ SqlDatabaseResourceSettings: SqlDatabaseResourceSettings,
2140
+ ResourceGroupResourceSettings: ResourceGroupResourceSettings,
2141
+ PublicIPAddressResourceSettings: PublicIPAddressResourceSettings,
2142
+ KeyVaultResourceSettings: KeyVaultResourceSettings,
2143
+ DiskEncryptionSetResourceSettings: DiskEncryptionSetResourceSettings,
2144
+ MoveResourcePropertiesMoveStatus: MoveResourcePropertiesMoveStatus,
2145
+ NsgReference: NsgReference,
2146
+ ProxyResourceReference: ProxyResourceReference,
2147
+ PublicIpReference: PublicIpReference,
2148
+ SubnetReference: SubnetReference,
2149
+ LoadBalancerBackendAddressPoolReference: LoadBalancerBackendAddressPoolReference,
2150
+ LoadBalancerNatRuleReference: LoadBalancerNatRuleReference,
2151
+ discriminators: discriminators
2152
+ });
2153
+
2154
+ /*
2155
+ * Copyright (c) Microsoft Corporation.
2156
+ * Licensed under the MIT License.
2157
+ *
2158
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2159
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2160
+ */
2161
+ const contentType = {
2162
+ parameterPath: ["options", "contentType"],
2163
+ mapper: {
2164
+ defaultValue: "application/json",
2165
+ isConstant: true,
2166
+ serializedName: "Content-Type",
2167
+ type: {
2168
+ name: "String"
2169
+ }
2170
+ }
2171
+ };
2172
+ const body = {
2173
+ parameterPath: ["options", "body"],
2174
+ mapper: MoveCollection
2175
+ };
2176
+ const accept = {
2177
+ parameterPath: "accept",
2178
+ mapper: {
2179
+ defaultValue: "application/json",
2180
+ isConstant: true,
2181
+ serializedName: "Accept",
2182
+ type: {
2183
+ name: "String"
2184
+ }
2185
+ }
2186
+ };
2187
+ const $host = {
2188
+ parameterPath: "$host",
2189
+ mapper: {
2190
+ serializedName: "$host",
2191
+ required: true,
2192
+ type: {
2193
+ name: "String"
2194
+ }
2195
+ },
2196
+ skipEncoding: true
2197
+ };
2198
+ const subscriptionId = {
2199
+ parameterPath: "subscriptionId",
2200
+ mapper: {
2201
+ serializedName: "subscriptionId",
2202
+ required: true,
2203
+ type: {
2204
+ name: "String"
2205
+ }
2206
+ }
2207
+ };
2208
+ const resourceGroupName = {
2209
+ parameterPath: "resourceGroupName",
2210
+ mapper: {
2211
+ serializedName: "resourceGroupName",
2212
+ required: true,
2213
+ type: {
2214
+ name: "String"
2215
+ }
2216
+ }
2217
+ };
2218
+ const moveCollectionName = {
2219
+ parameterPath: "moveCollectionName",
2220
+ mapper: {
2221
+ serializedName: "moveCollectionName",
2222
+ required: true,
2223
+ type: {
2224
+ name: "String"
2225
+ }
2226
+ }
2227
+ };
2228
+ const apiVersion = {
2229
+ parameterPath: "apiVersion",
2230
+ mapper: {
2231
+ defaultValue: "2021-08-01",
2232
+ isConstant: true,
2233
+ serializedName: "api-version",
2234
+ type: {
2235
+ name: "String"
2236
+ }
2237
+ }
2238
+ };
2239
+ const body1 = {
2240
+ parameterPath: ["options", "body"],
2241
+ mapper: UpdateMoveCollectionRequest
2242
+ };
2243
+ const body2 = {
2244
+ parameterPath: ["options", "body"],
2245
+ mapper: PrepareRequest
2246
+ };
2247
+ const body3 = {
2248
+ parameterPath: ["options", "body"],
2249
+ mapper: ResourceMoveRequest
2250
+ };
2251
+ const body4 = {
2252
+ parameterPath: ["options", "body"],
2253
+ mapper: CommitRequest
2254
+ };
2255
+ const body5 = {
2256
+ parameterPath: ["options", "body"],
2257
+ mapper: DiscardRequest
2258
+ };
2259
+ const body6 = {
2260
+ parameterPath: ["options", "body"],
2261
+ mapper: BulkRemoveRequest
2262
+ };
2263
+ const sourceId = {
2264
+ parameterPath: "sourceId",
2265
+ mapper: {
2266
+ serializedName: "sourceId",
2267
+ required: true,
2268
+ type: {
2269
+ name: "String"
2270
+ }
2271
+ }
2272
+ };
2273
+ const nextLink = {
2274
+ parameterPath: "nextLink",
2275
+ mapper: {
2276
+ serializedName: "nextLink",
2277
+ required: true,
2278
+ type: {
2279
+ name: "String"
2280
+ }
2281
+ },
2282
+ skipEncoding: true
2283
+ };
2284
+ const filter = {
2285
+ parameterPath: ["options", "filter"],
2286
+ mapper: {
2287
+ serializedName: "$filter",
2288
+ type: {
2289
+ name: "String"
2290
+ }
2291
+ }
2292
+ };
2293
+ const body7 = {
2294
+ parameterPath: ["options", "body"],
2295
+ mapper: MoveResource
2296
+ };
2297
+ const moveResourceName = {
2298
+ parameterPath: "moveResourceName",
2299
+ mapper: {
2300
+ serializedName: "moveResourceName",
2301
+ required: true,
2302
+ type: {
2303
+ name: "String"
2304
+ }
2305
+ }
2306
+ };
2307
+ const dependencyLevel = {
2308
+ parameterPath: ["options", "dependencyLevel"],
2309
+ mapper: {
2310
+ serializedName: "dependencyLevel",
2311
+ type: {
2312
+ name: "String"
2313
+ }
2314
+ }
2315
+ };
2316
+ const orderby = {
2317
+ parameterPath: ["options", "orderby"],
2318
+ mapper: {
2319
+ serializedName: "$orderby",
2320
+ type: {
2321
+ name: "String"
2322
+ }
2323
+ }
2324
+ };
2325
+
2326
+ /*
2327
+ * Copyright (c) Microsoft Corporation.
2328
+ * Licensed under the MIT License.
2329
+ *
2330
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2331
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2332
+ */
2333
+ class LroImpl {
2334
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
2335
+ this.sendOperationFn = sendOperationFn;
2336
+ this.args = args;
2337
+ this.spec = spec;
2338
+ this.requestPath = requestPath;
2339
+ this.requestMethod = requestMethod;
2340
+ }
2341
+ sendInitialRequest() {
2342
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2343
+ return this.sendOperationFn(this.args, this.spec);
2344
+ });
2345
+ }
2346
+ sendPollRequest(path) {
2347
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2348
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
2349
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
2350
+ });
2351
+ }
2352
+ }
2353
+
2354
+ /*
2355
+ * Copyright (c) Microsoft Corporation.
2356
+ * Licensed under the MIT License.
2357
+ *
2358
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2359
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2360
+ */
2361
+ /// <reference lib="esnext.asynciterable" />
2362
+ /** Class containing MoveCollections operations. */
2363
+ class MoveCollectionsImpl {
2364
+ /**
2365
+ * Initialize a new instance of the class MoveCollections class.
2366
+ * @param client Reference to the service client
2367
+ */
2368
+ constructor(client) {
2369
+ this.client = client;
2370
+ }
2371
+ /**
2372
+ * Get all the Move Collections in the subscription.
2373
+ * @param options The options parameters.
2374
+ */
2375
+ listMoveCollectionsBySubscription(options) {
2376
+ const iter = this.listMoveCollectionsBySubscriptionPagingAll(options);
2377
+ return {
2378
+ next() {
2379
+ return iter.next();
2380
+ },
2381
+ [Symbol.asyncIterator]() {
2382
+ return this;
2383
+ },
2384
+ byPage: () => {
2385
+ return this.listMoveCollectionsBySubscriptionPagingPage(options);
2386
+ }
2387
+ };
2388
+ }
2389
+ listMoveCollectionsBySubscriptionPagingPage(options) {
2390
+ return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingPage_1() {
2391
+ let result = yield tslib.__await(this._listMoveCollectionsBySubscription(options));
2392
+ yield yield tslib.__await(result.value || []);
2393
+ let continuationToken = result.nextLink;
2394
+ while (continuationToken) {
2395
+ result = yield tslib.__await(this._listMoveCollectionsBySubscriptionNext(continuationToken, options));
2396
+ continuationToken = result.nextLink;
2397
+ yield yield tslib.__await(result.value || []);
2398
+ }
2399
+ });
2400
+ }
2401
+ listMoveCollectionsBySubscriptionPagingAll(options) {
2402
+ return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingAll_1() {
2403
+ var e_1, _a;
2404
+ try {
2405
+ for (var _b = tslib.__asyncValues(this.listMoveCollectionsBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2406
+ const page = _c.value;
2407
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2408
+ }
2409
+ }
2410
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2411
+ finally {
2412
+ try {
2413
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2414
+ }
2415
+ finally { if (e_1) throw e_1.error; }
2416
+ }
2417
+ });
2418
+ }
2419
+ /**
2420
+ * Get all the Move Collections in the resource group.
2421
+ * @param resourceGroupName The Resource Group Name.
2422
+ * @param options The options parameters.
2423
+ */
2424
+ listMoveCollectionsByResourceGroup(resourceGroupName, options) {
2425
+ const iter = this.listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options);
2426
+ return {
2427
+ next() {
2428
+ return iter.next();
2429
+ },
2430
+ [Symbol.asyncIterator]() {
2431
+ return this;
2432
+ },
2433
+ byPage: () => {
2434
+ return this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options);
2435
+ }
2436
+ };
2437
+ }
2438
+ listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options) {
2439
+ return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingPage_1() {
2440
+ let result = yield tslib.__await(this._listMoveCollectionsByResourceGroup(resourceGroupName, options));
2441
+ yield yield tslib.__await(result.value || []);
2442
+ let continuationToken = result.nextLink;
2443
+ while (continuationToken) {
2444
+ result = yield tslib.__await(this._listMoveCollectionsByResourceGroupNext(resourceGroupName, continuationToken, options));
2445
+ continuationToken = result.nextLink;
2446
+ yield yield tslib.__await(result.value || []);
2447
+ }
2448
+ });
2449
+ }
2450
+ listMoveCollectionsByResourceGroupPagingAll(resourceGroupName, options) {
2451
+ return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingAll_1() {
2452
+ var e_2, _a;
2453
+ try {
2454
+ for (var _b = tslib.__asyncValues(this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2455
+ const page = _c.value;
2456
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2457
+ }
2458
+ }
2459
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2460
+ finally {
2461
+ try {
2462
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2463
+ }
2464
+ finally { if (e_2) throw e_2.error; }
2465
+ }
2466
+ });
2467
+ }
2468
+ /**
2469
+ * Creates or updates a move collection.
2470
+ * @param resourceGroupName The Resource Group Name.
2471
+ * @param moveCollectionName The Move Collection Name.
2472
+ * @param options The options parameters.
2473
+ */
2474
+ create(resourceGroupName, moveCollectionName, options) {
2475
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, createOperationSpec);
2476
+ }
2477
+ /**
2478
+ * Updates a move collection.
2479
+ * @param resourceGroupName The Resource Group Name.
2480
+ * @param moveCollectionName The Move Collection Name.
2481
+ * @param options The options parameters.
2482
+ */
2483
+ update(resourceGroupName, moveCollectionName, options) {
2484
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, updateOperationSpec);
2485
+ }
2486
+ /**
2487
+ * Deletes a move collection.
2488
+ * @param resourceGroupName The Resource Group Name.
2489
+ * @param moveCollectionName The Move Collection Name.
2490
+ * @param options The options parameters.
2491
+ */
2492
+ beginDelete(resourceGroupName, moveCollectionName, options) {
2493
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2494
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2495
+ return this.client.sendOperationRequest(args, spec);
2496
+ });
2497
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2498
+ var _a;
2499
+ let currentRawResponse = undefined;
2500
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2501
+ const callback = (rawResponse, flatResponse) => {
2502
+ currentRawResponse = rawResponse;
2503
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2504
+ };
2505
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2506
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2507
+ return {
2508
+ flatResponse,
2509
+ rawResponse: {
2510
+ statusCode: currentRawResponse.status,
2511
+ body: currentRawResponse.parsedBody,
2512
+ headers: currentRawResponse.headers.toJSON()
2513
+ }
2514
+ };
2515
+ });
2516
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, deleteOperationSpec);
2517
+ return new coreLro.LroEngine(lro, {
2518
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2519
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2520
+ lroResourceLocationConfig: "azure-async-operation"
2521
+ });
2522
+ });
2523
+ }
2524
+ /**
2525
+ * Deletes a move collection.
2526
+ * @param resourceGroupName The Resource Group Name.
2527
+ * @param moveCollectionName The Move Collection Name.
2528
+ * @param options The options parameters.
2529
+ */
2530
+ beginDeleteAndWait(resourceGroupName, moveCollectionName, options) {
2531
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2532
+ const poller = yield this.beginDelete(resourceGroupName, moveCollectionName, options);
2533
+ return poller.pollUntilDone();
2534
+ });
2535
+ }
2536
+ /**
2537
+ * Gets the move collection.
2538
+ * @param resourceGroupName The Resource Group Name.
2539
+ * @param moveCollectionName The Move Collection Name.
2540
+ * @param options The options parameters.
2541
+ */
2542
+ get(resourceGroupName, moveCollectionName, options) {
2543
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, getOperationSpec);
2544
+ }
2545
+ /**
2546
+ * Initiates prepare for the set of resources included in the request body. The prepare operation is on
2547
+ * the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
2548
+ * completion the moveResource moveState do a transition to MovePending. To aid the user to
2549
+ * prerequisite the operation the client can call operation with validateOnly property set to true.
2550
+ * @param resourceGroupName The Resource Group Name.
2551
+ * @param moveCollectionName The Move Collection Name.
2552
+ * @param options The options parameters.
2553
+ */
2554
+ beginPrepare(resourceGroupName, moveCollectionName, options) {
2555
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2556
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2557
+ return this.client.sendOperationRequest(args, spec);
2558
+ });
2559
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2560
+ var _a;
2561
+ let currentRawResponse = undefined;
2562
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2563
+ const callback = (rawResponse, flatResponse) => {
2564
+ currentRawResponse = rawResponse;
2565
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2566
+ };
2567
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2568
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2569
+ return {
2570
+ flatResponse,
2571
+ rawResponse: {
2572
+ statusCode: currentRawResponse.status,
2573
+ body: currentRawResponse.parsedBody,
2574
+ headers: currentRawResponse.headers.toJSON()
2575
+ }
2576
+ };
2577
+ });
2578
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, prepareOperationSpec);
2579
+ return new coreLro.LroEngine(lro, {
2580
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2581
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2582
+ lroResourceLocationConfig: "azure-async-operation"
2583
+ });
2584
+ });
2585
+ }
2586
+ /**
2587
+ * Initiates prepare for the set of resources included in the request body. The prepare operation is on
2588
+ * the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful
2589
+ * completion the moveResource moveState do a transition to MovePending. To aid the user to
2590
+ * prerequisite the operation the client can call operation with validateOnly property set to true.
2591
+ * @param resourceGroupName The Resource Group Name.
2592
+ * @param moveCollectionName The Move Collection Name.
2593
+ * @param options The options parameters.
2594
+ */
2595
+ beginPrepareAndWait(resourceGroupName, moveCollectionName, options) {
2596
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2597
+ const poller = yield this.beginPrepare(resourceGroupName, moveCollectionName, options);
2598
+ return poller.pollUntilDone();
2599
+ });
2600
+ }
2601
+ /**
2602
+ * Moves the set of resources included in the request body. The move operation is triggered after the
2603
+ * moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
2604
+ * moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
2605
+ * operation the client can call operation with validateOnly property set to true.
2606
+ * @param resourceGroupName The Resource Group Name.
2607
+ * @param moveCollectionName The Move Collection Name.
2608
+ * @param options The options parameters.
2609
+ */
2610
+ beginInitiateMove(resourceGroupName, moveCollectionName, options) {
2611
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2612
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2613
+ return this.client.sendOperationRequest(args, spec);
2614
+ });
2615
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2616
+ var _a;
2617
+ let currentRawResponse = undefined;
2618
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2619
+ const callback = (rawResponse, flatResponse) => {
2620
+ currentRawResponse = rawResponse;
2621
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2622
+ };
2623
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2624
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2625
+ return {
2626
+ flatResponse,
2627
+ rawResponse: {
2628
+ statusCode: currentRawResponse.status,
2629
+ body: currentRawResponse.parsedBody,
2630
+ headers: currentRawResponse.headers.toJSON()
2631
+ }
2632
+ };
2633
+ });
2634
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, initiateMoveOperationSpec);
2635
+ return new coreLro.LroEngine(lro, {
2636
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2637
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2638
+ lroResourceLocationConfig: "azure-async-operation"
2639
+ });
2640
+ });
2641
+ }
2642
+ /**
2643
+ * Moves the set of resources included in the request body. The move operation is triggered after the
2644
+ * moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the
2645
+ * moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the
2646
+ * operation the client can call operation with validateOnly property set to true.
2647
+ * @param resourceGroupName The Resource Group Name.
2648
+ * @param moveCollectionName The Move Collection Name.
2649
+ * @param options The options parameters.
2650
+ */
2651
+ beginInitiateMoveAndWait(resourceGroupName, moveCollectionName, options) {
2652
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2653
+ const poller = yield this.beginInitiateMove(resourceGroupName, moveCollectionName, options);
2654
+ return poller.pollUntilDone();
2655
+ });
2656
+ }
2657
+ /**
2658
+ * Commits the set of resources included in the request body. The commit operation is triggered on the
2659
+ * moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
2660
+ * moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
2661
+ * the client can call operation with validateOnly property set to true.
2662
+ * @param resourceGroupName The Resource Group Name.
2663
+ * @param moveCollectionName The Move Collection Name.
2664
+ * @param options The options parameters.
2665
+ */
2666
+ beginCommit(resourceGroupName, moveCollectionName, options) {
2667
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2668
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2669
+ return this.client.sendOperationRequest(args, spec);
2670
+ });
2671
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2672
+ var _a;
2673
+ let currentRawResponse = undefined;
2674
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2675
+ const callback = (rawResponse, flatResponse) => {
2676
+ currentRawResponse = rawResponse;
2677
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2678
+ };
2679
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2680
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2681
+ return {
2682
+ flatResponse,
2683
+ rawResponse: {
2684
+ statusCode: currentRawResponse.status,
2685
+ body: currentRawResponse.parsedBody,
2686
+ headers: currentRawResponse.headers.toJSON()
2687
+ }
2688
+ };
2689
+ });
2690
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, commitOperationSpec);
2691
+ return new coreLro.LroEngine(lro, {
2692
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2693
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2694
+ lroResourceLocationConfig: "azure-async-operation"
2695
+ });
2696
+ });
2697
+ }
2698
+ /**
2699
+ * Commits the set of resources included in the request body. The commit operation is triggered on the
2700
+ * moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the
2701
+ * moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation
2702
+ * the client can call operation with validateOnly property set to true.
2703
+ * @param resourceGroupName The Resource Group Name.
2704
+ * @param moveCollectionName The Move Collection Name.
2705
+ * @param options The options parameters.
2706
+ */
2707
+ beginCommitAndWait(resourceGroupName, moveCollectionName, options) {
2708
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2709
+ const poller = yield this.beginCommit(resourceGroupName, moveCollectionName, options);
2710
+ return poller.pollUntilDone();
2711
+ });
2712
+ }
2713
+ /**
2714
+ * Discards the set of resources included in the request body. The discard operation is triggered on
2715
+ * the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
2716
+ * the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
2717
+ * operation the client can call operation with validateOnly property set to true.
2718
+ * @param resourceGroupName The Resource Group Name.
2719
+ * @param moveCollectionName The Move Collection Name.
2720
+ * @param options The options parameters.
2721
+ */
2722
+ beginDiscard(resourceGroupName, moveCollectionName, options) {
2723
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2724
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2725
+ return this.client.sendOperationRequest(args, spec);
2726
+ });
2727
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2728
+ var _a;
2729
+ let currentRawResponse = undefined;
2730
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2731
+ const callback = (rawResponse, flatResponse) => {
2732
+ currentRawResponse = rawResponse;
2733
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2734
+ };
2735
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2736
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2737
+ return {
2738
+ flatResponse,
2739
+ rawResponse: {
2740
+ statusCode: currentRawResponse.status,
2741
+ body: currentRawResponse.parsedBody,
2742
+ headers: currentRawResponse.headers.toJSON()
2743
+ }
2744
+ };
2745
+ });
2746
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, discardOperationSpec);
2747
+ return new coreLro.LroEngine(lro, {
2748
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2749
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2750
+ lroResourceLocationConfig: "azure-async-operation"
2751
+ });
2752
+ });
2753
+ }
2754
+ /**
2755
+ * Discards the set of resources included in the request body. The discard operation is triggered on
2756
+ * the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion
2757
+ * the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the
2758
+ * operation the client can call operation with validateOnly property set to true.
2759
+ * @param resourceGroupName The Resource Group Name.
2760
+ * @param moveCollectionName The Move Collection Name.
2761
+ * @param options The options parameters.
2762
+ */
2763
+ beginDiscardAndWait(resourceGroupName, moveCollectionName, options) {
2764
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2765
+ const poller = yield this.beginDiscard(resourceGroupName, moveCollectionName, options);
2766
+ return poller.pollUntilDone();
2767
+ });
2768
+ }
2769
+ /**
2770
+ * Computes, resolves and validate the dependencies of the moveResources in the move collection.
2771
+ * @param resourceGroupName The Resource Group Name.
2772
+ * @param moveCollectionName The Move Collection Name.
2773
+ * @param options The options parameters.
2774
+ */
2775
+ beginResolveDependencies(resourceGroupName, moveCollectionName, options) {
2776
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2777
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2778
+ return this.client.sendOperationRequest(args, spec);
2779
+ });
2780
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2781
+ var _a;
2782
+ let currentRawResponse = undefined;
2783
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2784
+ const callback = (rawResponse, flatResponse) => {
2785
+ currentRawResponse = rawResponse;
2786
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2787
+ };
2788
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2789
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2790
+ return {
2791
+ flatResponse,
2792
+ rawResponse: {
2793
+ statusCode: currentRawResponse.status,
2794
+ body: currentRawResponse.parsedBody,
2795
+ headers: currentRawResponse.headers.toJSON()
2796
+ }
2797
+ };
2798
+ });
2799
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, resolveDependenciesOperationSpec);
2800
+ return new coreLro.LroEngine(lro, {
2801
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2802
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2803
+ lroResourceLocationConfig: "azure-async-operation"
2804
+ });
2805
+ });
2806
+ }
2807
+ /**
2808
+ * Computes, resolves and validate the dependencies of the moveResources in the move collection.
2809
+ * @param resourceGroupName The Resource Group Name.
2810
+ * @param moveCollectionName The Move Collection Name.
2811
+ * @param options The options parameters.
2812
+ */
2813
+ beginResolveDependenciesAndWait(resourceGroupName, moveCollectionName, options) {
2814
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2815
+ const poller = yield this.beginResolveDependencies(resourceGroupName, moveCollectionName, options);
2816
+ return poller.pollUntilDone();
2817
+ });
2818
+ }
2819
+ /**
2820
+ * Removes the set of move resources included in the request body from move collection. The
2821
+ * orchestration is done by service. To aid the user to prerequisite the operation the client can call
2822
+ * operation with validateOnly property set to true.
2823
+ * @param resourceGroupName
2824
+ * @param moveCollectionName
2825
+ * @param options The options parameters.
2826
+ */
2827
+ beginBulkRemove(resourceGroupName, moveCollectionName, options) {
2828
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2829
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2830
+ return this.client.sendOperationRequest(args, spec);
2831
+ });
2832
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2833
+ var _a;
2834
+ let currentRawResponse = undefined;
2835
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2836
+ const callback = (rawResponse, flatResponse) => {
2837
+ currentRawResponse = rawResponse;
2838
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2839
+ };
2840
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2841
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2842
+ return {
2843
+ flatResponse,
2844
+ rawResponse: {
2845
+ statusCode: currentRawResponse.status,
2846
+ body: currentRawResponse.parsedBody,
2847
+ headers: currentRawResponse.headers.toJSON()
2848
+ }
2849
+ };
2850
+ });
2851
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, options }, bulkRemoveOperationSpec);
2852
+ return new coreLro.LroEngine(lro, {
2853
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2854
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2855
+ lroResourceLocationConfig: "azure-async-operation"
2856
+ });
2857
+ });
2858
+ }
2859
+ /**
2860
+ * Removes the set of move resources included in the request body from move collection. The
2861
+ * orchestration is done by service. To aid the user to prerequisite the operation the client can call
2862
+ * operation with validateOnly property set to true.
2863
+ * @param resourceGroupName
2864
+ * @param moveCollectionName
2865
+ * @param options The options parameters.
2866
+ */
2867
+ beginBulkRemoveAndWait(resourceGroupName, moveCollectionName, options) {
2868
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2869
+ const poller = yield this.beginBulkRemove(resourceGroupName, moveCollectionName, options);
2870
+ return poller.pollUntilDone();
2871
+ });
2872
+ }
2873
+ /**
2874
+ * Get all the Move Collections in the subscription.
2875
+ * @param options The options parameters.
2876
+ */
2877
+ _listMoveCollectionsBySubscription(options) {
2878
+ return this.client.sendOperationRequest({ options }, listMoveCollectionsBySubscriptionOperationSpec);
2879
+ }
2880
+ /**
2881
+ * Get all the Move Collections in the resource group.
2882
+ * @param resourceGroupName The Resource Group Name.
2883
+ * @param options The options parameters.
2884
+ */
2885
+ _listMoveCollectionsByResourceGroup(resourceGroupName, options) {
2886
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listMoveCollectionsByResourceGroupOperationSpec);
2887
+ }
2888
+ /**
2889
+ * List of the move resources for which an arm resource is required for.
2890
+ * @param resourceGroupName The Resource Group Name.
2891
+ * @param moveCollectionName The Move Collection Name.
2892
+ * @param sourceId The sourceId for which the api is invoked.
2893
+ * @param options The options parameters.
2894
+ */
2895
+ listRequiredFor(resourceGroupName, moveCollectionName, sourceId, options) {
2896
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, sourceId, options }, listRequiredForOperationSpec);
2897
+ }
2898
+ /**
2899
+ * ListMoveCollectionsBySubscriptionNext
2900
+ * @param nextLink The nextLink from the previous successful call to the
2901
+ * ListMoveCollectionsBySubscription method.
2902
+ * @param options The options parameters.
2903
+ */
2904
+ _listMoveCollectionsBySubscriptionNext(nextLink, options) {
2905
+ return this.client.sendOperationRequest({ nextLink, options }, listMoveCollectionsBySubscriptionNextOperationSpec);
2906
+ }
2907
+ /**
2908
+ * ListMoveCollectionsByResourceGroupNext
2909
+ * @param resourceGroupName The Resource Group Name.
2910
+ * @param nextLink The nextLink from the previous successful call to the
2911
+ * ListMoveCollectionsByResourceGroup method.
2912
+ * @param options The options parameters.
2913
+ */
2914
+ _listMoveCollectionsByResourceGroupNext(resourceGroupName, nextLink, options) {
2915
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listMoveCollectionsByResourceGroupNextOperationSpec);
2916
+ }
2917
+ }
2918
+ // Operation Specifications
2919
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
2920
+ const createOperationSpec = {
2921
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
2922
+ httpMethod: "PUT",
2923
+ responses: {
2924
+ 200: {
2925
+ bodyMapper: MoveCollection
2926
+ },
2927
+ 201: {
2928
+ bodyMapper: MoveCollection
2929
+ },
2930
+ default: {
2931
+ bodyMapper: CloudError
2932
+ }
2933
+ },
2934
+ requestBody: body,
2935
+ queryParameters: [apiVersion],
2936
+ urlParameters: [
2937
+ $host,
2938
+ subscriptionId,
2939
+ resourceGroupName,
2940
+ moveCollectionName
2941
+ ],
2942
+ headerParameters: [contentType, accept],
2943
+ mediaType: "json",
2944
+ serializer
2945
+ };
2946
+ const updateOperationSpec = {
2947
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
2948
+ httpMethod: "PATCH",
2949
+ responses: {
2950
+ 200: {
2951
+ bodyMapper: MoveCollection
2952
+ },
2953
+ default: {
2954
+ bodyMapper: CloudError
2955
+ }
2956
+ },
2957
+ requestBody: body1,
2958
+ queryParameters: [apiVersion],
2959
+ urlParameters: [
2960
+ $host,
2961
+ subscriptionId,
2962
+ resourceGroupName,
2963
+ moveCollectionName
2964
+ ],
2965
+ headerParameters: [contentType, accept],
2966
+ mediaType: "json",
2967
+ serializer
2968
+ };
2969
+ const deleteOperationSpec = {
2970
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
2971
+ httpMethod: "DELETE",
2972
+ responses: {
2973
+ 200: {
2974
+ bodyMapper: OperationStatus
2975
+ },
2976
+ 201: {
2977
+ bodyMapper: OperationStatus
2978
+ },
2979
+ 202: {
2980
+ bodyMapper: OperationStatus
2981
+ },
2982
+ 204: {
2983
+ bodyMapper: OperationStatus
2984
+ },
2985
+ default: {
2986
+ bodyMapper: CloudError
2987
+ }
2988
+ },
2989
+ queryParameters: [apiVersion],
2990
+ urlParameters: [
2991
+ $host,
2992
+ subscriptionId,
2993
+ resourceGroupName,
2994
+ moveCollectionName
2995
+ ],
2996
+ headerParameters: [accept],
2997
+ serializer
2998
+ };
2999
+ const getOperationSpec = {
3000
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}",
3001
+ httpMethod: "GET",
3002
+ responses: {
3003
+ 200: {
3004
+ bodyMapper: MoveCollection
3005
+ },
3006
+ default: {
3007
+ bodyMapper: CloudError
3008
+ }
3009
+ },
3010
+ queryParameters: [apiVersion],
3011
+ urlParameters: [
3012
+ $host,
3013
+ subscriptionId,
3014
+ resourceGroupName,
3015
+ moveCollectionName
3016
+ ],
3017
+ headerParameters: [accept],
3018
+ serializer
3019
+ };
3020
+ const prepareOperationSpec = {
3021
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare",
3022
+ httpMethod: "POST",
3023
+ responses: {
3024
+ 200: {
3025
+ bodyMapper: OperationStatus
3026
+ },
3027
+ 201: {
3028
+ bodyMapper: OperationStatus
3029
+ },
3030
+ 202: {
3031
+ bodyMapper: OperationStatus
3032
+ },
3033
+ 204: {
3034
+ bodyMapper: OperationStatus
3035
+ },
3036
+ default: {
3037
+ bodyMapper: CloudError
3038
+ }
3039
+ },
3040
+ requestBody: body2,
3041
+ queryParameters: [apiVersion],
3042
+ urlParameters: [
3043
+ $host,
3044
+ subscriptionId,
3045
+ resourceGroupName,
3046
+ moveCollectionName
3047
+ ],
3048
+ headerParameters: [contentType, accept],
3049
+ mediaType: "json",
3050
+ serializer
3051
+ };
3052
+ const initiateMoveOperationSpec = {
3053
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove",
3054
+ httpMethod: "POST",
3055
+ responses: {
3056
+ 200: {
3057
+ bodyMapper: OperationStatus
3058
+ },
3059
+ 201: {
3060
+ bodyMapper: OperationStatus
3061
+ },
3062
+ 202: {
3063
+ bodyMapper: OperationStatus
3064
+ },
3065
+ 204: {
3066
+ bodyMapper: OperationStatus
3067
+ },
3068
+ default: {
3069
+ bodyMapper: CloudError
3070
+ }
3071
+ },
3072
+ requestBody: body3,
3073
+ queryParameters: [apiVersion],
3074
+ urlParameters: [
3075
+ $host,
3076
+ subscriptionId,
3077
+ resourceGroupName,
3078
+ moveCollectionName
3079
+ ],
3080
+ headerParameters: [contentType, accept],
3081
+ mediaType: "json",
3082
+ serializer
3083
+ };
3084
+ const commitOperationSpec = {
3085
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit",
3086
+ httpMethod: "POST",
3087
+ responses: {
3088
+ 200: {
3089
+ bodyMapper: OperationStatus
3090
+ },
3091
+ 201: {
3092
+ bodyMapper: OperationStatus
3093
+ },
3094
+ 202: {
3095
+ bodyMapper: OperationStatus
3096
+ },
3097
+ 204: {
3098
+ bodyMapper: OperationStatus
3099
+ },
3100
+ default: {
3101
+ bodyMapper: CloudError
3102
+ }
3103
+ },
3104
+ requestBody: body4,
3105
+ queryParameters: [apiVersion],
3106
+ urlParameters: [
3107
+ $host,
3108
+ subscriptionId,
3109
+ resourceGroupName,
3110
+ moveCollectionName
3111
+ ],
3112
+ headerParameters: [contentType, accept],
3113
+ mediaType: "json",
3114
+ serializer
3115
+ };
3116
+ const discardOperationSpec = {
3117
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard",
3118
+ httpMethod: "POST",
3119
+ responses: {
3120
+ 200: {
3121
+ bodyMapper: OperationStatus
3122
+ },
3123
+ 201: {
3124
+ bodyMapper: OperationStatus
3125
+ },
3126
+ 202: {
3127
+ bodyMapper: OperationStatus
3128
+ },
3129
+ 204: {
3130
+ bodyMapper: OperationStatus
3131
+ },
3132
+ default: {
3133
+ bodyMapper: CloudError
3134
+ }
3135
+ },
3136
+ requestBody: body5,
3137
+ queryParameters: [apiVersion],
3138
+ urlParameters: [
3139
+ $host,
3140
+ subscriptionId,
3141
+ resourceGroupName,
3142
+ moveCollectionName
3143
+ ],
3144
+ headerParameters: [contentType, accept],
3145
+ mediaType: "json",
3146
+ serializer
3147
+ };
3148
+ const resolveDependenciesOperationSpec = {
3149
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/resolveDependencies",
3150
+ httpMethod: "POST",
3151
+ responses: {
3152
+ 200: {
3153
+ bodyMapper: OperationStatus
3154
+ },
3155
+ 201: {
3156
+ bodyMapper: OperationStatus
3157
+ },
3158
+ 202: {
3159
+ bodyMapper: OperationStatus
3160
+ },
3161
+ 204: {
3162
+ bodyMapper: OperationStatus
3163
+ },
3164
+ default: {
3165
+ bodyMapper: CloudError
3166
+ }
3167
+ },
3168
+ queryParameters: [apiVersion],
3169
+ urlParameters: [
3170
+ $host,
3171
+ subscriptionId,
3172
+ resourceGroupName,
3173
+ moveCollectionName
3174
+ ],
3175
+ headerParameters: [accept],
3176
+ serializer
3177
+ };
3178
+ const bulkRemoveOperationSpec = {
3179
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove",
3180
+ httpMethod: "POST",
3181
+ responses: {
3182
+ 200: {
3183
+ bodyMapper: OperationStatus
3184
+ },
3185
+ 201: {
3186
+ bodyMapper: OperationStatus
3187
+ },
3188
+ 202: {
3189
+ bodyMapper: OperationStatus
3190
+ },
3191
+ 204: {
3192
+ bodyMapper: OperationStatus
3193
+ },
3194
+ default: {
3195
+ bodyMapper: CloudError
3196
+ }
3197
+ },
3198
+ requestBody: body6,
3199
+ queryParameters: [apiVersion],
3200
+ urlParameters: [
3201
+ $host,
3202
+ subscriptionId,
3203
+ resourceGroupName,
3204
+ moveCollectionName
3205
+ ],
3206
+ headerParameters: [contentType, accept],
3207
+ mediaType: "json",
3208
+ serializer
3209
+ };
3210
+ const listMoveCollectionsBySubscriptionOperationSpec = {
3211
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections",
3212
+ httpMethod: "GET",
3213
+ responses: {
3214
+ 200: {
3215
+ bodyMapper: MoveCollectionResultList
3216
+ },
3217
+ default: {
3218
+ bodyMapper: CloudError
3219
+ }
3220
+ },
3221
+ queryParameters: [apiVersion],
3222
+ urlParameters: [$host, subscriptionId],
3223
+ headerParameters: [accept],
3224
+ serializer
3225
+ };
3226
+ const listMoveCollectionsByResourceGroupOperationSpec = {
3227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections",
3228
+ httpMethod: "GET",
3229
+ responses: {
3230
+ 200: {
3231
+ bodyMapper: MoveCollectionResultList
3232
+ },
3233
+ default: {
3234
+ bodyMapper: CloudError
3235
+ }
3236
+ },
3237
+ queryParameters: [apiVersion],
3238
+ urlParameters: [
3239
+ $host,
3240
+ subscriptionId,
3241
+ resourceGroupName
3242
+ ],
3243
+ headerParameters: [accept],
3244
+ serializer
3245
+ };
3246
+ const listRequiredForOperationSpec = {
3247
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor",
3248
+ httpMethod: "GET",
3249
+ responses: {
3250
+ 200: {
3251
+ bodyMapper: RequiredForResourcesCollection
3252
+ },
3253
+ default: {
3254
+ bodyMapper: CloudError
3255
+ }
3256
+ },
3257
+ queryParameters: [apiVersion, sourceId],
3258
+ urlParameters: [
3259
+ $host,
3260
+ subscriptionId,
3261
+ resourceGroupName,
3262
+ moveCollectionName
3263
+ ],
3264
+ headerParameters: [accept],
3265
+ serializer
3266
+ };
3267
+ const listMoveCollectionsBySubscriptionNextOperationSpec = {
3268
+ path: "{nextLink}",
3269
+ httpMethod: "GET",
3270
+ responses: {
3271
+ 200: {
3272
+ bodyMapper: MoveCollectionResultList
3273
+ },
3274
+ default: {
3275
+ bodyMapper: CloudError
3276
+ }
3277
+ },
3278
+ queryParameters: [apiVersion],
3279
+ urlParameters: [
3280
+ $host,
3281
+ subscriptionId,
3282
+ nextLink
3283
+ ],
3284
+ headerParameters: [accept],
3285
+ serializer
3286
+ };
3287
+ const listMoveCollectionsByResourceGroupNextOperationSpec = {
3288
+ path: "{nextLink}",
3289
+ httpMethod: "GET",
3290
+ responses: {
3291
+ 200: {
3292
+ bodyMapper: MoveCollectionResultList
3293
+ },
3294
+ default: {
3295
+ bodyMapper: CloudError
3296
+ }
3297
+ },
3298
+ queryParameters: [apiVersion],
3299
+ urlParameters: [
3300
+ $host,
3301
+ subscriptionId,
3302
+ resourceGroupName,
3303
+ nextLink
3304
+ ],
3305
+ headerParameters: [accept],
3306
+ serializer
3307
+ };
3308
+
3309
+ /*
3310
+ * Copyright (c) Microsoft Corporation.
3311
+ * Licensed under the MIT License.
3312
+ *
3313
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3314
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3315
+ */
3316
+ /// <reference lib="esnext.asynciterable" />
3317
+ /** Class containing MoveResources operations. */
3318
+ class MoveResourcesImpl {
3319
+ /**
3320
+ * Initialize a new instance of the class MoveResources class.
3321
+ * @param client Reference to the service client
3322
+ */
3323
+ constructor(client) {
3324
+ this.client = client;
3325
+ }
3326
+ /**
3327
+ * Lists the Move Resources in the move collection.
3328
+ * @param resourceGroupName The Resource Group Name.
3329
+ * @param moveCollectionName The Move Collection Name.
3330
+ * @param options The options parameters.
3331
+ */
3332
+ list(resourceGroupName, moveCollectionName, options) {
3333
+ const iter = this.listPagingAll(resourceGroupName, moveCollectionName, options);
3334
+ return {
3335
+ next() {
3336
+ return iter.next();
3337
+ },
3338
+ [Symbol.asyncIterator]() {
3339
+ return this;
3340
+ },
3341
+ byPage: () => {
3342
+ return this.listPagingPage(resourceGroupName, moveCollectionName, options);
3343
+ }
3344
+ };
3345
+ }
3346
+ listPagingPage(resourceGroupName, moveCollectionName, options) {
3347
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3348
+ let result = yield tslib.__await(this._list(resourceGroupName, moveCollectionName, options));
3349
+ yield yield tslib.__await(result.value || []);
3350
+ let continuationToken = result.nextLink;
3351
+ while (continuationToken) {
3352
+ result = yield tslib.__await(this._listNext(resourceGroupName, moveCollectionName, continuationToken, options));
3353
+ continuationToken = result.nextLink;
3354
+ yield yield tslib.__await(result.value || []);
3355
+ }
3356
+ });
3357
+ }
3358
+ listPagingAll(resourceGroupName, moveCollectionName, options) {
3359
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3360
+ var e_1, _a;
3361
+ try {
3362
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, moveCollectionName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3363
+ const page = _c.value;
3364
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3365
+ }
3366
+ }
3367
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3368
+ finally {
3369
+ try {
3370
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3371
+ }
3372
+ finally { if (e_1) throw e_1.error; }
3373
+ }
3374
+ });
3375
+ }
3376
+ /**
3377
+ * Lists the Move Resources in the move collection.
3378
+ * @param resourceGroupName The Resource Group Name.
3379
+ * @param moveCollectionName The Move Collection Name.
3380
+ * @param options The options parameters.
3381
+ */
3382
+ _list(resourceGroupName, moveCollectionName, options) {
3383
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, listOperationSpec);
3384
+ }
3385
+ /**
3386
+ * Creates or updates a Move Resource in the move collection.
3387
+ * @param resourceGroupName The Resource Group Name.
3388
+ * @param moveCollectionName The Move Collection Name.
3389
+ * @param moveResourceName The Move Resource Name.
3390
+ * @param options The options parameters.
3391
+ */
3392
+ beginCreate(resourceGroupName, moveCollectionName, moveResourceName, options) {
3393
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3394
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3395
+ return this.client.sendOperationRequest(args, spec);
3396
+ });
3397
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3398
+ var _a;
3399
+ let currentRawResponse = undefined;
3400
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3401
+ const callback = (rawResponse, flatResponse) => {
3402
+ currentRawResponse = rawResponse;
3403
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3404
+ };
3405
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3406
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3407
+ return {
3408
+ flatResponse,
3409
+ rawResponse: {
3410
+ statusCode: currentRawResponse.status,
3411
+ body: currentRawResponse.parsedBody,
3412
+ headers: currentRawResponse.headers.toJSON()
3413
+ }
3414
+ };
3415
+ });
3416
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, moveResourceName, options }, createOperationSpec$1);
3417
+ return new coreLro.LroEngine(lro, {
3418
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3419
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3420
+ lroResourceLocationConfig: "azure-async-operation"
3421
+ });
3422
+ });
3423
+ }
3424
+ /**
3425
+ * Creates or updates a Move Resource in the move collection.
3426
+ * @param resourceGroupName The Resource Group Name.
3427
+ * @param moveCollectionName The Move Collection Name.
3428
+ * @param moveResourceName The Move Resource Name.
3429
+ * @param options The options parameters.
3430
+ */
3431
+ beginCreateAndWait(resourceGroupName, moveCollectionName, moveResourceName, options) {
3432
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3433
+ const poller = yield this.beginCreate(resourceGroupName, moveCollectionName, moveResourceName, options);
3434
+ return poller.pollUntilDone();
3435
+ });
3436
+ }
3437
+ /**
3438
+ * Deletes a Move Resource from the move collection.
3439
+ * @param resourceGroupName The Resource Group Name.
3440
+ * @param moveCollectionName The Move Collection Name.
3441
+ * @param moveResourceName The Move Resource Name.
3442
+ * @param options The options parameters.
3443
+ */
3444
+ beginDelete(resourceGroupName, moveCollectionName, moveResourceName, options) {
3445
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3446
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3447
+ return this.client.sendOperationRequest(args, spec);
3448
+ });
3449
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3450
+ var _a;
3451
+ let currentRawResponse = undefined;
3452
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3453
+ const callback = (rawResponse, flatResponse) => {
3454
+ currentRawResponse = rawResponse;
3455
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3456
+ };
3457
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3458
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3459
+ return {
3460
+ flatResponse,
3461
+ rawResponse: {
3462
+ statusCode: currentRawResponse.status,
3463
+ body: currentRawResponse.parsedBody,
3464
+ headers: currentRawResponse.headers.toJSON()
3465
+ }
3466
+ };
3467
+ });
3468
+ const lro = new LroImpl(sendOperation, { resourceGroupName, moveCollectionName, moveResourceName, options }, deleteOperationSpec$1);
3469
+ return new coreLro.LroEngine(lro, {
3470
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3471
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3472
+ lroResourceLocationConfig: "azure-async-operation"
3473
+ });
3474
+ });
3475
+ }
3476
+ /**
3477
+ * Deletes a Move Resource from the move collection.
3478
+ * @param resourceGroupName The Resource Group Name.
3479
+ * @param moveCollectionName The Move Collection Name.
3480
+ * @param moveResourceName The Move Resource Name.
3481
+ * @param options The options parameters.
3482
+ */
3483
+ beginDeleteAndWait(resourceGroupName, moveCollectionName, moveResourceName, options) {
3484
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3485
+ const poller = yield this.beginDelete(resourceGroupName, moveCollectionName, moveResourceName, options);
3486
+ return poller.pollUntilDone();
3487
+ });
3488
+ }
3489
+ /**
3490
+ * Gets the Move Resource.
3491
+ * @param resourceGroupName The Resource Group Name.
3492
+ * @param moveCollectionName The Move Collection Name.
3493
+ * @param moveResourceName The Move Resource Name.
3494
+ * @param options The options parameters.
3495
+ */
3496
+ get(resourceGroupName, moveCollectionName, moveResourceName, options) {
3497
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, moveResourceName, options }, getOperationSpec$1);
3498
+ }
3499
+ /**
3500
+ * ListNext
3501
+ * @param resourceGroupName The Resource Group Name.
3502
+ * @param moveCollectionName The Move Collection Name.
3503
+ * @param nextLink The nextLink from the previous successful call to the List method.
3504
+ * @param options The options parameters.
3505
+ */
3506
+ _listNext(resourceGroupName, moveCollectionName, nextLink, options) {
3507
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, nextLink, options }, listNextOperationSpec);
3508
+ }
3509
+ }
3510
+ // Operation Specifications
3511
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
3512
+ const listOperationSpec = {
3513
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources",
3514
+ httpMethod: "GET",
3515
+ responses: {
3516
+ 200: {
3517
+ bodyMapper: MoveResourceCollection
3518
+ },
3519
+ default: {
3520
+ bodyMapper: CloudError
3521
+ }
3522
+ },
3523
+ queryParameters: [apiVersion, filter],
3524
+ urlParameters: [
3525
+ $host,
3526
+ subscriptionId,
3527
+ resourceGroupName,
3528
+ moveCollectionName
3529
+ ],
3530
+ headerParameters: [accept],
3531
+ serializer: serializer$1
3532
+ };
3533
+ const createOperationSpec$1 = {
3534
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
3535
+ httpMethod: "PUT",
3536
+ responses: {
3537
+ 200: {
3538
+ bodyMapper: MoveResource
3539
+ },
3540
+ 201: {
3541
+ bodyMapper: MoveResource
3542
+ },
3543
+ 202: {
3544
+ bodyMapper: MoveResource
3545
+ },
3546
+ 204: {
3547
+ bodyMapper: MoveResource
3548
+ },
3549
+ default: {
3550
+ bodyMapper: CloudError
3551
+ }
3552
+ },
3553
+ requestBody: body7,
3554
+ queryParameters: [apiVersion],
3555
+ urlParameters: [
3556
+ $host,
3557
+ subscriptionId,
3558
+ resourceGroupName,
3559
+ moveCollectionName,
3560
+ moveResourceName
3561
+ ],
3562
+ headerParameters: [contentType, accept],
3563
+ mediaType: "json",
3564
+ serializer: serializer$1
3565
+ };
3566
+ const deleteOperationSpec$1 = {
3567
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
3568
+ httpMethod: "DELETE",
3569
+ responses: {
3570
+ 200: {
3571
+ bodyMapper: OperationStatus
3572
+ },
3573
+ 201: {
3574
+ bodyMapper: OperationStatus
3575
+ },
3576
+ 202: {
3577
+ bodyMapper: OperationStatus
3578
+ },
3579
+ 204: {
3580
+ bodyMapper: OperationStatus
3581
+ },
3582
+ default: {
3583
+ bodyMapper: CloudError
3584
+ }
3585
+ },
3586
+ queryParameters: [apiVersion],
3587
+ urlParameters: [
3588
+ $host,
3589
+ subscriptionId,
3590
+ resourceGroupName,
3591
+ moveCollectionName,
3592
+ moveResourceName
3593
+ ],
3594
+ headerParameters: [accept],
3595
+ serializer: serializer$1
3596
+ };
3597
+ const getOperationSpec$1 = {
3598
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}",
3599
+ httpMethod: "GET",
3600
+ responses: {
3601
+ 200: {
3602
+ bodyMapper: MoveResource
3603
+ },
3604
+ default: {
3605
+ bodyMapper: CloudError
3606
+ }
3607
+ },
3608
+ queryParameters: [apiVersion],
3609
+ urlParameters: [
3610
+ $host,
3611
+ subscriptionId,
3612
+ resourceGroupName,
3613
+ moveCollectionName,
3614
+ moveResourceName
3615
+ ],
3616
+ headerParameters: [accept],
3617
+ serializer: serializer$1
3618
+ };
3619
+ const listNextOperationSpec = {
3620
+ path: "{nextLink}",
3621
+ httpMethod: "GET",
3622
+ responses: {
3623
+ 200: {
3624
+ bodyMapper: MoveResourceCollection
3625
+ },
3626
+ default: {
3627
+ bodyMapper: CloudError
3628
+ }
3629
+ },
3630
+ queryParameters: [apiVersion, filter],
3631
+ urlParameters: [
3632
+ $host,
3633
+ subscriptionId,
3634
+ resourceGroupName,
3635
+ moveCollectionName,
3636
+ nextLink
3637
+ ],
3638
+ headerParameters: [accept],
3639
+ serializer: serializer$1
3640
+ };
3641
+
3642
+ /*
3643
+ * Copyright (c) Microsoft Corporation.
3644
+ * Licensed under the MIT License.
3645
+ *
3646
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3647
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3648
+ */
3649
+ /// <reference lib="esnext.asynciterable" />
3650
+ /** Class containing UnresolvedDependencies operations. */
3651
+ class UnresolvedDependenciesImpl {
3652
+ /**
3653
+ * Initialize a new instance of the class UnresolvedDependencies class.
3654
+ * @param client Reference to the service client
3655
+ */
3656
+ constructor(client) {
3657
+ this.client = client;
3658
+ }
3659
+ /**
3660
+ * Gets a list of unresolved dependencies.
3661
+ * @param resourceGroupName The Resource Group Name.
3662
+ * @param moveCollectionName The Move Collection Name.
3663
+ * @param options The options parameters.
3664
+ */
3665
+ list(resourceGroupName, moveCollectionName, options) {
3666
+ const iter = this.getPagingAll(resourceGroupName, moveCollectionName, options);
3667
+ return {
3668
+ next() {
3669
+ return iter.next();
3670
+ },
3671
+ [Symbol.asyncIterator]() {
3672
+ return this;
3673
+ },
3674
+ byPage: () => {
3675
+ return this.getPagingPage(resourceGroupName, moveCollectionName, options);
3676
+ }
3677
+ };
3678
+ }
3679
+ getPagingPage(resourceGroupName, moveCollectionName, options) {
3680
+ return tslib.__asyncGenerator(this, arguments, function* getPagingPage_1() {
3681
+ let result = yield tslib.__await(this._get(resourceGroupName, moveCollectionName, options));
3682
+ yield yield tslib.__await(result.value || []);
3683
+ let continuationToken = result.nextLink;
3684
+ while (continuationToken) {
3685
+ result = yield tslib.__await(this._getNext(resourceGroupName, moveCollectionName, continuationToken, options));
3686
+ continuationToken = result.nextLink;
3687
+ yield yield tslib.__await(result.value || []);
3688
+ }
3689
+ });
3690
+ }
3691
+ getPagingAll(resourceGroupName, moveCollectionName, options) {
3692
+ return tslib.__asyncGenerator(this, arguments, function* getPagingAll_1() {
3693
+ var e_1, _a;
3694
+ try {
3695
+ for (var _b = tslib.__asyncValues(this.getPagingPage(resourceGroupName, moveCollectionName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3696
+ const page = _c.value;
3697
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3698
+ }
3699
+ }
3700
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3701
+ finally {
3702
+ try {
3703
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3704
+ }
3705
+ finally { if (e_1) throw e_1.error; }
3706
+ }
3707
+ });
3708
+ }
3709
+ /**
3710
+ * Gets a list of unresolved dependencies.
3711
+ * @param resourceGroupName The Resource Group Name.
3712
+ * @param moveCollectionName The Move Collection Name.
3713
+ * @param options The options parameters.
3714
+ */
3715
+ _get(resourceGroupName, moveCollectionName, options) {
3716
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, options }, getOperationSpec$2);
3717
+ }
3718
+ /**
3719
+ * GetNext
3720
+ * @param resourceGroupName The Resource Group Name.
3721
+ * @param moveCollectionName The Move Collection Name.
3722
+ * @param nextLink The nextLink from the previous successful call to the Get method.
3723
+ * @param options The options parameters.
3724
+ */
3725
+ _getNext(resourceGroupName, moveCollectionName, nextLink, options) {
3726
+ return this.client.sendOperationRequest({ resourceGroupName, moveCollectionName, nextLink, options }, getNextOperationSpec);
3727
+ }
3728
+ }
3729
+ // Operation Specifications
3730
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
3731
+ const getOperationSpec$2 = {
3732
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/unresolvedDependencies",
3733
+ httpMethod: "GET",
3734
+ responses: {
3735
+ 200: {
3736
+ bodyMapper: UnresolvedDependencyCollection
3737
+ },
3738
+ default: {
3739
+ bodyMapper: CloudError
3740
+ }
3741
+ },
3742
+ queryParameters: [
3743
+ apiVersion,
3744
+ filter,
3745
+ dependencyLevel,
3746
+ orderby
3747
+ ],
3748
+ urlParameters: [
3749
+ $host,
3750
+ subscriptionId,
3751
+ resourceGroupName,
3752
+ moveCollectionName
3753
+ ],
3754
+ headerParameters: [accept],
3755
+ serializer: serializer$2
3756
+ };
3757
+ const getNextOperationSpec = {
3758
+ path: "{nextLink}",
3759
+ httpMethod: "GET",
3760
+ responses: {
3761
+ 200: {
3762
+ bodyMapper: UnresolvedDependencyCollection
3763
+ },
3764
+ default: {
3765
+ bodyMapper: CloudError
3766
+ }
3767
+ },
3768
+ queryParameters: [
3769
+ apiVersion,
3770
+ filter,
3771
+ dependencyLevel,
3772
+ orderby
3773
+ ],
3774
+ urlParameters: [
3775
+ $host,
3776
+ subscriptionId,
3777
+ resourceGroupName,
3778
+ moveCollectionName,
3779
+ nextLink
3780
+ ],
3781
+ headerParameters: [accept],
3782
+ serializer: serializer$2
3783
+ };
3784
+
3785
+ /*
3786
+ * Copyright (c) Microsoft Corporation.
3787
+ * Licensed under the MIT License.
3788
+ *
3789
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3790
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3791
+ */
3792
+ /** Class containing OperationsDiscoveryOperations operations. */
3793
+ class OperationsDiscoveryOperationsImpl {
3794
+ /**
3795
+ * Initialize a new instance of the class OperationsDiscoveryOperations class.
3796
+ * @param client Reference to the service client
3797
+ */
3798
+ constructor(client) {
3799
+ this.client = client;
3800
+ }
3801
+ /** @param options The options parameters. */
3802
+ get(options) {
3803
+ return this.client.sendOperationRequest({ options }, getOperationSpec$3);
3804
+ }
3805
+ }
3806
+ // Operation Specifications
3807
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
3808
+ const getOperationSpec$3 = {
3809
+ path: "/providers/Microsoft.Migrate/operations",
3810
+ httpMethod: "GET",
3811
+ responses: {
3812
+ 200: {
3813
+ bodyMapper: OperationsDiscoveryCollection
3814
+ },
3815
+ default: {
3816
+ bodyMapper: CloudError
3817
+ }
3818
+ },
3819
+ queryParameters: [apiVersion],
3820
+ urlParameters: [$host],
3821
+ headerParameters: [accept],
3822
+ serializer: serializer$3
3823
+ };
3824
+
3825
+ /*
3826
+ * Copyright (c) Microsoft Corporation.
3827
+ * Licensed under the MIT License.
3828
+ *
3829
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3830
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3831
+ */
3832
+ class ResourceMoverServiceAPI extends coreClient.ServiceClient {
3833
+ /**
3834
+ * Initializes a new instance of the ResourceMoverServiceAPI class.
3835
+ * @param credentials Subscription credentials which uniquely identify client subscription.
3836
+ * @param subscriptionId The Subscription ID.
3837
+ * @param options The parameter options
3838
+ */
3839
+ constructor(credentials, subscriptionId, options) {
3840
+ if (credentials === undefined) {
3841
+ throw new Error("'credentials' cannot be null");
3842
+ }
3843
+ if (subscriptionId === undefined) {
3844
+ throw new Error("'subscriptionId' cannot be null");
3845
+ }
3846
+ // Initializing default values for options
3847
+ if (!options) {
3848
+ options = {};
3849
+ }
3850
+ const defaults = {
3851
+ requestContentType: "application/json; charset=utf-8",
3852
+ credential: credentials
3853
+ };
3854
+ const packageDetails = `azsdk-js-arm-resourcemover/2.0.0`;
3855
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3856
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3857
+ : `${packageDetails}`;
3858
+ if (!options.credentialScopes) {
3859
+ options.credentialScopes = ["https://management.azure.com/.default"];
3860
+ }
3861
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3862
+ userAgentPrefix
3863
+ }, baseUri: options.endpoint || "https://management.azure.com" });
3864
+ super(optionsWithDefaults);
3865
+ // Parameter assignments
3866
+ this.subscriptionId = subscriptionId;
3867
+ // Assigning values to Constant parameters
3868
+ this.$host = options.$host || "https://management.azure.com";
3869
+ this.apiVersion = options.apiVersion || "2021-08-01";
3870
+ this.moveCollections = new MoveCollectionsImpl(this);
3871
+ this.moveResources = new MoveResourcesImpl(this);
3872
+ this.unresolvedDependencies = new UnresolvedDependenciesImpl(this);
3873
+ this.operationsDiscoveryOperations = new OperationsDiscoveryOperationsImpl(this);
3874
+ }
3875
+ }
3876
+
3877
+ exports.ResourceMoverServiceAPI = ResourceMoverServiceAPI;
3878
+ //# sourceMappingURL=index.js.map