@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,108 +1,167 @@
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/projectsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Projects } 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
+ Project,
17
+ ProjectsListByWorkspaceNextOptionalParams,
18
+ ProjectsListByWorkspaceOptionalParams,
19
+ ProjectsGetOptionalParams,
20
+ ProjectsGetResponse,
21
+ ProjectsCreateOrUpdateOptionalParams,
22
+ ProjectsCreateOrUpdateResponse,
23
+ ProjectsDeleteOptionalParams,
24
+ ProjectUpdateParameters,
25
+ ProjectsUpdateOptionalParams,
26
+ ProjectsUpdateResponse,
27
+ ProjectsListByWorkspaceResponse,
28
+ ProjectsListByWorkspaceNextResponse
29
+ } from "../models";
16
30
 
17
- /** Class representing a Projects. */
18
- export class Projects {
19
- private readonly client: MLTeamAccountManagementClientContext;
31
+ /// <reference lib="esnext.asynciterable" />
32
+ /** Class containing Projects operations. */
33
+ export class ProjectsImpl implements Projects {
34
+ private readonly client: MLTeamAccountManagementClient;
20
35
 
21
36
  /**
22
- * Create a Projects.
23
- * @param {MLTeamAccountManagementClientContext} client Reference to the service client.
37
+ * Initialize a new instance of the class Projects 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 project.
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 projectName The name of the machine learning project under a team account workspace.
36
- * @param [options] The optional parameters
37
- * @returns Promise<Models.ProjectsGetResponse>
38
- */
39
- get(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsGetResponse>;
40
- /**
41
- * @param resourceGroupName The name of the resource group to which the machine learning team
42
- * account belongs.
43
- * @param accountName The name of the machine learning team account.
44
- * @param workspaceName The name of the machine learning team account workspace.
45
- * @param projectName The name of the machine learning project under a team account workspace.
46
- * @param callback The callback
47
- */
48
- get(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, callback: msRest.ServiceCallback<Models.Project>): void;
49
- /**
50
- * @param resourceGroupName The name of the resource group to which the machine learning team
51
- * account belongs.
45
+ * Lists all the available machine learning projects under the specified workspace.
52
46
  * @param accountName The name of the machine learning team account.
53
47
  * @param workspaceName The name of the machine learning team account workspace.
54
- * @param projectName The name of the machine learning project under a team account workspace.
55
- * @param options The optional parameters
56
- * @param callback The callback
48
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
49
+ * belongs.
50
+ * @param options The options parameters.
57
51
  */
58
- get(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Project>): void;
59
- get(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Project>, callback?: msRest.ServiceCallback<Models.Project>): Promise<Models.ProjectsGetResponse> {
60
- return this.client.sendOperationRequest(
61
- {
62
- resourceGroupName,
52
+ public listByWorkspace(
53
+ accountName: string,
54
+ workspaceName: string,
55
+ resourceGroupName: string,
56
+ options?: ProjectsListByWorkspaceOptionalParams
57
+ ): PagedAsyncIterableIterator<Project> {
58
+ const iter = this.listByWorkspacePagingAll(
59
+ accountName,
60
+ workspaceName,
61
+ resourceGroupName,
62
+ options
63
+ );
64
+ return {
65
+ next() {
66
+ return iter.next();
67
+ },
68
+ [Symbol.asyncIterator]() {
69
+ return this;
70
+ },
71
+ byPage: () => {
72
+ return this.listByWorkspacePagingPage(
73
+ accountName,
74
+ workspaceName,
75
+ resourceGroupName,
76
+ options
77
+ );
78
+ }
79
+ };
80
+ }
81
+
82
+ private async *listByWorkspacePagingPage(
83
+ accountName: string,
84
+ workspaceName: string,
85
+ resourceGroupName: string,
86
+ options?: ProjectsListByWorkspaceOptionalParams
87
+ ): AsyncIterableIterator<Project[]> {
88
+ let result = await this._listByWorkspace(
89
+ accountName,
90
+ workspaceName,
91
+ resourceGroupName,
92
+ options
93
+ );
94
+ yield result.value || [];
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = await this._listByWorkspaceNext(
63
98
  accountName,
64
99
  workspaceName,
65
- projectName,
100
+ resourceGroupName,
101
+ continuationToken,
66
102
  options
67
- },
68
- getOperationSpec,
69
- callback) as Promise<Models.ProjectsGetResponse>;
103
+ );
104
+ continuationToken = result.nextLink;
105
+ yield result.value || [];
106
+ }
107
+ }
108
+
109
+ private async *listByWorkspacePagingAll(
110
+ accountName: string,
111
+ workspaceName: string,
112
+ resourceGroupName: string,
113
+ options?: ProjectsListByWorkspaceOptionalParams
114
+ ): AsyncIterableIterator<Project> {
115
+ for await (const page of this.listByWorkspacePagingPage(
116
+ accountName,
117
+ workspaceName,
118
+ resourceGroupName,
119
+ options
120
+ )) {
121
+ yield* page;
122
+ }
70
123
  }
71
124
 
72
125
  /**
73
- * Creates or updates a project with the specified parameters.
74
- * @param resourceGroupName The name of the resource group to which the machine learning team
75
- * account belongs.
76
- * @param accountName The name of the machine learning team account.
77
- * @param workspaceName The name of the machine learning team account workspace.
78
- * @param projectName The name of the machine learning project under a team account workspace.
79
- * @param parameters The parameters for creating or updating a project.
80
- * @param [options] The optional parameters
81
- * @returns Promise<Models.ProjectsCreateOrUpdateResponse>
82
- */
83
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.Project, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsCreateOrUpdateResponse>;
84
- /**
85
- * @param resourceGroupName The name of the resource group to which the machine learning team
86
- * account belongs.
126
+ * Gets the properties of the specified machine learning project.
127
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
128
+ * belongs.
87
129
  * @param accountName The name of the machine learning team account.
88
130
  * @param workspaceName The name of the machine learning team account workspace.
89
131
  * @param projectName The name of the machine learning project under a team account workspace.
90
- * @param parameters The parameters for creating or updating a project.
91
- * @param callback The callback
132
+ * @param options The options parameters.
92
133
  */
93
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.Project, callback: msRest.ServiceCallback<Models.Project>): void;
134
+ get(
135
+ resourceGroupName: string,
136
+ accountName: string,
137
+ workspaceName: string,
138
+ projectName: string,
139
+ options?: ProjectsGetOptionalParams
140
+ ): Promise<ProjectsGetResponse> {
141
+ return this.client.sendOperationRequest(
142
+ { resourceGroupName, accountName, workspaceName, projectName, options },
143
+ getOperationSpec
144
+ );
145
+ }
146
+
94
147
  /**
95
- * @param resourceGroupName The name of the resource group to which the machine learning team
96
- * account belongs.
148
+ * Creates or updates a project with the specified parameters.
149
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
150
+ * belongs.
97
151
  * @param accountName The name of the machine learning team account.
98
152
  * @param workspaceName The name of the machine learning team account workspace.
99
153
  * @param projectName The name of the machine learning project under a team account workspace.
100
154
  * @param parameters The parameters for creating or updating a project.
101
- * @param options The optional parameters
102
- * @param callback The callback
155
+ * @param options The options parameters.
103
156
  */
104
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.Project, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Project>): void;
105
- createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.Project, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Project>, callback?: msRest.ServiceCallback<Models.Project>): Promise<Models.ProjectsCreateOrUpdateResponse> {
157
+ createOrUpdate(
158
+ resourceGroupName: string,
159
+ accountName: string,
160
+ workspaceName: string,
161
+ projectName: string,
162
+ parameters: Project,
163
+ options?: ProjectsCreateOrUpdateOptionalParams
164
+ ): Promise<ProjectsCreateOrUpdateResponse> {
106
165
  return this.client.sendOperationRequest(
107
166
  {
108
167
  resourceGroupName,
@@ -112,87 +171,50 @@ export class Projects {
112
171
  parameters,
113
172
  options
114
173
  },
115
- createOrUpdateOperationSpec,
116
- callback) as Promise<Models.ProjectsCreateOrUpdateResponse>;
174
+ createOrUpdateOperationSpec
175
+ );
117
176
  }
118
177
 
119
178
  /**
120
179
  * Deletes a project.
121
- * @param resourceGroupName The name of the resource group to which the machine learning team
122
- * account belongs.
180
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
181
+ * belongs.
123
182
  * @param accountName The name of the machine learning team account.
124
183
  * @param workspaceName The name of the machine learning team account workspace.
125
184
  * @param projectName The name of the machine learning project under a team account workspace.
126
- * @param [options] The optional parameters
127
- * @returns Promise<msRest.RestResponse>
185
+ * @param options The options parameters.
128
186
  */
129
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
130
- /**
131
- * @param resourceGroupName The name of the resource group to which the machine learning team
132
- * account belongs.
133
- * @param accountName The name of the machine learning team account.
134
- * @param workspaceName The name of the machine learning team account workspace.
135
- * @param projectName The name of the machine learning project under a team account workspace.
136
- * @param callback The callback
137
- */
138
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, callback: msRest.ServiceCallback<void>): void;
139
- /**
140
- * @param resourceGroupName The name of the resource group to which the machine learning team
141
- * account belongs.
142
- * @param accountName The name of the machine learning team account.
143
- * @param workspaceName The name of the machine learning team account workspace.
144
- * @param projectName The name of the machine learning project under a team account workspace.
145
- * @param options The optional parameters
146
- * @param callback The callback
147
- */
148
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
149
- deleteMethod(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
187
+ delete(
188
+ resourceGroupName: string,
189
+ accountName: string,
190
+ workspaceName: string,
191
+ projectName: string,
192
+ options?: ProjectsDeleteOptionalParams
193
+ ): Promise<void> {
150
194
  return this.client.sendOperationRequest(
151
- {
152
- resourceGroupName,
153
- accountName,
154
- workspaceName,
155
- projectName,
156
- options
157
- },
158
- deleteMethodOperationSpec,
159
- callback);
195
+ { resourceGroupName, accountName, workspaceName, projectName, options },
196
+ deleteOperationSpec
197
+ );
160
198
  }
