@azure/arm-machinelearningexperimentation 0.1.0 → 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 (209) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -73
  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 +83 -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 +91 -0
  125. package/src/models/index.ts +389 -0
  126. package/{lib → src}/models/mappers.ts +263 -305
  127. package/src/models/parameters.ts +181 -0
  128. package/src/operations/accounts.ts +454 -0
  129. package/{lib → src}/operations/index.ts +3 -5
  130. package/src/operations/operations.ts +98 -0
  131. package/src/operations/projects.ts +423 -0
  132. package/src/operations/workspaces.ts +382 -0
  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 -1715
  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 -21
  146. package/esm/mLTeamAccountManagementClient.d.ts.map +0 -1
  147. package/esm/mLTeamAccountManagementClient.js +0 -36
  148. package/esm/mLTeamAccountManagementClient.js.map +0 -1
  149. package/esm/mLTeamAccountManagementClientContext.d.ts +0 -16
  150. package/esm/mLTeamAccountManagementClientContext.d.ts.map +0 -1
  151. package/esm/mLTeamAccountManagementClientContext.js +0 -56
  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/lib/mLTeamAccountManagementClient.ts +0 -48
  199. package/lib/mLTeamAccountManagementClientContext.ts +0 -62
  200. package/lib/models/accountsMappers.ts +0 -22
  201. package/lib/models/index.ts +0 -809
  202. package/lib/models/operationsMappers.ts +0 -17
  203. package/lib/models/parameters.ts +0 -108
  204. package/lib/models/projectsMappers.ts +0 -22
  205. package/lib/models/workspacesMappers.ts +0 -22
  206. package/lib/operations/accounts.ts +0 -494
  207. package/lib/operations/operations.ts +0 -74
  208. package/lib/operations/projects.ts +0 -448
  209. package/lib/operations/workspaces.ts +0 -423
