@azure/arm-workspaces 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +1009 -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/listWorkspaceKeys.d.ts +2 -0
  9. package/dist-esm/samples-dev/listWorkspaceKeys.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/listWorkspaceKeys.js +31 -0
  11. package/dist-esm/samples-dev/listWorkspaceKeys.js.map +1 -0
  12. package/dist-esm/samples-dev/resyncStorageKeys.d.ts +2 -0
  13. package/dist-esm/samples-dev/resyncStorageKeys.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/resyncStorageKeys.js +31 -0
  15. package/dist-esm/samples-dev/resyncStorageKeys.js.map +1 -0
  16. package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
  17. package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/workspaceCreate.js +38 -0
  19. package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
  20. package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
  21. package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/workspaceDelete.js +31 -0
  23. package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
  24. package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
  25. package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/workspaceGet.js +31 -0
  27. package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
  28. package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts +2 -0
  29. package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/workspaceGetBySubscription.js +43 -0
  31. package/dist-esm/samples-dev/workspaceGetBySubscription.js.map +1 -0
  32. package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts +2 -0
  33. package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/workspaceListResourceGroup.js +44 -0
  35. package/dist-esm/samples-dev/workspaceListResourceGroup.js.map +1 -0
  36. package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
  37. package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/workspaceUpdate.js +36 -0
  39. package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
  40. package/dist-esm/src/index.d.ts +5 -0
  41. package/dist-esm/src/index.d.ts.map +1 -0
  42. package/dist-esm/src/index.js +12 -0
  43. package/dist-esm/src/index.js.map +1 -0
  44. package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts +19 -0
  45. package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
  46. package/dist-esm/src/machineLearningWorkspacesManagementClient.js +52 -0
  47. package/dist-esm/src/machineLearningWorkspacesManagementClient.js.map +1 -0
  48. package/dist-esm/src/models/index.d.ts +190 -0
  49. package/dist-esm/src/models/index.d.ts.map +1 -0
  50. package/dist-esm/src/models/index.js +9 -0
  51. package/dist-esm/src/models/index.js.map +1 -0
  52. package/dist-esm/src/models/mappers.d.ts +12 -0
  53. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/models/mappers.js +177 -167
  55. package/dist-esm/src/models/mappers.js.map +1 -0
  56. package/dist-esm/src/models/parameters.d.ts +12 -0
  57. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  58. package/dist-esm/src/models/parameters.js +102 -0
  59. package/dist-esm/src/models/parameters.js.map +1 -0
  60. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +10 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/operations.d.ts +26 -0
  65. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/operations.js +90 -0
  67. package/dist-esm/src/operations/operations.js.map +1 -0
  68. package/dist-esm/src/operations/workspaces.d.ts +106 -0
  69. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  70. package/dist-esm/src/operations/workspaces.js +423 -0
  71. package/dist-esm/src/operations/workspaces.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  77. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +68 -0
  81. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  84. package/dist-esm/test/sampleTest.d.ts +2 -0
  85. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  86. package/dist-esm/test/sampleTest.js +40 -0
  87. package/dist-esm/test/sampleTest.js.map +1 -0
  88. package/package.json +81 -34
  89. package/review/arm-workspaces.api.md +206 -0
  90. package/rollup.config.js +184 -27
  91. package/src/index.ts +12 -0
  92. package/src/machineLearningWorkspacesManagementClient.ts +64 -37
  93. package/src/models/index.ts +184 -393
  94. package/src/models/mappers.ts +177 -166
  95. package/src/models/parameters.ts +73 -26
  96. package/src/operations/index.ts +3 -5
  97. package/src/operations/operations.ts +66 -42
  98. package/src/operations/workspaces.ts +329 -406
  99. package/src/operationsInterfaces/index.ts +10 -0
  100. package/src/operationsInterfaces/operations.ts +22 -0
  101. package/src/operationsInterfaces/workspaces.ts +123 -0
  102. package/tsconfig.json +6 -5
  103. package/types/arm-workspaces.d.ts +316 -0
  104. package/types/tsdoc-metadata.json +11 -0
  105. package/dist/arm-workspaces.js +0 -990
  106. package/dist/arm-workspaces.js.map +0 -1
  107. package/dist/arm-workspaces.min.js +0 -1
  108. package/dist/arm-workspaces.min.js.map +0 -1
  109. package/esm/machineLearningWorkspacesManagementClient.d.ts +0 -25
  110. package/esm/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
  111. package/esm/machineLearningWorkspacesManagementClient.js +0 -39
  112. package/esm/machineLearningWorkspacesManagementClient.js.map +0 -1
  113. package/esm/machineLearningWorkspacesManagementClientContext.d.ts +0 -22
  114. package/esm/machineLearningWorkspacesManagementClientContext.d.ts.map +0 -1
  115. package/esm/machineLearningWorkspacesManagementClientContext.js +0 -61
  116. package/esm/machineLearningWorkspacesManagementClientContext.js.map +0 -1
  117. package/esm/models/index.d.ts +0 -417
  118. package/esm/models/index.d.ts.map +0 -1
  119. package/esm/models/index.js +0 -10
  120. package/esm/models/index.js.map +0 -1
  121. package/esm/models/mappers.d.ts +0 -13
  122. package/esm/models/mappers.d.ts.map +0 -1
  123. package/esm/models/mappers.js.map +0 -1
  124. package/esm/models/operationsMappers.d.ts +0 -2
  125. package/esm/models/operationsMappers.d.ts.map +0 -1
  126. package/esm/models/operationsMappers.js +0 -11
  127. package/esm/models/operationsMappers.js.map +0 -1
  128. package/esm/models/parameters.d.ts +0 -8
  129. package/esm/models/parameters.d.ts.map +0 -1
  130. package/esm/models/parameters.js +0 -71
  131. package/esm/models/parameters.js.map +0 -1
  132. package/esm/models/workspacesMappers.d.ts +0 -2
  133. package/esm/models/workspacesMappers.d.ts.map +0 -1
  134. package/esm/models/workspacesMappers.js +0 -11
  135. package/esm/models/workspacesMappers.js.map +0 -1
  136. package/esm/operations/index.d.ts.map +0 -1
  137. package/esm/operations/index.js +0 -12
  138. package/esm/operations/index.js.map +0 -1
  139. package/esm/operations/operations.d.ts +0 -28
  140. package/esm/operations/operations.d.ts.map +0 -1
  141. package/esm/operations/operations.js +0 -51
  142. package/esm/operations/operations.js.map +0 -1
  143. package/esm/operations/workspaces.d.ts +0 -235
  144. package/esm/operations/workspaces.d.ts.map +0 -1
  145. package/esm/operations/workspaces.js +0 -329
  146. package/esm/operations/workspaces.js.map +0 -1
  147. package/src/machineLearningWorkspacesManagementClientContext.ts +0 -68
  148. package/src/models/operationsMappers.ts +0 -17
  149. package/src/models/workspacesMappers.ts +0 -20