161
199
 
162
200
  /**
163
201
  * Updates a project with the specified parameters.
164
- * @param resourceGroupName The name of the resource group to which the machine learning team
165
- * account belongs.
166
- * @param accountName The name of the machine learning team account.
167
- * @param workspaceName The name of the machine learning team account workspace.
168
- * @param projectName The name of the machine learning project under a team account workspace.
169
- * @param parameters The parameters for updating a machine learning team account.
170
- * @param [options] The optional parameters
171
- * @returns Promise<Models.ProjectsUpdateResponse>
172
- */
173
- update(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.ProjectUpdateParameters, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsUpdateResponse>;
174
- /**
175
- * @param resourceGroupName The name of the resource group to which the machine learning team
176
- * account belongs.
177
- * @param accountName The name of the machine learning team account.
178
- * @param workspaceName The name of the machine learning team account workspace.
179
- * @param projectName The name of the machine learning project under a team account workspace.
180
- * @param parameters The parameters for updating a machine learning team account.
181
- * @param callback The callback
182
- */
183
- update(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.ProjectUpdateParameters, callback: msRest.ServiceCallback<Models.Project>): void;
184
- /**
185
- * @param resourceGroupName The name of the resource group to which the machine learning team
186
- * account belongs.
202
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
203
+ * belongs.
187
204
  * @param accountName The name of the machine learning team account.
188
205
  * @param workspaceName The name of the machine learning team account workspace.
189
206
  * @param projectName The name of the machine learning project under a team account workspace.
190
207
  * @param parameters The parameters for updating a machine learning team account.
191
- * @param options The optional parameters
192
- * @param callback The callback
208
+ * @param options The options parameters.
193
209
  */
194
- update(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.ProjectUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Project>): void;
195
- update(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Models.ProjectUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Project>, callback?: msRest.ServiceCallback<Models.Project>): Promise<Models.ProjectsUpdateResponse> {
210
+ update(
211
+ resourceGroupName: string,
212
+ accountName: string,
213
+ workspaceName: string,
214
+ projectName: string,
215
+ parameters: ProjectUpdateParameters,
216
+ options?: ProjectsUpdateOptionalParams
217
+ ): Promise<ProjectsUpdateResponse> {
196
218
  return this.client.sendOperationRequest(
197
219
  {
198
220
  resourceGroupName,
@@ -202,96 +224,59 @@ export class Projects {
202
224
  parameters,
203
225
  options
204
226
  },
205
- updateOperationSpec,
206
- callback) as Promise<Models.ProjectsUpdateResponse>;
227
+ updateOperationSpec
228
+ );
207
229
  }
208
230
 
209
231
  /**
210
232
  * Lists all the available machine learning projects under the specified workspace.
211
233
  * @param accountName The name of the machine learning team account.
212
234
  * @param workspaceName The name of the machine learning team account workspace.
213
- * @param resourceGroupName The name of the resource group to which the machine learning team
214
- * account belongs.
215
- * @param [options] The optional parameters
216
- * @returns Promise<Models.ProjectsListByWorkspaceResponse>
217
- */
218
- listByWorkspace(accountName: string, workspaceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsListByWorkspaceResponse>;
219
- /**
220
- * @param accountName The name of the machine learning team account.
221
- * @param workspaceName The name of the machine learning team account workspace.
222
- * @param resourceGroupName The name of the resource group to which the machine learning team
223
- * account belongs.
224
- * @param callback The callback
225
- */
226
- listByWorkspace(accountName: string, workspaceName: string, resourceGroupName: string, callback: msRest.ServiceCallback<Models.ProjectListResult>): void;
227
- /**
228
- * @param accountName The name of the machine learning team account.
229
- * @param workspaceName The name of the machine learning team account workspace.
230
- * @param resourceGroupName The name of the resource group to which the machine learning team
231
- * account belongs.
232
- * @param options The optional parameters
233
- * @param callback The callback
235
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
236
+ * belongs.
237
+ * @param options The options parameters.
234
238
  */
235
- listByWorkspace(accountName: string, workspaceName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectListResult>): void;
236
- listByWorkspace(accountName: string, workspaceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectListResult>, callback?: msRest.ServiceCallback<Models.ProjectListResult>): Promise<Models.ProjectsListByWorkspaceResponse> {
239
+ private _listByWorkspace(
240
+ accountName: string,
241
+ workspaceName: string,
242
+ resourceGroupName: string,
243
+ options?: ProjectsListByWorkspaceOptionalParams
244
+ ): Promise<ProjectsListByWorkspaceResponse> {
237
245
  return this.client.sendOperationRequest(
238
- {
239
- accountName,
240
- workspaceName,
241
- resourceGroupName,
242
- options
243
- },
244
- listByWorkspaceOperationSpec,
245
- callback) as Promise<Models.ProjectsListByWorkspaceResponse>;
246
+ { accountName, workspaceName, resourceGroupName, options },
247
+ listByWorkspaceOperationSpec
248
+ );
246
249
  }
247
250
 
248
251
  /**
249
- * Lists all the available machine learning projects under the specified workspace.
250
- * @param nextPageLink The NextLink from the previous successful call to List operation.
251
- * @param [options] The optional parameters
252
- * @returns Promise<Models.ProjectsListByWorkspaceNextResponse>
253
- */
254
- listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsListByWorkspaceNextResponse>;
255
- /**
256
- * @param nextPageLink The NextLink from the previous successful call to List operation.
257
- * @param callback The callback
258
- */
259
- listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProjectListResult>): void;
260
- /**
261
- * @param nextPageLink The NextLink from the previous successful call to List operation.
262
- * @param options The optional parameters
263
- * @param callback The callback
252
+ * ListByWorkspaceNext
253
+ * @param accountName The name of the machine learning team account.
254
+ * @param workspaceName The name of the machine learning team account workspace.
255
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
256
+ * belongs.
257
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
258
+ * @param options The options parameters.
264
259
  */
265
- listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectListResult>): void;
266
- listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectListResult>, callback?: msRest.ServiceCallback<Models.ProjectListResult>): Promise<Models.ProjectsListByWorkspaceNextResponse> {
260
+ private _listByWorkspaceNext(
261
+ accountName: string,
262
+ workspaceName: string,
263
+ resourceGroupName: string,
264
+ nextLink: string,
265
+ options?: ProjectsListByWorkspaceNextOptionalParams
266
+ ): Promise<ProjectsListByWorkspaceNextResponse> {
267
267
  return this.client.sendOperationRequest(
268
- {
269
- nextPageLink,
270
- options
271
- },
272
- listByWorkspaceNextOperationSpec,
273
- callback) as Promise<Models.ProjectsListByWorkspaceNextResponse>;
268
+ { accountName, workspaceName, resourceGroupName, nextLink, options },
269
+ listByWorkspaceNextOperationSpec
270
+ );
274
271
  }
275
272
  }
276
-
277
273
  // Operation Specifications
278
- const serializer = new msRest.Serializer(Mappers);
279
- const getOperationSpec: msRest.OperationSpec = {
274
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
275
+
276
+ const getOperationSpec: coreClient.OperationSpec = {
277
+ path:
278
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
280
279
  httpMethod: "GET",
281
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
282
- urlParameters: [
283
- Parameters.subscriptionId,
284
- Parameters.resourceGroupName,
285
- Parameters.accountName,
286
- Parameters.workspaceName,
287
- Parameters.projectName
288
- ],
289
- queryParameters: [
290
- Parameters.apiVersion
291
- ],
292
- headerParameters: [
293
- Parameters.acceptLanguage
294
- ],
295
280
  responses: {
296
281
  200: {
297
282
  bodyMapper: Mappers.Project
@@ -300,32 +285,22 @@ const getOperationSpec: msRest.OperationSpec = {
300
285
  bodyMapper: Mappers.ErrorResponse
301
286
  }
302
287
  },
303
- serializer
304
- };
305
-
306
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
307
- httpMethod: "PUT",
308
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
288
+ queryParameters: [Parameters.apiVersion],
309
289
  urlParameters: [
290
+ Parameters.$host,
310
291
  Parameters.subscriptionId,
311
292
  Parameters.resourceGroupName,
312
293
  Parameters.accountName,
313
294
  Parameters.workspaceName,
314
295
  Parameters.projectName
315
296
  ],
316
- queryParameters: [
317
- Parameters.apiVersion
318
- ],
319
- headerParameters: [
320
- Parameters.acceptLanguage
321
- ],
322
- requestBody: {
323
- parameterPath: "parameters",
324
- mapper: {
325
- ...Mappers.Project,
326
- required: true
327
- }
328
- },
297
+ headerParameters: [Parameters.accept],
298
+ serializer
299
+ };
300
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
301
+ path:
302
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
303
+ httpMethod: "PUT",
329
304
  responses: {
330
305
  200: {
331
306
  bodyMapper: Mappers.Project
@@ -337,25 +312,24 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
337
312
  bodyMapper: Mappers.ErrorResponse
338
313
  }
339
314
  },
340
- serializer
341
- };
342
-
343
- const deleteMethodOperationSpec: msRest.OperationSpec = {
344
- httpMethod: "DELETE",
345
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
315
+ requestBody: Parameters.parameters4,
316
+ queryParameters: [Parameters.apiVersion],
346
317
  urlParameters: [
318
+ Parameters.$host,
347
319
  Parameters.subscriptionId,
348
320
  Parameters.resourceGroupName,
349
321
  Parameters.accountName,
350
322
  Parameters.workspaceName,
351
323
  Parameters.projectName
352
324
  ],
353
- queryParameters: [
354
- Parameters.apiVersion
355
- ],
356
- headerParameters: [
357
- Parameters.acceptLanguage
358
- ],
325
+ headerParameters: [Parameters.accept, Parameters.contentType],
326
+ mediaType: "json",
327
+ serializer
328
+ };
329
+ const deleteOperationSpec: coreClient.OperationSpec = {
330
+ path:
331
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
332
+ httpMethod: "DELETE",
359
333
  responses: {
360
334
  200: {},
361
335
  204: {},
@@ -363,32 +337,22 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
363
337
  bodyMapper: Mappers.ErrorResponse
364
338
  }
365
339
  },
