@azure/arm-workspaces 0.1.1 → 1.0.0-alpha.20220201.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 (154) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -73
  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 +85 -25
  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 +77 -0
  93. package/src/models/index.ts +237 -0
  94. package/{lib → src}/models/mappers.ts +177 -166
  95. package/src/models/parameters.ts +120 -0
  96. package/{lib → src}/operations/index.ts +3 -5
  97. package/src/operations/operations.ts +98 -0
  98. package/src/operations/workspaces.ts +532 -0
  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 -980
  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 -19
  110. package/esm/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
  111. package/esm/machineLearningWorkspacesManagementClient.js +0 -34
  112. package/esm/machineLearningWorkspacesManagementClient.js.map +0 -1
  113. package/esm/machineLearningWorkspacesManagementClientContext.d.ts +0 -16
  114. package/esm/machineLearningWorkspacesManagementClientContext.d.ts.map +0 -1
  115. package/esm/machineLearningWorkspacesManagementClientContext.js +0 -56
  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/lib/machineLearningWorkspacesManagementClient.ts +0 -44
  148. package/lib/machineLearningWorkspacesManagementClientContext.ts +0 -62
  149. package/lib/models/index.ts +0 -446
  150. package/lib/models/operationsMappers.ts +0 -17
  151. package/lib/models/parameters.ts +0 -73
  152. package/lib/models/workspacesMappers.ts +0 -20
  153. package/lib/operations/operations.ts +0 -74
  154. package/lib/operations/workspaces.ts +0 -609
