@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +1780 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/accountCreate.d.ts +2 -0
- package/dist-esm/samples-dev/accountCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountCreate.js +33 -0
- package/dist-esm/samples-dev/accountCreate.js.map +1 -0
- package/dist-esm/samples-dev/accountGet.d.ts +2 -0
- package/dist-esm/samples-dev/accountGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountGet.js +31 -0
- package/dist-esm/samples-dev/accountGet.js.map +1 -0
- package/dist-esm/samples-dev/accountUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/accountUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountUpdate.js +35 -0
- package/dist-esm/samples-dev/accountUpdate.js.map +1 -0
- package/dist-esm/samples-dev/createProject.d.ts +2 -0
- package/dist-esm/samples-dev/createProject.d.ts.map +1 -0
- package/dist-esm/samples-dev/createProject.js +39 -0
- package/dist-esm/samples-dev/createProject.js.map +1 -0
- package/dist-esm/samples-dev/getProject.d.ts +2 -0
- package/dist-esm/samples-dev/getProject.d.ts.map +1 -0
- package/dist-esm/samples-dev/getProject.js +33 -0
- package/dist-esm/samples-dev/getProject.js.map +1 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts +2 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.d.ts.map +1 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.js +45 -0
- package/dist-esm/samples-dev/listWorkspacesByAccounts.js.map +1 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.d.ts +2 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.js +46 -0
- package/dist-esm/samples-dev/projectListByWorkspaces.js.map +1 -0
- package/dist-esm/samples-dev/updateProject.d.ts +2 -0
- package/dist-esm/samples-dev/updateProject.d.ts.map +1 -0
- package/dist-esm/samples-dev/updateProject.js +37 -0
- package/dist-esm/samples-dev/updateProject.js.map +1 -0
- package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceCreate.js +37 -0
- package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
- package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceDelete.js +32 -0
- package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
- package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceGet.js +32 -0
- package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
- package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspaceUpdate.js +33 -0
- package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/mLTeamAccountManagementClient.d.ts +21 -0
- package/dist-esm/src/mLTeamAccountManagementClient.d.ts.map +1 -0
- package/dist-esm/src/mLTeamAccountManagementClient.js +54 -0
- package/dist-esm/src/mLTeamAccountManagementClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +329 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +17 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +273 -315
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +153 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +90 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +366 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/projects.d.ts +86 -0
- package/dist-esm/src/operations/projects.d.ts.map +1 -0
- package/dist-esm/src/operations/projects.js +307 -0
- package/dist-esm/src/operations/projects.js.map +1 -0
- package/dist-esm/src/operations/workspaces.d.ts +79 -0
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/workspaces.js +280 -0
- package/dist-esm/src/operations/workspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/projects.js +9 -0
- package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +81 -34
- package/review/arm-machinelearningexperimentation.api.md +339 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/mLTeamAccountManagementClient.ts +78 -41
- package/src/models/index.ts +287 -707
- package/src/models/mappers.ts +263 -305
- package/src/models/parameters.ts +116 -43
- package/src/operations/accounts.ts +290 -330
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +66 -42
- package/src/operations/projects.ts +256 -281
- package/src/operations/workspaces.ts +242 -283
- package/src/operationsInterfaces/accounts.ts +96 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/projects.ts +108 -0
- package/src/operationsInterfaces/workspaces.ts +98 -0
- package/tsconfig.json +6 -5
- package/types/arm-machinelearningexperimentation.d.ts +569 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-machinelearningexperimentation.js +0 -1725
- package/dist/arm-machinelearningexperimentation.js.map +0 -1
- package/dist/arm-machinelearningexperimentation.min.js +0 -1
- package/dist/arm-machinelearningexperimentation.min.js.map +0 -1
- package/esm/mLTeamAccountManagementClient.d.ts +0 -27
- package/esm/mLTeamAccountManagementClient.d.ts.map +0 -1
- package/esm/mLTeamAccountManagementClient.js +0 -41
- package/esm/mLTeamAccountManagementClient.js.map +0 -1
- package/esm/mLTeamAccountManagementClientContext.d.ts +0 -22
- package/esm/mLTeamAccountManagementClientContext.d.ts.map +0 -1
- package/esm/mLTeamAccountManagementClientContext.js +0 -61
- package/esm/mLTeamAccountManagementClientContext.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -11
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -770
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -106
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/projectsMappers.d.ts +0 -2
- package/esm/models/projectsMappers.d.ts.map +0 -1
- package/esm/models/projectsMappers.js +0 -11
- package/esm/models/projectsMappers.js.map +0 -1
- package/esm/models/workspacesMappers.d.ts +0 -2
- package/esm/models/workspacesMappers.d.ts.map +0 -1
- package/esm/models/workspacesMappers.js +0 -11
- package/esm/models/workspacesMappers.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -187
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -272
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/projects.d.ts +0 -184
- package/esm/operations/projects.d.ts.map +0 -1
- package/esm/operations/projects.js +0 -239
- package/esm/operations/projects.js.map +0 -1
- package/esm/operations/workspaces.d.ts +0 -169
- package/esm/operations/workspaces.d.ts.map +0 -1
- package/esm/operations/workspaces.js +0 -229
- package/esm/operations/workspaces.js.map +0 -1
- package/src/mLTeamAccountManagementClientContext.ts +0 -68
- package/src/models/accountsMappers.ts +0 -22
- package/src/models/operationsMappers.ts +0 -17
- package/src/models/projectsMappers.ts +0 -22
- package/src/models/workspacesMappers.ts +0 -22
|
@@ -1,276 +1,247 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
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
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
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 {
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
*
|
|
23
|
-
* @param
|
|
37
|
+
* Initialize a new instance of the class Workspaces class.
|
|
38
|
+
* @param client Reference to the service client
|
|
24
39
|
*/
|
|
25
|
-
constructor(client:
|
|
40
|
+
constructor(client: MLTeamAccountManagementClient) {
|
|
26
41
|
this.client = client;
|
|
27
42
|
}
|
|
28
43
|
|
|
29
44
|
/**
|
|
30
|
-
*
|
|
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
|
|
44
|
-
*
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
continuationToken,
|
|
62
95
|
options
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
*
|
|
70
|
-
* @param resourceGroupName The name of the resource group to which the machine learning team
|
|
71
|
-
*
|
|
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
|
|
85
|
-
* @param callback The callback
|
|
122
|
+
* @param options The options parameters.
|
|
86
123
|
*/
|
|
87
|
-
|
|
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
|
-
*
|
|
90
|
-
* account
|
|
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
|
|
95
|
-
* @param callback The callback
|
|
143
|
+
* @param options The options parameters.
|
|
96
144
|
*/
|
|
97
|
-
createOrUpdate(
|
|
98
|
-
|
|
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
|
-
|
|
102
|
-
|
|
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
|
-
*
|
|
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
|
|
164
|
+
* @param options The options parameters.
|
|
127
165
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
142
|
-
|
|
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
|
-
*
|
|
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
|
|
158
|
-
* @returns Promise<Models.WorkspacesUpdateResponse>
|
|
185
|
+
* @param options The options parameters.
|
|
159
186
|
*/
|
|
160
|
-
update(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
184
|
-
|
|
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
|
-
*
|
|
198
|
-
* @param
|
|
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
|
-
|
|
217
|
-
|
|
207
|
+
private _listByAccounts(
|
|
208
|
+
accountName: string,
|
|
209
|
+
resourceGroupName: string,
|
|
210
|
+
options?: WorkspacesListByAccountsOptionalParams
|
|
211
|
+
): Promise<WorkspacesListByAccountsResponse> {
|
|
218
212
|
return this.client.sendOperationRequest(
|
|
219
|
-
{
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
*
|
|
230
|
-
* @param
|
|
231
|
-
* @param
|
|
232
|
-
*
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
246
|
-
|
|
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
|
-
|
|
250
|
-
|
|
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 =
|
|
259
|
-
|
|
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
|
-
|
|
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
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
};
|