@@ -0,0 +1,181 @@
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 {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ Account as AccountMapper,
16
+ AccountUpdateParameters as AccountUpdateParametersMapper,
17
+ Workspace as WorkspaceMapper,
18
+ WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper,
19
+ Project as ProjectMapper,
20
+ ProjectUpdateParameters as ProjectUpdateParametersMapper
21
+ } from "../models/mappers";
22
+
23
+ export const accept: OperationParameter = {
24
+ parameterPath: "accept",
25
+ mapper: {
26
+ defaultValue: "application/json",
27
+ isConstant: true,
28
+ serializedName: "Accept",
29
+ type: {
30
+ name: "String"
31
+ }
32
+ }
33
+ };
34
+
35
+ export const $host: OperationURLParameter = {
36
+ parameterPath: "$host",
37
+ mapper: {
38
+ serializedName: "$host",
39
+ required: true,
40
+ type: {
41
+ name: "String"
42
+ }
43
+ },
44
+ skipEncoding: true
45
+ };
46
+
47
+ export const apiVersion: OperationQueryParameter = {
48
+ parameterPath: "apiVersion",
49
+ mapper: {
50
+ defaultValue: "2017-05-01-preview",
51
+ isConstant: true,
52
+ serializedName: "api-version",
53
+ type: {
54
+ name: "String"
55
+ }
56
+ }
57
+ };
58
+
59
+ export const subscriptionId: OperationURLParameter = {
60
+ parameterPath: "subscriptionId",
61
+ mapper: {
62
+ serializedName: "subscriptionId",
63
+ required: true,
64
+ type: {
65
+ name: "String"
66
+ }
67
+ }
68
+ };
69
+
70
+ export const resourceGroupName: OperationURLParameter = {
71
+ parameterPath: "resourceGroupName",
72
+ mapper: {
73
+ serializedName: "resourceGroupName",
74
+ required: true,
75
+ type: {
76
+ name: "String"
77
+ }
78
+ }
79
+ };
80
+
81
+ export const accountName: OperationURLParameter = {
82
+ parameterPath: "accountName",
83
+ mapper: {
84
+ constraints: {
85
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
86
+ MaxLength: 50,
87
+ MinLength: 5
88
+ },
89
+ serializedName: "accountName",
90
+ required: true,
91
+ type: {
92
+ name: "String"
93
+ }
94
+ }
95
+ };
96
+
97
+ export const contentType: OperationParameter = {
98
+ parameterPath: ["options", "contentType"],
99
+ mapper: {
100
+ defaultValue: "application/json",
101
+ isConstant: true,
102
+ serializedName: "Content-Type",
103
+ type: {
104
+ name: "String"
105
+ }
106
+ }
107
+ };
108
+
109
+ export const parameters: OperationParameter = {
110
+ parameterPath: "parameters",
111
+ mapper: AccountMapper
112
+ };
113
+
114
+ export const parameters1: OperationParameter = {
115
+ parameterPath: "parameters",
116
+ mapper: AccountUpdateParametersMapper
117
+ };
118
+
119
+ export const nextLink: OperationURLParameter = {
120
+ parameterPath: "nextLink",
121
+ mapper: {
122
+ serializedName: "nextLink",
123
+ required: true,
124
+ type: {
125
+ name: "String"
126
+ }
127
+ },
128
+ skipEncoding: true
129
+ };
130
+
131
+ export const workspaceName: OperationURLParameter = {
132
+ parameterPath: "workspaceName",
133
+ mapper: {
134
+ constraints: {
135
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
136
+ MaxLength: 50,
137
+ MinLength: 5
138
+ },
139
+ serializedName: "workspaceName",
140
+ required: true,
141
+ type: {
142
+ name: "String"
143
+ }
144
+ }
145
+ };
146
+
147
+ export const parameters2: OperationParameter = {
148
+ parameterPath: "parameters",
149
+ mapper: WorkspaceMapper
150
+ };
151
+
152
+ export const parameters3: OperationParameter = {
153
+ parameterPath: "parameters",
154
+ mapper: WorkspaceUpdateParametersMapper
155
+ };
156
+
157
+ export const projectName: OperationURLParameter = {
158
+ parameterPath: "projectName",
159
+ mapper: {
160
+ constraints: {
161
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
162
+ MaxLength: 50,
163
+ MinLength: 5
164
+ },
165
+ serializedName: "projectName",
166
+ required: true,
167
+ type: {
168
+ name: "String"
169
+ }
170
+ }
171
+ };
172
+
173
+ export const parameters4: OperationParameter = {
174
+ parameterPath: "parameters",
175
+ mapper: ProjectMapper
176
+ };
177
+
178
+ export const parameters5: OperationParameter = {
179
+ parameterPath: "parameters",
180
+ mapper: ProjectUpdateParametersMapper
181
+ };
@@ -0,0 +1,454 @@
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 { Accounts } 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 { MLTeamAccountManagementClient } from "../mLTeamAccountManagementClient";
15
+ import {
16
+ Account,
17
+ AccountsListByResourceGroupNextOptionalParams,
18
+ AccountsListByResourceGroupOptionalParams,
19
+ AccountsListNextOptionalParams,
20
+ AccountsListOptionalParams,
21
+ AccountsGetOptionalParams,
22
+ AccountsGetResponse,
23
+ AccountsCreateOrUpdateOptionalParams,
24
+ AccountsCreateOrUpdateResponse,
25
+ AccountsDeleteOptionalParams,
26
+ AccountUpdateParameters,
27
+ AccountsUpdateOptionalParams,
28
+ AccountsUpdateResponse,
29
+ AccountsListByResourceGroupResponse,
30
+ AccountsListResponse,
31
+ AccountsListByResourceGroupNextResponse,
32
+ AccountsListNextResponse
33
+ } from "../models";
34
+
35
+ /// <reference lib="esnext.asynciterable" />
36
+ /** Class containing Accounts operations. */
37
+ export class AccountsImpl implements Accounts {
38
+ private readonly client: MLTeamAccountManagementClient;
39
+
40
+ /**
41
+ * Initialize a new instance of the class Accounts class.
42
+ * @param client Reference to the service client
43
+ */
44
+ constructor(client: MLTeamAccountManagementClient) {
45
+ this.client = client;
46
+ }
47
+
48
+ /**
49
+ * Lists all the available machine learning team accounts under the specified resource group.
50
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
51
+ * belongs.
52
+ * @param options The options parameters.
53
+ */
54
+ public listByResourceGroup(
55
+ resourceGroupName: string,
56
+ options?: AccountsListByResourceGroupOptionalParams
57
+ ): PagedAsyncIterableIterator<Account> {
58
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
59
+ return {
60
+ next() {
61
+ return iter.next();
62
+ },
63
+ [Symbol.asyncIterator]() {
64
+ return this;
65
+ },
66
+ byPage: () => {
67
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
68
+ }
69
+ };
70
+ }
71
+
72
+ private async *listByResourceGroupPagingPage(
73
+ resourceGroupName: string,
74
+ options?: AccountsListByResourceGroupOptionalParams
75
+ ): AsyncIterableIterator<Account[]> {
76
+ let result = await this._listByResourceGroup(resourceGroupName, options);
77
+ yield result.value || [];
78
+ let continuationToken = result.nextLink;
79
+ while (continuationToken) {
80
+ result = await this._listByResourceGroupNext(
81
+ resourceGroupName,
82
+ continuationToken,
83
+ options
84
+ );
85
+ continuationToken = result.nextLink;
86
+ yield result.value || [];
87
+ }
88
+ }
89
+
90
+ private async *listByResourceGroupPagingAll(
91
+ resourceGroupName: string,
92
+ options?: AccountsListByResourceGroupOptionalParams
93
+ ): AsyncIterableIterator<Account> {
94
+ for await (const page of this.listByResourceGroupPagingPage(
95
+ resourceGroupName,
96
+ options
97
+ )) {
98
+ yield* page;
99
+ }
100
+ }
101
+
102
+ /**
103
+ * Lists all the available machine learning team accounts under the specified subscription.
104
+ * @param options The options parameters.
105
+ */
106
+ public list(
107
+ options?: AccountsListOptionalParams
108
+ ): PagedAsyncIterableIterator<Account> {
109
+ const iter = this.listPagingAll(options);
110
+ return {
111
+ next() {
112
+ return iter.next();
113
+ },
114
+ [Symbol.asyncIterator]() {
115
+ return this;
116
+ },
117
+ byPage: () => {
118
+ return this.listPagingPage(options);
119
+ }
120
+ };
121
+ }
122
+
123
+ private async *listPagingPage(
124
+ options?: AccountsListOptionalParams
125
+ ): AsyncIterableIterator<Account[]> {
126
+ let result = await this._list(options);
127
+ yield result.value || [];
128
+ let continuationToken = result.nextLink;
129
+ while (continuationToken) {
130
+ result = await this._listNext(continuationToken, options);
131
+ continuationToken = result.nextLink;
132
+ yield result.value || [];
133
+ }
134
+ }
135
+
136
+ private async *listPagingAll(
137
+ options?: AccountsListOptionalParams
138
+ ): AsyncIterableIterator<Account> {
139
+ for await (const page of this.listPagingPage(options)) {
140
+ yield* page;
141
+ }
142
+ }
143
+
144
+ /**
145
+ * Gets the properties of the specified machine learning team account.
146
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
147
+ * belongs.
148
+ * @param accountName The name of the machine learning team account.
149
+ * @param options The options parameters.
150
+ */
151
+ get(
152
+ resourceGroupName: string,
153
+ accountName: string,
154
+ options?: AccountsGetOptionalParams
155
+ ): Promise<AccountsGetResponse> {
156
+ return this.client.sendOperationRequest(
157
+ { resourceGroupName, accountName, options },
158
+ getOperationSpec
159
+ );
160
+ }
161
+
162
+ /**
163
+ * Creates or updates a team account with the specified parameters.
164
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
165
+ * belongs.
166
+ * @param accountName The name of the machine learning team account.
167
+ * @param parameters The parameters for creating or updating a machine learning team account.
168
+ * @param options The options parameters.
169
+ */
170
+ createOrUpdate(
171
+ resourceGroupName: string,
172
+ accountName: string,
173
+ parameters: Account,
174
+ options?: AccountsCreateOrUpdateOptionalParams
175
+ ): Promise<AccountsCreateOrUpdateResponse> {
176
+ return this.client.sendOperationRequest(
177
+ { resourceGroupName, accountName, parameters, options },
178
+ createOrUpdateOperationSpec
179
+ );
180
+ }
181
+
182
+ /**
183
+ * Deletes a machine learning team account.
184
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
185
+ * belongs.
186
+ * @param accountName The name of the machine learning team account.
187
+ * @param options The options parameters.
188
+ */
189
+ delete(
190
+ resourceGroupName: string,
191
+ accountName: string,
192
+ options?: AccountsDeleteOptionalParams
193
+ ): Promise<void> {
194
+ return this.client.sendOperationRequest(
195
+ { resourceGroupName, accountName, options },
196
+ deleteOperationSpec
197
+ );
198
+ }
199
+
200
+ /**
201
+ * Updates a machine learning team account with the specified parameters.
202
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
203
+ * belongs.
204
+ * @param accountName The name of the machine learning team account.
205
+ * @param parameters The parameters for updating a machine learning team account.
206
+ * @param options The options parameters.
207
+ */
208
+ update(
209
+ resourceGroupName: string,
210
+ accountName: string,
211
+ parameters: AccountUpdateParameters,
212
+ options?: AccountsUpdateOptionalParams
213
+ ): Promise<AccountsUpdateResponse> {
214
+ return this.client.sendOperationRequest(
215
+ { resourceGroupName, accountName, parameters, options },
216
+ updateOperationSpec
217
+ );
218
+ }
219
+
220
+ /**
221
+ * Lists all the available machine learning team accounts under the specified resource group.
222
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
223
+ * belongs.
224
+ * @param options The options parameters.
225
+ */
226
+ private _listByResourceGroup(
227
+ resourceGroupName: string,
228
+ options?: AccountsListByResourceGroupOptionalParams
229
+ ): Promise<AccountsListByResourceGroupResponse> {
230
+ return this.client.sendOperationRequest(
231
+ { resourceGroupName, options },
232
+ listByResourceGroupOperationSpec
233
+ );
234
+ }
235
+
236
+ /**
237
+ * Lists all the available machine learning team accounts under the specified subscription.
238
+ * @param options The options parameters.
239
+ */
240
+ private _list(
241
+ options?: AccountsListOptionalParams
242
+ ): Promise<AccountsListResponse> {
243
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
244
+ }
245
+
246
+ /**
247
+ * ListByResourceGroupNext
248
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
249
+ * belongs.
250
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
251
+ * @param options The options parameters.
252
+ */
253
+ private _listByResourceGroupNext(
254
+ resourceGroupName: string,
255
+ nextLink: string,
256
+ options?: AccountsListByResourceGroupNextOptionalParams
257
+ ): Promise<AccountsListByResourceGroupNextResponse> {
258
+ return this.client.sendOperationRequest(
259
+ { resourceGroupName, nextLink, options },
260
+ listByResourceGroupNextOperationSpec
261
+ );
262
+ }
263
+
264
+ /**
265
+ * ListNext
266
+ * @param nextLink The nextLink from the previous successful call to the List method.
267
+ * @param options The options parameters.
268
+ */
269
+ private _listNext(
270
+ nextLink: string,
271
+ options?: AccountsListNextOptionalParams
272
+ ): Promise<AccountsListNextResponse> {
273
+ return this.client.sendOperationRequest(
274
+ { nextLink, options },
275
+ listNextOperationSpec
276
+ );
277
+ }
278
+ }
279
+ // Operation Specifications
280
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
281
+
282
+ const getOperationSpec: coreClient.OperationSpec = {
283
+ path:
284
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
285
+ httpMethod: "GET",
286
+ responses: {
287
+ 200: {
288
+ bodyMapper: Mappers.Account
289
+ },
290
+ default: {
291
+ bodyMapper: Mappers.ErrorResponse
292
+ }
293
+ },
294
+ queryParameters: [Parameters.apiVersion],
295
+ urlParameters: [
296
+ Parameters.$host,
297
+ Parameters.subscriptionId,
298
+ Parameters.resourceGroupName,
299
+ Parameters.accountName
300
+ ],
301
+ headerParameters: [Parameters.accept],
302
+ serializer
303
+ };
304
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
305
+ path:
306
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
307
+ httpMethod: "PUT",
308
+ responses: {
309
+ 200: {
310
+ bodyMapper: Mappers.Account
311
+ },
312
+ 201: {
313
+ bodyMapper: Mappers.Account
314
+ },
315
+ default: {
316
+ bodyMapper: Mappers.ErrorResponse
317
+ }
318
+ },
319
+ requestBody: Parameters.parameters,
320
+ queryParameters: [Parameters.apiVersion],
321
+ urlParameters: [
322
+ Parameters.$host,
323
+ Parameters.subscriptionId,
324
+ Parameters.resourceGroupName,
325
+ Parameters.accountName
326
+ ],
327
+ headerParameters: [Parameters.accept, Parameters.contentType],
328
+ mediaType: "json",
329
+ serializer
330
+ };
331
+ const deleteOperationSpec: coreClient.OperationSpec = {
332
+ path:
333
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
334
+ httpMethod: "DELETE",
335
+ responses: {
336
+ 200: {},
337
+ 204: {},
338
+ default: {
339
+ bodyMapper: Mappers.ErrorResponse
340
+ }
341
+ },
342
+ queryParameters: [Parameters.apiVersion],
343
+ urlParameters: [
344
+ Parameters.$host,
345
+ Parameters.subscriptionId,
346
+ Parameters.resourceGroupName,
347
+ Parameters.accountName
348
+ ],
349
+ headerParameters: [Parameters.accept],
350
+ serializer
351
+ };
352
+ const updateOperationSpec: coreClient.OperationSpec = {
353
+ path:
354
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
355
+ httpMethod: "PATCH",
356
+ responses: {
357
+ 200: {
358
+ bodyMapper: Mappers.Account
359
+ },
360
+ default: {
361
+ bodyMapper: Mappers.ErrorResponse
362
+ }
363
+ },
364
+ requestBody: Parameters.parameters1,
365
+ queryParameters: [Parameters.apiVersion],
366
+ urlParameters: [
367
+ Parameters.$host,
368
+ Parameters.subscriptionId,
369
+ Parameters.resourceGroupName,
370
+ Parameters.accountName
371
+ ],
372
+ headerParameters: [Parameters.accept, Parameters.contentType],
373
+ mediaType: "json",
374
+ serializer
375
+ };
376
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
377
+ path:
378
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts",
379
+ httpMethod: "GET",
380
+ responses: {
381
+ 200: {
382
+ bodyMapper: Mappers.AccountListResult
383
+ },
384
+ default: {
385
+ bodyMapper: Mappers.ErrorResponse
386
+ }
387
+ },
388
+ queryParameters: [Parameters.apiVersion],
389
+ urlParameters: [
390
+ Parameters.$host,
391
+ Parameters.subscriptionId,
392
+ Parameters.resourceGroupName
393
+ ],
394
+ headerParameters: [Parameters.accept],
395
+ serializer
396
+ };
397
+ const listOperationSpec: coreClient.OperationSpec = {
398
+ path:
399
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningExperimentation/accounts",
400
+ httpMethod: "GET",
401
+ responses: {
402
+ 200: {
403
+ bodyMapper: Mappers.AccountListResult
404
+ },
405
+ default: {
406
+ bodyMapper: Mappers.ErrorResponse
407
+ }
408
+ },
409
+ queryParameters: [Parameters.apiVersion],
410
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
411
+ headerParameters: [Parameters.accept],
412
+ serializer
413
+ };
414
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
415
+ path: "{nextLink}",
416
+ httpMethod: "GET",
417
+ responses: {
418
+ 200: {
419
+ bodyMapper: Mappers.AccountListResult
420
+ },
421
+ default: {
422
+ bodyMapper: Mappers.ErrorResponse
423
+ }
424
+ },
425
+ queryParameters: [Parameters.apiVersion],
426
+ urlParameters: [
427
+ Parameters.$host,
428
+ Parameters.subscriptionId,
429
+ Parameters.resourceGroupName,
430
+ Parameters.nextLink
431
+ ],
432
+ headerParameters: [Parameters.accept],
433
+ serializer
434
+ };
435
+ const listNextOperationSpec: coreClient.OperationSpec = {
436
+ path: "{nextLink}",
437
+ httpMethod: "GET",
438
+ responses: {
439
+ 200: {
440
+ bodyMapper: Mappers.AccountListResult
441
+ },
442
+ default: {
443
+ bodyMapper: Mappers.ErrorResponse
444
+ }
445
+ },
446
+ queryParameters: [Parameters.apiVersion],
447
+ urlParameters: [
448
+ Parameters.$host,
449
+ Parameters.subscriptionId,
450
+ Parameters.nextLink
451
+ ],
452
+ headerParameters: [Parameters.accept],
453
+ serializer
454
+ };
@@ -1,11 +1,9 @@
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
9
  export * from "./operations";