@@ -0,0 +1,98 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { MachineLearningWorkspacesManagementClient } from "../machineLearningWorkspacesManagementClient";
15
+ import {
16
+ Operation,
17
+ OperationsListOptionalParams,
18
+ OperationsListResponse
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Class containing Operations operations. */
23
+ export class OperationsImpl implements Operations {
24
+ private readonly client: MachineLearningWorkspacesManagementClient;
25
+
26
+ /**
27
+ * Initialize a new instance of the class Operations class.
28
+ * @param client Reference to the service client
29
+ */
30
+ constructor(client: MachineLearningWorkspacesManagementClient) {
31
+ this.client = client;
32
+ }
33
+
34
+ /**
35
+ * Lists all of the available Azure Machine Learning Studio REST API operations.
36
+ * @param options The options parameters.
37
+ */
38
+ public list(
39
+ options?: OperationsListOptionalParams
40
+ ): PagedAsyncIterableIterator<Operation> {
41
+ const iter = this.listPagingAll(options);
42
+ return {
43
+ next() {
44
+ return iter.next();
45
+ },
46
+ [Symbol.asyncIterator]() {
47
+ return this;
48
+ },
49
+ byPage: () => {
50
+ return this.listPagingPage(options);
51
+ }
52
+ };
53
+ }
54
+
55
+ private async *listPagingPage(
56
+ options?: OperationsListOptionalParams
57
+ ): AsyncIterableIterator<Operation[]> {
58
+ let result = await this._list(options);
59
+ yield result.value || [];
60
+ }
61
+
62
+ private async *listPagingAll(
63
+ options?: OperationsListOptionalParams
64
+ ): AsyncIterableIterator<Operation> {
65
+ for await (const page of this.listPagingPage(options)) {
66
+ yield* page;
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Lists all of the available Azure Machine Learning Studio REST API operations.
72
+ * @param options The options parameters.
73
+ */
74
+ private _list(
75
+ options?: OperationsListOptionalParams
76
+ ): Promise<OperationsListResponse> {
77
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
78
+ }
79
+ }
80
+ // Operation Specifications
81
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
82
+
83
+ const listOperationSpec: coreClient.OperationSpec = {
84
+ path: "/providers/Microsoft.MachineLearning/operations",
85
+ httpMethod: "GET",
86
+ responses: {
87
+ 200: {
88
+ bodyMapper: Mappers.OperationListResult
89
+ },
90
+ default: {
91
+ bodyMapper: Mappers.ErrorResponse
92
+ }
93
+ },
94
+ queryParameters: [Parameters.apiVersion],
95
+ urlParameters: [Parameters.$host],
96
+ headerParameters: [Parameters.accept],
97
+ serializer
98
+ };
@@ -0,0 +1,532 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Workspaces } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { MachineLearningWorkspacesManagementClient } from "../machineLearningWorkspacesManagementClient";
15
+ import {
16
+ Workspace,
17
+ WorkspacesListByResourceGroupNextOptionalParams,
18
+ WorkspacesListByResourceGroupOptionalParams,
19
+ WorkspacesListNextOptionalParams,
20
+ WorkspacesListOptionalParams,
21
+ WorkspacesGetOptionalParams,
22
+ WorkspacesGetResponse,
23
+ WorkspacesCreateOrUpdateOptionalParams,
24
+ WorkspacesCreateOrUpdateResponse,
25
+ WorkspacesDeleteOptionalParams,
26
+ WorkspaceUpdateParameters,
27
+ WorkspacesUpdateOptionalParams,
28
+ WorkspacesUpdateResponse,
29
+ WorkspacesResyncStorageKeysOptionalParams,
30
+ WorkspacesListWorkspaceKeysOptionalParams,
31
+ WorkspacesListWorkspaceKeysResponse,
32
+ WorkspacesListByResourceGroupResponse,
33
+ WorkspacesListResponse,
34
+ WorkspacesListByResourceGroupNextResponse,
35
+ WorkspacesListNextResponse
36
+ } from "../models";
37
+
38
+ /// <reference lib="esnext.asynciterable" />
39
+ /** Class containing Workspaces operations. */
40
+ export class WorkspacesImpl implements Workspaces {
41
+ private readonly client: MachineLearningWorkspacesManagementClient;
42
+
43
+ /**
44
+ * Initialize a new instance of the class Workspaces class.
45
+ * @param client Reference to the service client
46
+ */
47
+ constructor(client: MachineLearningWorkspacesManagementClient) {
48
+ this.client = client;
49
+ }
50
+
51
+ /**
52
+ * Lists all the available machine learning workspaces under the specified resource group.
53
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
54
+ * belongs.
55
+ * @param options The options parameters.
56
+ */
57
+ public listByResourceGroup(
58
+ resourceGroupName: string,
59
+ options?: WorkspacesListByResourceGroupOptionalParams
60
+ ): PagedAsyncIterableIterator<Workspace> {
61
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
68
+ },
69
+ byPage: () => {
70
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
71
+ }
72
+ };
73
+ }
74
+
75
+ private async *listByResourceGroupPagingPage(
76
+ resourceGroupName: string,
77
+ options?: WorkspacesListByResourceGroupOptionalParams
78
+ ): AsyncIterableIterator<Workspace[]> {
79
+ let result = await this._listByResourceGroup(resourceGroupName, options);
80
+ yield result.value || [];
81
+ let continuationToken = result.nextLink;
82
+ while (continuationToken) {
83
+ result = await this._listByResourceGroupNext(
84
+ resourceGroupName,
85
+ continuationToken,
86
+ options
87
+ );
88
+ continuationToken = result.nextLink;
89
+ yield result.value || [];
90
+ }
91
+ }
92
+
93
+ private async *listByResourceGroupPagingAll(
94
+ resourceGroupName: string,
95
+ options?: WorkspacesListByResourceGroupOptionalParams
96
+ ): AsyncIterableIterator<Workspace> {
97
+ for await (const page of this.listByResourceGroupPagingPage(
98
+ resourceGroupName,
99
+ options
100
+ )) {
101
+ yield* page;
102
+ }
103
+ }
104
+
105
+ /**
106
+ * Lists all the available machine learning workspaces under the specified subscription.
107
+ * @param options The options parameters.
108
+ */
109
+ public list(
110
+ options?: WorkspacesListOptionalParams
111
+ ): PagedAsyncIterableIterator<Workspace> {
112
+ const iter = this.listPagingAll(options);
113
+ return {
114
+ next() {
115
+ return iter.next();
116
+ },
117
+ [Symbol.asyncIterator]() {
118
+ return this;
119
+ },
120
+ byPage: () => {
121
+ return this.listPagingPage(options);
122
+ }
123
+ };
124
+ }
125
+
126
+ private async *listPagingPage(
127
+ options?: WorkspacesListOptionalParams
128
+ ): AsyncIterableIterator<Workspace[]> {
129
+ let result = await this._list(options);
130
+ yield result.value || [];
131
+ let continuationToken = result.nextLink;
132
+ while (continuationToken) {
133
+ result = await this._listNext(continuationToken, options);
134
+ continuationToken = result.nextLink;
135
+ yield result.value || [];
136
+ }
137
+ }
138
+
139
+ private async *listPagingAll(
140
+ options?: WorkspacesListOptionalParams
141
+ ): AsyncIterableIterator<Workspace> {
142
+ for await (const page of this.listPagingPage(options)) {
143
+ yield* page;
144
+ }
145
+ }
146
+
147
+ /**
148
+ * Gets the properties of the specified machine learning workspace.
149
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
150
+ * belongs.
151
+ * @param workspaceName The name of the machine learning workspace.
152
+ * @param options The options parameters.
153
+ */
154
+ get(
155
+ resourceGroupName: string,
156
+ workspaceName: string,
157
+ options?: WorkspacesGetOptionalParams
158
+ ): Promise<WorkspacesGetResponse> {
159
+ return this.client.sendOperationRequest(
160
+ { resourceGroupName, workspaceName, options },
161
+ getOperationSpec
162
+ );
163
+ }
164
+
165
+ /**
166
+ * Creates or updates a workspace with the specified parameters.
167
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
168
+ * belongs.
169
+ * @param workspaceName The name of the machine learning workspace.
170
+ * @param parameters The parameters for creating or updating a machine learning workspace.
171
+ * @param options The options parameters.
172
+ */
173
+ createOrUpdate(
174
+ resourceGroupName: string,
175
+ workspaceName: string,
176
+ parameters: Workspace,
177
+ options?: WorkspacesCreateOrUpdateOptionalParams
178
+ ): Promise<WorkspacesCreateOrUpdateResponse> {
179
+ return this.client.sendOperationRequest(
180
+ { resourceGroupName, workspaceName, parameters, options },
181
+ createOrUpdateOperationSpec
182
+ );
183
+ }
184
+
185
+ /**
186
+ * Deletes a machine learning workspace.
187
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
188
+ * belongs.
189
+ * @param workspaceName The name of the machine learning workspace.
190
+ * @param options The options parameters.
191
+ */
192
+ delete(
193
+ resourceGroupName: string,
194
+ workspaceName: string,
195
+ options?: WorkspacesDeleteOptionalParams
196
+ ): Promise<void> {
197
+ return this.client.sendOperationRequest(
198
+ { resourceGroupName, workspaceName, options },
199
+ deleteOperationSpec
200
+ );
201
+ }
202
+
203
+ /**
204
+ * Updates a machine learning workspace with the specified parameters.
205
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
206
+ * belongs.
207
+ * @param workspaceName The name of the machine learning workspace.
208
+ * @param parameters The parameters for updating a machine learning workspace.
209
+ * @param options The options parameters.
210
+ */
211
+ update(
212
+ resourceGroupName: string,
213
+ workspaceName: string,
214
+ parameters: WorkspaceUpdateParameters,
215
+ options?: WorkspacesUpdateOptionalParams
216
+ ): Promise<WorkspacesUpdateResponse> {
217
+ return this.client.sendOperationRequest(
218
+ { resourceGroupName, workspaceName, parameters, options },
219
+ updateOperationSpec
220
+ );
221
+ }
222
+
223
+ /**
224
+ * Resync storage keys associated with this workspace.
225
+ * @param workspaceName The name of the machine learning workspace.
226
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
227
+ * belongs.
228
+ * @param options The options parameters.
229
+ */
230
+ resyncStorageKeys(
231
+ workspaceName: string,
232
+ resourceGroupName: string,
233
+ options?: WorkspacesResyncStorageKeysOptionalParams
234
+ ): Promise<void> {
235
+ return this.client.sendOperationRequest(
236
+ { workspaceName, resourceGroupName, options },
237
+ resyncStorageKeysOperationSpec
238
+ );
239
+ }
240
+
241
+ /**
242
+ * List the authorization keys associated with this workspace.
243
+ * @param workspaceName The name of the machine learning workspace.
244
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
245
+ * belongs.
246
+ * @param options The options parameters.
247
+ */
248
+ listWorkspaceKeys(
249
+ workspaceName: string,
250
+ resourceGroupName: string,
251
+ options?: WorkspacesListWorkspaceKeysOptionalParams
252
+ ): Promise<WorkspacesListWorkspaceKeysResponse> {
253
+ return this.client.sendOperationRequest(
254
+ { workspaceName, resourceGroupName, options },
255
+ listWorkspaceKeysOperationSpec
256
+ );
257
+ }
258
+
259
+ /**
260
+ * Lists all the available machine learning workspaces under the specified resource group.
261
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
262
+ * belongs.
263
+ * @param options The options parameters.
264
+ */
265
+ private _listByResourceGroup(
266
+ resourceGroupName: string,
267
+ options?: WorkspacesListByResourceGroupOptionalParams
268
+ ): Promise<WorkspacesListByResourceGroupResponse> {
269
+ return this.client.sendOperationRequest(
270
+ { resourceGroupName, options },
271
+ listByResourceGroupOperationSpec
272
+ );
273
+ }
274
+
275
+ /**
276
+ * Lists all the available machine learning workspaces under the specified subscription.
277
+ * @param options The options parameters.
278
+ */
279
+ private _list(
280
+ options?: WorkspacesListOptionalParams
281
+ ): Promise<WorkspacesListResponse> {
282
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
283
+ }
284
+
285
+ /**
286
+ * ListByResourceGroupNext
287
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
288
+ * belongs.
289
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
290
+ * @param options The options parameters.
291
+ */
292
+ private _listByResourceGroupNext(
293
+ resourceGroupName: string,
294
+ nextLink: string,
295
+ options?: WorkspacesListByResourceGroupNextOptionalParams
296
+ ): Promise<WorkspacesListByResourceGroupNextResponse> {
297
+ return this.client.sendOperationRequest(
298
+ { resourceGroupName, nextLink, options },
299
+ listByResourceGroupNextOperationSpec
300
+ );
301
+ }
302
+
303
+ /**
304
+ * ListNext
305
+ * @param nextLink The nextLink from the previous successful call to the List method.
306
+ * @param options The options parameters.
307
+ */
308
+ private _listNext(
309
+ nextLink: string,
310
+ options?: WorkspacesListNextOptionalParams
311
+ ): Promise<WorkspacesListNextResponse> {
312
+ return this.client.sendOperationRequest(
313
+ { nextLink, options },
314
+ listNextOperationSpec
315
+ );
316
+ }
317
+ }
318
+ // Operation Specifications
319
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
320
+
321
+ const getOperationSpec: coreClient.OperationSpec = {
322
+ path:
323
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
324
+ httpMethod: "GET",
325
+ responses: {
326
+ 200: {
327
+ bodyMapper: Mappers.Workspace
328
+ },
329
+ default: {
330
+ bodyMapper: Mappers.ErrorResponse
331
+ }
332
+ },
333
+ queryParameters: [Parameters.apiVersion],
334
+ urlParameters: [
335
+ Parameters.$host,
336
+ Parameters.subscriptionId,
337
+ Parameters.resourceGroupName,
338
+ Parameters.workspaceName
339
+ ],
340
+ headerParameters: [Parameters.accept],
341
+ serializer
342
+ };
343
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
344
+ path:
345
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
346
+ httpMethod: "PUT",
347
+ responses: {
348
+ 200: {
349
+ bodyMapper: Mappers.Workspace
350
+ },
351
+ default: {
352
+ bodyMapper: Mappers.ErrorResponse
353
+ }
354
+ },
355
+ requestBody: Parameters.parameters,
356
+ queryParameters: [Parameters.apiVersion],
357
+ urlParameters: [
358
+ Parameters.$host,
359
+ Parameters.subscriptionId,
360
+ Parameters.resourceGroupName,
361
+ Parameters.workspaceName
362
+ ],
363
+ headerParameters: [Parameters.accept, Parameters.contentType],
364
+ mediaType: "json",
365
+ serializer
366
+ };
367
+ const deleteOperationSpec: coreClient.OperationSpec = {
368
+ path:
369
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
370
+ httpMethod: "DELETE",
371
+ responses: {
372
+ 200: {},
373
+ 204: {},
374
+ default: {
375
+ bodyMapper: Mappers.ErrorResponse
376
+ }
377
+ },
378
+ queryParameters: [Parameters.apiVersion],
379
+ urlParameters: [
380
+ Parameters.$host,
381
+ Parameters.subscriptionId,
382
+ Parameters.resourceGroupName,
383
+ Parameters.workspaceName
384
+ ],
385
+ headerParameters: [Parameters.accept],
386
+ serializer
387
+ };
388
+ const updateOperationSpec: coreClient.OperationSpec = {
389
+ path:
390
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
391
+ httpMethod: "PATCH",
392
+ responses: {
393
+ 200: {
394
+ bodyMapper: Mappers.Workspace
395
+ },
396
+ default: {
397
+ bodyMapper: Mappers.ErrorResponse
398
+ }
399
+ },
400
+ requestBody: Parameters.parameters1,
401
+ queryParameters: [Parameters.apiVersion],
402
+ urlParameters: [
403
+ Parameters.$host,
404
+ Parameters.subscriptionId,
405
+ Parameters.resourceGroupName,
406
+ Parameters.workspaceName
407
+ ],
408
+ headerParameters: [Parameters.accept, Parameters.contentType],
409
+ mediaType: "json",
410
+ serializer
411
+ };
412
+ const resyncStorageKeysOperationSpec: coreClient.OperationSpec = {
413
+ path:
414
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
415
+ httpMethod: "POST",
416
+ responses: {
417
+ 200: {},
418
+ default: {
419
+ bodyMapper: Mappers.ErrorResponse
420
+ }
421
+ },
422
+ queryParameters: [Parameters.apiVersion],
423
+ urlParameters: [
424
+ Parameters.$host,
425
+ Parameters.subscriptionId,
426
+ Parameters.resourceGroupName,
427
+ Parameters.workspaceName
428
+ ],
429
+ headerParameters: [Parameters.accept],
430
+ serializer
431
+ };
432
+ const listWorkspaceKeysOperationSpec: coreClient.OperationSpec = {
433
+ path:
434
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
435
+ httpMethod: "POST",
436
+ responses: {
437
+ 200: {
438
+ bodyMapper: Mappers.WorkspaceKeysResponse
439
+ },
440
+ default: {
441
+ bodyMapper: Mappers.ErrorResponse
442
+ }
443
+ },
444
+ queryParameters: [Parameters.apiVersion],
445
+ urlParameters: [
446
+ Parameters.$host,
447
+ Parameters.subscriptionId,
448
+ Parameters.resourceGroupName,
449
+ Parameters.workspaceName
450
+ ],
451
+ headerParameters: [Parameters.accept],
452
+ serializer
453
+ };
454
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
455
+ path:
456
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
457
+ httpMethod: "GET",
458
+ responses: {
459
+ 200: {
460
+ bodyMapper: Mappers.WorkspaceListResult
461
+ },
462
+ default: {
463
+ bodyMapper: Mappers.ErrorResponse
464
+ }
465
+ },
466
+ queryParameters: [Parameters.apiVersion],
467
+ urlParameters: [
468
+ Parameters.$host,
469
+ Parameters.subscriptionId,
470
+ Parameters.resourceGroupName
471
+ ],
472
+ headerParameters: [Parameters.accept],
473
+ serializer
474
+ };
475
+ const listOperationSpec: coreClient.OperationSpec = {
476
+ path:
477
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
478
+ httpMethod: "GET",
479
+ responses: {
480
+ 200: {
481
+ bodyMapper: Mappers.WorkspaceListResult
482
+ },
483
+ default: {
484
+ bodyMapper: Mappers.ErrorResponse
485
+ }
486
+ },
487
+ queryParameters: [Parameters.apiVersion],
488
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
489
+ headerParameters: [Parameters.accept],
490
+ serializer
491
+ };
492
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
493
+ path: "{nextLink}",
494
+ httpMethod: "GET",
495
+ responses: {
496
+ 200: {
497
+ bodyMapper: Mappers.WorkspaceListResult
498
+ },
499
+ default: {
500
+ bodyMapper: Mappers.ErrorResponse
501
+ }
502
+ },
503
+ queryParameters: [Parameters.apiVersion],
504
+ urlParameters: [
505
+ Parameters.$host,
506
+ Parameters.subscriptionId,
507
+ Parameters.resourceGroupName,
508
+ Parameters.nextLink
509
+ ],
510
+ headerParameters: [Parameters.accept],
511
+ serializer
512
+ };
513
+ const listNextOperationSpec: coreClient.OperationSpec = {
514
+ path: "{nextLink}",
515
+ httpMethod: "GET",
516
+ responses: {
517
+ 200: {
518
+ bodyMapper: Mappers.WorkspaceListResult
519
+ },
520
+ default: {
521
+ bodyMapper: Mappers.ErrorResponse
522
+ }
523
+ },
524
+ queryParameters: [Parameters.apiVersion],
525
+ urlParameters: [
526
+ Parameters.$host,
527
+ Parameters.subscriptionId,
528
+ Parameters.nextLink
529
+ ],
530
+ headerParameters: [Parameters.accept],
531
+ serializer
532
+ };
@@ -0,0 +1,10 @@
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
+
9
+ export * from "./operations";
10
+ export * from "./workspaces";
@@ -0,0 +1,22 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available Azure Machine Learning Studio REST API operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }