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