@azure/arm-machinelearningexperimentation 1.2.1 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +1780 -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/accountCreate.d.ts +2 -0
  9. package/dist-esm/samples-dev/accountCreate.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accountCreate.js +33 -0
  11. package/dist-esm/samples-dev/accountCreate.js.map +1 -0
  12. package/dist-esm/samples-dev/accountGet.d.ts +2 -0
  13. package/dist-esm/samples-dev/accountGet.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accountGet.js +31 -0
  15. package/dist-esm/samples-dev/accountGet.js.map +1 -0
  16. package/dist-esm/samples-dev/accountUpdate.d.ts +2 -0
  17. package/dist-esm/samples-dev/accountUpdate.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accountUpdate.js +35 -0
  19. package/dist-esm/samples-dev/accountUpdate.js.map +1 -0
  20. package/dist-esm/samples-dev/createProject.d.ts +2 -0
  21. package/dist-esm/samples-dev/createProject.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/createProject.js +39 -0
  23. package/dist-esm/samples-dev/createProject.js.map +1 -0
  24. package/dist-esm/samples-dev/getProject.d.ts +2 -0
  25. package/dist-esm/samples-dev/getProject.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/getProject.js +33 -0
  27. package/dist-esm/samples-dev/getProject.js.map +1 -0
  28. package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts +2 -0
  29. package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/listWorkspacesByAccounts.js +45 -0
  31. package/dist-esm/samples-dev/listWorkspacesByAccounts.js.map +1 -0
  32. package/dist-esm/samples-dev/projectListByWorkspaces.d.ts +2 -0
  33. package/dist-esm/samples-dev/projectListByWorkspaces.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/projectListByWorkspaces.js +46 -0
  35. package/dist-esm/samples-dev/projectListByWorkspaces.js.map +1 -0
  36. package/dist-esm/samples-dev/updateProject.d.ts +2 -0
  37. package/dist-esm/samples-dev/updateProject.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/updateProject.js +37 -0
  39. package/dist-esm/samples-dev/updateProject.js.map +1 -0
  40. package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
  41. package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/workspaceCreate.js +37 -0
  43. package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
  44. package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
  45. package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/workspaceDelete.js +32 -0
  47. package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
  48. package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
  49. package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/workspaceGet.js +32 -0
  51. package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
  52. package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
  53. package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/workspaceUpdate.js +33 -0
  55. package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
  56. package/dist-esm/src/index.d.ts +5 -0
  57. package/dist-esm/src/index.d.ts.map +1 -0
  58. package/dist-esm/src/index.js +12 -0
  59. package/dist-esm/src/index.js.map +1 -0
  60. package/dist-esm/src/mLTeamAccountManagementClient.d.ts +21 -0
  61. package/dist-esm/src/mLTeamAccountManagementClient.d.ts.map +1 -0
  62. package/dist-esm/src/mLTeamAccountManagementClient.js +54 -0
  63. package/dist-esm/src/mLTeamAccountManagementClient.js.map +1 -0
  64. package/dist-esm/src/models/index.d.ts +329 -0
  65. package/dist-esm/src/models/index.d.ts.map +1 -0
  66. package/dist-esm/src/models/index.js +9 -0
  67. package/dist-esm/src/models/index.js.map +1 -0
  68. package/dist-esm/src/models/mappers.d.ts +17 -0
  69. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  70. package/{esm → dist-esm/src}/models/mappers.js +273 -315
  71. package/dist-esm/src/models/mappers.js.map +1 -0
  72. package/dist-esm/src/models/parameters.d.ts +18 -0
  73. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  74. package/dist-esm/src/models/parameters.js +153 -0
  75. package/dist-esm/src/models/parameters.js.map +1 -0
  76. package/dist-esm/src/operations/accounts.d.ts +90 -0
  77. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  78. package/dist-esm/src/operations/accounts.js +366 -0
  79. package/dist-esm/src/operations/accounts.js.map +1 -0
  80. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  81. package/dist-esm/src/operations/index.d.ts.map +1 -0
  82. package/{esm → dist-esm/src}/operations/index.js +3 -5
  83. package/dist-esm/src/operations/index.js.map +1 -0
  84. package/dist-esm/src/operations/operations.d.ts +26 -0
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/operations.js +90 -0
  87. package/dist-esm/src/operations/operations.js.map +1 -0
  88. package/dist-esm/src/operations/projects.d.ts +86 -0
  89. package/dist-esm/src/operations/projects.d.ts.map +1 -0
  90. package/dist-esm/src/operations/projects.js +307 -0
  91. package/dist-esm/src/operations/projects.js.map +1 -0
  92. package/dist-esm/src/operations/workspaces.d.ts +79 -0
  93. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  94. package/dist-esm/src/operations/workspaces.js +280 -0
  95. package/dist-esm/src/operations/workspaces.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/accounts.d.ts +52 -0
  97. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  101. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  103. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  105. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/projects.d.ts +57 -0
  109. package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/projects.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +52 -0
  113. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +2 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +40 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +81 -34
  121. package/review/arm-machinelearningexperimentation.api.md +339 -0
  122. package/rollup.config.js +184 -27
  123. package/src/index.ts +12 -0
  124. package/src/mLTeamAccountManagementClient.ts +78 -41
  125. package/src/models/index.ts +287 -707
  126. package/src/models/mappers.ts +263 -305
  127. package/src/models/parameters.ts +116 -43
  128. package/src/operations/accounts.ts +290 -330
  129. package/src/operations/index.ts +3 -5
  130. package/src/operations/operations.ts +66 -42
  131. package/src/operations/projects.ts +256 -281
  132. package/src/operations/workspaces.ts +242 -283
  133. package/src/operationsInterfaces/accounts.ts +96 -0
  134. package/src/operationsInterfaces/index.ts +12 -0
  135. package/src/operationsInterfaces/operations.ts +22 -0
  136. package/src/operationsInterfaces/projects.ts +108 -0
  137. package/src/operationsInterfaces/workspaces.ts +98 -0
  138. package/tsconfig.json +6 -5
  139. package/types/arm-machinelearningexperimentation.d.ts +569 -0
  140. package/types/tsdoc-metadata.json +11 -0
  141. package/dist/arm-machinelearningexperimentation.js +0 -1725
  142. package/dist/arm-machinelearningexperimentation.js.map +0 -1
  143. package/dist/arm-machinelearningexperimentation.min.js +0 -1
  144. package/dist/arm-machinelearningexperimentation.min.js.map +0 -1
  145. package/esm/mLTeamAccountManagementClient.d.ts +0 -27
  146. package/esm/mLTeamAccountManagementClient.d.ts.map +0 -1
  147. package/esm/mLTeamAccountManagementClient.js +0 -41
  148. package/esm/mLTeamAccountManagementClient.js.map +0 -1
  149. package/esm/mLTeamAccountManagementClientContext.d.ts +0 -22
  150. package/esm/mLTeamAccountManagementClientContext.d.ts.map +0 -1
  151. package/esm/mLTeamAccountManagementClientContext.js +0 -61
  152. package/esm/mLTeamAccountManagementClientContext.js.map +0 -1
  153. package/esm/models/accountsMappers.d.ts +0 -2
  154. package/esm/models/accountsMappers.d.ts.map +0 -1
  155. package/esm/models/accountsMappers.js +0 -11
  156. package/esm/models/accountsMappers.js.map +0 -1
  157. package/esm/models/index.d.ts +0 -770
  158. package/esm/models/index.d.ts.map +0 -1
  159. package/esm/models/index.js +0 -10
  160. package/esm/models/index.js.map +0 -1
  161. package/esm/models/mappers.d.ts +0 -19
  162. package/esm/models/mappers.d.ts.map +0 -1
  163. package/esm/models/mappers.js.map +0 -1
  164. package/esm/models/operationsMappers.d.ts +0 -2
  165. package/esm/models/operationsMappers.d.ts.map +0 -1
  166. package/esm/models/operationsMappers.js +0 -11
  167. package/esm/models/operationsMappers.js.map +0 -1
  168. package/esm/models/parameters.d.ts +0 -10
  169. package/esm/models/parameters.d.ts.map +0 -1
  170. package/esm/models/parameters.js +0 -106
  171. package/esm/models/parameters.js.map +0 -1
  172. package/esm/models/projectsMappers.d.ts +0 -2
  173. package/esm/models/projectsMappers.d.ts.map +0 -1
  174. package/esm/models/projectsMappers.js +0 -11
  175. package/esm/models/projectsMappers.js.map +0 -1
  176. package/esm/models/workspacesMappers.d.ts +0 -2
  177. package/esm/models/workspacesMappers.d.ts.map +0 -1
  178. package/esm/models/workspacesMappers.js +0 -11
  179. package/esm/models/workspacesMappers.js.map +0 -1
  180. package/esm/operations/accounts.d.ts +0 -187
  181. package/esm/operations/accounts.d.ts.map +0 -1
  182. package/esm/operations/accounts.js +0 -272
  183. package/esm/operations/accounts.js.map +0 -1
  184. package/esm/operations/index.d.ts.map +0 -1
  185. package/esm/operations/index.js.map +0 -1
  186. package/esm/operations/operations.d.ts +0 -28
  187. package/esm/operations/operations.d.ts.map +0 -1
  188. package/esm/operations/operations.js +0 -51
  189. package/esm/operations/operations.js.map +0 -1
  190. package/esm/operations/projects.d.ts +0 -184
  191. package/esm/operations/projects.d.ts.map +0 -1
  192. package/esm/operations/projects.js +0 -239
  193. package/esm/operations/projects.js.map +0 -1
  194. package/esm/operations/workspaces.d.ts +0 -169
  195. package/esm/operations/workspaces.d.ts.map +0 -1
  196. package/esm/operations/workspaces.js +0 -229
  197. package/esm/operations/workspaces.js.map +0 -1
  198. package/src/mLTeamAccountManagementClientContext.ts +0 -68
  199. package/src/models/accountsMappers.ts +0 -22
  200. package/src/models/operationsMappers.ts +0 -17
  201. package/src/models/projectsMappers.ts +0 -22
  202. package/src/models/workspacesMappers.ts +0 -22
@@ -1,276 +1,247 @@
1
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.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/workspacesMappers";
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";
14
13
  import * as Parameters from "../models/parameters";
15
- import { MLTeamAccountManagementClientContext } from "../mLTeamAccountManagementClientContext";
14
+ import { MLTeamAccountManagementClient } from "../mLTeamAccountManagementClient";
15
+ import {
16
+ Workspace,
17
+ WorkspacesListByAccountsNextOptionalParams,
18
+ WorkspacesListByAccountsOptionalParams,
19
+ WorkspacesGetOptionalParams,
20
+ WorkspacesGetResponse,
21
+ WorkspacesCreateOrUpdateOptionalParams,
22
+ WorkspacesCreateOrUpdateResponse,
23
+ WorkspacesDeleteOptionalParams,
24
+ WorkspaceUpdateParameters,
25
+ WorkspacesUpdateOptionalParams,
26
+ WorkspacesUpdateResponse,
27
+ WorkspacesListByAccountsResponse,
28
+ WorkspacesListByAccountsNextResponse
29
+ } from "../models";
16
30
 
17
- /** Class representing a Workspaces. */
18
- export class Workspaces {
19
- private readonly client: MLTeamAccountManagementClientContext;
31
+ /// <reference lib="esnext.asynciterable" />
32
+ /** Class containing Workspaces operations. */
33
+ export class WorkspacesImpl implements Workspaces {
34
+ private readonly client: MLTeamAccountManagementClient;
20
35
 
21
36
  /**
22
- * Create a Workspaces.
23
- * @param {MLTeamAccountManagementClientContext} client Reference to the service client.
37
+ * Initialize a new instance of the class Workspaces class.
38
+ * @param client Reference to the service client
24
39
  */
25
- constructor(client: MLTeamAccountManagementClientContext) {
40
+ constructor(client: MLTeamAccountManagementClient) {
26
41
  this.client = client;
27
42
  }
28
43
 
29
44
  /**
30
- * Gets the properties of the specified machine learning workspace.
31
- * @param resourceGroupName The name of the resource group to which the machine learning team
32
- * account belongs.
33
- * @param accountName The name of the machine learning team account.
34
- * @param workspaceName The name of the machine learning team account workspace.
35
- * @param [options] The optional parameters
36
- * @returns Promise<Models.WorkspacesGetResponse>
37
- */
38
- get(resourceGroupName: string, accountName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesGetResponse>;
39
- /**
40
- * @param resourceGroupName The name of the resource group to which the machine learning team
41
- * account belongs.
45
+ * Lists all the available machine learning workspaces under the specified team account.
42
46
  * @param accountName The name of the machine learning team account.
43
- * @param workspaceName The name of the machine learning team account workspace.
44
- * @param callback The callback
47
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
48
+ * belongs.
49
+ * @param options The options parameters.
45
50
  */
46
- get(resourceGroupName: string, accountName: string, workspaceName: string, callback: msRest.ServiceCallback<Models.Workspace>): void;
47
- /**
48
- * @param resourceGroupName The name of the resource group to which the machine learning team
49
- * account belongs.
50
- * @param accountName The name of the machine learning team account.
51
- * @param workspaceName The name of the machine learning team account workspace.
52
- * @param options The optional parameters
53
- * @param callback The callback
54
- */
55
- get(resourceGroupName: string, accountName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Workspace>): void;
56
- get(resourceGroupName: string, accountName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Workspace>, callback?: msRest.ServiceCallback<Models.Workspace>): Promise<Models.WorkspacesGetResponse> {
57
- return this.client.sendOperationRequest(
58
- {
59
- resourceGroupName,
51
+ public listByAccounts(
52
+ accountName: string,
53
+ resourceGroupName: string,
54
+ options?: WorkspacesListByAccountsOptionalParams
55
+ ): PagedAsyncIterableIterator<Workspace> {
56
+ const iter = this.listByAccountsPagingAll(
57
+ accountName,
58
+ resourceGroupName,
59
+ options
60
+ );
61
+ return {
62
+ next() {
63
+ return iter.next();
64
+ },
65
+ [Symbol.asyncIterator]() {
66
+ return this;
67
+ },
68
+ byPage: () => {
69
+ return this.listByAccountsPagingPage(
70
+ accountName,
71
+ resourceGroupName,
72
+ options
73
+ );
74
+ }
75
+ };
76
+ }
77
+
78
+ private async *listByAccountsPagingPage(
79
+ accountName: string,
80
+ resourceGroupName: string,
81
+ options?: WorkspacesListByAccountsOptionalParams
82
+ ): AsyncIterableIterator<Workspace[]> {
83
+ let result = await this._listByAccounts(
84
+ accountName,
85
+ resourceGroupName,
86
+ options
87
+ );
88
+ yield result.value || [];
89
+ let continuationToken = result.nextLink;
90
+ while (continuationToken) {
91
+ result = await this._listByAccountsNext(
60
92
  accountName,
61
- workspaceName,
93
+ resourceGroupName,
94
+ continuationToken,
62
95
  options
63
- },
64
- getOperationSpec,
65
- callback) as Promise<Models.WorkspacesGetResponse>;
96
+ );
97
+ continuationToken = result.nextLink;
98
+ yield result.value || [];
99
+ }
100
+ }
101
+
102
+ private async *listByAccountsPagingAll(
103
+ accountName: string,
104
+ resourceGroupName: string,
105
+ options?: WorkspacesListByAccountsOptionalParams
106
+ ): AsyncIterableIterator<Workspace> {
107
+ for await (const page of this.listByAccountsPagingPage(
108
+ accountName,
109
+ resourceGroupName,
110
+ options
111
+ )) {
112
+ yield* page;
113
+ }
66
114
  }
67
115
 
68
116
  /**
69
- * Creates or updates a machine learning workspace with the specified parameters.
70
- * @param resourceGroupName The name of the resource group to which the machine learning team
71
- * account belongs.
72
- * @param accountName The name of the machine learning team account.
73
- * @param workspaceName The name of the machine learning team account workspace.
74
- * @param parameters The parameters for creating or updating a machine learning workspace.
75
- * @param [options] The optional parameters
76
- * @returns Promise<Models.WorkspacesCreateOrUpdateResponse>
77
- */
78
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesCreateOrUpdateResponse>;
79
- /**
80
- * @param resourceGroupName The name of the resource group to which the machine learning team
81
- * account belongs.
117
+ * Gets the properties of the specified machine learning workspace.
118
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
119
+ * belongs.
82
120
  * @param accountName The name of the machine learning team account.
83
121
  * @param workspaceName The name of the machine learning team account workspace.
84
- * @param parameters The parameters for creating or updating a machine learning workspace.
85
- * @param callback The callback
122
+ * @param options The options parameters.
86
123
  */
87
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.Workspace, callback: msRest.ServiceCallback<Models.Workspace>): void;
124
+ get(
125
+ resourceGroupName: string,
126
+ accountName: string,
127
+ workspaceName: string,
128
+ options?: WorkspacesGetOptionalParams
129
+ ): Promise<WorkspacesGetResponse> {
130
+ return this.client.sendOperationRequest(
131
+ { resourceGroupName, accountName, workspaceName, options },
132
+ getOperationSpec
133
+ );
134
+ }
135
+
88
136
  /**
89
- * @param resourceGroupName The name of the resource group to which the machine learning team
90
- * account belongs.
137
+ * Creates or updates a machine learning workspace with the specified parameters.
138
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
139
+ * belongs.
91
140
  * @param accountName The name of the machine learning team account.
92
141
  * @param workspaceName The name of the machine learning team account workspace.
93
142
  * @param parameters The parameters for creating or updating a machine learning workspace.
94
- * @param options The optional parameters
95
- * @param callback The callback
143
+ * @param options The options parameters.
96
144
  */
97
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.Workspace, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Workspace>): void;
98
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Workspace>, callback?: msRest.ServiceCallback<Models.Workspace>): Promise<Models.WorkspacesCreateOrUpdateResponse> {
145
+ createOrUpdate(
146
+ resourceGroupName: string,
147
+ accountName: string,
148
+ workspaceName: string,
149
+ parameters: Workspace,
150
+ options?: WorkspacesCreateOrUpdateOptionalParams
151
+ ): Promise<WorkspacesCreateOrUpdateResponse> {
99
152
  return this.client.sendOperationRequest(
100
- {
101
- resourceGroupName,
102
- accountName,
103
- workspaceName,
104
- parameters,
105
- options
106
- },
107
- createOrUpdateOperationSpec,
108
- callback) as Promise<Models.WorkspacesCreateOrUpdateResponse>;
153
+ { resourceGroupName, accountName, workspaceName, parameters, options },
154
+ createOrUpdateOperationSpec
155
+ );
109
156
  }
110
157
 
111
158
  /**
112
159
  * Deletes a machine learning workspace.
113
- * @param resourceGroupName The name of the resource group to which the machine learning team
114
- * account belongs.
115
- * @param accountName The name of the machine learning team account.
116
- * @param workspaceName The name of the machine learning team account workspace.
117
- * @param [options] The optional parameters
118
- * @returns Promise<msRest.RestResponse>
119
- */
120
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
121
- /**
122
- * @param resourceGroupName The name of the resource group to which the machine learning team
123
- * account belongs.
160
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
161
+ * belongs.
124
162
  * @param accountName The name of the machine learning team account.
125
163
  * @param workspaceName The name of the machine learning team account workspace.
126
- * @param callback The callback
164
+ * @param options The options parameters.
127
165
  */
128
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, callback: msRest.ServiceCallback<void>): void;
129
- /**
130
- * @param resourceGroupName The name of the resource group to which the machine learning team
131
- * account belongs.
132
- * @param accountName The name of the machine learning team account.
133
- * @param workspaceName The name of the machine learning team account workspace.
134
- * @param options The optional parameters
135
- * @param callback The callback
136
- */
137
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
138
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
166
+ delete(
167
+ resourceGroupName: string,
168
+ accountName: string,
169
+ workspaceName: string,
170
+ options?: WorkspacesDeleteOptionalParams
171
+ ): Promise<void> {
139
172
  return this.client.sendOperationRequest(
140
- {
141
- resourceGroupName,
142
- accountName,
143
- workspaceName,
144
- options
145
- },
146
- deleteMethodOperationSpec,
147
- callback);
173
+ { resourceGroupName, accountName, workspaceName, options },
174
+ deleteOperationSpec
175
+ );
148
176
  }
149
177
 
150
178
  /**
151
179
  * Updates a machine learning workspace with the specified parameters.
152
- * @param resourceGroupName The name of the resource group to which the machine learning team
153
- * account belongs.
180
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
181
+ * belongs.
154
182
  * @param accountName The name of the machine learning team account.
155
183
  * @param workspaceName The name of the machine learning team account workspace.
156
184
  * @param parameters The parameters for updating a machine learning workspace.
157
- * @param [options] The optional parameters
158
- * @returns Promise<Models.WorkspacesUpdateResponse>
185
+ * @param options The options parameters.
159
186
  */
160
- update(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesUpdateResponse>;
161
- /**
162
- * @param resourceGroupName The name of the resource group to which the machine learning team
163
- * account belongs.
164
- * @param accountName The name of the machine learning team account.
165
- * @param workspaceName The name of the machine learning team account workspace.
166
- * @param parameters The parameters for updating a machine learning workspace.
167
- * @param callback The callback
168
- */
169
- update(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, callback: msRest.ServiceCallback<Models.Workspace>): void;
170
- /**
171
- * @param resourceGroupName The name of the resource group to which the machine learning team
172
- * account belongs.
173
- * @param accountName The name of the machine learning team account.
174
- * @param workspaceName The name of the machine learning team account workspace.
175
- * @param parameters The parameters for updating a machine learning workspace.
176
- * @param options The optional parameters
177
- * @param callback The callback
178
- */
179
- update(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Workspace>): void;
180
- update(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Workspace>, callback?: msRest.ServiceCallback<Models.Workspace>): Promise<Models.WorkspacesUpdateResponse> {
187
+ update(
188
+ resourceGroupName: string,
189
+ accountName: string,
190
+ workspaceName: string,
191
+ parameters: WorkspaceUpdateParameters,
192
+ options?: WorkspacesUpdateOptionalParams
193
+ ): Promise<WorkspacesUpdateResponse> {
181
194
  return this.client.sendOperationRequest(
182
- {
183
- resourceGroupName,
184
- accountName,
185
- workspaceName,
186
- parameters,
187
- options
188
- },
189
- updateOperationSpec,
190
- callback) as Promise<Models.WorkspacesUpdateResponse>;
195
+ { resourceGroupName, accountName, workspaceName, parameters, options },
196
+ updateOperationSpec
197
+ );
191
198
  }
192
199
 
193
200
  /**
194
201
  * Lists all the available machine learning workspaces under the specified team account.
195
202
  * @param accountName The name of the machine learning team account.
196
- * @param resourceGroupName The name of the resource group to which the machine learning team
197
- * account belongs.
198
- * @param [options] The optional parameters
199
- * @returns Promise<Models.WorkspacesListByAccountsResponse>
200
- */
201
- listByAccounts(accountName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesListByAccountsResponse>;
202
- /**
203
- * @param accountName The name of the machine learning team account.
204
- * @param resourceGroupName The name of the resource group to which the machine learning team
205
- * account belongs.
206
- * @param callback The callback
207
- */
208
- listByAccounts(accountName: string, resourceGroupName: string, callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
209
- /**
210
- * @param accountName The name of the machine learning team account.
211
- * @param resourceGroupName The name of the resource group to which the machine learning team
212
- * account belongs.
213
- * @param options The optional parameters
214
- * @param callback The callback
203
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
204
+ * belongs.
205
+ * @param options The options parameters.
215
206
  */
216
- listByAccounts(accountName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
217
- listByAccounts(accountName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.WorkspaceListResult>, callback?: msRest.ServiceCallback<Models.WorkspaceListResult>): Promise<Models.WorkspacesListByAccountsResponse> {
207
+ private _listByAccounts(
208
+ accountName: string,
209
+ resourceGroupName: string,
210
+ options?: WorkspacesListByAccountsOptionalParams
211
+ ): Promise<WorkspacesListByAccountsResponse> {
218
212
  return this.client.sendOperationRequest(
219
- {
220
- accountName,
221
- resourceGroupName,
222
- options
223
- },
224
- listByAccountsOperationSpec,
225
- callback) as Promise<Models.WorkspacesListByAccountsResponse>;
213
+ { accountName, resourceGroupName, options },
214
+ listByAccountsOperationSpec
215
+ );
226
216
  }
227
217
 
228
218
  /**
229
- * Lists all the available machine learning workspaces under the specified team account.
230
- * @param nextPageLink The NextLink from the previous successful call to List operation.
231
- * @param [options] The optional parameters
232
- * @returns Promise<Models.WorkspacesListByAccountsNextResponse>
233
- */
234
- listByAccountsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.WorkspacesListByAccountsNextResponse>;
235
- /**
236
- * @param nextPageLink The NextLink from the previous successful call to List operation.
237
- * @param callback The callback
238
- */
239
- listByAccountsNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
240
- /**
241
- * @param nextPageLink The NextLink from the previous successful call to List operation.
242
- * @param options The optional parameters
243
- * @param callback The callback
219
+ * ListByAccountsNext
220
+ * @param accountName The name of the machine learning team account.
221
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
222
+ * belongs.
223
+ * @param nextLink The nextLink from the previous successful call to the ListByAccounts method.
224
+ * @param options The options parameters.
244
225
  */
245
- listByAccountsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.WorkspaceListResult>): void;
246
- listByAccountsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.WorkspaceListResult>, callback?: msRest.ServiceCallback<Models.WorkspaceListResult>): Promise<Models.WorkspacesListByAccountsNextResponse> {
226
+ private _listByAccountsNext(
227
+ accountName: string,
228
+ resourceGroupName: string,
229
+ nextLink: string,
230
+ options?: WorkspacesListByAccountsNextOptionalParams
231
+ ): Promise<WorkspacesListByAccountsNextResponse> {
247
232
  return this.client.sendOperationRequest(
248
- {
249
- nextPageLink,
250
- options
251
- },
252
- listByAccountsNextOperationSpec,
253
- callback) as Promise<Models.WorkspacesListByAccountsNextResponse>;
233
+ { accountName, resourceGroupName, nextLink, options },
234
+ listByAccountsNextOperationSpec
235
+ );
254
236
  }
255
237
  }
256
-
257
238
  // Operation Specifications
258
- const serializer = new msRest.Serializer(Mappers);
259
- const getOperationSpec: msRest.OperationSpec = {
239
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
240
+
241
+ const getOperationSpec: coreClient.OperationSpec = {
242
+ path:
243
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
260
244
  httpMethod: "GET",
261
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
262
- urlParameters: [
263
- Parameters.subscriptionId,
264
- Parameters.resourceGroupName,
265
- Parameters.accountName,
266
- Parameters.workspaceName
267
- ],
268
- queryParameters: [
269
- Parameters.apiVersion
270
- ],
271
- headerParameters: [
272
- Parameters.acceptLanguage
273
- ],
274
245
  responses: {
275
246
  200: {
276
247
  bodyMapper: Mappers.Workspace
@@ -279,31 +250,21 @@ const getOperationSpec: msRest.OperationSpec = {
279
250
  bodyMapper: Mappers.ErrorResponse
280
251
  }
281
252
  },
282
- serializer
283
- };
284
-
285
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
286
- httpMethod: "PUT",
287
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
253
+ queryParameters: [Parameters.apiVersion],
288
254
  urlParameters: [
255
+ Parameters.$host,
289
256
  Parameters.subscriptionId,
290
257
  Parameters.resourceGroupName,
291
258
  Parameters.accountName,
292
259
  Parameters.workspaceName
293
260
  ],
294
- queryParameters: [
295
- Parameters.apiVersion
296
- ],
297
- headerParameters: [
298
- Parameters.acceptLanguage
299
- ],
300
- requestBody: {
301
- parameterPath: "parameters",
302
- mapper: {
303
- ...Mappers.Workspace,
304
- required: true
305
- }
306
- },
261
+ headerParameters: [Parameters.accept],
262
+ serializer
263
+ };
264
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
265
+ path:
266
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
267
+ httpMethod: "PUT",
307
268
  responses: {
308
269
  200: {
309
270
  bodyMapper: Mappers.Workspace
@@ -315,24 +276,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
315
276
  bodyMapper: Mappers.ErrorResponse
316
277
  }
317
278
  },
318
- serializer
319
- };
320
-
321
- const deleteMethodOperationSpec: msRest.OperationSpec = {
322
- httpMethod: "DELETE",
323
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
279
+ requestBody: Parameters.parameters2,
280
+ queryParameters: [Parameters.apiVersion],
324
281
  urlParameters: [
282
+ Parameters.$host,
325
283
  Parameters.subscriptionId,
326
284
  Parameters.resourceGroupName,
327
285
  Parameters.accountName,
328
286
  Parameters.workspaceName
329
287
  ],
330
- queryParameters: [
331
- Parameters.apiVersion
332
- ],
333
- headerParameters: [
334
- Parameters.acceptLanguage
335
- ],
288
+ headerParameters: [Parameters.accept, Parameters.contentType],
289
+ mediaType: "json",
290
+ serializer
291
+ };
292
+ const deleteOperationSpec: coreClient.OperationSpec = {
293
+ path:
294
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
295
+ httpMethod: "DELETE",
336
296
  responses: {
337
297
  200: {},
338
298
  204: {},
@@ -340,31 +300,21 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
340
300
  bodyMapper: Mappers.ErrorResponse
341
301
  }
342
302
  },
343
- serializer
344
- };
345
-
346
- const updateOperationSpec: msRest.OperationSpec = {
347
- httpMethod: "PATCH",
348
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
303
+ queryParameters: [Parameters.apiVersion],
349
304
  urlParameters: [
305
+ Parameters.$host,
350
306
  Parameters.subscriptionId,
351
307
  Parameters.resourceGroupName,
352
308
  Parameters.accountName,
353
309
  Parameters.workspaceName
354
310
  ],
355
- queryParameters: [
356
- Parameters.apiVersion
357
- ],
358
- headerParameters: [
359
- Parameters.acceptLanguage
360
- ],
361
- requestBody: {
362
- parameterPath: "parameters",
363
- mapper: {
364
- ...Mappers.WorkspaceUpdateParameters,
365
- required: true
366
- }
367
- },
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ const updateOperationSpec: coreClient.OperationSpec = {
315
+ path:
316
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
317
+ httpMethod: "PATCH",
368
318
  responses: {
369
319
  200: {
370
320
  bodyMapper: Mappers.Workspace
@@ -373,23 +323,23 @@ const updateOperationSpec: msRest.OperationSpec = {
373
323
  bodyMapper: Mappers.ErrorResponse
374
324
  }
375
325
  },
376
- serializer
377
- };
378
-
379
- const listByAccountsOperationSpec: msRest.OperationSpec = {
380
- httpMethod: "GET",
381
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces",
326
+ requestBody: Parameters.parameters3,
327
+ queryParameters: [Parameters.apiVersion],
382
328
  urlParameters: [
329
+ Parameters.$host,
383
330
  Parameters.subscriptionId,
331
+ Parameters.resourceGroupName,
384
332
  Parameters.accountName,
385
- Parameters.resourceGroupName
386
- ],
387
- queryParameters: [
388
- Parameters.apiVersion
389
- ],
390
- headerParameters: [
391
- Parameters.acceptLanguage
333
+ Parameters.workspaceName
392
334
  ],
335
+ headerParameters: [Parameters.accept, Parameters.contentType],
336
+ mediaType: "json",
337
+ serializer
338
+ };
339
+ const listByAccountsOperationSpec: coreClient.OperationSpec = {
340
+ path:
341
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces",
342
+ httpMethod: "GET",
393
343
  responses: {
394
344
  200: {
395
345
  bodyMapper: Mappers.WorkspaceListResult
@@ -398,19 +348,19 @@ const listByAccountsOperationSpec: msRest.OperationSpec = {
398
348
  bodyMapper: Mappers.ErrorResponse
399
349
  }
400
350
  },
351
+ queryParameters: [Parameters.apiVersion],
352
+ urlParameters: [
353
+ Parameters.$host,
354
+ Parameters.subscriptionId,
355
+ Parameters.resourceGroupName,
356
+ Parameters.accountName
357
+ ],
358
+ headerParameters: [Parameters.accept],
401
359
  serializer
402
360
  };
403
-
404
- const listByAccountsNextOperationSpec: msRest.OperationSpec = {
405
- httpMethod: "GET",
406
- baseUrl: "https://management.azure.com",
361
+ const listByAccountsNextOperationSpec: coreClient.OperationSpec = {
407
362
  path: "{nextLink}",
408
- urlParameters: [
409
- Parameters.nextPageLink
410
- ],
411
- headerParameters: [
412
- Parameters.acceptLanguage
413
- ],
363
+ httpMethod: "GET",
414
364
  responses: {
415
365
  200: {
416
366
  bodyMapper: Mappers.WorkspaceListResult
@@ -419,5 +369,14 @@ const listByAccountsNextOperationSpec: msRest.OperationSpec = {
419
369
  bodyMapper: Mappers.ErrorResponse
420
370
  }
421
371
  },
372
+ queryParameters: [Parameters.apiVersion],
373
+ urlParameters: [
374
+ Parameters.$host,
375
+ Parameters.subscriptionId,
376
+ Parameters.resourceGroupName,
377
+ Parameters.accountName,
378
+ Parameters.nextLink
379
+ ],
380
+ headerParameters: [Parameters.accept],
422
381
  serializer
423
382
  };