366
- serializer
367
- };
368
-
369
- const updateOperationSpec: msRest.OperationSpec = {
370
- httpMethod: "PATCH",
371
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
340
+ queryParameters: [Parameters.apiVersion],
372
341
  urlParameters: [
342
+ Parameters.$host,
373
343
  Parameters.subscriptionId,
374
344
  Parameters.resourceGroupName,
375
345
  Parameters.accountName,
376
346
  Parameters.workspaceName,
377
347
  Parameters.projectName
378
348
  ],
379
- queryParameters: [
380
- Parameters.apiVersion
381
- ],
382
- headerParameters: [
383
- Parameters.acceptLanguage
384
- ],
385
- requestBody: {
386
- parameterPath: "parameters",
387
- mapper: {
388
- ...Mappers.ProjectUpdateParameters,
389
- required: true
390
- }
391
- },
349
+ headerParameters: [Parameters.accept],
350
+ serializer
351
+ };
352
+ const updateOperationSpec: coreClient.OperationSpec = {
353
+ path:
354
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
355
+ httpMethod: "PATCH",
392
356
  responses: {
393
357
  200: {
394
358
  bodyMapper: Mappers.Project
@@ -397,24 +361,24 @@ const updateOperationSpec: msRest.OperationSpec = {
397
361
  bodyMapper: Mappers.ErrorResponse
398
362
  }
399
363
  },
400
- serializer
401
- };
402
-
403
- const listByWorkspaceOperationSpec: msRest.OperationSpec = {
404
- httpMethod: "GET",
405
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces{workspaceName}/projects",
364
+ requestBody: Parameters.parameters5,
365
+ queryParameters: [Parameters.apiVersion],
406
366
  urlParameters: [
367
+ Parameters.$host,
407
368
  Parameters.subscriptionId,
369
+ Parameters.resourceGroupName,
408
370
  Parameters.accountName,
409
371
  Parameters.workspaceName,
410
- Parameters.resourceGroupName
411
- ],
412
- queryParameters: [
413
- Parameters.apiVersion
414
- ],
415
- headerParameters: [
416
- Parameters.acceptLanguage
372
+ Parameters.projectName
417
373
  ],
374
+ headerParameters: [Parameters.accept, Parameters.contentType],
375
+ mediaType: "json",
376
+ serializer
377
+ };
378
+ const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
379
+ path:
380
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects",
381
+ httpMethod: "GET",
418
382
  responses: {
419
383
  200: {
420
384
  bodyMapper: Mappers.ProjectListResult
@@ -423,19 +387,20 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = {
423
387
  bodyMapper: Mappers.ErrorResponse
424
388
  }
425
389
  },
390
+ queryParameters: [Parameters.apiVersion],
391
+ urlParameters: [
392
+ Parameters.$host,
393
+ Parameters.subscriptionId,
394
+ Parameters.resourceGroupName,
395
+ Parameters.accountName,
396
+ Parameters.workspaceName
397
+ ],
398
+ headerParameters: [Parameters.accept],
426
399
  serializer
427
400
  };
428
-
429
- const listByWorkspaceNextOperationSpec: msRest.OperationSpec = {
430
- httpMethod: "GET",
431
- baseUrl: "https://management.azure.com",
401
+ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
432
402
  path: "{nextLink}",
433
- urlParameters: [
434
- Parameters.nextPageLink
435
- ],
436
- headerParameters: [
437
- Parameters.acceptLanguage
438
- ],
403
+ httpMethod: "GET",
439
404
  responses: {
440
405
  200: {
441
406
  bodyMapper: Mappers.ProjectListResult
@@ -444,5 +409,15 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = {
444
409
  bodyMapper: Mappers.ErrorResponse
445
410
  }
446
411
  },
412
+ queryParameters: [Parameters.apiVersion],
413
+ urlParameters: [
414
+ Parameters.$host,
415
+ Parameters.subscriptionId,
416
+ Parameters.resourceGroupName,
417
+ Parameters.accountName,
418
+ Parameters.nextLink,
419
+ Parameters.workspaceName
420
+ ],
421
+ headerParameters: [Parameters.accept],
447
422
  serializer
448
423
  };