@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
@@ -1,1764 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmMachinelearningcompute = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation.
56
- * Licensed under the MIT License.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation.
68
- * Licensed under the MIT License.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var Resource = {
76
- serializedName: "Resource",
77
- type: {
78
- name: "Composite",
79
- className: "Resource",
80
- modelProperties: {
81
- id: {
82
- readOnly: true,
83
- serializedName: "id",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- name: {
89
- readOnly: true,
90
- serializedName: "name",
91
- type: {
92
- name: "String"
93
- }
94
- },
95
- location: {
96
- required: true,
97
- serializedName: "location",
98
- type: {
99
- name: "String"
100
- }
101
- },
102
- type: {
103
- readOnly: true,
104
- serializedName: "type",
105
- type: {
106
- name: "String"
107
- }
108
- },
109
- tags: {
110
- serializedName: "tags",
111
- type: {
112
- name: "Dictionary",
113
- value: {
114
- type: {
115
- name: "String"
116
- }
117
- }
118
- }
119
- }
120
- }
121
- }
122
- };
123
- var ErrorDetail = {
124
- serializedName: "ErrorDetail",
125
- type: {
126
- name: "Composite",
127
- className: "ErrorDetail",
128
- modelProperties: {
129
- code: {
130
- required: true,
131
- serializedName: "code",
132
- type: {
133
- name: "String"
134
- }
135
- },
136
- message: {
137
- required: true,
138
- serializedName: "message",
139
- type: {
140
- name: "String"
141
- }
142
- }
143
- }
144
- }
145
- };
146
- var ErrorResponse = {
147
- serializedName: "ErrorResponse",
148
- type: {
149
- name: "Composite",
150
- className: "ErrorResponse",
151
- modelProperties: {
152
- code: {
153
- required: true,
154
- serializedName: "code",
155
- type: {
156
- name: "String"
157
- }
158
- },
159
- message: {
160
- required: true,
161
- serializedName: "message",
162
- type: {
163
- name: "String"
164
- }
165
- },
166
- details: {
167
- serializedName: "details",
168
- type: {
169
- name: "Sequence",
170
- element: {
171
- type: {
172
- name: "Composite",
173
- className: "ErrorDetail"
174
- }
175
- }
176
- }
177
- }
178
- }
179
- }
180
- };
181
- var ErrorResponseWrapper = {
182
- serializedName: "ErrorResponseWrapper",
183
- type: {
184
- name: "Composite",
185
- className: "ErrorResponseWrapper",
186
- modelProperties: {
187
- error: {
188
- serializedName: "error",
189
- type: {
190
- name: "Composite",
191
- className: "ErrorResponse"
192
- }
193
- }
194
- }
195
- }
196
- };
197
- var StorageAccountProperties = {
198
- serializedName: "StorageAccountProperties",
199
- type: {
200
- name: "Composite",
201
- className: "StorageAccountProperties",
202
- modelProperties: {
203
- resourceId: {
204
- serializedName: "resourceId",
205
- type: {
206
- name: "String"
207
- }
208
- }
209
- }
210
- }
211
- };
212
- var ContainerRegistryProperties = {
213
- serializedName: "ContainerRegistryProperties",
214
- type: {
215
- name: "Composite",
216
- className: "ContainerRegistryProperties",
217
- modelProperties: {
218
- resourceId: {
219
- serializedName: "resourceId",
220
- type: {
221
- name: "String"
222
- }
223
- }
224
- }
225
- }
226
- };
227
- var ServicePrincipalProperties = {
228
- serializedName: "ServicePrincipalProperties",
229
- type: {
230
- name: "Composite",
231
- className: "ServicePrincipalProperties",
232
- modelProperties: {
233
- clientId: {
234
- required: true,
235
- serializedName: "clientId",
236
- type: {
237
- name: "String"
238
- }
239
- },
240
- secret: {
241
- required: true,
242
- serializedName: "secret",
243
- type: {
244
- name: "String"
245
- }
246
- }
247
- }
248
- }
249
- };
250
- var KubernetesClusterProperties = {
251
- serializedName: "Kubernetes",
252
- type: {
253
- name: "Composite",
254
- className: "KubernetesClusterProperties",
255
- modelProperties: {
256
- servicePrincipal: {
257
- serializedName: "servicePrincipal",
258
- type: {
259
- name: "Composite",
260
- className: "ServicePrincipalProperties"
261
- }
262
- }
263
- }
264
- }
265
- };
266
- var SystemService = {
267
- serializedName: "SystemService",
268
- type: {
269
- name: "Composite",
270
- className: "SystemService",
271
- modelProperties: {
272
- systemServiceType: {
273
- required: true,
274
- serializedName: "systemServiceType",
275
- type: {
276
- name: "String"
277
- }
278
- },
279
- publicIpAddress: {
280
- readOnly: true,
281
- serializedName: "publicIpAddress",
282
- type: {
283
- name: "String"
284
- }
285
- },
286
- version: {
287
- readOnly: true,
288
- serializedName: "version",
289
- type: {
290
- name: "String"
291
- }
292
- }
293
- }
294
- }
295
- };
296
- var AcsClusterProperties = {
297
- serializedName: "AcsClusterProperties",
298
- type: {
299
- name: "Composite",
300
- className: "AcsClusterProperties",
301
- modelProperties: {
302
- clusterFqdn: {
303
- readOnly: true,
304
- serializedName: "clusterFqdn",
305
- type: {
306
- name: "String"
307
- }
308
- },
309
- orchestratorType: {
310
- required: true,
311
- serializedName: "orchestratorType",
312
- type: {
313
- name: "String"
314
- }
315
- },
316
- orchestratorProperties: {
317
- serializedName: "orchestratorProperties",
318
- type: {
319
- name: "Composite",
320
- className: "KubernetesClusterProperties"
321
- }
322
- },
323
- systemServices: {
324
- serializedName: "systemServices",
325
- type: {
326
- name: "Sequence",
327
- element: {
328
- type: {
329
- name: "Composite",
330
- className: "SystemService"
331
- }
332
- }
333
- }
334
- },
335
- masterCount: {
336
- serializedName: "masterCount",
337
- defaultValue: 1,
338
- constraints: {
339
- InclusiveMaximum: 5,
340
- InclusiveMinimum: 1
341
- },
342
- type: {
343
- name: "Number"
344
- }
345
- },
346
- agentCount: {
347
- serializedName: "agentCount",
348
- defaultValue: 2,
349
- constraints: {
350
- InclusiveMaximum: 100,
351
- InclusiveMinimum: 1
352
- },
353
- type: {
354
- name: "Number"
355
- }
356
- },
357
- agentVmSize: {
358
- serializedName: "agentVmSize",
359
- defaultValue: 'Standard_D3_v2',
360
- type: {
361
- name: "String"
362
- }
363
- }
364
- }
365
- }
366
- };
367
- var AppInsightsProperties = {
368
- serializedName: "AppInsightsProperties",
369
- type: {
370
- name: "Composite",
371
- className: "AppInsightsProperties",
372
- modelProperties: {
373
- resourceId: {
374
- serializedName: "resourceId",
375
- type: {
376
- name: "String"
377
- }
378
- }
379
- }
380
- }
381
- };
382
- var SslConfiguration = {
383
- serializedName: "SslConfiguration",
384
- type: {
385
- name: "Composite",
386
- className: "SslConfiguration",
387
- modelProperties: {
388
- status: {
389
- serializedName: "status",
390
- defaultValue: 'Enabled',
391
- type: {
392
- name: "String"
393
- }
394
- },
395
- cert: {
396
- serializedName: "cert",
397
- type: {
398
- name: "String"
399
- }
400
- },
401
- key: {
402
- serializedName: "key",
403
- type: {
404
- name: "String"
405
- }
406
- },
407
- cname: {
408
- serializedName: "cname",
409
- type: {
410
- name: "String"
411
- }
412
- }
413
- }
414
- }
415
- };
416
- var ServiceAuthConfiguration = {
417
- serializedName: "ServiceAuthConfiguration",
418
- type: {
419
- name: "Composite",
420
- className: "ServiceAuthConfiguration",
421
- modelProperties: {
422
- primaryAuthKeyHash: {
423
- required: true,
424
- serializedName: "primaryAuthKeyHash",
425
- type: {
426
- name: "String"
427
- }
428
- },
429
- secondaryAuthKeyHash: {
430
- required: true,
431
- serializedName: "secondaryAuthKeyHash",
432
- type: {
433
- name: "String"
434
- }
435
- }
436
- }
437
- }
438
- };
439
- var AutoScaleConfiguration = {
440
- serializedName: "AutoScaleConfiguration",
441
- type: {
442
- name: "Composite",
443
- className: "AutoScaleConfiguration",
444
- modelProperties: {
445
- status: {
446
- serializedName: "status",
447
- defaultValue: 'Disabled',
448
- type: {
449
- name: "String"
450
- }
451
- },
452
- minReplicas: {
453
- serializedName: "minReplicas",
454
- defaultValue: 1,
455
- constraints: {
456
- InclusiveMinimum: 1
457
- },
458
- type: {
459
- name: "Number"
460
- }
461
- },
462
- maxReplicas: {
463
- serializedName: "maxReplicas",
464
- defaultValue: 100,
465
- constraints: {
466
- InclusiveMinimum: 1
467
- },
468
- type: {
469
- name: "Number"
470
- }
471
- },
472
- targetUtilization: {
473
- serializedName: "targetUtilization",
474
- type: {
475
- name: "Number"
476
- }
477
- },
478
- refreshPeriodInSeconds: {
479
- serializedName: "refreshPeriodInSeconds",
480
- type: {
481
- name: "Number"
482
- }
483
- }
484
- }
485
- }
486
- };
487
- var GlobalServiceConfiguration = {
488
- serializedName: "GlobalServiceConfiguration",
489
- type: {
490
- name: "Composite",
491
- className: "GlobalServiceConfiguration",
492
- modelProperties: {
493
- etag: {
494
- serializedName: "etag",
495
- type: {
496
- name: "String"
497
- }
498
- },
499
- ssl: {
500
- serializedName: "ssl",
501
- type: {
502
- name: "Composite",
503
- className: "SslConfiguration"
504
- }
505
- },
506
- serviceAuth: {
507
- serializedName: "serviceAuth",
508
- type: {
509
- name: "Composite",
510
- className: "ServiceAuthConfiguration"
511
- }
512
- },
513
- autoScale: {
514
- serializedName: "autoScale",
515
- type: {
516
- name: "Composite",
517
- className: "AutoScaleConfiguration"
518
- }
519
- }
520
- },
521
- additionalProperties: {
522
- type: {
523
- name: "Object"
524
- }
525
- }
526
- }
527
- };
528
- var OperationalizationCluster = {
529
- serializedName: "OperationalizationCluster",
530
- type: {
531
- name: "Composite",
532
- className: "OperationalizationCluster",
533
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { description: {
534
- serializedName: "properties.description",
535
- type: {
536
- name: "String"
537
- }
538
- }, createdOn: {
539
- readOnly: true,
540
- serializedName: "properties.createdOn",
541
- type: {
542
- name: "DateTime"
543
- }
544
- }, modifiedOn: {
545
- readOnly: true,
546
- serializedName: "properties.modifiedOn",
547
- type: {
548
- name: "DateTime"
549
- }
550
- }, provisioningState: {
551
- readOnly: true,
552
- serializedName: "properties.provisioningState",
553
- type: {
554
- name: "String"
555
- }
556
- }, provisioningErrors: {
557
- readOnly: true,
558
- serializedName: "properties.provisioningErrors",
559
- type: {
560
- name: "Sequence",
561
- element: {
562
- type: {
563
- name: "Composite",
564
- className: "ErrorResponseWrapper"
565
- }
566
- }
567
- }
568
- }, clusterType: {
569
- required: true,
570
- serializedName: "properties.clusterType",
571
- type: {
572
- name: "String"
573
- }
574
- }, storageAccount: {
575
- serializedName: "properties.storageAccount",
576
- type: {
577
- name: "Composite",
578
- className: "StorageAccountProperties"
579
- }
580
- }, containerRegistry: {
581
- serializedName: "properties.containerRegistry",
582
- type: {
583
- name: "Composite",
584
- className: "ContainerRegistryProperties"
585
- }
586
- }, containerService: {
587
- serializedName: "properties.containerService",
588
- type: {
589
- name: "Composite",
590
- className: "AcsClusterProperties"
591
- }
592
- }, appInsights: {
593
- serializedName: "properties.appInsights",
594
- type: {
595
- name: "Composite",
596
- className: "AppInsightsProperties"
597
- }
598
- }, globalServiceConfiguration: {
599
- serializedName: "properties.globalServiceConfiguration",
600
- type: {
601
- name: "Composite",
602
- className: "GlobalServiceConfiguration",
603
- additionalProperties: {
604
- type: {
605
- name: "Object"
606
- }
607
- }
608
- }
609
- } })
610
- }
611
- };
612
- var OperationalizationClusterUpdateParameters = {
613
- serializedName: "OperationalizationClusterUpdateParameters",
614
- type: {
615
- name: "Composite",
616
- className: "OperationalizationClusterUpdateParameters",
617
- modelProperties: {
618
- tags: {
619
- serializedName: "tags",
620
- type: {
621
- name: "Dictionary",
622
- value: {
623
- type: {
624
- name: "String"
625
- }
626
- }
627
- }
628
- }
629
- }
630
- }
631
- };
632
- var StorageAccountCredentials = {
633
- serializedName: "StorageAccountCredentials",
634
- type: {
635
- name: "Composite",
636
- className: "StorageAccountCredentials",
637
- modelProperties: {
638
- resourceId: {
639
- readOnly: true,
640
- serializedName: "resourceId",
641
- type: {
642
- name: "String"
643
- }
644
- },
645
- primaryKey: {
646
- readOnly: true,
647
- serializedName: "primaryKey",
648
- type: {
649
- name: "String"
650
- }
651
- },
652
- secondaryKey: {
653
- readOnly: true,
654
- serializedName: "secondaryKey",
655
- type: {
656
- name: "String"
657
- }
658
- }
659
- }
660
- }
661
- };
662
- var ContainerRegistryCredentials = {
663
- serializedName: "ContainerRegistryCredentials",
664
- type: {
665
- name: "Composite",
666
- className: "ContainerRegistryCredentials",
667
- modelProperties: {
668
- loginServer: {
669
- readOnly: true,
670
- serializedName: "loginServer",
671
- type: {
672
- name: "String"
673
- }
674
- },
675
- password: {
676
- readOnly: true,
677
- serializedName: "password",
678
- type: {
679
- name: "String"
680
- }
681
- },
682
- password2: {
683
- readOnly: true,
684
- serializedName: "password2",
685
- type: {
686
- name: "String"
687
- }
688
- },
689
- username: {
690
- readOnly: true,
691
- serializedName: "username",
692
- type: {
693
- name: "String"
694
- }
695
- }
696
- }
697
- }
698
- };
699
- var ContainerServiceCredentials = {
700
- serializedName: "ContainerServiceCredentials",
701
- type: {
702
- name: "Composite",
703
- className: "ContainerServiceCredentials",
704
- modelProperties: {
705
- acsKubeConfig: {
706
- readOnly: true,
707
- serializedName: "acsKubeConfig",
708
- type: {
709
- name: "String"
710
- }
711
- },
712
- servicePrincipalConfiguration: {
713
- readOnly: true,
714
- serializedName: "servicePrincipalConfiguration",
715
- type: {
716
- name: "Composite",
717
- className: "ServicePrincipalProperties"
718
- }
719
- },
720
- imagePullSecretName: {
721
- readOnly: true,
722
- serializedName: "imagePullSecretName",
723
- type: {
724
- name: "String"
725
- }
726
- }
727
- }
728
- }
729
- };
730
- var AppInsightsCredentials = {
731
- serializedName: "AppInsightsCredentials",
732
- type: {
733
- name: "Composite",
734
- className: "AppInsightsCredentials",
735
- modelProperties: {
736
- appId: {
737
- serializedName: "appId",
738
- type: {
739
- name: "String"
740
- }
741
- },
742
- instrumentationKey: {
743
- serializedName: "instrumentationKey",
744
- type: {
745
- name: "String"
746
- }
747
- }
748
- }
749
- }
750
- };
751
- var OperationalizationClusterCredentials = {
752
- serializedName: "OperationalizationClusterCredentials",
753
- type: {
754
- name: "Composite",
755
- className: "OperationalizationClusterCredentials",
756
- modelProperties: {
757
- storageAccount: {
758
- serializedName: "storageAccount",
759
- type: {
760
- name: "Composite",
761
- className: "StorageAccountCredentials"
762
- }
763
- },
764
- containerRegistry: {
765
- serializedName: "containerRegistry",
766
- type: {
767
- name: "Composite",
768
- className: "ContainerRegistryCredentials"
769
- }
770
- },
771
- containerService: {
772
- serializedName: "containerService",
773
- type: {
774
- name: "Composite",
775
- className: "ContainerServiceCredentials"
776
- }
777
- },
778
- appInsights: {
779
- serializedName: "appInsights",
780
- type: {
781
- name: "Composite",
782
- className: "AppInsightsCredentials"
783
- }
784
- },
785
- serviceAuthConfiguration: {
786
- serializedName: "serviceAuthConfiguration",
787
- type: {
788
- name: "Composite",
789
- className: "ServiceAuthConfiguration"
790
- }
791
- },
792
- sslConfiguration: {
793
- serializedName: "sslConfiguration",
794
- type: {
795
- name: "Composite",
796
- className: "SslConfiguration"
797
- }
798
- }
799
- }
800
- }
801
- };
802
- var CheckSystemServicesUpdatesAvailableResponse = {
803
- serializedName: "CheckSystemServicesUpdatesAvailableResponse",
804
- type: {
805
- name: "Composite",
806
- className: "CheckSystemServicesUpdatesAvailableResponse",
807
- modelProperties: {
808
- updatesAvailable: {
809
- readOnly: true,
810
- serializedName: "updatesAvailable",
811
- type: {
812
- name: "String"
813
- }
814
- }
815
- }
816
- }
817
- };
818
- var UpdateSystemServicesResponse = {
819
- serializedName: "UpdateSystemServicesResponse",
820
- type: {
821
- name: "Composite",
822
- className: "UpdateSystemServicesResponse",
823
- modelProperties: {
824
- updateStatus: {
825
- readOnly: true,
826
- serializedName: "updateStatus",
827
- type: {
828
- name: "String"
829
- }
830
- },
831
- updateStartedOn: {
832
- readOnly: true,
833
- serializedName: "updateStartedOn",
834
- type: {
835
- name: "DateTime"
836
- }
837
- },
838
- updateCompletedOn: {
839
- readOnly: true,
840
- serializedName: "updateCompletedOn",
841
- type: {
842
- name: "DateTime"
843
- }
844
- }
845
- }
846
- }
847
- };
848
- var ResourceOperationDisplay = {
849
- serializedName: "ResourceOperation_display",
850
- type: {
851
- name: "Composite",
852
- className: "ResourceOperationDisplay",
853
- modelProperties: {
854
- provider: {
855
- serializedName: "provider",
856
- type: {
857
- name: "String"
858
- }
859
- },
860
- resource: {
861
- serializedName: "resource",
862
- type: {
863
- name: "String"
864
- }
865
- },
866
- operation: {
867
- serializedName: "operation",
868
- type: {
869
- name: "String"
870
- }
871
- },
872
- description: {
873
- serializedName: "description",
874
- type: {
875
- name: "String"
876
- }
877
- }
878
- }
879
- }
880
- };
881
- var ResourceOperation = {
882
- serializedName: "ResourceOperation",
883
- type: {
884
- name: "Composite",
885
- className: "ResourceOperation",
886
- modelProperties: {
887
- name: {
888
- serializedName: "name",
889
- type: {
890
- name: "String"
891
- }
892
- },
893
- display: {
894
- serializedName: "display",
895
- type: {
896
- name: "Composite",
897
- className: "ResourceOperationDisplay"
898
- }
899
- },
900
- origin: {
901
- serializedName: "origin",
902
- type: {
903
- name: "String"
904
- }
905
- }
906
- }
907
- }
908
- };
909
- var AvailableOperations = {
910
- serializedName: "AvailableOperations",
911
- type: {
912
- name: "Composite",
913
- className: "AvailableOperations",
914
- modelProperties: {
915
- value: {
916
- serializedName: "value",
917
- type: {
918
- name: "Sequence",
919
- element: {
920
- type: {
921
- name: "Composite",
922
- className: "ResourceOperation"
923
- }
924
- }
925
- }
926
- }
927
- }
928
- }
929
- };
930
- var OperationalizationClustersDeleteHeaders = {
931
- serializedName: "operationalizationclusters-delete-headers",
932
- type: {
933
- name: "Composite",
934
- className: "OperationalizationClustersDeleteHeaders",
935
- modelProperties: {
936
- location: {
937
- serializedName: "location",
938
- type: {
939
- name: "String"
940
- }
941
- }
942
- }
943
- }
944
- };
945
- var OperationalizationClustersUpdateSystemServicesHeaders = {
946
- serializedName: "operationalizationclusters-updatesystemservices-headers",
947
- type: {
948
- name: "Composite",
949
- className: "OperationalizationClustersUpdateSystemServicesHeaders",
950
- modelProperties: {
951
- location: {
952
- serializedName: "location",
953
- type: {
954
- name: "String"
955
- }
956
- }
957
- }
958
- }
959
- };
960
- var PaginatedOperationalizationClustersList = {
961
- serializedName: "PaginatedOperationalizationClustersList",
962
- type: {
963
- name: "Composite",
964
- className: "PaginatedOperationalizationClustersList",
965
- modelProperties: {
966
- value: {
967
- serializedName: "",
968
- type: {
969
- name: "Sequence",
970
- element: {
971
- type: {
972
- name: "Composite",
973
- className: "OperationalizationCluster"
974
- }
975
- }
976
- }
977
- },
978
- nextLink: {
979
- serializedName: "nextLink",
980
- type: {
981
- name: "String"
982
- }
983
- }
984
- }
985
- }
986
- };
987
-
988
- var mappers = /*#__PURE__*/Object.freeze({
989
- __proto__: null,
990
- CloudError: CloudError,
991
- BaseResource: BaseResource,
992
- Resource: Resource,
993
- ErrorDetail: ErrorDetail,
994
- ErrorResponse: ErrorResponse,
995
- ErrorResponseWrapper: ErrorResponseWrapper,
996
- StorageAccountProperties: StorageAccountProperties,
997
- ContainerRegistryProperties: ContainerRegistryProperties,
998
- ServicePrincipalProperties: ServicePrincipalProperties,
999
- KubernetesClusterProperties: KubernetesClusterProperties,
1000
- SystemService: SystemService,
1001
- AcsClusterProperties: AcsClusterProperties,
1002
- AppInsightsProperties: AppInsightsProperties,
1003
- SslConfiguration: SslConfiguration,
1004
- ServiceAuthConfiguration: ServiceAuthConfiguration,
1005
- AutoScaleConfiguration: AutoScaleConfiguration,
1006
- GlobalServiceConfiguration: GlobalServiceConfiguration,
1007
- OperationalizationCluster: OperationalizationCluster,
1008
- OperationalizationClusterUpdateParameters: OperationalizationClusterUpdateParameters,
1009
- StorageAccountCredentials: StorageAccountCredentials,
1010
- ContainerRegistryCredentials: ContainerRegistryCredentials,
1011
- ContainerServiceCredentials: ContainerServiceCredentials,
1012
- AppInsightsCredentials: AppInsightsCredentials,
1013
- OperationalizationClusterCredentials: OperationalizationClusterCredentials,
1014
- CheckSystemServicesUpdatesAvailableResponse: CheckSystemServicesUpdatesAvailableResponse,
1015
- UpdateSystemServicesResponse: UpdateSystemServicesResponse,
1016
- ResourceOperationDisplay: ResourceOperationDisplay,
1017
- ResourceOperation: ResourceOperation,
1018
- AvailableOperations: AvailableOperations,
1019
- OperationalizationClustersDeleteHeaders: OperationalizationClustersDeleteHeaders,
1020
- OperationalizationClustersUpdateSystemServicesHeaders: OperationalizationClustersUpdateSystemServicesHeaders,
1021
- PaginatedOperationalizationClustersList: PaginatedOperationalizationClustersList
1022
- });
1023
-
1024
- /*
1025
- * Copyright (c) Microsoft Corporation.
1026
- * Licensed under the MIT License.
1027
- *
1028
- * Code generated by Microsoft (R) AutoRest Code Generator.
1029
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1030
- */
1031
-
1032
- var Mappers = /*#__PURE__*/Object.freeze({
1033
- __proto__: null,
1034
- AcsClusterProperties: AcsClusterProperties,
1035
- AppInsightsCredentials: AppInsightsCredentials,
1036
- AppInsightsProperties: AppInsightsProperties,
1037
- AutoScaleConfiguration: AutoScaleConfiguration,
1038
- BaseResource: BaseResource,
1039
- CheckSystemServicesUpdatesAvailableResponse: CheckSystemServicesUpdatesAvailableResponse,
1040
- CloudError: CloudError,
1041
- ContainerRegistryCredentials: ContainerRegistryCredentials,
1042
- ContainerRegistryProperties: ContainerRegistryProperties,
1043
- ContainerServiceCredentials: ContainerServiceCredentials,
1044
- ErrorDetail: ErrorDetail,
1045
- ErrorResponse: ErrorResponse,
1046
- ErrorResponseWrapper: ErrorResponseWrapper,
1047
- GlobalServiceConfiguration: GlobalServiceConfiguration,
1048
- KubernetesClusterProperties: KubernetesClusterProperties,
1049
- OperationalizationCluster: OperationalizationCluster,
1050
- OperationalizationClusterCredentials: OperationalizationClusterCredentials,
1051
- OperationalizationClustersDeleteHeaders: OperationalizationClustersDeleteHeaders,
1052
- OperationalizationClustersUpdateSystemServicesHeaders: OperationalizationClustersUpdateSystemServicesHeaders,
1053
- OperationalizationClusterUpdateParameters: OperationalizationClusterUpdateParameters,
1054
- PaginatedOperationalizationClustersList: PaginatedOperationalizationClustersList,
1055
- Resource: Resource,
1056
- ServiceAuthConfiguration: ServiceAuthConfiguration,
1057
- ServicePrincipalProperties: ServicePrincipalProperties,
1058
- SslConfiguration: SslConfiguration,
1059
- StorageAccountCredentials: StorageAccountCredentials,
1060
- StorageAccountProperties: StorageAccountProperties,
1061
- SystemService: SystemService,
1062
- UpdateSystemServicesResponse: UpdateSystemServicesResponse
1063
- });
1064
-
1065
- /*
1066
- * Copyright (c) Microsoft Corporation.
1067
- * Licensed under the MIT License.
1068
- *
1069
- * Code generated by Microsoft (R) AutoRest Code Generator.
1070
- * Changes may cause incorrect behavior and will be lost if the code is
1071
- * regenerated.
1072
- */
1073
- var acceptLanguage = {
1074
- parameterPath: "acceptLanguage",
1075
- mapper: {
1076
- serializedName: "accept-language",
1077
- defaultValue: 'en-US',
1078
- type: {
1079
- name: "String"
1080
- }
1081
- }
1082
- };
1083
- var apiVersion = {
1084
- parameterPath: "apiVersion",
1085
- mapper: {
1086
- required: true,
1087
- serializedName: "api-version",
1088
- type: {
1089
- name: "String"
1090
- }
1091
- }
1092
- };
1093
- var clusterName = {
1094
- parameterPath: "clusterName",
1095
- mapper: {
1096
- required: true,
1097
- serializedName: "clusterName",
1098
- constraints: {
1099
- MaxLength: 90,
1100
- MinLength: 1,
1101
- Pattern: /^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$/
1102
- },
1103
- type: {
1104
- name: "String"
1105
- }
1106
- }
1107
- };
1108
- var deleteAll = {
1109
- parameterPath: [
1110
- "options",
1111
- "deleteAll"
1112
- ],
1113
- mapper: {
1114
- serializedName: "deleteAll",
1115
- type: {
1116
- name: "Boolean"
1117
- }
1118
- }
1119
- };
1120
- var nextPageLink = {
1121
- parameterPath: "nextPageLink",
1122
- mapper: {
1123
- required: true,
1124
- serializedName: "nextLink",
1125
- type: {
1126
- name: "String"
1127
- }
1128
- },
1129
- skipEncoding: true
1130
- };
1131
- var resourceGroupName = {
1132
- parameterPath: "resourceGroupName",
1133
- mapper: {
1134
- required: true,
1135
- serializedName: "resourceGroupName",
1136
- constraints: {
1137
- MaxLength: 90,
1138
- MinLength: 1,
1139
- Pattern: /^[-\w\._\(\)]+$/
1140
- },
1141
- type: {
1142
- name: "String"
1143
- }
1144
- }
1145
- };
1146
- var skiptoken = {
1147
- parameterPath: [
1148
- "options",
1149
- "skiptoken"
1150
- ],
1151
- mapper: {
1152
- serializedName: "$skiptoken",
1153
- type: {
1154
- name: "String"
1155
- }
1156
- }
1157
- };
1158
- var subscriptionId = {
1159
- parameterPath: "subscriptionId",
1160
- mapper: {
1161
- required: true,
1162
- serializedName: "subscriptionId",
1163
- type: {
1164
- name: "String"
1165
- }
1166
- }
1167
- };
1168
-
1169
- /*
1170
- * Copyright (c) Microsoft Corporation.
1171
- * Licensed under the MIT License.
1172
- *
1173
- * Code generated by Microsoft (R) AutoRest Code Generator.
1174
- * Changes may cause incorrect behavior and will be lost if the code is
1175
- * regenerated.
1176
- */
1177
- /** Class representing a OperationalizationClusters. */
1178
- var OperationalizationClusters = /** @class */ (function () {
1179
- /**
1180
- * Create a OperationalizationClusters.
1181
- * @param {MachineLearningComputeManagementClientContext} client Reference to the service client.
1182
- */
1183
- function OperationalizationClusters(client) {
1184
- this.client = client;
1185
- }
1186
- /**
1187
- * Create or update an operationalization cluster.
1188
- * @param resourceGroupName Name of the resource group in which the cluster is located.
1189
- * @param clusterName The name of the cluster.
1190
- * @param parameters Parameters supplied to create or update an Operationalization cluster.
1191
- * @param [options] The optional parameters
1192
- * @returns Promise<Models.OperationalizationClustersCreateOrUpdateResponse>
1193
- */
1194
- OperationalizationClusters.prototype.createOrUpdate = function (resourceGroupName, clusterName, parameters, options) {
1195
- return this.beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options)
1196
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1197
- };
1198
- OperationalizationClusters.prototype.get = function (resourceGroupName, clusterName, options, callback) {
1199
- return this.client.sendOperationRequest({
1200
- resourceGroupName: resourceGroupName,
1201
- clusterName: clusterName,
1202
- options: options
1203
- }, getOperationSpec, callback);
1204
- };
1205
- OperationalizationClusters.prototype.update = function (resourceGroupName, clusterName, parameters, options, callback) {
1206
- return this.client.sendOperationRequest({
1207
- resourceGroupName: resourceGroupName,
1208
- clusterName: clusterName,
1209
- parameters: parameters,
1210
- options: options
1211
- }, updateOperationSpec, callback);
1212
- };
1213
- /**
1214
- * Deletes the specified cluster.
1215
- * @param resourceGroupName Name of the resource group in which the cluster is located.
1216
- * @param clusterName The name of the cluster.
1217
- * @param [options] The optional parameters
1218
- * @returns Promise<Models.OperationalizationClustersDeleteResponse>
1219
- */
1220
- OperationalizationClusters.prototype.deleteMethod = function (resourceGroupName, clusterName, options) {
1221
- return this.beginDeleteMethod(resourceGroupName, clusterName, options)
1222
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1223
- };
1224
- OperationalizationClusters.prototype.listKeys = function (resourceGroupName, clusterName, options, callback) {
1225
- return this.client.sendOperationRequest({
1226
- resourceGroupName: resourceGroupName,
1227
- clusterName: clusterName,
1228
- options: options
1229
- }, listKeysOperationSpec, callback);
1230
- };
1231
- OperationalizationClusters.prototype.checkSystemServicesUpdatesAvailable = function (resourceGroupName, clusterName, options, callback) {
1232
- return this.client.sendOperationRequest({
1233
- resourceGroupName: resourceGroupName,
1234
- clusterName: clusterName,
1235
- options: options
1236
- }, checkSystemServicesUpdatesAvailableOperationSpec, callback);
1237
- };
1238
- /**
1239
- * Updates system services in a cluster.
1240
- * @param resourceGroupName Name of the resource group in which the cluster is located.
1241
- * @param clusterName The name of the cluster.
1242
- * @param [options] The optional parameters
1243
- * @returns Promise<Models.OperationalizationClustersUpdateSystemServicesResponse>
1244
- */
1245
- OperationalizationClusters.prototype.updateSystemServices = function (resourceGroupName, clusterName, options) {
1246
- return this.beginUpdateSystemServices(resourceGroupName, clusterName, options)
1247
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1248
- };
1249
- OperationalizationClusters.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
1250
- return this.client.sendOperationRequest({
1251
- resourceGroupName: resourceGroupName,
1252
- options: options
1253
- }, listByResourceGroupOperationSpec, callback);
1254
- };
1255
- OperationalizationClusters.prototype.listBySubscriptionId = function (options, callback) {
1256
- return this.client.sendOperationRequest({
1257
- options: options
1258
- }, listBySubscriptionIdOperationSpec, callback);
1259
- };
1260
- /**
1261
- * Create or update an operationalization cluster.
1262
- * @param resourceGroupName Name of the resource group in which the cluster is located.
1263
- * @param clusterName The name of the cluster.
1264
- * @param parameters Parameters supplied to create or update an Operationalization cluster.
1265
- * @param [options] The optional parameters
1266
- * @returns Promise<msRestAzure.LROPoller>
1267
- */
1268
- OperationalizationClusters.prototype.beginCreateOrUpdate = function (resourceGroupName, clusterName, parameters, options) {
1269
- return this.client.sendLRORequest({
1270
- resourceGroupName: resourceGroupName,
1271
- clusterName: clusterName,
1272
- parameters: parameters,
1273
- options: options
1274
- }, beginCreateOrUpdateOperationSpec, options);
1275
- };
1276
- /**
1277
- * Deletes the specified cluster.
1278
- * @param resourceGroupName Name of the resource group in which the cluster is located.
1279
- * @param clusterName The name of the cluster.
1280
- * @param [options] The optional parameters
1281
- * @returns Promise<msRestAzure.LROPoller>
1282
- */
1283
- OperationalizationClusters.prototype.beginDeleteMethod = function (resourceGroupName, clusterName, options) {
1284
- return this.client.sendLRORequest({
1285
- resourceGroupName: resourceGroupName,
1286
- clusterName: clusterName,
1287
- options: options
1288
- }, beginDeleteMethodOperationSpec, options);
1289
- };
1290
- /**
1291
- * Updates system services in a cluster.
1292
- * @param resourceGroupName Name of the resource group in which the cluster is located.
1293
- * @param clusterName The name of the cluster.
1294
- * @param [options] The optional parameters
1295
- * @returns Promise<msRestAzure.LROPoller>
1296
- */
1297
- OperationalizationClusters.prototype.beginUpdateSystemServices = function (resourceGroupName, clusterName, options) {
1298
- return this.client.sendLRORequest({
1299
- resourceGroupName: resourceGroupName,
1300
- clusterName: clusterName,
1301
- options: options
1302
- }, beginUpdateSystemServicesOperationSpec, options);
1303
- };
1304
- OperationalizationClusters.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
1305
- return this.client.sendOperationRequest({
1306
- nextPageLink: nextPageLink,
1307
- options: options
1308
- }, listByResourceGroupNextOperationSpec, callback);
1309
- };
1310
- OperationalizationClusters.prototype.listBySubscriptionIdNext = function (nextPageLink, options, callback) {
1311
- return this.client.sendOperationRequest({
1312
- nextPageLink: nextPageLink,
1313
- options: options
1314
- }, listBySubscriptionIdNextOperationSpec, callback);
1315
- };
1316
- return OperationalizationClusters;
1317
- }());
1318
- // Operation Specifications
1319
- var serializer = new msRest.Serializer(Mappers);
1320
- var getOperationSpec = {
1321
- httpMethod: "GET",
1322
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1323
- urlParameters: [
1324
- subscriptionId,
1325
- resourceGroupName,
1326
- clusterName
1327
- ],
1328
- queryParameters: [
1329
- apiVersion
1330
- ],
1331
- headerParameters: [
1332
- acceptLanguage
1333
- ],
1334
- responses: {
1335
- 200: {
1336
- bodyMapper: OperationalizationCluster
1337
- },
1338
- default: {
1339
- bodyMapper: ErrorResponseWrapper
1340
- }
1341
- },
1342
- serializer: serializer
1343
- };
1344
- var updateOperationSpec = {
1345
- httpMethod: "PATCH",
1346
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1347
- urlParameters: [
1348
- subscriptionId,
1349
- resourceGroupName,
1350
- clusterName
1351
- ],
1352
- queryParameters: [
1353
- apiVersion
1354
- ],
1355
- headerParameters: [
1356
- acceptLanguage
1357
- ],
1358
- requestBody: {
1359
- parameterPath: "parameters",
1360
- mapper: __assign(__assign({}, OperationalizationClusterUpdateParameters), { required: true })
1361
- },
1362
- responses: {
1363
- 200: {
1364
- bodyMapper: OperationalizationCluster
1365
- },
1366
- default: {
1367
- bodyMapper: ErrorResponseWrapper
1368
- }
1369
- },
1370
- serializer: serializer
1371
- };
1372
- var listKeysOperationSpec = {
1373
- httpMethod: "POST",
1374
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys",
1375
- urlParameters: [
1376
- subscriptionId,
1377
- resourceGroupName,
1378
- clusterName
1379
- ],
1380
- queryParameters: [
1381
- apiVersion
1382
- ],
1383
- headerParameters: [
1384
- acceptLanguage
1385
- ],
1386
- responses: {
1387
- 200: {
1388
- bodyMapper: OperationalizationClusterCredentials
1389
- },
1390
- default: {
1391
- bodyMapper: CloudError
1392
- }
1393
- },
1394
- serializer: serializer
1395
- };
1396
- var checkSystemServicesUpdatesAvailableOperationSpec = {
1397
- httpMethod: "POST",
1398
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable",
1399
- urlParameters: [
1400
- subscriptionId,
1401
- resourceGroupName,
1402
- clusterName
1403
- ],
1404
- queryParameters: [
1405
- apiVersion
1406
- ],
1407
- headerParameters: [
1408
- acceptLanguage
1409
- ],
1410
- responses: {
1411
- 200: {
1412
- bodyMapper: CheckSystemServicesUpdatesAvailableResponse
1413
- },
1414
- default: {
1415
- bodyMapper: CloudError
1416
- }
1417
- },
1418
- serializer: serializer
1419
- };
1420
- var listByResourceGroupOperationSpec = {
1421
- httpMethod: "GET",
1422
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
1423
- urlParameters: [
1424
- subscriptionId,
1425
- resourceGroupName
1426
- ],
1427
- queryParameters: [
1428
- apiVersion,
1429
- skiptoken
1430
- ],
1431
- headerParameters: [
1432
- acceptLanguage
1433
- ],
1434
- responses: {
1435
- 200: {
1436
- bodyMapper: PaginatedOperationalizationClustersList
1437
- },
1438
- default: {
1439
- bodyMapper: CloudError
1440
- }
1441
- },
1442
- serializer: serializer
1443
- };
1444
- var listBySubscriptionIdOperationSpec = {
1445
- httpMethod: "GET",
1446
- path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
1447
- urlParameters: [
1448
- subscriptionId
1449
- ],
1450
- queryParameters: [
1451
- apiVersion,
1452
- skiptoken
1453
- ],
1454
- headerParameters: [
1455
- acceptLanguage
1456
- ],
1457
- responses: {
1458
- 200: {
1459
- bodyMapper: PaginatedOperationalizationClustersList
1460
- },
1461
- default: {
1462
- bodyMapper: CloudError
1463
- }
1464
- },
1465
- serializer: serializer
1466
- };
1467
- var beginCreateOrUpdateOperationSpec = {
1468
- httpMethod: "PUT",
1469
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1470
- urlParameters: [
1471
- subscriptionId,
1472
- resourceGroupName,
1473
- clusterName
1474
- ],
1475
- queryParameters: [
1476
- apiVersion
1477
- ],
1478
- headerParameters: [
1479
- acceptLanguage
1480
- ],
1481
- requestBody: {
1482
- parameterPath: "parameters",
1483
- mapper: __assign(__assign({}, OperationalizationCluster), { required: true })
1484
- },
1485
- responses: {
1486
- 200: {
1487
- bodyMapper: OperationalizationCluster
1488
- },
1489
- 201: {
1490
- bodyMapper: OperationalizationCluster
1491
- },
1492
- default: {
1493
- bodyMapper: ErrorResponseWrapper
1494
- }
1495
- },
1496
- serializer: serializer
1497
- };
1498
- var beginDeleteMethodOperationSpec = {
1499
- httpMethod: "DELETE",
1500
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
1501
- urlParameters: [
1502
- subscriptionId,
1503
- resourceGroupName,
1504
- clusterName
1505
- ],
1506
- queryParameters: [
1507
- apiVersion,
1508
- deleteAll
1509
- ],
1510
- headerParameters: [
1511
- acceptLanguage
1512
- ],
1513
- responses: {
1514
- 202: {
1515
- headersMapper: OperationalizationClustersDeleteHeaders
1516
- },
1517
- 204: {
1518
- headersMapper: OperationalizationClustersDeleteHeaders
1519
- },
1520
- default: {
1521
- bodyMapper: ErrorResponseWrapper,
1522
- headersMapper: OperationalizationClustersDeleteHeaders
1523
- }
1524
- },
1525
- serializer: serializer
1526
- };
1527
- var beginUpdateSystemServicesOperationSpec = {
1528
- httpMethod: "POST",
1529
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices",
1530
- urlParameters: [
1531
- subscriptionId,
1532
- resourceGroupName,
1533
- clusterName
1534
- ],
1535
- queryParameters: [
1536
- apiVersion
1537
- ],
1538
- headerParameters: [
1539
- acceptLanguage
1540
- ],
1541
- responses: {
1542
- 200: {
1543
- bodyMapper: UpdateSystemServicesResponse,
1544
- headersMapper: OperationalizationClustersUpdateSystemServicesHeaders
1545
- },
1546
- 202: {
1547
- headersMapper: OperationalizationClustersUpdateSystemServicesHeaders
1548
- },
1549
- default: {
1550
- bodyMapper: CloudError,
1551
- headersMapper: OperationalizationClustersUpdateSystemServicesHeaders
1552
- }
1553
- },
1554
- serializer: serializer
1555
- };
1556
- var listByResourceGroupNextOperationSpec = {
1557
- httpMethod: "GET",
1558
- baseUrl: "https://management.azure.com",
1559
- path: "{nextLink}",
1560
- urlParameters: [
1561
- nextPageLink
1562
- ],
1563
- queryParameters: [
1564
- apiVersion,
1565
- skiptoken
1566
- ],
1567
- headerParameters: [
1568
- acceptLanguage
1569
- ],
1570
- responses: {
1571
- 200: {
1572
- bodyMapper: PaginatedOperationalizationClustersList
1573
- },
1574
- default: {
1575
- bodyMapper: CloudError
1576
- }
1577
- },
1578
- serializer: serializer
1579
- };
1580
- var listBySubscriptionIdNextOperationSpec = {
1581
- httpMethod: "GET",
1582
- baseUrl: "https://management.azure.com",
1583
- path: "{nextLink}",
1584
- urlParameters: [
1585
- nextPageLink
1586
- ],
1587
- queryParameters: [
1588
- apiVersion,
1589
- skiptoken
1590
- ],
1591
- headerParameters: [
1592
- acceptLanguage
1593
- ],
1594
- responses: {
1595
- 200: {
1596
- bodyMapper: PaginatedOperationalizationClustersList
1597
- },
1598
- default: {
1599
- bodyMapper: CloudError
1600
- }
1601
- },
1602
- serializer: serializer
1603
- };
1604
-
1605
- /*
1606
- * Copyright (c) Microsoft Corporation.
1607
- * Licensed under the MIT License.
1608
- *
1609
- * Code generated by Microsoft (R) AutoRest Code Generator.
1610
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1611
- */
1612
-
1613
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1614
- __proto__: null,
1615
- AvailableOperations: AvailableOperations,
1616
- CloudError: CloudError,
1617
- ResourceOperation: ResourceOperation,
1618
- ResourceOperationDisplay: ResourceOperationDisplay
1619
- });
1620
-
1621
- /*
1622
- * Copyright (c) Microsoft Corporation.
1623
- * Licensed under the MIT License.
1624
- *
1625
- * Code generated by Microsoft (R) AutoRest Code Generator.
1626
- * Changes may cause incorrect behavior and will be lost if the code is
1627
- * regenerated.
1628
- */
1629
- /** Class representing a MachineLearningCompute. */
1630
- var MachineLearningCompute = /** @class */ (function () {
1631
- /**
1632
- * Create a MachineLearningCompute.
1633
- * @param {MachineLearningComputeManagementClientContext} client Reference to the service client.
1634
- */
1635
- function MachineLearningCompute(client) {
1636
- this.client = client;
1637
- }
1638
- MachineLearningCompute.prototype.listAvailableOperations = function (options, callback) {
1639
- return this.client.sendOperationRequest({
1640
- options: options
1641
- }, listAvailableOperationsOperationSpec, callback);
1642
- };
1643
- return MachineLearningCompute;
1644
- }());
1645
- // Operation Specifications
1646
- var serializer$1 = new msRest.Serializer(Mappers$1);
1647
- var listAvailableOperationsOperationSpec = {
1648
- httpMethod: "GET",
1649
- path: "providers/Microsoft.MachineLearningCompute/operations",
1650
- queryParameters: [
1651
- apiVersion
1652
- ],
1653
- headerParameters: [
1654
- acceptLanguage
1655
- ],
1656
- responses: {
1657
- 200: {
1658
- bodyMapper: AvailableOperations
1659
- },
1660
- default: {
1661
- bodyMapper: CloudError
1662
- }
1663
- },
1664
- serializer: serializer$1
1665
- };
1666
-
1667
- /*
1668
- * Copyright (c) Microsoft Corporation.
1669
- * Licensed under the MIT License.
1670
- *
1671
- * Code generated by Microsoft (R) AutoRest Code Generator.
1672
- * Changes may cause incorrect behavior and will be lost if the code is
1673
- * regenerated.
1674
- */
1675
- var packageName = "@azure/arm-machinelearningcompute";
1676
- var packageVersion = "2.1.1";
1677
- var MachineLearningComputeManagementClientContext = /** @class */ (function (_super) {
1678
- __extends(MachineLearningComputeManagementClientContext, _super);
1679
- /**
1680
- * Initializes a new instance of the MachineLearningComputeManagementClient class.
1681
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
1682
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
1683
- * more information about these credentials, see
1684
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
1685
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
1686
- * @azure/ms-rest-browserauth are also supported.
1687
- * @param subscriptionId The Azure subscription ID.
1688
- * @param [options] The parameter options
1689
- */
1690
- function MachineLearningComputeManagementClientContext(credentials, subscriptionId, options) {
1691
- var _this = this;
1692
- if (credentials == undefined) {
1693
- throw new Error('\'credentials\' cannot be null.');
1694
- }
1695
- if (subscriptionId == undefined) {
1696
- throw new Error('\'subscriptionId\' cannot be null.');
1697
- }
1698
- if (!options) {
1699
- options = {};
1700
- }
1701
- if (!options.userAgent) {
1702
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
1703
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
1704
- }
1705
- _this = _super.call(this, credentials, options) || this;
1706
- _this.apiVersion = '2017-08-01-preview';
1707
- _this.acceptLanguage = 'en-US';
1708
- _this.longRunningOperationRetryTimeout = 30;
1709
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
1710
- _this.requestContentType = "application/json; charset=utf-8";
1711
- _this.credentials = credentials;
1712
- _this.subscriptionId = subscriptionId;
1713
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
1714
- _this.acceptLanguage = options.acceptLanguage;
1715
- }
1716
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
1717
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
1718
- }
1719
- return _this;
1720
- }
1721
- return MachineLearningComputeManagementClientContext;
1722
- }(msRestAzure.AzureServiceClient));
1723
-
1724
- /*
1725
- * Copyright (c) Microsoft Corporation.
1726
- * Licensed under the MIT License.
1727
- *
1728
- * Code generated by Microsoft (R) AutoRest Code Generator.
1729
- * Changes may cause incorrect behavior and will be lost if the code is
1730
- * regenerated.
1731
- */
1732
- var MachineLearningComputeManagementClient = /** @class */ (function (_super) {
1733
- __extends(MachineLearningComputeManagementClient, _super);
1734
- /**
1735
- * Initializes a new instance of the MachineLearningComputeManagementClient class.
1736
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
1737
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
1738
- * more information about these credentials, see
1739
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
1740
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
1741
- * @azure/ms-rest-browserauth are also supported.
1742
- * @param subscriptionId The Azure subscription ID.
1743
- * @param [options] The parameter options
1744
- */
1745
- function MachineLearningComputeManagementClient(credentials, subscriptionId, options) {
1746
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
1747
- _this.operationalizationClusters = new OperationalizationClusters(_this);
1748
- _this.machineLearningCompute = new MachineLearningCompute(_this);
1749
- return _this;
1750
- }
1751
- return MachineLearningComputeManagementClient;
1752
- }(MachineLearningComputeManagementClientContext));
1753
-
1754
- exports.MachineLearningCompute = MachineLearningCompute;
1755
- exports.MachineLearningComputeManagementClient = MachineLearningComputeManagementClient;
1756
- exports.MachineLearningComputeManagementClientContext = MachineLearningComputeManagementClientContext;
1757
- exports.MachineLearningComputeManagementMappers = mappers;
1758
- exports.MachineLearningComputeManagementModels = index;
1759
- exports.OperationalizationClusters = OperationalizationClusters;
1760
-
1761
- Object.defineProperty(exports, '__esModule', { value: true });
1762
-
1763
- })));
1764
- //# sourceMappingURL=arm-machinelearningcompute.js.map