@azure/arm-workspaces 0.2.0 → 1.0.0-alpha.20220119.5
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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +1009 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/listWorkspaceKeys.d.ts +2 -0
- package/dist-esm/samples-dev/listWorkspaceKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/listWorkspaceKeys.js +31 -0
- package/dist-esm/samples-dev/listWorkspaceKeys.js.map +1 -0
- package/dist-esm/samples-dev/resyncStorageKeys.d.ts +2 -0
- package/dist-esm/samples-dev/resyncStorageKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/resyncStorageKeys.js +31 -0
- package/dist-esm/samples-dev/resyncStorageKeys.js.map +1 -0
- package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceCreate.js +38 -0
- package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
- package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceDelete.js +31 -0
- package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
- package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceGet.js +31 -0
- package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
- package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceGetBySubscription.js +43 -0
- package/dist-esm/samples-dev/workspaceGetBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceListResourceGroup.js +44 -0
- package/dist-esm/samples-dev/workspaceListResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceUpdate.js +36 -0
- package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts +19 -0
- package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
- package/dist-esm/src/machineLearningWorkspacesManagementClient.js +52 -0
- package/dist-esm/src/machineLearningWorkspacesManagementClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +190 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +12 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +177 -167
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +102 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/workspaces.d.ts +106 -0
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/workspaces.js +423 -0
- package/dist-esm/src/operations/workspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +84 -25
- package/review/arm-workspaces.api.md +206 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/machineLearningWorkspacesManagementClient.ts +64 -37
- package/src/models/index.ts +184 -393
- package/src/models/mappers.ts +177 -166
- package/src/models/parameters.ts +73 -26
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +66 -42
- package/src/operations/workspaces.ts +329 -406
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/workspaces.ts +123 -0
- package/tsconfig.json +6 -5
- package/types/arm-workspaces.d.ts +316 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-workspaces.js +0 -990
- package/dist/arm-workspaces.js.map +0 -1
- package/dist/arm-workspaces.min.js +0 -1
- package/dist/arm-workspaces.min.js.map +0 -1
- package/esm/machineLearningWorkspacesManagementClient.d.ts +0 -25
- package/esm/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
- package/esm/machineLearningWorkspacesManagementClient.js +0 -39
- package/esm/machineLearningWorkspacesManagementClient.js.map +0 -1
- package/esm/machineLearningWorkspacesManagementClientContext.d.ts +0 -22
- package/esm/machineLearningWorkspacesManagementClientContext.d.ts.map +0 -1
- package/esm/machineLearningWorkspacesManagementClientContext.js +0 -61
- package/esm/machineLearningWorkspacesManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -417
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -13
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -71
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/workspacesMappers.d.ts +0 -2
- package/esm/models/workspacesMappers.d.ts.map +0 -1
- package/esm/models/workspacesMappers.js +0 -11
- package/esm/models/workspacesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/workspaces.d.ts +0 -235
- package/esm/operations/workspaces.d.ts.map +0 -1
- package/esm/operations/workspaces.js +0 -329
- package/esm/operations/workspaces.js.map +0 -1
- package/src/machineLearningWorkspacesManagementClientContext.ts +0 -68
- package/src/models/operationsMappers.ts +0 -17
- package/src/models/workspacesMappers.ts +0 -20
package/dist/index.js
ADDED
|
@@ -0,0 +1,1009 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*
|
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
+
*/
|
|
15
|
+
const OperationListResult = {
|
|
16
|
+
type: {
|
|
17
|
+
name: "Composite",
|
|
18
|
+
className: "OperationListResult",
|
|
19
|
+
modelProperties: {
|
|
20
|
+
value: {
|
|
21
|
+
serializedName: "value",
|
|
22
|
+
type: {
|
|
23
|
+
name: "Sequence",
|
|
24
|
+
element: {
|
|
25
|
+
type: {
|
|
26
|
+
name: "Composite",
|
|
27
|
+
className: "Operation"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const Operation = {
|
|
36
|
+
type: {
|
|
37
|
+
name: "Composite",
|
|
38
|
+
className: "Operation",
|
|
39
|
+
modelProperties: {
|
|
40
|
+
name: {
|
|
41
|
+
serializedName: "name",
|
|
42
|
+
type: {
|
|
43
|
+
name: "String"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
display: {
|
|
47
|
+
serializedName: "display",
|
|
48
|
+
type: {
|
|
49
|
+
name: "Composite",
|
|
50
|
+
className: "OperationDisplay"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const OperationDisplay = {
|
|
57
|
+
type: {
|
|
58
|
+
name: "Composite",
|
|
59
|
+
className: "OperationDisplay",
|
|
60
|
+
modelProperties: {
|
|
61
|
+
provider: {
|
|
62
|
+
serializedName: "provider",
|
|
63
|
+
type: {
|
|
64
|
+
name: "String"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
resource: {
|
|
68
|
+
serializedName: "resource",
|
|
69
|
+
type: {
|
|
70
|
+
name: "String"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
operation: {
|
|
74
|
+
serializedName: "operation",
|
|
75
|
+
type: {
|
|
76
|
+
name: "String"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
description: {
|
|
80
|
+
serializedName: "description",
|
|
81
|
+
type: {
|
|
82
|
+
name: "String"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const ErrorResponse = {
|
|
89
|
+
type: {
|
|
90
|
+
name: "Composite",
|
|
91
|
+
className: "ErrorResponse",
|
|
92
|
+
modelProperties: {
|
|
93
|
+
code: {
|
|
94
|
+
serializedName: "code",
|
|
95
|
+
required: true,
|
|
96
|
+
type: {
|
|
97
|
+
name: "String"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
message: {
|
|
101
|
+
serializedName: "message",
|
|
102
|
+
required: true,
|
|
103
|
+
type: {
|
|
104
|
+
name: "String"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const Resource = {
|
|
111
|
+
type: {
|
|
112
|
+
name: "Composite",
|
|
113
|
+
className: "Resource",
|
|
114
|
+
modelProperties: {
|
|
115
|
+
id: {
|
|
116
|
+
serializedName: "id",
|
|
117
|
+
readOnly: true,
|
|
118
|
+
type: {
|
|
119
|
+
name: "String"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
name: {
|
|
123
|
+
serializedName: "name",
|
|
124
|
+
readOnly: true,
|
|
125
|
+
type: {
|
|
126
|
+
name: "String"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
type: {
|
|
130
|
+
serializedName: "type",
|
|
131
|
+
readOnly: true,
|
|
132
|
+
type: {
|
|
133
|
+
name: "String"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
location: {
|
|
137
|
+
serializedName: "location",
|
|
138
|
+
required: true,
|
|
139
|
+
type: {
|
|
140
|
+
name: "String"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
tags: {
|
|
144
|
+
serializedName: "tags",
|
|
145
|
+
type: {
|
|
146
|
+
name: "Dictionary",
|
|
147
|
+
value: { type: { name: "String" } }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
sku: {
|
|
151
|
+
serializedName: "sku",
|
|
152
|
+
type: {
|
|
153
|
+
name: "Composite",
|
|
154
|
+
className: "Sku"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const Sku = {
|
|
161
|
+
type: {
|
|
162
|
+
name: "Composite",
|
|
163
|
+
className: "Sku",
|
|
164
|
+
modelProperties: {
|
|
165
|
+
name: {
|
|
166
|
+
serializedName: "name",
|
|
167
|
+
type: {
|
|
168
|
+
name: "String"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
tier: {
|
|
172
|
+
serializedName: "tier",
|
|
173
|
+
type: {
|
|
174
|
+
name: "String"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
const WorkspaceUpdateParameters = {
|
|
181
|
+
type: {
|
|
182
|
+
name: "Composite",
|
|
183
|
+
className: "WorkspaceUpdateParameters",
|
|
184
|
+
modelProperties: {
|
|
185
|
+
tags: {
|
|
186
|
+
serializedName: "tags",
|
|
187
|
+
type: {
|
|
188
|
+
name: "Dictionary",
|
|
189
|
+
value: { type: { name: "String" } }
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
workspaceState: {
|
|
193
|
+
serializedName: "properties.workspaceState",
|
|
194
|
+
type: {
|
|
195
|
+
name: "Enum",
|
|
196
|
+
allowedValues: [
|
|
197
|
+
"Deleted",
|
|
198
|
+
"Enabled",
|
|
199
|
+
"Disabled",
|
|
200
|
+
"Migrated",
|
|
201
|
+
"Updated",
|
|
202
|
+
"Registered",
|
|
203
|
+
"Unregistered"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
keyVaultIdentifierId: {
|
|
208
|
+
serializedName: "properties.keyVaultIdentifierId",
|
|
209
|
+
type: {
|
|
210
|
+
name: "String"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
sku: {
|
|
214
|
+
serializedName: "properties.sku",
|
|
215
|
+
type: {
|
|
216
|
+
name: "Composite",
|
|
217
|
+
className: "Sku"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
const WorkspaceKeysResponse = {
|
|
224
|
+
type: {
|
|
225
|
+
name: "Composite",
|
|
226
|
+
className: "WorkspaceKeysResponse",
|
|
227
|
+
modelProperties: {
|
|
228
|
+
primaryToken: {
|
|
229
|
+
serializedName: "primaryToken",
|
|
230
|
+
type: {
|
|
231
|
+
name: "String"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
secondaryToken: {
|
|
235
|
+
serializedName: "secondaryToken",
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
const WorkspaceListResult = {
|
|
244
|
+
type: {
|
|
245
|
+
name: "Composite",
|
|
246
|
+
className: "WorkspaceListResult",
|
|
247
|
+
modelProperties: {
|
|
248
|
+
value: {
|
|
249
|
+
serializedName: "value",
|
|
250
|
+
type: {
|
|
251
|
+
name: "Sequence",
|
|
252
|
+
element: {
|
|
253
|
+
type: {
|
|
254
|
+
name: "Composite",
|
|
255
|
+
className: "Workspace"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
nextLink: {
|
|
261
|
+
serializedName: "nextLink",
|
|
262
|
+
type: {
|
|
263
|
+
name: "String"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
const Workspace = {
|
|
270
|
+
type: {
|
|
271
|
+
name: "Composite",
|
|
272
|
+
className: "Workspace",
|
|
273
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { userStorageAccountId: {
|
|
274
|
+
serializedName: "properties.userStorageAccountId",
|
|
275
|
+
type: {
|
|
276
|
+
name: "String"
|
|
277
|
+
}
|
|
278
|
+
}, ownerEmail: {
|
|
279
|
+
serializedName: "properties.ownerEmail",
|
|
280
|
+
type: {
|
|
281
|
+
name: "String"
|
|
282
|
+
}
|
|
283
|
+
}, workspaceType: {
|
|
284
|
+
serializedName: "properties.workspaceType",
|
|
285
|
+
readOnly: true,
|
|
286
|
+
type: {
|
|
287
|
+
name: "Enum",
|
|
288
|
+
allowedValues: [
|
|
289
|
+
"Production",
|
|
290
|
+
"Free",
|
|
291
|
+
"Anonymous",
|
|
292
|
+
"PaidStandard",
|
|
293
|
+
"PaidPremium"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}, workspaceState: {
|
|
297
|
+
serializedName: "properties.workspaceState",
|
|
298
|
+
readOnly: true,
|
|
299
|
+
type: {
|
|
300
|
+
name: "Enum",
|
|
301
|
+
allowedValues: [
|
|
302
|
+
"Deleted",
|
|
303
|
+
"Enabled",
|
|
304
|
+
"Disabled",
|
|
305
|
+
"Migrated",
|
|
306
|
+
"Updated",
|
|
307
|
+
"Registered",
|
|
308
|
+
"Unregistered"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
}, workspaceId: {
|
|
312
|
+
serializedName: "properties.workspaceId",
|
|
313
|
+
readOnly: true,
|
|
314
|
+
type: {
|
|
315
|
+
name: "String"
|
|
316
|
+
}
|
|
317
|
+
}, creationTime: {
|
|
318
|
+
serializedName: "properties.creationTime",
|
|
319
|
+
readOnly: true,
|
|
320
|
+
type: {
|
|
321
|
+
name: "String"
|
|
322
|
+
}
|
|
323
|
+
}, studioEndpoint: {
|
|
324
|
+
serializedName: "properties.studioEndpoint",
|
|
325
|
+
readOnly: true,
|
|
326
|
+
type: {
|
|
327
|
+
name: "String"
|
|
328
|
+
}
|
|
329
|
+
}, keyVaultIdentifierId: {
|
|
330
|
+
serializedName: "properties.keyVaultIdentifierId",
|
|
331
|
+
type: {
|
|
332
|
+
name: "String"
|
|
333
|
+
}
|
|
334
|
+
} })
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
339
|
+
__proto__: null,
|
|
340
|
+
OperationListResult: OperationListResult,
|
|
341
|
+
Operation: Operation,
|
|
342
|
+
OperationDisplay: OperationDisplay,
|
|
343
|
+
ErrorResponse: ErrorResponse,
|
|
344
|
+
Resource: Resource,
|
|
345
|
+
Sku: Sku,
|
|
346
|
+
WorkspaceUpdateParameters: WorkspaceUpdateParameters,
|
|
347
|
+
WorkspaceKeysResponse: WorkspaceKeysResponse,
|
|
348
|
+
WorkspaceListResult: WorkspaceListResult,
|
|
349
|
+
Workspace: Workspace
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
/*
|
|
353
|
+
* Copyright (c) Microsoft Corporation.
|
|
354
|
+
* Licensed under the MIT License.
|
|
355
|
+
*
|
|
356
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
357
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
358
|
+
*/
|
|
359
|
+
const accept = {
|
|
360
|
+
parameterPath: "accept",
|
|
361
|
+
mapper: {
|
|
362
|
+
defaultValue: "application/json",
|
|
363
|
+
isConstant: true,
|
|
364
|
+
serializedName: "Accept",
|
|
365
|
+
type: {
|
|
366
|
+
name: "String"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
const $host = {
|
|
371
|
+
parameterPath: "$host",
|
|
372
|
+
mapper: {
|
|
373
|
+
serializedName: "$host",
|
|
374
|
+
required: true,
|
|
375
|
+
type: {
|
|
376
|
+
name: "String"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
skipEncoding: true
|
|
380
|
+
};
|
|
381
|
+
const apiVersion = {
|
|
382
|
+
parameterPath: "apiVersion",
|
|
383
|
+
mapper: {
|
|
384
|
+
defaultValue: "2019-10-01",
|
|
385
|
+
isConstant: true,
|
|
386
|
+
serializedName: "api-version",
|
|
387
|
+
type: {
|
|
388
|
+
name: "String"
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
const subscriptionId = {
|
|
393
|
+
parameterPath: "subscriptionId",
|
|
394
|
+
mapper: {
|
|
395
|
+
serializedName: "subscriptionId",
|
|
396
|
+
required: true,
|
|
397
|
+
type: {
|
|
398
|
+
name: "String"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
const resourceGroupName = {
|
|
403
|
+
parameterPath: "resourceGroupName",
|
|
404
|
+
mapper: {
|
|
405
|
+
serializedName: "resourceGroupName",
|
|
406
|
+
required: true,
|
|
407
|
+
type: {
|
|
408
|
+
name: "String"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
const workspaceName = {
|
|
413
|
+
parameterPath: "workspaceName",
|
|
414
|
+
mapper: {
|
|
415
|
+
serializedName: "workspaceName",
|
|
416
|
+
required: true,
|
|
417
|
+
type: {
|
|
418
|
+
name: "String"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
const contentType = {
|
|
423
|
+
parameterPath: ["options", "contentType"],
|
|
424
|
+
mapper: {
|
|
425
|
+
defaultValue: "application/json",
|
|
426
|
+
isConstant: true,
|
|
427
|
+
serializedName: "Content-Type",
|
|
428
|
+
type: {
|
|
429
|
+
name: "String"
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
const parameters = {
|
|
434
|
+
parameterPath: "parameters",
|
|
435
|
+
mapper: Workspace
|
|
436
|
+
};
|
|
437
|
+
const parameters1 = {
|
|
438
|
+
parameterPath: "parameters",
|
|
439
|
+
mapper: WorkspaceUpdateParameters
|
|
440
|
+
};
|
|
441
|
+
const nextLink = {
|
|
442
|
+
parameterPath: "nextLink",
|
|
443
|
+
mapper: {
|
|
444
|
+
serializedName: "nextLink",
|
|
445
|
+
required: true,
|
|
446
|
+
type: {
|
|
447
|
+
name: "String"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
skipEncoding: true
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
/*
|
|
454
|
+
* Copyright (c) Microsoft Corporation.
|
|
455
|
+
* Licensed under the MIT License.
|
|
456
|
+
*
|
|
457
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
458
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
459
|
+
*/
|
|
460
|
+
/// <reference lib="esnext.asynciterable" />
|
|
461
|
+
/** Class containing Operations operations. */
|
|
462
|
+
class OperationsImpl {
|
|
463
|
+
/**
|
|
464
|
+
* Initialize a new instance of the class Operations class.
|
|
465
|
+
* @param client Reference to the service client
|
|
466
|
+
*/
|
|
467
|
+
constructor(client) {
|
|
468
|
+
this.client = client;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Lists all of the available Azure Machine Learning Studio REST API operations.
|
|
472
|
+
* @param options The options parameters.
|
|
473
|
+
*/
|
|
474
|
+
list(options) {
|
|
475
|
+
const iter = this.listPagingAll(options);
|
|
476
|
+
return {
|
|
477
|
+
next() {
|
|
478
|
+
return iter.next();
|
|
479
|
+
},
|
|
480
|
+
[Symbol.asyncIterator]() {
|
|
481
|
+
return this;
|
|
482
|
+
},
|
|
483
|
+
byPage: () => {
|
|
484
|
+
return this.listPagingPage(options);
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
listPagingPage(options) {
|
|
489
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
490
|
+
let result = yield tslib.__await(this._list(options));
|
|
491
|
+
yield yield tslib.__await(result.value || []);
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
listPagingAll(options) {
|
|
495
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
496
|
+
var e_1, _a;
|
|
497
|
+
try {
|
|
498
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
499
|
+
const page = _c.value;
|
|
500
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
504
|
+
finally {
|
|
505
|
+
try {
|
|
506
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
507
|
+
}
|
|
508
|
+
finally { if (e_1) throw e_1.error; }
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Lists all of the available Azure Machine Learning Studio REST API operations.
|
|
514
|
+
* @param options The options parameters.
|
|
515
|
+
*/
|
|
516
|
+
_list(options) {
|
|
517
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
// Operation Specifications
|
|
521
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
522
|
+
const listOperationSpec = {
|
|
523
|
+
path: "/providers/Microsoft.MachineLearning/operations",
|
|
524
|
+
httpMethod: "GET",
|
|
525
|
+
responses: {
|
|
526
|
+
200: {
|
|
527
|
+
bodyMapper: OperationListResult
|
|
528
|
+
},
|
|
529
|
+
default: {
|
|
530
|
+
bodyMapper: ErrorResponse
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
queryParameters: [apiVersion],
|
|
534
|
+
urlParameters: [$host],
|
|
535
|
+
headerParameters: [accept],
|
|
536
|
+
serializer
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/*
|
|
540
|
+
* Copyright (c) Microsoft Corporation.
|
|
541
|
+
* Licensed under the MIT License.
|
|
542
|
+
*
|
|
543
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
544
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
545
|
+
*/
|
|
546
|
+
/// <reference lib="esnext.asynciterable" />
|
|
547
|
+
/** Class containing Workspaces operations. */
|
|
548
|
+
class WorkspacesImpl {
|
|
549
|
+
/**
|
|
550
|
+
* Initialize a new instance of the class Workspaces class.
|
|
551
|
+
* @param client Reference to the service client
|
|
552
|
+
*/
|
|
553
|
+
constructor(client) {
|
|
554
|
+
this.client = client;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Lists all the available machine learning workspaces under the specified resource group.
|
|
558
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
559
|
+
* belongs.
|
|
560
|
+
* @param options The options parameters.
|
|
561
|
+
*/
|
|
562
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
563
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
564
|
+
return {
|
|
565
|
+
next() {
|
|
566
|
+
return iter.next();
|
|
567
|
+
},
|
|
568
|
+
[Symbol.asyncIterator]() {
|
|
569
|
+
return this;
|
|
570
|
+
},
|
|
571
|
+
byPage: () => {
|
|
572
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
577
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
578
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
579
|
+
yield yield tslib.__await(result.value || []);
|
|
580
|
+
let continuationToken = result.nextLink;
|
|
581
|
+
while (continuationToken) {
|
|
582
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
583
|
+
continuationToken = result.nextLink;
|
|
584
|
+
yield yield tslib.__await(result.value || []);
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
589
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
590
|
+
var e_1, _a;
|
|
591
|
+
try {
|
|
592
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
593
|
+
const page = _c.value;
|
|
594
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
598
|
+
finally {
|
|
599
|
+
try {
|
|
600
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
601
|
+
}
|
|
602
|
+
finally { if (e_1) throw e_1.error; }
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Lists all the available machine learning workspaces under the specified subscription.
|
|
608
|
+
* @param options The options parameters.
|
|
609
|
+
*/
|
|
610
|
+
list(options) {
|
|
611
|
+
const iter = this.listPagingAll(options);
|
|
612
|
+
return {
|
|
613
|
+
next() {
|
|
614
|
+
return iter.next();
|
|
615
|
+
},
|
|
616
|
+
[Symbol.asyncIterator]() {
|
|
617
|
+
return this;
|
|
618
|
+
},
|
|
619
|
+
byPage: () => {
|
|
620
|
+
return this.listPagingPage(options);
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
listPagingPage(options) {
|
|
625
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
626
|
+
let result = yield tslib.__await(this._list(options));
|
|
627
|
+
yield yield tslib.__await(result.value || []);
|
|
628
|
+
let continuationToken = result.nextLink;
|
|
629
|
+
while (continuationToken) {
|
|
630
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
631
|
+
continuationToken = result.nextLink;
|
|
632
|
+
yield yield tslib.__await(result.value || []);
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
listPagingAll(options) {
|
|
637
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
638
|
+
var e_2, _a;
|
|
639
|
+
try {
|
|
640
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
641
|
+
const page = _c.value;
|
|
642
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
646
|
+
finally {
|
|
647
|
+
try {
|
|
648
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
649
|
+
}
|
|
650
|
+
finally { if (e_2) throw e_2.error; }
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Gets the properties of the specified machine learning workspace.
|
|
656
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
657
|
+
* belongs.
|
|
658
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
659
|
+
* @param options The options parameters.
|
|
660
|
+
*/
|
|
661
|
+
get(resourceGroupName, workspaceName, options) {
|
|
662
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Creates or updates a workspace with the specified parameters.
|
|
666
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
667
|
+
* belongs.
|
|
668
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
669
|
+
* @param parameters The parameters for creating or updating a machine learning workspace.
|
|
670
|
+
* @param options The options parameters.
|
|
671
|
+
*/
|
|
672
|
+
createOrUpdate(resourceGroupName, workspaceName, parameters, options) {
|
|
673
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Deletes a machine learning workspace.
|
|
677
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
678
|
+
* belongs.
|
|
679
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
680
|
+
* @param options The options parameters.
|
|
681
|
+
*/
|
|
682
|
+
delete(resourceGroupName, workspaceName, options) {
|
|
683
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Updates a machine learning workspace with the specified parameters.
|
|
687
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
688
|
+
* belongs.
|
|
689
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
690
|
+
* @param parameters The parameters for updating a machine learning workspace.
|
|
691
|
+
* @param options The options parameters.
|
|
692
|
+
*/
|
|
693
|
+
update(resourceGroupName, workspaceName, parameters, options) {
|
|
694
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Resync storage keys associated with this workspace.
|
|
698
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
699
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
700
|
+
* belongs.
|
|
701
|
+
* @param options The options parameters.
|
|
702
|
+
*/
|
|
703
|
+
resyncStorageKeys(workspaceName, resourceGroupName, options) {
|
|
704
|
+
return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, resyncStorageKeysOperationSpec);
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* List the authorization keys associated with this workspace.
|
|
708
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
709
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
710
|
+
* belongs.
|
|
711
|
+
* @param options The options parameters.
|
|
712
|
+
*/
|
|
713
|
+
listWorkspaceKeys(workspaceName, resourceGroupName, options) {
|
|
714
|
+
return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, listWorkspaceKeysOperationSpec);
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Lists all the available machine learning workspaces under the specified resource group.
|
|
718
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
719
|
+
* belongs.
|
|
720
|
+
* @param options The options parameters.
|
|
721
|
+
*/
|
|
722
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
723
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Lists all the available machine learning workspaces under the specified subscription.
|
|
727
|
+
* @param options The options parameters.
|
|
728
|
+
*/
|
|
729
|
+
_list(options) {
|
|
730
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* ListByResourceGroupNext
|
|
734
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
735
|
+
* belongs.
|
|
736
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
737
|
+
* @param options The options parameters.
|
|
738
|
+
*/
|
|
739
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
740
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* ListNext
|
|
744
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
745
|
+
* @param options The options parameters.
|
|
746
|
+
*/
|
|
747
|
+
_listNext(nextLink, options) {
|
|
748
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
// Operation Specifications
|
|
752
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
753
|
+
const getOperationSpec = {
|
|
754
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
755
|
+
httpMethod: "GET",
|
|
756
|
+
responses: {
|
|
757
|
+
200: {
|
|
758
|
+
bodyMapper: Workspace
|
|
759
|
+
},
|
|
760
|
+
default: {
|
|
761
|
+
bodyMapper: ErrorResponse
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
queryParameters: [apiVersion],
|
|
765
|
+
urlParameters: [
|
|
766
|
+
$host,
|
|
767
|
+
subscriptionId,
|
|
768
|
+
resourceGroupName,
|
|
769
|
+
workspaceName
|
|
770
|
+
],
|
|
771
|
+
headerParameters: [accept],
|
|
772
|
+
serializer: serializer$1
|
|
773
|
+
};
|
|
774
|
+
const createOrUpdateOperationSpec = {
|
|
775
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
776
|
+
httpMethod: "PUT",
|
|
777
|
+
responses: {
|
|
778
|
+
200: {
|
|
779
|
+
bodyMapper: Workspace
|
|
780
|
+
},
|
|
781
|
+
default: {
|
|
782
|
+
bodyMapper: ErrorResponse
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
requestBody: parameters,
|
|
786
|
+
queryParameters: [apiVersion],
|
|
787
|
+
urlParameters: [
|
|
788
|
+
$host,
|
|
789
|
+
subscriptionId,
|
|
790
|
+
resourceGroupName,
|
|
791
|
+
workspaceName
|
|
792
|
+
],
|
|
793
|
+
headerParameters: [accept, contentType],
|
|
794
|
+
mediaType: "json",
|
|
795
|
+
serializer: serializer$1
|
|
796
|
+
};
|
|
797
|
+
const deleteOperationSpec = {
|
|
798
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
799
|
+
httpMethod: "DELETE",
|
|
800
|
+
responses: {
|
|
801
|
+
200: {},
|
|
802
|
+
204: {},
|
|
803
|
+
default: {
|
|
804
|
+
bodyMapper: ErrorResponse
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
queryParameters: [apiVersion],
|
|
808
|
+
urlParameters: [
|
|
809
|
+
$host,
|
|
810
|
+
subscriptionId,
|
|
811
|
+
resourceGroupName,
|
|
812
|
+
workspaceName
|
|
813
|
+
],
|
|
814
|
+
headerParameters: [accept],
|
|
815
|
+
serializer: serializer$1
|
|
816
|
+
};
|
|
817
|
+
const updateOperationSpec = {
|
|
818
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
819
|
+
httpMethod: "PATCH",
|
|
820
|
+
responses: {
|
|
821
|
+
200: {
|
|
822
|
+
bodyMapper: Workspace
|
|
823
|
+
},
|
|
824
|
+
default: {
|
|
825
|
+
bodyMapper: ErrorResponse
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
requestBody: parameters1,
|
|
829
|
+
queryParameters: [apiVersion],
|
|
830
|
+
urlParameters: [
|
|
831
|
+
$host,
|
|
832
|
+
subscriptionId,
|
|
833
|
+
resourceGroupName,
|
|
834
|
+
workspaceName
|
|
835
|
+
],
|
|
836
|
+
headerParameters: [accept, contentType],
|
|
837
|
+
mediaType: "json",
|
|
838
|
+
serializer: serializer$1
|
|
839
|
+
};
|
|
840
|
+
const resyncStorageKeysOperationSpec = {
|
|
841
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
|
|
842
|
+
httpMethod: "POST",
|
|
843
|
+
responses: {
|
|
844
|
+
200: {},
|
|
845
|
+
default: {
|
|
846
|
+
bodyMapper: ErrorResponse
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
queryParameters: [apiVersion],
|
|
850
|
+
urlParameters: [
|
|
851
|
+
$host,
|
|
852
|
+
subscriptionId,
|
|
853
|
+
resourceGroupName,
|
|
854
|
+
workspaceName
|
|
855
|
+
],
|
|
856
|
+
headerParameters: [accept],
|
|
857
|
+
serializer: serializer$1
|
|
858
|
+
};
|
|
859
|
+
const listWorkspaceKeysOperationSpec = {
|
|
860
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
|
|
861
|
+
httpMethod: "POST",
|
|
862
|
+
responses: {
|
|
863
|
+
200: {
|
|
864
|
+
bodyMapper: WorkspaceKeysResponse
|
|
865
|
+
},
|
|
866
|
+
default: {
|
|
867
|
+
bodyMapper: ErrorResponse
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
queryParameters: [apiVersion],
|
|
871
|
+
urlParameters: [
|
|
872
|
+
$host,
|
|
873
|
+
subscriptionId,
|
|
874
|
+
resourceGroupName,
|
|
875
|
+
workspaceName
|
|
876
|
+
],
|
|
877
|
+
headerParameters: [accept],
|
|
878
|
+
serializer: serializer$1
|
|
879
|
+
};
|
|
880
|
+
const listByResourceGroupOperationSpec = {
|
|
881
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
|
|
882
|
+
httpMethod: "GET",
|
|
883
|
+
responses: {
|
|
884
|
+
200: {
|
|
885
|
+
bodyMapper: WorkspaceListResult
|
|
886
|
+
},
|
|
887
|
+
default: {
|
|
888
|
+
bodyMapper: ErrorResponse
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
queryParameters: [apiVersion],
|
|
892
|
+
urlParameters: [
|
|
893
|
+
$host,
|
|
894
|
+
subscriptionId,
|
|
895
|
+
resourceGroupName
|
|
896
|
+
],
|
|
897
|
+
headerParameters: [accept],
|
|
898
|
+
serializer: serializer$1
|
|
899
|
+
};
|
|
900
|
+
const listOperationSpec$1 = {
|
|
901
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
|
|
902
|
+
httpMethod: "GET",
|
|
903
|
+
responses: {
|
|
904
|
+
200: {
|
|
905
|
+
bodyMapper: WorkspaceListResult
|
|
906
|
+
},
|
|
907
|
+
default: {
|
|
908
|
+
bodyMapper: ErrorResponse
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
queryParameters: [apiVersion],
|
|
912
|
+
urlParameters: [$host, subscriptionId],
|
|
913
|
+
headerParameters: [accept],
|
|
914
|
+
serializer: serializer$1
|
|
915
|
+
};
|
|
916
|
+
const listByResourceGroupNextOperationSpec = {
|
|
917
|
+
path: "{nextLink}",
|
|
918
|
+
httpMethod: "GET",
|
|
919
|
+
responses: {
|
|
920
|
+
200: {
|
|
921
|
+
bodyMapper: WorkspaceListResult
|
|
922
|
+
},
|
|
923
|
+
default: {
|
|
924
|
+
bodyMapper: ErrorResponse
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
queryParameters: [apiVersion],
|
|
928
|
+
urlParameters: [
|
|
929
|
+
$host,
|
|
930
|
+
subscriptionId,
|
|
931
|
+
resourceGroupName,
|
|
932
|
+
nextLink
|
|
933
|
+
],
|
|
934
|
+
headerParameters: [accept],
|
|
935
|
+
serializer: serializer$1
|
|
936
|
+
};
|
|
937
|
+
const listNextOperationSpec = {
|
|
938
|
+
path: "{nextLink}",
|
|
939
|
+
httpMethod: "GET",
|
|
940
|
+
responses: {
|
|
941
|
+
200: {
|
|
942
|
+
bodyMapper: WorkspaceListResult
|
|
943
|
+
},
|
|
944
|
+
default: {
|
|
945
|
+
bodyMapper: ErrorResponse
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
queryParameters: [apiVersion],
|
|
949
|
+
urlParameters: [
|
|
950
|
+
$host,
|
|
951
|
+
subscriptionId,
|
|
952
|
+
nextLink
|
|
953
|
+
],
|
|
954
|
+
headerParameters: [accept],
|
|
955
|
+
serializer: serializer$1
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
/*
|
|
959
|
+
* Copyright (c) Microsoft Corporation.
|
|
960
|
+
* Licensed under the MIT License.
|
|
961
|
+
*
|
|
962
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
963
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
964
|
+
*/
|
|
965
|
+
class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient {
|
|
966
|
+
/**
|
|
967
|
+
* Initializes a new instance of the MachineLearningWorkspacesManagementClient class.
|
|
968
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
969
|
+
* @param subscriptionId The Microsoft Azure subscription ID.
|
|
970
|
+
* @param options The parameter options
|
|
971
|
+
*/
|
|
972
|
+
constructor(credentials, subscriptionId, options) {
|
|
973
|
+
if (credentials === undefined) {
|
|
974
|
+
throw new Error("'credentials' cannot be null");
|
|
975
|
+
}
|
|
976
|
+
if (subscriptionId === undefined) {
|
|
977
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
978
|
+
}
|
|
979
|
+
// Initializing default values for options
|
|
980
|
+
if (!options) {
|
|
981
|
+
options = {};
|
|
982
|
+
}
|
|
983
|
+
const defaults = {
|
|
984
|
+
requestContentType: "application/json; charset=utf-8",
|
|
985
|
+
credential: credentials
|
|
986
|
+
};
|
|
987
|
+
const packageDetails = `azsdk-js-arm-workspaces/1.0.0`;
|
|
988
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
989
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
990
|
+
: `${packageDetails}`;
|
|
991
|
+
if (!options.credentialScopes) {
|
|
992
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
993
|
+
}
|
|
994
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
995
|
+
userAgentPrefix
|
|
996
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
997
|
+
super(optionsWithDefaults);
|
|
998
|
+
// Parameter assignments
|
|
999
|
+
this.subscriptionId = subscriptionId;
|
|
1000
|
+
// Assigning values to Constant parameters
|
|
1001
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1002
|
+
this.apiVersion = options.apiVersion || "2019-10-01";
|
|
1003
|
+
this.operations = new OperationsImpl(this);
|
|
1004
|
+
this.workspaces = new WorkspacesImpl(this);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
exports.MachineLearningWorkspacesManagementClient = MachineLearningWorkspacesManagementClient;
|
|
1009
|
+
//# sourceMappingURL=index.js.map
|