@@ -1,990 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
12
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
13
- (factory((global.Azure = global.Azure || {}, global.Azure.ArmWorkspaces = {}),global.msRestAzure,global.msRest));
14
- }(this, (function (exports,msRestAzure,msRest) { 'use strict';
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */
30
- /* global Reflect, Promise */
31
-
32
- var extendStatics = function(d, b) {
33
- extendStatics = Object.setPrototypeOf ||
34
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
35
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36
- return extendStatics(d, b);
37
- };
38
-
39
- function __extends(d, b) {
40
- extendStatics(d, b);
41
- function __() { this.constructor = d; }
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- }
44
-
45
- var __assign = function() {
46
- __assign = Object.assign || function __assign(t) {
47
- for (var s, i = 1, n = arguments.length; i < n; i++) {
48
- s = arguments[i];
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
55
-
56
- /*
57
- * Copyright (c) Microsoft Corporation. All rights reserved.
58
- * Licensed under the MIT License. See License.txt in the project root for
59
- * license information.
60
- *
61
- * Code generated by Microsoft (R) AutoRest Code Generator.
62
- * Changes may cause incorrect behavior and will be lost if the code is
63
- * regenerated.
64
- */
65
-
66
- var index = /*#__PURE__*/Object.freeze({
67
-
68
- });
69
-
70
- /*
71
- * Copyright (c) Microsoft Corporation. All rights reserved.
72
- * Licensed under the MIT License. See License.txt in the project root for
73
- * license information.
74
- *
75
- * Code generated by Microsoft (R) AutoRest Code Generator.
76
- * Changes may cause incorrect behavior and will be lost if the code is
77
- * regenerated.
78
- */
79
- var CloudError = msRestAzure.CloudErrorMapper;
80
- var BaseResource = msRestAzure.BaseResourceMapper;
81
- var ErrorResponse = {
82
- serializedName: "ErrorResponse",
83
- type: {
84
- name: "Composite",
85
- className: "ErrorResponse",
86
- modelProperties: {
87
- code: {
88
- required: true,
89
- serializedName: "code",
90
- type: {
91
- name: "String"
92
- }
93
- },
94
- message: {
95
- required: true,
96
- serializedName: "message",
97
- type: {
98
- name: "String"
99
- }
100
- }
101
- }
102
- }
103
- };
104
- var Resource = {
105
- serializedName: "Resource",
106
- type: {
107
- name: "Composite",
108
- className: "Resource",
109
- modelProperties: {
110
- id: {
111
- readOnly: true,
112
- serializedName: "id",
113
- type: {
114
- name: "String"
115
- }
116
- },
117
- name: {
118
- readOnly: true,
119
- serializedName: "name",
120
- type: {
121
- name: "String"
122
- }
123
- },
124
- type: {
125
- readOnly: true,
126
- serializedName: "type",
127
- type: {
128
- name: "String"
129
- }
130
- },
131
- location: {
132
- required: true,
133
- serializedName: "location",
134
- type: {
135
- name: "String"
136
- }
137
- },
138
- tags: {
139
- serializedName: "tags",
140
- type: {
141
- name: "Dictionary",
142
- value: {
143
- type: {
144
- name: "String"
145
- }
146
- }
147
- }
148
- }
149
- }
150
- }
151
- };
152
- var Workspace = {
153
- serializedName: "Workspace",
154
- type: {
155
- name: "Composite",
156
- className: "Workspace",
157
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { userStorageAccountId: {
158
- required: true,
159
- serializedName: "properties.userStorageAccountId",
160
- type: {
161
- name: "String"
162
- }
163
- }, ownerEmail: {
164
- serializedName: "properties.ownerEmail",
165
- type: {
166
- name: "String"
167
- }
168
- }, workspaceType: {
169
- readOnly: true,
170
- serializedName: "properties.workspaceType",
171
- type: {
172
- name: "Enum",
173
- allowedValues: [
174
- "Production",
175
- "Free",
176
- "Anonymous",
177
- "PaidStandard",
178
- "PaidPremium"
179
- ]
180
- }
181
- }, workspaceState: {
182
- readOnly: true,
183
- serializedName: "properties.workspaceState",
184
- type: {
185
- name: "Enum",
186
- allowedValues: [
187
- "Deleted",
188
- "Enabled",
189
- "Disabled",
190
- "Migrated",
191
- "Updated",
192
- "Registered",
193
- "Unregistered"
194
- ]
195
- }
196
- }, workspaceId: {
197
- readOnly: true,
198
- serializedName: "properties.workspaceId",
199
- type: {
200
- name: "String"
201
- }
202
- }, creationTime: {
203
- readOnly: true,
204
- serializedName: "properties.creationTime",
205
- type: {
206
- name: "String"
207
- }
208
- }, studioEndpoint: {
209
- readOnly: true,
210
- serializedName: "properties.studioEndpoint",
211
- type: {
212
- name: "String"
213
- }
214
- }, keyVaultIdentifierId: {
215
- serializedName: "properties.keyVaultIdentifierId",
216
- type: {
217
- name: "String"
218
- }
219
- } })
220
- }
221
- };
222
- var WorkspaceUpdateParameters = {
223
- serializedName: "WorkspaceUpdateParameters",
224
- type: {
225
- name: "Composite",
226
- className: "WorkspaceUpdateParameters",
227
- modelProperties: {
228
- tags: {
229
- serializedName: "tags",
230
- type: {
231
- name: "Dictionary",
232
- value: {
233
- type: {
234
- name: "String"
235
- }
236
- }
237
- }
238
- },
239
- workspaceState: {
240
- serializedName: "properties.workspaceState",
241
- type: {
242
- name: "Enum",
243
- allowedValues: [
244
- "Deleted",
245
- "Enabled",
246
- "Disabled",
247
- "Migrated",
248
- "Updated",
249
- "Registered",
250
- "Unregistered"
251
- ]
252
- }
253
- },
254
- keyVaultIdentifierId: {
255
- serializedName: "properties.keyVaultIdentifierId",
256
- type: {
257
- name: "String"
258
- }
259
- }
260
- }
261
- }
262
- };
263
- var WorkspaceKeysResponse = {
264
- serializedName: "WorkspaceKeysResponse",
265
- type: {
266
- name: "Composite",
267
- className: "WorkspaceKeysResponse",
268
- modelProperties: {
269
- primaryToken: {
270
- serializedName: "primaryToken",
271
- type: {
272
- name: "String"
273
- }
274
- },
275
- secondaryToken: {
276
- serializedName: "secondaryToken",
277
- type: {
278
- name: "String"
279
- }
280
- }
281
- }
282
- }
283
- };
284
- var OperationDisplay = {
285
- serializedName: "Operation_display",
286
- type: {
287
- name: "Composite",
288
- className: "OperationDisplay",
289
- modelProperties: {
290
- provider: {
291
- serializedName: "provider",
292
- type: {
293
- name: "String"
294
- }
295
- },
296
- resource: {
297
- serializedName: "resource",
298
- type: {
299
- name: "String"
300
- }
301
- },
302
- operation: {
303
- serializedName: "operation",
304
- type: {
305
- name: "String"
306
- }
307
- },
308
- description: {
309
- serializedName: "description",
310
- type: {
311
- name: "String"
312
- }
313
- }
314
- }
315
- }
316
- };
317
- var Operation = {
318
- serializedName: "Operation",
319
- type: {
320
- name: "Composite",
321
- className: "Operation",
322
- modelProperties: {
323
- name: {
324
- serializedName: "name",
325
- type: {
326
- name: "String"
327
- }
328
- },
329
- display: {
330
- serializedName: "display",
331
- type: {
332
- name: "Composite",
333
- className: "OperationDisplay"
334
- }
335
- }
336
- }
337
- }
338
- };
339
- var OperationListResult = {
340
- serializedName: "OperationListResult",
341
- type: {
342
- name: "Composite",
343
- className: "OperationListResult",
344
- modelProperties: {
345
- value: {
346
- serializedName: "",
347
- type: {
348
- name: "Sequence",
349
- element: {
350
- type: {
351
- name: "Composite",
352
- className: "Operation"
353
- }
354
- }
355
- }
356
- }
357
- }
358
- }
359
- };
360
- var WorkspaceListResult = {
361
- serializedName: "WorkspaceListResult",
362
- type: {
363
- name: "Composite",
364
- className: "WorkspaceListResult",
365
- modelProperties: {
366
- value: {
367
- serializedName: "",
368
- type: {
369
- name: "Sequence",
370
- element: {
371
- type: {
372
- name: "Composite",
373
- className: "Workspace"
374
- }
375
- }
376
- }
377
- },
378
- nextLink: {
379
- serializedName: "nextLink",
380
- type: {
381
- name: "String"
382
- }
383
- }
384
- }
385
- }
386
- };
387
-
388
- var mappers = /*#__PURE__*/Object.freeze({
389
- CloudError: CloudError,
390
- BaseResource: BaseResource,
391
- ErrorResponse: ErrorResponse,
392
- Resource: Resource,
393
- Workspace: Workspace,
394
- WorkspaceUpdateParameters: WorkspaceUpdateParameters,
395
- WorkspaceKeysResponse: WorkspaceKeysResponse,
396
- OperationDisplay: OperationDisplay,
397
- Operation: Operation,
398
- OperationListResult: OperationListResult,
399
- WorkspaceListResult: WorkspaceListResult
400
- });
401
-
402
- /*
403
- * Copyright (c) Microsoft Corporation. All rights reserved.
404
- * Licensed under the MIT License. See License.txt in the project root for
405
- * license information.
406
- *
407
- * Code generated by Microsoft (R) AutoRest Code Generator.
408
- * Changes may cause incorrect behavior and will be lost if the code is
409
- * regenerated.
410
- */
411
-
412
- var Mappers = /*#__PURE__*/Object.freeze({
413
- OperationListResult: OperationListResult,
414
- Operation: Operation,
415
- OperationDisplay: OperationDisplay,
416
- ErrorResponse: ErrorResponse
417
- });
418
-
419
- /*
420
- * Copyright (c) Microsoft Corporation. All rights reserved.
421
- * Licensed under the MIT License. See License.txt in the project root for
422
- * license information.
423
- *
424
- * Code generated by Microsoft (R) AutoRest Code Generator.
425
- * Changes may cause incorrect behavior and will be lost if the code is
426
- * regenerated.
427
- */
428
- var acceptLanguage = {
429
- parameterPath: "acceptLanguage",
430
- mapper: {
431
- serializedName: "accept-language",
432
- defaultValue: 'en-US',
433
- type: {
434
- name: "String"
435
- }
436
- }
437
- };
438
- var apiVersion = {
439
- parameterPath: "apiVersion",
440
- mapper: {
441
- required: true,
442
- serializedName: "api-version",
443
- type: {
444
- name: "String"
445
- }
446
- }
447
- };
448
- var nextPageLink = {
449
- parameterPath: "nextPageLink",
450
- mapper: {
451
- required: true,
452
- serializedName: "nextLink",
453
- type: {
454
- name: "String"
455
- }
456
- },
457
- skipEncoding: true
458
- };
459
- var resourceGroupName = {
460
- parameterPath: "resourceGroupName",
461
- mapper: {
462
- required: true,
463
- serializedName: "resourceGroupName",
464
- type: {
465
- name: "String"
466
- }
467
- }
468
- };
469
- var subscriptionId = {
470
- parameterPath: "subscriptionId",
471
- mapper: {
472
- required: true,
473
- serializedName: "subscriptionId",
474
- type: {
475
- name: "String"
476
- }
477
- }
478
- };
479
- var workspaceName = {
480
- parameterPath: "workspaceName",
481
- mapper: {
482
- required: true,
483
- serializedName: "workspaceName",
484
- type: {
485
- name: "String"
486
- }
487
- }
488
- };
489
-
490
- /*
491
- * Copyright (c) Microsoft Corporation. All rights reserved.
492
- * Licensed under the MIT License. See License.txt in the project root for
493
- * license information.
494
- *
495
- * Code generated by Microsoft (R) AutoRest Code Generator.
496
- * Changes may cause incorrect behavior and will be lost if the code is
497
- * regenerated.
498
- */
499
- /** Class representing a Operations. */
500
- var Operations = /** @class */ (function () {
501
- /**
502
- * Create a Operations.
503
- * @param {MachineLearningWorkspacesManagementClientContext} client Reference to the service client.
504
- */
505
- function Operations(client) {
506
- this.client = client;
507
- }
508
- Operations.prototype.list = function (options, callback) {
509
- return this.client.sendOperationRequest({
510
- options: options
511
- }, listOperationSpec, callback);
512
- };
513
- return Operations;
514
- }());
515
- // Operation Specifications
516
- var serializer = new msRest.Serializer(Mappers);
517
- var listOperationSpec = {
518
- httpMethod: "GET",
519
- path: "providers/Microsoft.MachineLearning/operations",
520
- queryParameters: [
521
- apiVersion
522
- ],
523
- headerParameters: [
524
- acceptLanguage
525
- ],
526
- responses: {
527
- 200: {
528
- bodyMapper: OperationListResult
529
- },
530
- default: {
531
- bodyMapper: ErrorResponse
532
- }
533
- },
534
- serializer: serializer
535
- };
536
-
537
- /*
538
- * Copyright (c) Microsoft Corporation. All rights reserved.
539
- * Licensed under the MIT License. See License.txt in the project root for
540
- * license information.
541
- *
542
- * Code generated by Microsoft (R) AutoRest Code Generator.
543
- * Changes may cause incorrect behavior and will be lost if the code is
544
- * regenerated.
545
- */
546
-
547
- var Mappers$1 = /*#__PURE__*/Object.freeze({
548
- Workspace: Workspace,
549
- Resource: Resource,
550
- BaseResource: BaseResource,
551
- ErrorResponse: ErrorResponse,
552
- WorkspaceUpdateParameters: WorkspaceUpdateParameters,
553
- WorkspaceKeysResponse: WorkspaceKeysResponse,
554
- WorkspaceListResult: WorkspaceListResult
555
- });
556
-
557
- /*
558
- * Copyright (c) Microsoft Corporation. All rights reserved.
559
- * Licensed under the MIT License. See License.txt in the project root for
560
- * license information.
561
- *
562
- * Code generated by Microsoft (R) AutoRest Code Generator.
563
- * Changes may cause incorrect behavior and will be lost if the code is
564
- * regenerated.
565
- */
566
- /** Class representing a Workspaces. */
567
- var Workspaces = /** @class */ (function () {
568
- /**
569
- * Create a Workspaces.
570
- * @param {MachineLearningWorkspacesManagementClientContext} client Reference to the service client.
571
- */
572
- function Workspaces(client) {
573
- this.client = client;
574
- }
575
- Workspaces.prototype.get = function (resourceGroupName$$1, workspaceName$$1, options, callback) {
576
- return this.client.sendOperationRequest({
577
- resourceGroupName: resourceGroupName$$1,
578
- workspaceName: workspaceName$$1,
579
- options: options
580
- }, getOperationSpec, callback);
581
- };
582
- Workspaces.prototype.createOrUpdate = function (resourceGroupName$$1, workspaceName$$1, parameters, options, callback) {
583
- return this.client.sendOperationRequest({
584
- resourceGroupName: resourceGroupName$$1,
585
- workspaceName: workspaceName$$1,
586
- parameters: parameters,
587
- options: options
588
- }, createOrUpdateOperationSpec, callback);
589
- };
590
- Workspaces.prototype.deleteMethod = function (resourceGroupName$$1, workspaceName$$1, options, callback) {
591
- return this.client.sendOperationRequest({
592
- resourceGroupName: resourceGroupName$$1,
593
- workspaceName: workspaceName$$1,
594
- options: options
595
- }, deleteMethodOperationSpec, callback);
596
- };
597
- Workspaces.prototype.update = function (resourceGroupName$$1, workspaceName$$1, parameters, options, callback) {
598
- return this.client.sendOperationRequest({
599
- resourceGroupName: resourceGroupName$$1,
600
- workspaceName: workspaceName$$1,
601
- parameters: parameters,
602
- options: options
603
- }, updateOperationSpec, callback);
604
- };
605
- Workspaces.prototype.resyncStorageKeys = function (workspaceName$$1, resourceGroupName$$1, options, callback) {
606
- return this.client.sendOperationRequest({
607
- workspaceName: workspaceName$$1,
608
- resourceGroupName: resourceGroupName$$1,
609
- options: options
610
- }, resyncStorageKeysOperationSpec, callback);
611
- };
612
- Workspaces.prototype.listWorkspaceKeys = function (workspaceName$$1, resourceGroupName$$1, options, callback) {
613
- return this.client.sendOperationRequest({
614
- workspaceName: workspaceName$$1,
615
- resourceGroupName: resourceGroupName$$1,
616
- options: options
617
- }, listWorkspaceKeysOperationSpec, callback);
618
- };
619
- Workspaces.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
620
- return this.client.sendOperationRequest({
621
- resourceGroupName: resourceGroupName$$1,
622
- options: options
623
- }, listByResourceGroupOperationSpec, callback);
624
- };
625
- Workspaces.prototype.list = function (options, callback) {
626
- return this.client.sendOperationRequest({
627
- options: options
628
- }, listOperationSpec$1, callback);
629
- };
630
- Workspaces.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
631
- return this.client.sendOperationRequest({
632
- nextPageLink: nextPageLink$$1,
633
- options: options
634
- }, listByResourceGroupNextOperationSpec, callback);
635
- };
636
- Workspaces.prototype.listNext = function (nextPageLink$$1, options, callback) {
637
- return this.client.sendOperationRequest({
638
- nextPageLink: nextPageLink$$1,
639
- options: options
640
- }, listNextOperationSpec, callback);
641
- };
642
- return Workspaces;
643
- }());
644
- // Operation Specifications
645
- var serializer$1 = new msRest.Serializer(Mappers$1);
646
- var getOperationSpec = {
647
- httpMethod: "GET",
648
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
649
- urlParameters: [
650
- subscriptionId,
651
- resourceGroupName,
652
- workspaceName
653
- ],
654
- queryParameters: [
655
- apiVersion
656
- ],
657
- headerParameters: [
658
- acceptLanguage
659
- ],
660
- responses: {
661
- 200: {
662
- bodyMapper: Workspace
663
- },
664
- default: {
665
- bodyMapper: ErrorResponse
666
- }
667
- },
668
- serializer: serializer$1
669
- };
670
- var createOrUpdateOperationSpec = {
671
- httpMethod: "PUT",
672
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
673
- urlParameters: [
674
- subscriptionId,
675
- resourceGroupName,
676
- workspaceName
677
- ],
678
- queryParameters: [
679
- apiVersion
680
- ],
681
- headerParameters: [
682
- acceptLanguage
683
- ],
684
- requestBody: {
685
- parameterPath: "parameters",
686
- mapper: __assign(__assign({}, Workspace), { required: true })
687
- },
688
- responses: {
689
- 200: {
690
- bodyMapper: Workspace
691
- },
692
- default: {
693
- bodyMapper: ErrorResponse
694
- }
695
- },
696
- serializer: serializer$1
697
- };
698
- var deleteMethodOperationSpec = {
699
- httpMethod: "DELETE",
700
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
701
- urlParameters: [
702
- subscriptionId,
703
- resourceGroupName,
704
- workspaceName
705
- ],
706
- queryParameters: [
707
- apiVersion
708
- ],
709
- headerParameters: [
710
- acceptLanguage
711
- ],
712
- responses: {
713
- 200: {},
714
- 204: {},
715
- default: {
716
- bodyMapper: ErrorResponse
717
- }
718
- },
719
- serializer: serializer$1
720
- };
721
- var updateOperationSpec = {
722
- httpMethod: "PATCH",
723
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
724
- urlParameters: [
725
- subscriptionId,
726
- resourceGroupName,
727
- workspaceName
728
- ],
729
- queryParameters: [
730
- apiVersion
731
- ],
732
- headerParameters: [
733
- acceptLanguage
734
- ],
735
- requestBody: {
736
- parameterPath: "parameters",
737
- mapper: __assign(__assign({}, WorkspaceUpdateParameters), { required: true })
738
- },
739
- responses: {
740
- 200: {
741
- bodyMapper: Workspace
742
- },
743
- default: {
744
- bodyMapper: ErrorResponse
745
- }
746
- },
747
- serializer: serializer$1
748
- };
749
- var resyncStorageKeysOperationSpec = {
750
- httpMethod: "POST",
751
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
752
- urlParameters: [
753
- subscriptionId,
754
- workspaceName,
755
- resourceGroupName
756
- ],
757
- queryParameters: [
758
- apiVersion
759
- ],
760
- headerParameters: [
761
- acceptLanguage
762
- ],
763
- responses: {
764
- 200: {},
765
- default: {
766
- bodyMapper: ErrorResponse
767
- }
768
- },
769
- serializer: serializer$1
770
- };
771
- var listWorkspaceKeysOperationSpec = {
772
- httpMethod: "POST",
773
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
774
- urlParameters: [
775
- subscriptionId,
776
- workspaceName,
777
- resourceGroupName
778
- ],
779
- queryParameters: [
780
- apiVersion
781
- ],
782
- headerParameters: [
783
- acceptLanguage
784
- ],
785
- responses: {
786
- 200: {
787
- bodyMapper: WorkspaceKeysResponse
788
- },
789
- default: {
790
- bodyMapper: ErrorResponse
791
- }
792
- },
793
- serializer: serializer$1
794
- };
795
- var listByResourceGroupOperationSpec = {
796
- httpMethod: "GET",
797
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
798
- urlParameters: [
799
- subscriptionId,
800
- resourceGroupName
801
- ],
802
- queryParameters: [
803
- apiVersion
804
- ],
805
- headerParameters: [
806
- acceptLanguage
807
- ],
808
- responses: {
809
- 200: {
810
- bodyMapper: WorkspaceListResult
811
- },
812
- default: {
813
- bodyMapper: ErrorResponse
814
- }
815
- },
816
- serializer: serializer$1
817
- };
818
- var listOperationSpec$1 = {
819
- httpMethod: "GET",
820
- path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
821
- urlParameters: [
822
- subscriptionId
823
- ],
824
- queryParameters: [
825
- apiVersion
826
- ],
827
- headerParameters: [
828
- acceptLanguage
829
- ],
830
- responses: {
831
- 200: {
832
- bodyMapper: WorkspaceListResult
833
- },
834
- default: {
835
- bodyMapper: ErrorResponse
836
- }
837
- },
838
- serializer: serializer$1
839
- };
840
- var listByResourceGroupNextOperationSpec = {
841
- httpMethod: "GET",
842
- baseUrl: "https://management.azure.com",
843
- path: "{nextLink}",
844
- urlParameters: [
845
- nextPageLink
846
- ],
847
- headerParameters: [
848
- acceptLanguage
849
- ],
850
- responses: {
851
- 200: {
852
- bodyMapper: WorkspaceListResult
853
- },
854
- default: {
855
- bodyMapper: ErrorResponse
856
- }
857
- },
858
- serializer: serializer$1
859
- };
860
- var listNextOperationSpec = {
861
- httpMethod: "GET",
862
- baseUrl: "https://management.azure.com",
863
- path: "{nextLink}",
864
- urlParameters: [
865
- nextPageLink
866
- ],
867
- headerParameters: [
868
- acceptLanguage
869
- ],
870
- responses: {
871
- 200: {
872
- bodyMapper: WorkspaceListResult
873
- },
874
- default: {
875
- bodyMapper: ErrorResponse
876
- }
877
- },
878
- serializer: serializer$1
879
- };
880
-
881
- /*
882
- * Copyright (c) Microsoft Corporation. All rights reserved.
883
- * Licensed under the MIT License. See License.txt in the project root for
884
- * license information.
885
- *
886
- * Code generated by Microsoft (R) AutoRest Code Generator.
887
- * Changes may cause incorrect behavior and will be lost if the code is
888
- * regenerated.
889
- */
890
-
891
- /*
892
- * Copyright (c) Microsoft Corporation. All rights reserved.
893
- * Licensed under the MIT License. See License.txt in the project root for
894
- * license information.
895
- *
896
- * Code generated by Microsoft (R) AutoRest Code Generator.
897
- * Changes may cause incorrect behavior and will be lost if the code is
898
- * regenerated.
899
- */
900
- var packageName = "@azure/arm-workspaces";
901
- var packageVersion = "0.2.0";
902
- var MachineLearningWorkspacesManagementClientContext = /** @class */ (function (_super) {
903
- __extends(MachineLearningWorkspacesManagementClientContext, _super);
904
- /**
905
- * Initializes a new instance of the MachineLearningWorkspacesManagementClient class.
906
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
907
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
908
- * more information about these credentials, see
909
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
910
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
911
- * @azure/ms-rest-browserauth are also supported.
912
- * @param subscriptionId The Microsoft Azure subscription ID.
913
- * @param [options] The parameter options
914
- */
915
- function MachineLearningWorkspacesManagementClientContext(credentials, subscriptionId, options) {
916
- var _this = this;
917
- if (credentials == undefined) {
918
- throw new Error('\'credentials\' cannot be null.');
919
- }
920
- if (subscriptionId == undefined) {
921
- throw new Error('\'subscriptionId\' cannot be null.');
922
- }
923
- if (!options) {
924
- options = {};
925
- }
926
- if (!options.userAgent) {
927
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
928
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
929
- }
930
- _this = _super.call(this, credentials, options) || this;
931
- _this.apiVersion = '2016-04-01';
932
- _this.acceptLanguage = 'en-US';
933
- _this.longRunningOperationRetryTimeout = 30;
934
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
935
- _this.requestContentType = "application/json; charset=utf-8";
936
- _this.credentials = credentials;
937
- _this.subscriptionId = subscriptionId;
938
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
939
- _this.acceptLanguage = options.acceptLanguage;
940
- }
941
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
942
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
943
- }
944
- return _this;
945
- }
946
- return MachineLearningWorkspacesManagementClientContext;
947
- }(msRestAzure.AzureServiceClient));
948
-
949
- /*
950
- * Copyright (c) Microsoft Corporation. All rights reserved.
951
- * Licensed under the MIT License. See License.txt in the project root for
952
- * license information.
953
- *
954
- * Code generated by Microsoft (R) AutoRest Code Generator.
955
- * Changes may cause incorrect behavior and will be lost if the code is
956
- * regenerated.
957
- */
958
- var MachineLearningWorkspacesManagementClient = /** @class */ (function (_super) {
959
- __extends(MachineLearningWorkspacesManagementClient, _super);
960
- /**
961
- * Initializes a new instance of the MachineLearningWorkspacesManagementClient class.
962
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
963
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
964
- * more information about these credentials, see
965
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
966
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
967
- * @azure/ms-rest-browserauth are also supported.
968
- * @param subscriptionId The Microsoft Azure subscription ID.
969
- * @param [options] The parameter options
970
- */
971
- function MachineLearningWorkspacesManagementClient(credentials, subscriptionId, options) {
972
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
973
- _this.operations = new Operations(_this);
974
- _this.workspaces = new Workspaces(_this);
975
- return _this;
976
- }
977
- return MachineLearningWorkspacesManagementClient;
978
- }(MachineLearningWorkspacesManagementClientContext));
979
-
980
- exports.MachineLearningWorkspacesManagementClient = MachineLearningWorkspacesManagementClient;
981
- exports.MachineLearningWorkspacesManagementClientContext = MachineLearningWorkspacesManagementClientContext;
982
- exports.MachineLearningWorkspacesManagementModels = index;
983
- exports.MachineLearningWorkspacesManagementMappers = mappers;
984
- exports.Operations = Operations;
985
- exports.Workspaces = Workspaces;
986
-
987
- Object.defineProperty(exports, '__esModule', { value: true });
988
-
989
- })));
990
- //# sourceMappingURL=arm-workspaces.js.map