@azure/arm-machinelearningcompute 2.1.1 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +1821 -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/checkUpdateForAnOperationalizationCluster.d.ts +2 -0
  9. package/dist-esm/samples-dev/checkUpdateForAnOperationalizationCluster.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/checkUpdateForAnOperationalizationCluster.js +31 -0
  11. package/dist-esm/samples-dev/checkUpdateForAnOperationalizationCluster.js.map +1 -0
  12. package/dist-esm/samples-dev/deleteOperationalizationCluster.d.ts +2 -0
  13. package/dist-esm/samples-dev/deleteOperationalizationCluster.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/deleteOperationalizationCluster.js +31 -0
  15. package/dist-esm/samples-dev/deleteOperationalizationCluster.js.map +1 -0
  16. package/dist-esm/samples-dev/getOperationalizationCluster.d.ts +2 -0
  17. package/dist-esm/samples-dev/getOperationalizationCluster.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/getOperationalizationCluster.js +31 -0
  19. package/dist-esm/samples-dev/getOperationalizationCluster.js.map +1 -0
  20. package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.d.ts +2 -0
  21. package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.js +31 -0
  23. package/dist-esm/samples-dev/listKeysOfAnOperationalizationCluster.js.map +1 -0
  24. package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.d.ts +2 -0
  25. package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.js +44 -0
  27. package/dist-esm/samples-dev/listOperationalizationClustersByResourceGroup.js.map +1 -0
  28. package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.d.ts +2 -0
  29. package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.js +43 -0
  31. package/dist-esm/samples-dev/listOperationalizationClustersBySubscription.js.map +1 -0
  32. package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.d.ts +2 -0
  33. package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.js +29 -0
  35. package/dist-esm/samples-dev/machineLearningComputeListAvailableOperations.js.map +1 -0
  36. package/dist-esm/samples-dev/patchOperationalizationCluster.d.ts +2 -0
  37. package/dist-esm/samples-dev/patchOperationalizationCluster.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/patchOperationalizationCluster.js +34 -0
  39. package/dist-esm/samples-dev/patchOperationalizationCluster.js.map +1 -0
  40. package/dist-esm/samples-dev/putOperationalizationCluster.d.ts +2 -0
  41. package/dist-esm/samples-dev/putOperationalizationCluster.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/putOperationalizationCluster.js +54 -0
  43. package/dist-esm/samples-dev/putOperationalizationCluster.js.map +1 -0
  44. package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.d.ts +2 -0
  45. package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.js +31 -0
  47. package/dist-esm/samples-dev/updateSystemServicesInAnOperationalizationCluster.js.map +1 -0
  48. package/dist-esm/src/index.d.ts +5 -0
  49. package/dist-esm/src/index.d.ts.map +1 -0
  50. package/dist-esm/src/index.js +12 -0
  51. package/dist-esm/src/index.js.map +1 -0
  52. package/dist-esm/src/lroImpl.d.ts +16 -0
  53. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  54. package/dist-esm/src/lroImpl.js +29 -0
  55. package/dist-esm/src/lroImpl.js.map +1 -0
  56. package/dist-esm/src/machineLearningComputeManagementClient.d.ts +19 -0
  57. package/dist-esm/src/machineLearningComputeManagementClient.d.ts.map +1 -0
  58. package/dist-esm/src/machineLearningComputeManagementClient.js +52 -0
  59. package/dist-esm/src/machineLearningComputeManagementClient.js.map +1 -0
  60. package/dist-esm/src/models/index.d.ts +637 -0
  61. package/dist-esm/src/models/index.d.ts.map +1 -0
  62. package/dist-esm/src/models/index.js +101 -0
  63. package/dist-esm/src/models/index.js.map +1 -0
  64. package/dist-esm/src/models/mappers.d.ts +32 -0
  65. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  66. package/{esm → dist-esm/src}/models/mappers.js +347 -401
  67. package/dist-esm/src/models/mappers.js.map +1 -0
  68. package/dist-esm/src/models/parameters.d.ts +14 -0
  69. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  70. package/dist-esm/src/models/parameters.js +130 -0
  71. package/dist-esm/src/models/parameters.js.map +1 -0
  72. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  73. package/dist-esm/src/operations/index.d.ts.map +1 -0
  74. package/{esm → dist-esm/src}/operations/index.js +1 -2
  75. package/dist-esm/src/operations/index.js.map +1 -0
  76. package/dist-esm/src/operations/machineLearningCompute.d.ts +18 -0
  77. package/dist-esm/src/operations/machineLearningCompute.d.ts.map +1 -0
  78. package/dist-esm/src/operations/machineLearningCompute.js +43 -0
  79. package/dist-esm/src/operations/machineLearningCompute.js.map +1 -0
  80. package/dist-esm/src/operations/operationalizationClusters.d.ts +130 -0
  81. package/dist-esm/src/operations/operationalizationClusters.d.ts.map +1 -0
  82. package/dist-esm/src/operations/operationalizationClusters.js +579 -0
  83. package/dist-esm/src/operations/operationalizationClusters.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  85. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  86. package/{esm/models/machineLearningComputeMappers.js → dist-esm/src/operationsInterfaces/index.js} +3 -2
  87. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/machineLearningCompute.d.ts +10 -0
  89. package/dist-esm/src/operationsInterfaces/machineLearningCompute.d.ts.map +1 -0
  90. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/machineLearningCompute.js} +2 -1
  91. package/dist-esm/src/operationsInterfaces/machineLearningCompute.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operationalizationClusters.d.ts +94 -0
  93. package/dist-esm/src/operationsInterfaces/operationalizationClusters.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operationalizationClusters.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operationalizationClusters.js.map +1 -0
  96. package/dist-esm/test/sampleTest.d.ts +2 -0
  97. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  98. package/dist-esm/test/sampleTest.js +40 -0
  99. package/dist-esm/test/sampleTest.js.map +1 -0
  100. package/package.json +80 -33
  101. package/review/arm-machinelearningcompute.api.md +545 -0
  102. package/rollup.config.js +181 -30
  103. package/src/index.ts +12 -0
  104. package/src/lroImpl.ts +34 -0
  105. package/src/machineLearningComputeManagementClient.ts +68 -34
  106. package/src/models/index.ts +518 -800
  107. package/src/models/mappers.ts +357 -411
  108. package/src/models/parameters.ts +89 -45
  109. package/src/operations/index.ts +1 -2
  110. package/src/operations/machineLearningCompute.ts +29 -43
  111. package/src/operations/operationalizationClusters.ts +589 -461
  112. package/src/{models/machineLearningComputeMappers.ts → operationsInterfaces/index.ts} +2 -6
  113. package/src/operationsInterfaces/machineLearningCompute.ts +23 -0
  114. package/src/operationsInterfaces/operationalizationClusters.ts +189 -0
  115. package/tsconfig.json +5 -4
  116. package/types/arm-machinelearningcompute.d.ts +826 -0
  117. package/types/tsdoc-metadata.json +11 -0
  118. package/dist/arm-machinelearningcompute.js +0 -1764
  119. package/dist/arm-machinelearningcompute.js.map +0 -1
  120. package/dist/arm-machinelearningcompute.min.js +0 -1
  121. package/dist/arm-machinelearningcompute.min.js.map +0 -1
  122. package/esm/machineLearningComputeManagementClient.d.ts +0 -25
  123. package/esm/machineLearningComputeManagementClient.d.ts.map +0 -1
  124. package/esm/machineLearningComputeManagementClient.js +0 -38
  125. package/esm/machineLearningComputeManagementClient.js.map +0 -1
  126. package/esm/machineLearningComputeManagementClientContext.d.ts +0 -22
  127. package/esm/machineLearningComputeManagementClientContext.d.ts.map +0 -1
  128. package/esm/machineLearningComputeManagementClientContext.js +0 -60
  129. package/esm/machineLearningComputeManagementClientContext.js.map +0 -1
  130. package/esm/models/index.d.ts +0 -925
  131. package/esm/models/index.d.ts.map +0 -1
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/machineLearningComputeMappers.d.ts +0 -2
  134. package/esm/models/machineLearningComputeMappers.d.ts.map +0 -1
  135. package/esm/models/machineLearningComputeMappers.js.map +0 -1
  136. package/esm/models/mappers.d.ts +0 -34
  137. package/esm/models/mappers.d.ts.map +0 -1
  138. package/esm/models/mappers.js.map +0 -1
  139. package/esm/models/operationalizationClustersMappers.d.ts +0 -2
  140. package/esm/models/operationalizationClustersMappers.d.ts.map +0 -1
  141. package/esm/models/operationalizationClustersMappers.js +0 -9
  142. package/esm/models/operationalizationClustersMappers.js.map +0 -1
  143. package/esm/models/parameters.d.ts +0 -10
  144. package/esm/models/parameters.d.ts.map +0 -1
  145. package/esm/models/parameters.js +0 -104
  146. package/esm/models/parameters.js.map +0 -1
  147. package/esm/operations/index.d.ts.map +0 -1
  148. package/esm/operations/index.js.map +0 -1
  149. package/esm/operations/machineLearningCompute.d.ts +0 -28
  150. package/esm/operations/machineLearningCompute.d.ts.map +0 -1
  151. package/esm/operations/machineLearningCompute.js +0 -50
  152. package/esm/operations/machineLearningCompute.js.map +0 -1
  153. package/esm/operations/operationalizationClusters.d.ts +0 -223
  154. package/esm/operations/operationalizationClusters.d.ts.map +0 -1
  155. package/esm/operations/operationalizationClusters.js +0 -441
  156. package/esm/operations/operationalizationClusters.js.map +0 -1
  157. package/src/machineLearningComputeManagementClientContext.ts +0 -67
  158. package/src/models/operationalizationClustersMappers.ts +0 -39
package/dist/index.js ADDED
@@ -0,0 +1,1821 @@
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 (KnownOperationStatus) {
17
+ KnownOperationStatus["Unknown"] = "Unknown";
18
+ KnownOperationStatus["Updating"] = "Updating";
19
+ KnownOperationStatus["Creating"] = "Creating";
20
+ KnownOperationStatus["Deleting"] = "Deleting";
21
+ KnownOperationStatus["Succeeded"] = "Succeeded";
22
+ KnownOperationStatus["Failed"] = "Failed";
23
+ KnownOperationStatus["Canceled"] = "Canceled";
24
+ })(exports.KnownOperationStatus || (exports.KnownOperationStatus = {}));
25
+ (function (KnownClusterType) {
26
+ KnownClusterType["ACS"] = "ACS";
27
+ KnownClusterType["Local"] = "Local";
28
+ })(exports.KnownClusterType || (exports.KnownClusterType = {}));
29
+ (function (KnownOrchestratorType) {
30
+ KnownOrchestratorType["Kubernetes"] = "Kubernetes";
31
+ KnownOrchestratorType["None"] = "None";
32
+ })(exports.KnownOrchestratorType || (exports.KnownOrchestratorType = {}));
33
+ (function (KnownSystemServiceType) {
34
+ KnownSystemServiceType["None"] = "None";
35
+ KnownSystemServiceType["ScoringFrontEnd"] = "ScoringFrontEnd";
36
+ KnownSystemServiceType["BatchFrontEnd"] = "BatchFrontEnd";
37
+ })(exports.KnownSystemServiceType || (exports.KnownSystemServiceType = {}));
38
+ (function (KnownAgentVMSizeTypes) {
39
+ KnownAgentVMSizeTypes["StandardA0"] = "Standard_A0";
40
+ KnownAgentVMSizeTypes["StandardA1"] = "Standard_A1";
41
+ KnownAgentVMSizeTypes["StandardA2"] = "Standard_A2";
42
+ KnownAgentVMSizeTypes["StandardA3"] = "Standard_A3";
43
+ KnownAgentVMSizeTypes["StandardA4"] = "Standard_A4";
44
+ KnownAgentVMSizeTypes["StandardA5"] = "Standard_A5";
45
+ KnownAgentVMSizeTypes["StandardA6"] = "Standard_A6";
46
+ KnownAgentVMSizeTypes["StandardA7"] = "Standard_A7";
47
+ KnownAgentVMSizeTypes["StandardA8"] = "Standard_A8";
48
+ KnownAgentVMSizeTypes["StandardA9"] = "Standard_A9";
49
+ KnownAgentVMSizeTypes["StandardA10"] = "Standard_A10";
50
+ KnownAgentVMSizeTypes["StandardA11"] = "Standard_A11";
51
+ KnownAgentVMSizeTypes["StandardD1"] = "Standard_D1";
52
+ KnownAgentVMSizeTypes["StandardD2"] = "Standard_D2";
53
+ KnownAgentVMSizeTypes["StandardD3"] = "Standard_D3";
54
+ KnownAgentVMSizeTypes["StandardD4"] = "Standard_D4";
55
+ KnownAgentVMSizeTypes["StandardD11"] = "Standard_D11";
56
+ KnownAgentVMSizeTypes["StandardD12"] = "Standard_D12";
57
+ KnownAgentVMSizeTypes["StandardD13"] = "Standard_D13";
58
+ KnownAgentVMSizeTypes["StandardD14"] = "Standard_D14";
59
+ KnownAgentVMSizeTypes["StandardD1V2"] = "Standard_D1_v2";
60
+ KnownAgentVMSizeTypes["StandardD2V2"] = "Standard_D2_v2";
61
+ KnownAgentVMSizeTypes["StandardD3V2"] = "Standard_D3_v2";
62
+ KnownAgentVMSizeTypes["StandardD4V2"] = "Standard_D4_v2";
63
+ KnownAgentVMSizeTypes["StandardD5V2"] = "Standard_D5_v2";
64
+ KnownAgentVMSizeTypes["StandardD11V2"] = "Standard_D11_v2";
65
+ KnownAgentVMSizeTypes["StandardD12V2"] = "Standard_D12_v2";
66
+ KnownAgentVMSizeTypes["StandardD13V2"] = "Standard_D13_v2";
67
+ KnownAgentVMSizeTypes["StandardD14V2"] = "Standard_D14_v2";
68
+ KnownAgentVMSizeTypes["StandardG1"] = "Standard_G1";
69
+ KnownAgentVMSizeTypes["StandardG2"] = "Standard_G2";
70
+ KnownAgentVMSizeTypes["StandardG3"] = "Standard_G3";
71
+ KnownAgentVMSizeTypes["StandardG4"] = "Standard_G4";
72
+ KnownAgentVMSizeTypes["StandardG5"] = "Standard_G5";
73
+ KnownAgentVMSizeTypes["StandardDS1"] = "Standard_DS1";
74
+ KnownAgentVMSizeTypes["StandardDS2"] = "Standard_DS2";
75
+ KnownAgentVMSizeTypes["StandardDS3"] = "Standard_DS3";
76
+ KnownAgentVMSizeTypes["StandardDS4"] = "Standard_DS4";
77
+ KnownAgentVMSizeTypes["StandardDS11"] = "Standard_DS11";
78
+ KnownAgentVMSizeTypes["StandardDS12"] = "Standard_DS12";
79
+ KnownAgentVMSizeTypes["StandardDS13"] = "Standard_DS13";
80
+ KnownAgentVMSizeTypes["StandardDS14"] = "Standard_DS14";
81
+ KnownAgentVMSizeTypes["StandardGS1"] = "Standard_GS1";
82
+ KnownAgentVMSizeTypes["StandardGS2"] = "Standard_GS2";
83
+ KnownAgentVMSizeTypes["StandardGS3"] = "Standard_GS3";
84
+ KnownAgentVMSizeTypes["StandardGS4"] = "Standard_GS4";
85
+ KnownAgentVMSizeTypes["StandardGS5"] = "Standard_GS5";
86
+ })(exports.KnownAgentVMSizeTypes || (exports.KnownAgentVMSizeTypes = {}));
87
+ (function (KnownStatus) {
88
+ KnownStatus["Enabled"] = "Enabled";
89
+ KnownStatus["Disabled"] = "Disabled";
90
+ })(exports.KnownStatus || (exports.KnownStatus = {}));
91
+ (function (KnownUpdatesAvailable) {
92
+ KnownUpdatesAvailable["Yes"] = "Yes";
93
+ KnownUpdatesAvailable["No"] = "No";
94
+ })(exports.KnownUpdatesAvailable || (exports.KnownUpdatesAvailable = {}));
95
+
96
+ /*
97
+ * Copyright (c) Microsoft Corporation.
98
+ * Licensed under the MIT License.
99
+ *
100
+ * Code generated by Microsoft (R) AutoRest Code Generator.
101
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
102
+ */
103
+ const ErrorResponseWrapper = {
104
+ type: {
105
+ name: "Composite",
106
+ className: "ErrorResponseWrapper",
107
+ modelProperties: {
108
+ error: {
109
+ serializedName: "error",
110
+ type: {
111
+ name: "Composite",
112
+ className: "ErrorResponse"
113
+ }
114
+ }
115
+ }
116
+ }
117
+ };
118
+ const ErrorResponse = {
119
+ type: {
120
+ name: "Composite",
121
+ className: "ErrorResponse",
122
+ modelProperties: {
123
+ code: {
124
+ serializedName: "code",
125
+ required: true,
126
+ type: {
127
+ name: "String"
128
+ }
129
+ },
130
+ message: {
131
+ serializedName: "message",
132
+ required: true,
133
+ type: {
134
+ name: "String"
135
+ }
136
+ },
137
+ details: {
138
+ serializedName: "details",
139
+ type: {
140
+ name: "Sequence",
141
+ element: {
142
+ type: {
143
+ name: "Composite",
144
+ className: "ErrorDetail"
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ };
152
+ const ErrorDetail = {
153
+ type: {
154
+ name: "Composite",
155
+ className: "ErrorDetail",
156
+ modelProperties: {
157
+ code: {
158
+ serializedName: "code",
159
+ required: true,
160
+ type: {
161
+ name: "String"
162
+ }
163
+ },
164
+ message: {
165
+ serializedName: "message",
166
+ required: true,
167
+ type: {
168
+ name: "String"
169
+ }
170
+ }
171
+ }
172
+ }
173
+ };
174
+ const StorageAccountProperties = {
175
+ type: {
176
+ name: "Composite",
177
+ className: "StorageAccountProperties",
178
+ modelProperties: {
179
+ resourceId: {
180
+ serializedName: "resourceId",
181
+ type: {
182
+ name: "String"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ };
188
+ const ContainerRegistryProperties = {
189
+ type: {
190
+ name: "Composite",
191
+ className: "ContainerRegistryProperties",
192
+ modelProperties: {
193
+ resourceId: {
194
+ serializedName: "resourceId",
195
+ type: {
196
+ name: "String"
197
+ }
198
+ }
199
+ }
200
+ }
201
+ };
202
+ const AcsClusterProperties = {
203
+ type: {
204
+ name: "Composite",
205
+ className: "AcsClusterProperties",
206
+ modelProperties: {
207
+ clusterFqdn: {
208
+ serializedName: "clusterFqdn",
209
+ readOnly: true,
210
+ type: {
211
+ name: "String"
212
+ }
213
+ },
214
+ orchestratorType: {
215
+ serializedName: "orchestratorType",
216
+ required: true,
217
+ type: {
218
+ name: "String"
219
+ }
220
+ },
221
+ orchestratorProperties: {
222
+ serializedName: "orchestratorProperties",
223
+ type: {
224
+ name: "Composite",
225
+ className: "KubernetesClusterProperties"
226
+ }
227
+ },
228
+ systemServices: {
229
+ serializedName: "systemServices",
230
+ type: {
231
+ name: "Sequence",
232
+ element: {
233
+ type: {
234
+ name: "Composite",
235
+ className: "SystemService"
236
+ }
237
+ }
238
+ }
239
+ },
240
+ masterCount: {
241
+ defaultValue: 1,
242
+ constraints: {
243
+ InclusiveMaximum: 5,
244
+ InclusiveMinimum: 1
245
+ },
246
+ serializedName: "masterCount",
247
+ type: {
248
+ name: "Number"
249
+ }
250
+ },
251
+ agentCount: {
252
+ defaultValue: 2,
253
+ constraints: {
254
+ InclusiveMaximum: 100,
255
+ InclusiveMinimum: 1
256
+ },
257
+ serializedName: "agentCount",
258
+ type: {
259
+ name: "Number"
260
+ }
261
+ },
262
+ agentVmSize: {
263
+ defaultValue: "Standard_D3_v2",
264
+ serializedName: "agentVmSize",
265
+ type: {
266
+ name: "String"
267
+ }
268
+ }
269
+ }
270
+ }
271
+ };
272
+ const KubernetesClusterProperties = {
273
+ serializedName: "Kubernetes",
274
+ type: {
275
+ name: "Composite",
276
+ className: "KubernetesClusterProperties",
277
+ modelProperties: {
278
+ servicePrincipal: {
279
+ serializedName: "servicePrincipal",
280
+ type: {
281
+ name: "Composite",
282
+ className: "ServicePrincipalProperties"
283
+ }
284
+ }
285
+ }
286
+ }
287
+ };
288
+ const ServicePrincipalProperties = {
289
+ type: {
290
+ name: "Composite",
291
+ className: "ServicePrincipalProperties",
292
+ modelProperties: {
293
+ clientId: {
294
+ serializedName: "clientId",
295
+ required: true,
296
+ type: {
297
+ name: "String"
298
+ }
299
+ },
300
+ secret: {
301
+ serializedName: "secret",
302
+ required: true,
303
+ type: {
304
+ name: "String"
305
+ }
306
+ }
307
+ }
308
+ }
309
+ };
310
+ const SystemService = {
311
+ type: {
312
+ name: "Composite",
313
+ className: "SystemService",
314
+ modelProperties: {
315
+ systemServiceType: {
316
+ serializedName: "systemServiceType",
317
+ required: true,
318
+ type: {
319
+ name: "String"
320
+ }
321
+ },
322
+ publicIpAddress: {
323
+ serializedName: "publicIpAddress",
324
+ readOnly: true,
325
+ type: {
326
+ name: "String"
327
+ }
328
+ },
329
+ version: {
330
+ serializedName: "version",
331
+ readOnly: true,
332
+ type: {
333
+ name: "String"
334
+ }
335
+ }
336
+ }
337
+ }
338
+ };
339
+ const AppInsightsProperties = {
340
+ type: {
341
+ name: "Composite",
342
+ className: "AppInsightsProperties",
343
+ modelProperties: {
344
+ resourceId: {
345
+ serializedName: "resourceId",
346
+ type: {
347
+ name: "String"
348
+ }
349
+ }
350
+ }
351
+ }
352
+ };
353
+ const GlobalServiceConfiguration = {
354
+ type: {
355
+ name: "Composite",
356
+ className: "GlobalServiceConfiguration",
357
+ additionalProperties: { type: { name: "Object" } },
358
+ modelProperties: {
359
+ etag: {
360
+ serializedName: "etag",
361
+ type: {
362
+ name: "String"
363
+ }
364
+ },
365
+ ssl: {
366
+ serializedName: "ssl",
367
+ type: {
368
+ name: "Composite",
369
+ className: "SslConfiguration"
370
+ }
371
+ },
372
+ serviceAuth: {
373
+ serializedName: "serviceAuth",
374
+ type: {
375
+ name: "Composite",
376
+ className: "ServiceAuthConfiguration"
377
+ }
378
+ },
379
+ autoScale: {
380
+ serializedName: "autoScale",
381
+ type: {
382
+ name: "Composite",
383
+ className: "AutoScaleConfiguration"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ };
389
+ const SslConfiguration = {
390
+ type: {
391
+ name: "Composite",
392
+ className: "SslConfiguration",
393
+ modelProperties: {
394
+ status: {
395
+ serializedName: "status",
396
+ type: {
397
+ name: "String"
398
+ }
399
+ },
400
+ cert: {
401
+ serializedName: "cert",
402
+ type: {
403
+ name: "String"
404
+ }
405
+ },
406
+ key: {
407
+ serializedName: "key",
408
+ type: {
409
+ name: "String"
410
+ }
411
+ },
412
+ cname: {
413
+ serializedName: "cname",
414
+ type: {
415
+ name: "String"
416
+ }
417
+ }
418
+ }
419
+ }
420
+ };
421
+ const ServiceAuthConfiguration = {
422
+ type: {
423
+ name: "Composite",
424
+ className: "ServiceAuthConfiguration",
425
+ modelProperties: {
426
+ primaryAuthKeyHash: {
427
+ serializedName: "primaryAuthKeyHash",
428
+ required: true,
429
+ type: {
430
+ name: "String"
431
+ }
432
+ },
433
+ secondaryAuthKeyHash: {
434
+ serializedName: "secondaryAuthKeyHash",
435
+ required: true,
436
+ type: {
437
+ name: "String"
438
+ }
439
+ }
440
+ }
441
+ }
442
+ };
443
+ const AutoScaleConfiguration = {
444
+ type: {
445
+ name: "Composite",
446
+ className: "AutoScaleConfiguration",
447
+ modelProperties: {
448
+ status: {
449
+ serializedName: "status",
450
+ type: {
451
+ name: "String"
452
+ }
453
+ },
454
+ minReplicas: {
455
+ defaultValue: 1,
456
+ constraints: {
457
+ InclusiveMinimum: 1
458
+ },
459
+ serializedName: "minReplicas",
460
+ type: {
461
+ name: "Number"
462
+ }
463
+ },
464
+ maxReplicas: {
465
+ defaultValue: 100,
466
+ constraints: {
467
+ InclusiveMinimum: 1
468
+ },
469
+ serializedName: "maxReplicas",
470
+ type: {
471
+ name: "Number"
472
+ }
473
+ },
474
+ targetUtilization: {
475
+ serializedName: "targetUtilization",
476
+ type: {
477
+ name: "Number"
478
+ }
479
+ },
480
+ refreshPeriodInSeconds: {
481
+ serializedName: "refreshPeriodInSeconds",
482
+ type: {
483
+ name: "Number"
484
+ }
485
+ }
486
+ }
487
+ }
488
+ };
489
+ const Resource = {
490
+ type: {
491
+ name: "Composite",
492
+ className: "Resource",
493
+ modelProperties: {
494
+ id: {
495
+ serializedName: "id",
496
+ readOnly: true,
497
+ type: {
498
+ name: "String"
499
+ }
500
+ },
501
+ name: {
502
+ serializedName: "name",
503
+ readOnly: true,
504
+ type: {
505
+ name: "String"
506
+ }
507
+ },
508
+ location: {
509
+ serializedName: "location",
510
+ required: true,
511
+ type: {
512
+ name: "String"
513
+ }
514
+ },
515
+ type: {
516
+ serializedName: "type",
517
+ readOnly: true,
518
+ type: {
519
+ name: "String"
520
+ }
521
+ },
522
+ tags: {
523
+ serializedName: "tags",
524
+ type: {
525
+ name: "Dictionary",
526
+ value: { type: { name: "String" } }
527
+ }
528
+ }
529
+ }
530
+ }
531
+ };
532
+ const OperationalizationClusterUpdateParameters = {
533
+ type: {
534
+ name: "Composite",
535
+ className: "OperationalizationClusterUpdateParameters",
536
+ modelProperties: {
537
+ tags: {
538
+ serializedName: "tags",
539
+ type: {
540
+ name: "Dictionary",
541
+ value: { type: { name: "String" } }
542
+ }
543
+ }
544
+ }
545
+ }
546
+ };
547
+ const OperationalizationClusterCredentials = {
548
+ type: {
549
+ name: "Composite",
550
+ className: "OperationalizationClusterCredentials",
551
+ modelProperties: {
552
+ storageAccount: {
553
+ serializedName: "storageAccount",
554
+ type: {
555
+ name: "Composite",
556
+ className: "StorageAccountCredentials"
557
+ }
558
+ },
559
+ containerRegistry: {
560
+ serializedName: "containerRegistry",
561
+ type: {
562
+ name: "Composite",
563
+ className: "ContainerRegistryCredentials"
564
+ }
565
+ },
566
+ containerService: {
567
+ serializedName: "containerService",
568
+ type: {
569
+ name: "Composite",
570
+ className: "ContainerServiceCredentials"
571
+ }
572
+ },
573
+ appInsights: {
574
+ serializedName: "appInsights",
575
+ type: {
576
+ name: "Composite",
577
+ className: "AppInsightsCredentials"
578
+ }
579
+ },
580
+ serviceAuthConfiguration: {
581
+ serializedName: "serviceAuthConfiguration",
582
+ type: {
583
+ name: "Composite",
584
+ className: "ServiceAuthConfiguration"
585
+ }
586
+ },
587
+ sslConfiguration: {
588
+ serializedName: "sslConfiguration",
589
+ type: {
590
+ name: "Composite",
591
+ className: "SslConfiguration"
592
+ }
593
+ }
594
+ }
595
+ }
596
+ };
597
+ const StorageAccountCredentials = {
598
+ type: {
599
+ name: "Composite",
600
+ className: "StorageAccountCredentials",
601
+ modelProperties: {
602
+ resourceId: {
603
+ serializedName: "resourceId",
604
+ readOnly: true,
605
+ type: {
606
+ name: "String"
607
+ }
608
+ },
609
+ primaryKey: {
610
+ serializedName: "primaryKey",
611
+ readOnly: true,
612
+ type: {
613
+ name: "String"
614
+ }
615
+ },
616
+ secondaryKey: {
617
+ serializedName: "secondaryKey",
618
+ readOnly: true,
619
+ type: {
620
+ name: "String"
621
+ }
622
+ }
623
+ }
624
+ }
625
+ };
626
+ const ContainerRegistryCredentials = {
627
+ type: {
628
+ name: "Composite",
629
+ className: "ContainerRegistryCredentials",
630
+ modelProperties: {
631
+ loginServer: {
632
+ serializedName: "loginServer",
633
+ readOnly: true,
634
+ type: {
635
+ name: "String"
636
+ }
637
+ },
638
+ password: {
639
+ serializedName: "password",
640
+ readOnly: true,
641
+ type: {
642
+ name: "String"
643
+ }
644
+ },
645
+ password2: {
646
+ serializedName: "password2",
647
+ readOnly: true,
648
+ type: {
649
+ name: "String"
650
+ }
651
+ },
652
+ username: {
653
+ serializedName: "username",
654
+ readOnly: true,
655
+ type: {
656
+ name: "String"
657
+ }
658
+ }
659
+ }
660
+ }
661
+ };
662
+ const ContainerServiceCredentials = {
663
+ type: {
664
+ name: "Composite",
665
+ className: "ContainerServiceCredentials",
666
+ modelProperties: {
667
+ acsKubeConfig: {
668
+ serializedName: "acsKubeConfig",
669
+ readOnly: true,
670
+ type: {
671
+ name: "String"
672
+ }
673
+ },
674
+ servicePrincipalConfiguration: {
675
+ serializedName: "servicePrincipalConfiguration",
676
+ type: {
677
+ name: "Composite",
678
+ className: "ServicePrincipalProperties"
679
+ }
680
+ },
681
+ imagePullSecretName: {
682
+ serializedName: "imagePullSecretName",
683
+ readOnly: true,
684
+ type: {
685
+ name: "String"
686
+ }
687
+ }
688
+ }
689
+ }
690
+ };
691
+ const AppInsightsCredentials = {
692
+ type: {
693
+ name: "Composite",
694
+ className: "AppInsightsCredentials",
695
+ modelProperties: {
696
+ appId: {
697
+ serializedName: "appId",
698
+ type: {
699
+ name: "String"
700
+ }
701
+ },
702
+ instrumentationKey: {
703
+ serializedName: "instrumentationKey",
704
+ type: {
705
+ name: "String"
706
+ }
707
+ }
708
+ }
709
+ }
710
+ };
711
+ const CheckSystemServicesUpdatesAvailableResponse = {
712
+ type: {
713
+ name: "Composite",
714
+ className: "CheckSystemServicesUpdatesAvailableResponse",
715
+ modelProperties: {
716
+ updatesAvailable: {
717
+ serializedName: "updatesAvailable",
718
+ readOnly: true,
719
+ type: {
720
+ name: "String"
721
+ }
722
+ }
723
+ }
724
+ }
725
+ };
726
+ const UpdateSystemServicesResponse = {
727
+ type: {
728
+ name: "Composite",
729
+ className: "UpdateSystemServicesResponse",
730
+ modelProperties: {
731
+ updateStatus: {
732
+ serializedName: "updateStatus",
733
+ readOnly: true,
734
+ type: {
735
+ name: "String"
736
+ }
737
+ },
738
+ updateStartedOn: {
739
+ serializedName: "updateStartedOn",
740
+ readOnly: true,
741
+ type: {
742
+ name: "DateTime"
743
+ }
744
+ },
745
+ updateCompletedOn: {
746
+ serializedName: "updateCompletedOn",
747
+ readOnly: true,
748
+ type: {
749
+ name: "DateTime"
750
+ }
751
+ }
752
+ }
753
+ }
754
+ };
755
+ const PaginatedOperationalizationClustersList = {
756
+ type: {
757
+ name: "Composite",
758
+ className: "PaginatedOperationalizationClustersList",
759
+ modelProperties: {
760
+ value: {
761
+ serializedName: "value",
762
+ type: {
763
+ name: "Sequence",
764
+ element: {
765
+ type: {
766
+ name: "Composite",
767
+ className: "OperationalizationCluster"
768
+ }
769
+ }
770
+ }
771
+ },
772
+ nextLink: {
773
+ serializedName: "nextLink",
774
+ type: {
775
+ name: "String"
776
+ }
777
+ }
778
+ }
779
+ }
780
+ };
781
+ const AvailableOperations = {
782
+ type: {
783
+ name: "Composite",
784
+ className: "AvailableOperations",
785
+ modelProperties: {
786
+ value: {
787
+ serializedName: "value",
788
+ type: {
789
+ name: "Sequence",
790
+ element: {
791
+ type: {
792
+ name: "Composite",
793
+ className: "ResourceOperation"
794
+ }
795
+ }
796
+ }
797
+ }
798
+ }
799
+ }
800
+ };
801
+ const ResourceOperation = {
802
+ type: {
803
+ name: "Composite",
804
+ className: "ResourceOperation",
805
+ modelProperties: {
806
+ name: {
807
+ serializedName: "name",
808
+ type: {
809
+ name: "String"
810
+ }
811
+ },
812
+ display: {
813
+ serializedName: "display",
814
+ type: {
815
+ name: "Composite",
816
+ className: "ResourceOperationDisplay"
817
+ }
818
+ },
819
+ origin: {
820
+ serializedName: "origin",
821
+ type: {
822
+ name: "String"
823
+ }
824
+ }
825
+ }
826
+ }
827
+ };
828
+ const ResourceOperationDisplay = {
829
+ type: {
830
+ name: "Composite",
831
+ className: "ResourceOperationDisplay",
832
+ modelProperties: {
833
+ provider: {
834
+ serializedName: "provider",
835
+ type: {
836
+ name: "String"
837
+ }
838
+ },
839
+ resource: {
840
+ serializedName: "resource",
841
+ type: {
842
+ name: "String"
843
+ }
844
+ },
845
+ operation: {
846
+ serializedName: "operation",
847
+ type: {
848
+ name: "String"
849
+ }
850
+ },
851
+ description: {
852
+ serializedName: "description",
853
+ type: {
854
+ name: "String"
855
+ }
856
+ }
857
+ }
858
+ }
859
+ };
860
+ const OperationalizationCluster = {
861
+ type: {
862
+ name: "Composite",
863
+ className: "OperationalizationCluster",
864
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { description: {
865
+ serializedName: "properties.description",
866
+ type: {
867
+ name: "String"
868
+ }
869
+ }, createdOn: {
870
+ serializedName: "properties.createdOn",
871
+ readOnly: true,
872
+ type: {
873
+ name: "DateTime"
874
+ }
875
+ }, modifiedOn: {
876
+ serializedName: "properties.modifiedOn",
877
+ readOnly: true,
878
+ type: {
879
+ name: "DateTime"
880
+ }
881
+ }, provisioningState: {
882
+ serializedName: "properties.provisioningState",
883
+ readOnly: true,
884
+ type: {
885
+ name: "String"
886
+ }
887
+ }, provisioningErrors: {
888
+ serializedName: "properties.provisioningErrors",
889
+ readOnly: true,
890
+ type: {
891
+ name: "Sequence",
892
+ element: {
893
+ type: {
894
+ name: "Composite",
895
+ className: "ErrorResponseWrapper"
896
+ }
897
+ }
898
+ }
899
+ }, clusterType: {
900
+ serializedName: "properties.clusterType",
901
+ type: {
902
+ name: "String"
903
+ }
904
+ }, storageAccount: {
905
+ serializedName: "properties.storageAccount",
906
+ type: {
907
+ name: "Composite",
908
+ className: "StorageAccountProperties"
909
+ }
910
+ }, containerRegistry: {
911
+ serializedName: "properties.containerRegistry",
912
+ type: {
913
+ name: "Composite",
914
+ className: "ContainerRegistryProperties"
915
+ }
916
+ }, containerService: {
917
+ serializedName: "properties.containerService",
918
+ type: {
919
+ name: "Composite",
920
+ className: "AcsClusterProperties"
921
+ }
922
+ }, appInsights: {
923
+ serializedName: "properties.appInsights",
924
+ type: {
925
+ name: "Composite",
926
+ className: "AppInsightsProperties"
927
+ }
928
+ }, globalServiceConfiguration: {
929
+ serializedName: "properties.globalServiceConfiguration",
930
+ type: {
931
+ name: "Composite",
932
+ className: "GlobalServiceConfiguration"
933
+ }
934
+ } })
935
+ }
936
+ };
937
+ const OperationalizationClustersDeleteHeaders = {
938
+ type: {
939
+ name: "Composite",
940
+ className: "OperationalizationClustersDeleteHeaders",
941
+ modelProperties: {
942
+ location: {
943
+ serializedName: "location",
944
+ type: {
945
+ name: "String"
946
+ }
947
+ }
948
+ }
949
+ }
950
+ };
951
+ const OperationalizationClustersUpdateSystemServicesHeaders = {
952
+ type: {
953
+ name: "Composite",
954
+ className: "OperationalizationClustersUpdateSystemServicesHeaders",
955
+ modelProperties: {
956
+ location: {
957
+ serializedName: "location",
958
+ type: {
959
+ name: "String"
960
+ }
961
+ }
962
+ }
963
+ }
964
+ };
965
+
966
+ var Mappers = /*#__PURE__*/Object.freeze({
967
+ __proto__: null,
968
+ ErrorResponseWrapper: ErrorResponseWrapper,
969
+ ErrorResponse: ErrorResponse,
970
+ ErrorDetail: ErrorDetail,
971
+ StorageAccountProperties: StorageAccountProperties,
972
+ ContainerRegistryProperties: ContainerRegistryProperties,
973
+ AcsClusterProperties: AcsClusterProperties,
974
+ KubernetesClusterProperties: KubernetesClusterProperties,
975
+ ServicePrincipalProperties: ServicePrincipalProperties,
976
+ SystemService: SystemService,
977
+ AppInsightsProperties: AppInsightsProperties,
978
+ GlobalServiceConfiguration: GlobalServiceConfiguration,
979
+ SslConfiguration: SslConfiguration,
980
+ ServiceAuthConfiguration: ServiceAuthConfiguration,
981
+ AutoScaleConfiguration: AutoScaleConfiguration,
982
+ Resource: Resource,
983
+ OperationalizationClusterUpdateParameters: OperationalizationClusterUpdateParameters,
984
+ OperationalizationClusterCredentials: OperationalizationClusterCredentials,
985
+ StorageAccountCredentials: StorageAccountCredentials,
986
+ ContainerRegistryCredentials: ContainerRegistryCredentials,
987
+ ContainerServiceCredentials: ContainerServiceCredentials,
988
+ AppInsightsCredentials: AppInsightsCredentials,
989
+ CheckSystemServicesUpdatesAvailableResponse: CheckSystemServicesUpdatesAvailableResponse,
990
+ UpdateSystemServicesResponse: UpdateSystemServicesResponse,
991
+ PaginatedOperationalizationClustersList: PaginatedOperationalizationClustersList,
992
+ AvailableOperations: AvailableOperations,
993
+ ResourceOperation: ResourceOperation,
994
+ ResourceOperationDisplay: ResourceOperationDisplay,
995
+ OperationalizationCluster: OperationalizationCluster,
996
+ OperationalizationClustersDeleteHeaders: OperationalizationClustersDeleteHeaders,
997
+ OperationalizationClustersUpdateSystemServicesHeaders: OperationalizationClustersUpdateSystemServicesHeaders
998
+ });
999
+
1000
+ /*
1001
+ * Copyright (c) Microsoft Corporation.
1002
+ * Licensed under the MIT License.
1003
+ *
1004
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1005
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1006
+ */
1007
+ const contentType = {
1008
+ parameterPath: ["options", "contentType"],
1009
+ mapper: {
1010
+ defaultValue: "application/json",
1011
+ isConstant: true,
1012
+ serializedName: "Content-Type",
1013
+ type: {
1014
+ name: "String"
1015
+ }
1016
+ }
1017
+ };
1018
+ const parameters = {
1019
+ parameterPath: "parameters",
1020
+ mapper: OperationalizationCluster
1021
+ };
1022
+ const accept = {
1023
+ parameterPath: "accept",
1024
+ mapper: {
1025
+ defaultValue: "application/json",
1026
+ isConstant: true,
1027
+ serializedName: "Accept",
1028
+ type: {
1029
+ name: "String"
1030
+ }
1031
+ }
1032
+ };
1033
+ const $host = {
1034
+ parameterPath: "$host",
1035
+ mapper: {
1036
+ serializedName: "$host",
1037
+ required: true,
1038
+ type: {
1039
+ name: "String"
1040
+ }
1041
+ },
1042
+ skipEncoding: true
1043
+ };
1044
+ const apiVersion = {
1045
+ parameterPath: "apiVersion",
1046
+ mapper: {
1047
+ defaultValue: "2017-08-01-preview",
1048
+ isConstant: true,
1049
+ serializedName: "api-version",
1050
+ type: {
1051
+ name: "String"
1052
+ }
1053
+ }
1054
+ };
1055
+ const subscriptionId = {
1056
+ parameterPath: "subscriptionId",
1057
+ mapper: {
1058
+ serializedName: "subscriptionId",
1059
+ required: true,
1060
+ type: {
1061
+ name: "String"
1062
+ }
1063
+ }
1064
+ };
1065
+ const resourceGroupName = {
1066
+ parameterPath: "resourceGroupName",
1067
+ mapper: {
1068
+ constraints: {
1069
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
1070
+ MaxLength: 90,
1071
+ MinLength: 1
1072
+ },
1073
+ serializedName: "resourceGroupName",
1074
+ required: true,
1075
+ type: {
1076
+ name: "String"
1077
+ }
1078
+ }
1079
+ };
1080
+ const clusterName = {
1081
+ parameterPath: "clusterName",
1082
+ mapper: {
1083
+ constraints: {
1084
+ Pattern: new RegExp("^[a-zA-Z][-\\w\\._\\(\\)]+[a-zA-Z0-9]$"),
1085
+ MaxLength: 90,
1086
+ MinLength: 1
1087
+ },
1088
+ serializedName: "clusterName",
1089
+ required: true,
1090
+ type: {
1091
+ name: "String"
1092
+ }
1093
+ }
1094
+ };
1095
+ const parameters1 = {
1096
+ parameterPath: "parameters",
1097
+ mapper: OperationalizationClusterUpdateParameters
1098
+ };
1099
+ const deleteAll = {
1100
+ parameterPath: ["options", "deleteAll"],
1101
+ mapper: {
1102
+ serializedName: "deleteAll",
1103
+ type: {
1104
+ name: "Boolean"
1105
+ }
1106
+ }
1107
+ };
1108
+ const skiptoken = {
1109
+ parameterPath: ["options", "skiptoken"],
1110
+ mapper: {
1111
+ serializedName: "$skiptoken",
1112
+ type: {
1113
+ name: "String"
1114
+ }
1115
+ }
1116
+ };
1117
+ const nextLink = {
1118
+ parameterPath: "nextLink",
1119
+ mapper: {
1120
+ serializedName: "nextLink",
1121
+ required: true,
1122
+ type: {
1123
+ name: "String"
1124
+ }
1125
+ },
1126
+ skipEncoding: true
1127
+ };
1128
+
1129
+ /*
1130
+ * Copyright (c) Microsoft Corporation.
1131
+ * Licensed under the MIT License.
1132
+ *
1133
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1134
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1135
+ */
1136
+ class LroImpl {
1137
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1138
+ this.sendOperationFn = sendOperationFn;
1139
+ this.args = args;
1140
+ this.spec = spec;
1141
+ this.requestPath = requestPath;
1142
+ this.requestMethod = requestMethod;
1143
+ }
1144
+ sendInitialRequest() {
1145
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1146
+ return this.sendOperationFn(this.args, this.spec);
1147
+ });
1148
+ }
1149
+ sendPollRequest(path) {
1150
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1151
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1152
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1153
+ });
1154
+ }
1155
+ }
1156
+
1157
+ /*
1158
+ * Copyright (c) Microsoft Corporation.
1159
+ * Licensed under the MIT License.
1160
+ *
1161
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1162
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1163
+ */
1164
+ /// <reference lib="esnext.asynciterable" />
1165
+ /** Class containing OperationalizationClusters operations. */
1166
+ class OperationalizationClustersImpl {
1167
+ /**
1168
+ * Initialize a new instance of the class OperationalizationClusters class.
1169
+ * @param client Reference to the service client
1170
+ */
1171
+ constructor(client) {
1172
+ this.client = client;
1173
+ }
1174
+ /**
1175
+ * Gets the clusters in the specified resource group.
1176
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1177
+ * @param options The options parameters.
1178
+ */
1179
+ listByResourceGroup(resourceGroupName, options) {
1180
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1181
+ return {
1182
+ next() {
1183
+ return iter.next();
1184
+ },
1185
+ [Symbol.asyncIterator]() {
1186
+ return this;
1187
+ },
1188
+ byPage: () => {
1189
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
1190
+ }
1191
+ };
1192
+ }
1193
+ listByResourceGroupPagingPage(resourceGroupName, options) {
1194
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1195
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1196
+ yield yield tslib.__await(result.value || []);
1197
+ let continuationToken = result.nextLink;
1198
+ while (continuationToken) {
1199
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1200
+ continuationToken = result.nextLink;
1201
+ yield yield tslib.__await(result.value || []);
1202
+ }
1203
+ });
1204
+ }
1205
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1206
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1207
+ var e_1, _a;
1208
+ try {
1209
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1210
+ const page = _c.value;
1211
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1212
+ }
1213
+ }
1214
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1215
+ finally {
1216
+ try {
1217
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1218
+ }
1219
+ finally { if (e_1) throw e_1.error; }
1220
+ }
1221
+ });
1222
+ }
1223
+ /**
1224
+ * Gets the operationalization clusters in the specified subscription.
1225
+ * @param options The options parameters.
1226
+ */
1227
+ listBySubscriptionId(options) {
1228
+ const iter = this.listBySubscriptionIdPagingAll(options);
1229
+ return {
1230
+ next() {
1231
+ return iter.next();
1232
+ },
1233
+ [Symbol.asyncIterator]() {
1234
+ return this;
1235
+ },
1236
+ byPage: () => {
1237
+ return this.listBySubscriptionIdPagingPage(options);
1238
+ }
1239
+ };
1240
+ }
1241
+ listBySubscriptionIdPagingPage(options) {
1242
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
1243
+ let result = yield tslib.__await(this._listBySubscriptionId(options));
1244
+ yield yield tslib.__await(result.value || []);
1245
+ let continuationToken = result.nextLink;
1246
+ while (continuationToken) {
1247
+ result = yield tslib.__await(this._listBySubscriptionIdNext(continuationToken, options));
1248
+ continuationToken = result.nextLink;
1249
+ yield yield tslib.__await(result.value || []);
1250
+ }
1251
+ });
1252
+ }
1253
+ listBySubscriptionIdPagingAll(options) {
1254
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingAll_1() {
1255
+ var e_2, _a;
1256
+ try {
1257
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionIdPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1258
+ const page = _c.value;
1259
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1260
+ }
1261
+ }
1262
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1263
+ finally {
1264
+ try {
1265
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1266
+ }
1267
+ finally { if (e_2) throw e_2.error; }
1268
+ }
1269
+ });
1270
+ }
1271
+ /**
1272
+ * Create or update an operationalization cluster.
1273
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1274
+ * @param clusterName The name of the cluster.
1275
+ * @param parameters Parameters supplied to create or update an Operationalization cluster.
1276
+ * @param options The options parameters.
1277
+ */
1278
+ beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options) {
1279
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1280
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1281
+ return this.client.sendOperationRequest(args, spec);
1282
+ });
1283
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1284
+ var _a;
1285
+ let currentRawResponse = undefined;
1286
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1287
+ const callback = (rawResponse, flatResponse) => {
1288
+ currentRawResponse = rawResponse;
1289
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1290
+ };
1291
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1292
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1293
+ return {
1294
+ flatResponse,
1295
+ rawResponse: {
1296
+ statusCode: currentRawResponse.status,
1297
+ body: currentRawResponse.parsedBody,
1298
+ headers: currentRawResponse.headers.toJSON()
1299
+ }
1300
+ };
1301
+ });
1302
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOrUpdateOperationSpec);
1303
+ return new coreLro.LroEngine(lro, {
1304
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1305
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1306
+ });
1307
+ });
1308
+ }
1309
+ /**
1310
+ * Create or update an operationalization cluster.
1311
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1312
+ * @param clusterName The name of the cluster.
1313
+ * @param parameters Parameters supplied to create or update an Operationalization cluster.
1314
+ * @param options The options parameters.
1315
+ */
1316
+ beginCreateOrUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
1317
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1318
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options);
1319
+ return poller.pollUntilDone();
1320
+ });
1321
+ }
1322
+ /**
1323
+ * Gets the operationalization cluster resource view. Note that the credentials are not returned by
1324
+ * this call. Call ListKeys to get them.
1325
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1326
+ * @param clusterName The name of the cluster.
1327
+ * @param options The options parameters.
1328
+ */
1329
+ get(resourceGroupName, clusterName, options) {
1330
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec);
1331
+ }
1332
+ /**
1333
+ * The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update
1334
+ * other properties.
1335
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1336
+ * @param clusterName The name of the cluster.
1337
+ * @param parameters The parameters supplied to patch the cluster.
1338
+ * @param options The options parameters.
1339
+ */
1340
+ update(resourceGroupName, clusterName, parameters, options) {
1341
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, parameters, options }, updateOperationSpec);
1342
+ }
1343
+ /**
1344
+ * Deletes the specified cluster.
1345
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1346
+ * @param clusterName The name of the cluster.
1347
+ * @param options The options parameters.
1348
+ */
1349
+ beginDelete(resourceGroupName, clusterName, options) {
1350
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1351
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1352
+ return this.client.sendOperationRequest(args, spec);
1353
+ });
1354
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1355
+ var _a;
1356
+ let currentRawResponse = undefined;
1357
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1358
+ const callback = (rawResponse, flatResponse) => {
1359
+ currentRawResponse = rawResponse;
1360
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1361
+ };
1362
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1363
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1364
+ return {
1365
+ flatResponse,
1366
+ rawResponse: {
1367
+ statusCode: currentRawResponse.status,
1368
+ body: currentRawResponse.parsedBody,
1369
+ headers: currentRawResponse.headers.toJSON()
1370
+ }
1371
+ };
1372
+ });
1373
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
1374
+ return new coreLro.LroEngine(lro, {
1375
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1376
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1377
+ });
1378
+ });
1379
+ }
1380
+ /**
1381
+ * Deletes the specified cluster.
1382
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1383
+ * @param clusterName The name of the cluster.
1384
+ * @param options The options parameters.
1385
+ */
1386
+ beginDeleteAndWait(resourceGroupName, clusterName, options) {
1387
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1388
+ const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
1389
+ return poller.pollUntilDone();
1390
+ });
1391
+ }
1392
+ /**
1393
+ * Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a
1394
+ * long running operation because it fetches keys from dependencies.
1395
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1396
+ * @param clusterName The name of the cluster.
1397
+ * @param options The options parameters.
1398
+ */
1399
+ listKeys(resourceGroupName, clusterName, options) {
1400
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listKeysOperationSpec);
1401
+ }
1402
+ /**
1403
+ * Checks if updates are available for system services in the cluster.
1404
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1405
+ * @param clusterName The name of the cluster.
1406
+ * @param options The options parameters.
1407
+ */
1408
+ checkSystemServicesUpdatesAvailable(resourceGroupName, clusterName, options) {
1409
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, checkSystemServicesUpdatesAvailableOperationSpec);
1410
+ }
1411
+ /**
1412
+ * Updates system services in a cluster.
1413
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1414
+ * @param clusterName The name of the cluster.
1415
+ * @param options The options parameters.
1416
+ */
1417
+ beginUpdateSystemServices(resourceGroupName, clusterName, options) {
1418
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1419
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1420
+ return this.client.sendOperationRequest(args, spec);
1421
+ });
1422
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1423
+ var _a;
1424
+ let currentRawResponse = undefined;
1425
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1426
+ const callback = (rawResponse, flatResponse) => {
1427
+ currentRawResponse = rawResponse;
1428
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1429
+ };
1430
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1431
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1432
+ return {
1433
+ flatResponse,
1434
+ rawResponse: {
1435
+ statusCode: currentRawResponse.status,
1436
+ body: currentRawResponse.parsedBody,
1437
+ headers: currentRawResponse.headers.toJSON()
1438
+ }
1439
+ };
1440
+ });
1441
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, updateSystemServicesOperationSpec);
1442
+ return new coreLro.LroEngine(lro, {
1443
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1444
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1445
+ });
1446
+ });
1447
+ }
1448
+ /**
1449
+ * Updates system services in a cluster.
1450
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1451
+ * @param clusterName The name of the cluster.
1452
+ * @param options The options parameters.
1453
+ */
1454
+ beginUpdateSystemServicesAndWait(resourceGroupName, clusterName, options) {
1455
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1456
+ const poller = yield this.beginUpdateSystemServices(resourceGroupName, clusterName, options);
1457
+ return poller.pollUntilDone();
1458
+ });
1459
+ }
1460
+ /**
1461
+ * Gets the clusters in the specified resource group.
1462
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1463
+ * @param options The options parameters.
1464
+ */
1465
+ _listByResourceGroup(resourceGroupName, options) {
1466
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1467
+ }
1468
+ /**
1469
+ * Gets the operationalization clusters in the specified subscription.
1470
+ * @param options The options parameters.
1471
+ */
1472
+ _listBySubscriptionId(options) {
1473
+ return this.client.sendOperationRequest({ options }, listBySubscriptionIdOperationSpec);
1474
+ }
1475
+ /**
1476
+ * ListByResourceGroupNext
1477
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
1478
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1479
+ * @param options The options parameters.
1480
+ */
1481
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1482
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1483
+ }
1484
+ /**
1485
+ * ListBySubscriptionIdNext
1486
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
1487
+ * @param options The options parameters.
1488
+ */
1489
+ _listBySubscriptionIdNext(nextLink, options) {
1490
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionIdNextOperationSpec);
1491
+ }
1492
+ }
1493
+ // Operation Specifications
1494
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1495
+ const createOrUpdateOperationSpec = {
1496
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1497
+ httpMethod: "PUT",
1498
+ responses: {
1499
+ 200: {
1500
+ bodyMapper: OperationalizationCluster
1501
+ },
1502
+ 201: {
1503
+ bodyMapper: OperationalizationCluster
1504
+ },
1505
+ 202: {
1506
+ bodyMapper: OperationalizationCluster
1507
+ },
1508
+ 204: {
1509
+ bodyMapper: OperationalizationCluster
1510
+ },
1511
+ default: {
1512
+ bodyMapper: ErrorResponseWrapper
1513
+ }
1514
+ },
1515
+ requestBody: parameters,
1516
+ queryParameters: [apiVersion],
1517
+ urlParameters: [
1518
+ $host,
1519
+ subscriptionId,
1520
+ resourceGroupName,
1521
+ clusterName
1522
+ ],
1523
+ headerParameters: [contentType, accept],
1524
+ mediaType: "json",
1525
+ serializer
1526
+ };
1527
+ const getOperationSpec = {
1528
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1529
+ httpMethod: "GET",
1530
+ responses: {
1531
+ 200: {
1532
+ bodyMapper: OperationalizationCluster
1533
+ },
1534
+ default: {
1535
+ bodyMapper: ErrorResponseWrapper
1536
+ }
1537
+ },
1538
+ queryParameters: [apiVersion],
1539
+ urlParameters: [
1540
+ $host,
1541
+ subscriptionId,
1542
+ resourceGroupName,
1543
+ clusterName
1544
+ ],
1545
+ headerParameters: [accept],
1546
+ serializer
1547
+ };
1548
+ const updateOperationSpec = {
1549
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1550
+ httpMethod: "PATCH",
1551
+ responses: {
1552
+ 200: {
1553
+ bodyMapper: OperationalizationCluster
1554
+ },
1555
+ default: {
1556
+ bodyMapper: ErrorResponseWrapper
1557
+ }
1558
+ },
1559
+ requestBody: parameters1,
1560
+ queryParameters: [apiVersion],
1561
+ urlParameters: [
1562
+ $host,
1563
+ subscriptionId,
1564
+ resourceGroupName,
1565
+ clusterName
1566
+ ],
1567
+ headerParameters: [contentType, accept],
1568
+ mediaType: "json",
1569
+ serializer
1570
+ };
1571
+ const deleteOperationSpec = {
1572
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1573
+ httpMethod: "DELETE",
1574
+ responses: {
1575
+ 200: {
1576
+ headersMapper: OperationalizationClustersDeleteHeaders
1577
+ },
1578
+ 201: {
1579
+ headersMapper: OperationalizationClustersDeleteHeaders
1580
+ },
1581
+ 202: {
1582
+ headersMapper: OperationalizationClustersDeleteHeaders
1583
+ },
1584
+ 204: {
1585
+ headersMapper: OperationalizationClustersDeleteHeaders
1586
+ },
1587
+ default: {
1588
+ bodyMapper: ErrorResponseWrapper
1589
+ }
1590
+ },
1591
+ queryParameters: [apiVersion, deleteAll],
1592
+ urlParameters: [
1593
+ $host,
1594
+ subscriptionId,
1595
+ resourceGroupName,
1596
+ clusterName
1597
+ ],
1598
+ headerParameters: [accept],
1599
+ serializer
1600
+ };
1601
+ const listKeysOperationSpec = {
1602
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys",
1603
+ httpMethod: "POST",
1604
+ responses: {
1605
+ 200: {
1606
+ bodyMapper: OperationalizationClusterCredentials
1607
+ }
1608
+ },
1609
+ queryParameters: [apiVersion],
1610
+ urlParameters: [
1611
+ $host,
1612
+ subscriptionId,
1613
+ resourceGroupName,
1614
+ clusterName
1615
+ ],
1616
+ headerParameters: [accept],
1617
+ serializer
1618
+ };
1619
+ const checkSystemServicesUpdatesAvailableOperationSpec = {
1620
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable",
1621
+ httpMethod: "POST",
1622
+ responses: {
1623
+ 200: {
1624
+ bodyMapper: CheckSystemServicesUpdatesAvailableResponse
1625
+ }
1626
+ },
1627
+ queryParameters: [apiVersion],
1628
+ urlParameters: [
1629
+ $host,
1630
+ subscriptionId,
1631
+ resourceGroupName,
1632
+ clusterName
1633
+ ],
1634
+ headerParameters: [accept],
1635
+ serializer
1636
+ };
1637
+ const updateSystemServicesOperationSpec = {
1638
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices",
1639
+ httpMethod: "POST",
1640
+ responses: {
1641
+ 200: {
1642
+ bodyMapper: UpdateSystemServicesResponse
1643
+ },
1644
+ 201: {
1645
+ bodyMapper: UpdateSystemServicesResponse
1646
+ },
1647
+ 202: {
1648
+ bodyMapper: UpdateSystemServicesResponse
1649
+ },
1650
+ 204: {
1651
+ bodyMapper: UpdateSystemServicesResponse
1652
+ }
1653
+ },
1654
+ queryParameters: [apiVersion],
1655
+ urlParameters: [
1656
+ $host,
1657
+ subscriptionId,
1658
+ resourceGroupName,
1659
+ clusterName
1660
+ ],
1661
+ headerParameters: [accept],
1662
+ serializer
1663
+ };
1664
+ const listByResourceGroupOperationSpec = {
1665
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
1666
+ httpMethod: "GET",
1667
+ responses: {
1668
+ 200: {
1669
+ bodyMapper: PaginatedOperationalizationClustersList
1670
+ }
1671
+ },
1672
+ queryParameters: [apiVersion, skiptoken],
1673
+ urlParameters: [
1674
+ $host,
1675
+ subscriptionId,
1676
+ resourceGroupName
1677
+ ],
1678
+ headerParameters: [accept],
1679
+ serializer
1680
+ };
1681
+ const listBySubscriptionIdOperationSpec = {
1682
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
1683
+ httpMethod: "GET",
1684
+ responses: {
1685
+ 200: {
1686
+ bodyMapper: PaginatedOperationalizationClustersList
1687
+ }
1688
+ },
1689
+ queryParameters: [apiVersion, skiptoken],
1690
+ urlParameters: [$host, subscriptionId],
1691
+ headerParameters: [accept],
1692
+ serializer
1693
+ };
1694
+ const listByResourceGroupNextOperationSpec = {
1695
+ path: "{nextLink}",
1696
+ httpMethod: "GET",
1697
+ responses: {
1698
+ 200: {
1699
+ bodyMapper: PaginatedOperationalizationClustersList
1700
+ }
1701
+ },
1702
+ queryParameters: [apiVersion, skiptoken],
1703
+ urlParameters: [
1704
+ $host,
1705
+ subscriptionId,
1706
+ resourceGroupName,
1707
+ nextLink
1708
+ ],
1709
+ headerParameters: [accept],
1710
+ serializer
1711
+ };
1712
+ const listBySubscriptionIdNextOperationSpec = {
1713
+ path: "{nextLink}",
1714
+ httpMethod: "GET",
1715
+ responses: {
1716
+ 200: {
1717
+ bodyMapper: PaginatedOperationalizationClustersList
1718
+ }
1719
+ },
1720
+ queryParameters: [apiVersion, skiptoken],
1721
+ urlParameters: [
1722
+ $host,
1723
+ subscriptionId,
1724
+ nextLink
1725
+ ],
1726
+ headerParameters: [accept],
1727
+ serializer
1728
+ };
1729
+
1730
+ /*
1731
+ * Copyright (c) Microsoft Corporation.
1732
+ * Licensed under the MIT License.
1733
+ *
1734
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1735
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1736
+ */
1737
+ /** Class containing MachineLearningCompute operations. */
1738
+ class MachineLearningComputeImpl {
1739
+ /**
1740
+ * Initialize a new instance of the class MachineLearningCompute class.
1741
+ * @param client Reference to the service client
1742
+ */
1743
+ constructor(client) {
1744
+ this.client = client;
1745
+ }
1746
+ /**
1747
+ * Gets all available operations.
1748
+ * @param options The options parameters.
1749
+ */
1750
+ listAvailableOperations(options) {
1751
+ return this.client.sendOperationRequest({ options }, listAvailableOperationsOperationSpec);
1752
+ }
1753
+ }
1754
+ // Operation Specifications
1755
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1756
+ const listAvailableOperationsOperationSpec = {
1757
+ path: "/providers/Microsoft.MachineLearningCompute/operations",
1758
+ httpMethod: "GET",
1759
+ responses: {
1760
+ 200: {
1761
+ bodyMapper: AvailableOperations
1762
+ }
1763
+ },
1764
+ queryParameters: [apiVersion],
1765
+ urlParameters: [$host],
1766
+ headerParameters: [accept],
1767
+ serializer: serializer$1
1768
+ };
1769
+
1770
+ /*
1771
+ * Copyright (c) Microsoft Corporation.
1772
+ * Licensed under the MIT License.
1773
+ *
1774
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1775
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1776
+ */
1777
+ class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
1778
+ /**
1779
+ * Initializes a new instance of the MachineLearningComputeManagementClient class.
1780
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1781
+ * @param subscriptionId The Azure subscription ID.
1782
+ * @param options The parameter options
1783
+ */
1784
+ constructor(credentials, subscriptionId, options) {
1785
+ if (credentials === undefined) {
1786
+ throw new Error("'credentials' cannot be null");
1787
+ }
1788
+ if (subscriptionId === undefined) {
1789
+ throw new Error("'subscriptionId' cannot be null");
1790
+ }
1791
+ // Initializing default values for options
1792
+ if (!options) {
1793
+ options = {};
1794
+ }
1795
+ const defaults = {
1796
+ requestContentType: "application/json; charset=utf-8",
1797
+ credential: credentials
1798
+ };
1799
+ const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.1`;
1800
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1801
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1802
+ : `${packageDetails}`;
1803
+ if (!options.credentialScopes) {
1804
+ options.credentialScopes = ["https://management.azure.com/.default"];
1805
+ }
1806
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1807
+ userAgentPrefix
1808
+ }, baseUri: options.endpoint || "https://management.azure.com" });
1809
+ super(optionsWithDefaults);
1810
+ // Parameter assignments
1811
+ this.subscriptionId = subscriptionId;
1812
+ // Assigning values to Constant parameters
1813
+ this.$host = options.$host || "https://management.azure.com";
1814
+ this.apiVersion = options.apiVersion || "2017-08-01-preview";
1815
+ this.operationalizationClusters = new OperationalizationClustersImpl(this);
1816
+ this.machineLearningCompute = new MachineLearningComputeImpl(this);
1817
+ }
1818
+ }
1819
+
1820
+ exports.MachineLearningComputeManagementClient = MachineLearningComputeManagementClient;
1821
+ //# sourceMappingURL=index.js.map