@azure/arm-workspaces 0.2.0 → 1.0.0-alpha.20220208.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 +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 +84 -25
- 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
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all of the available Azure Machine Learning Studio REST API operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listPagingAll(options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
try {
|
|
50
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
51
|
+
const page = _c.value;
|
|
52
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
59
|
+
}
|
|
60
|
+
finally { if (e_1) throw e_1.error; }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Lists all of the available Azure Machine Learning Studio REST API operations.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(options) {
|
|
69
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Operation Specifications
|
|
73
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
74
|
+
const listOperationSpec = {
|
|
75
|
+
path: "/providers/Microsoft.MachineLearning/operations",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.OperationListResult
|
|
80
|
+
},
|
|
81
|
+
default: {
|
|
82
|
+
bodyMapper: Mappers.ErrorResponse
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
queryParameters: [Parameters.apiVersion],
|
|
86
|
+
urlParameters: [Parameters.$host],
|
|
87
|
+
headerParameters: [Parameters.accept],
|
|
88
|
+
serializer
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRo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AAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Workspaces } from "../operationsInterfaces";
|
|
3
|
+
import { MachineLearningWorkspacesManagementClient } from "../machineLearningWorkspacesManagementClient";
|
|
4
|
+
import { Workspace, WorkspacesListByResourceGroupOptionalParams, WorkspacesListOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, WorkspacesCreateOrUpdateOptionalParams, WorkspacesCreateOrUpdateResponse, WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, WorkspacesResyncStorageKeysOptionalParams, WorkspacesListWorkspaceKeysOptionalParams, WorkspacesListWorkspaceKeysResponse } from "../models";
|
|
5
|
+
/** Class containing Workspaces operations. */
|
|
6
|
+
export declare class WorkspacesImpl implements Workspaces {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Workspaces class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: MachineLearningWorkspacesManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all the available machine learning workspaces under the specified resource group.
|
|
15
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
16
|
+
* belongs.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workspace>;
|
|
20
|
+
private listByResourceGroupPagingPage;
|
|
21
|
+
private listByResourceGroupPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Lists all the available machine learning workspaces under the specified subscription.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
|
|
27
|
+
private listPagingPage;
|
|
28
|
+
private listPagingAll;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the properties of the specified machine learning workspace.
|
|
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 options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<WorkspacesGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Creates or updates a workspace with the specified parameters.
|
|
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 parameters The parameters for creating or updating a machine learning workspace.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<WorkspacesCreateOrUpdateResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Deletes a machine learning workspace.
|
|
48
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
49
|
+
* belongs.
|
|
50
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
delete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Updates a machine learning workspace with the specified parameters.
|
|
56
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
57
|
+
* belongs.
|
|
58
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
59
|
+
* @param parameters The parameters for updating a machine learning workspace.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise<WorkspacesUpdateResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Resync storage keys associated with this workspace.
|
|
65
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
66
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
67
|
+
* belongs.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
resyncStorageKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesResyncStorageKeysOptionalParams): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* List the authorization keys associated with this workspace.
|
|
73
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
74
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
75
|
+
* belongs.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
listWorkspaceKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesListWorkspaceKeysOptionalParams): Promise<WorkspacesListWorkspaceKeysResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Lists all the available machine learning workspaces under the specified resource group.
|
|
81
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
82
|
+
* belongs.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
private _listByResourceGroup;
|
|
86
|
+
/**
|
|
87
|
+
* Lists all the available machine learning workspaces under the specified subscription.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
private _list;
|
|
91
|
+
/**
|
|
92
|
+
* ListByResourceGroupNext
|
|
93
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
94
|
+
* belongs.
|
|
95
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
96
|
+
* @param options The options parameters.
|
|
97
|
+
*/
|
|
98
|
+
private _listByResourceGroupNext;
|
|
99
|
+
/**
|
|
100
|
+
* ListNext
|
|
101
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
private _listNext;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,yCAAyC,EAAE,MAAM,8CAA8C,CAAC;AACzG,OAAO,EACL,SAAS,EAET,2CAA2C,EAE3C,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,sCAAsC,EACtC,gCAAgC,EAChC,8BAA8B,EAC9B,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,yCAAyC,EACzC,yCAAyC,EACzC,mCAAmC,EAKpC,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4C;IAEnE;;;OAGG;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AKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,423 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Workspaces operations. */
|
|
14
|
+
export class WorkspacesImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Workspaces class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all the available machine learning workspaces under the specified resource group.
|
|
24
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
25
|
+
* belongs.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
29
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Lists all the available machine learning workspaces under the specified subscription.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
list(options) {
|
|
77
|
+
const iter = this.listPagingAll(options);
|
|
78
|
+
return {
|
|
79
|
+
next() {
|
|
80
|
+
return iter.next();
|
|
81
|
+
},
|
|
82
|
+
[Symbol.asyncIterator]() {
|
|
83
|
+
return this;
|
|
84
|
+
},
|
|
85
|
+
byPage: () => {
|
|
86
|
+
return this.listPagingPage(options);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
listPagingPage(options) {
|
|
91
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
92
|
+
let result = yield __await(this._list(options));
|
|
93
|
+
yield yield __await(result.value || []);
|
|
94
|
+
let continuationToken = result.nextLink;
|
|
95
|
+
while (continuationToken) {
|
|
96
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
yield yield __await(result.value || []);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
listPagingAll(options) {
|
|
103
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
104
|
+
var e_2, _a;
|
|
105
|
+
try {
|
|
106
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
107
|
+
const page = _c.value;
|
|
108
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
112
|
+
finally {
|
|
113
|
+
try {
|
|
114
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
115
|
+
}
|
|
116
|
+
finally { if (e_2) throw e_2.error; }
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Gets the properties of the specified machine learning workspace.
|
|
122
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
123
|
+
* belongs.
|
|
124
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
get(resourceGroupName, workspaceName, options) {
|
|
128
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Creates or updates a workspace with the specified parameters.
|
|
132
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
133
|
+
* belongs.
|
|
134
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
135
|
+
* @param parameters The parameters for creating or updating a machine learning workspace.
|
|
136
|
+
* @param options The options parameters.
|
|
137
|
+
*/
|
|
138
|
+
createOrUpdate(resourceGroupName, workspaceName, parameters, options) {
|
|
139
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Deletes a machine learning workspace.
|
|
143
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
144
|
+
* belongs.
|
|
145
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
146
|
+
* @param options The options parameters.
|
|
147
|
+
*/
|
|
148
|
+
delete(resourceGroupName, workspaceName, options) {
|
|
149
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Updates a machine learning workspace with the specified parameters.
|
|
153
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
154
|
+
* belongs.
|
|
155
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
156
|
+
* @param parameters The parameters for updating a machine learning workspace.
|
|
157
|
+
* @param options The options parameters.
|
|
158
|
+
*/
|
|
159
|
+
update(resourceGroupName, workspaceName, parameters, options) {
|
|
160
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Resync storage keys associated with this workspace.
|
|
164
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
165
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
166
|
+
* belongs.
|
|
167
|
+
* @param options The options parameters.
|
|
168
|
+
*/
|
|
169
|
+
resyncStorageKeys(workspaceName, resourceGroupName, options) {
|
|
170
|
+
return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, resyncStorageKeysOperationSpec);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* List the authorization keys associated with this workspace.
|
|
174
|
+
* @param workspaceName The name of the machine learning workspace.
|
|
175
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
176
|
+
* belongs.
|
|
177
|
+
* @param options The options parameters.
|
|
178
|
+
*/
|
|
179
|
+
listWorkspaceKeys(workspaceName, resourceGroupName, options) {
|
|
180
|
+
return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, listWorkspaceKeysOperationSpec);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Lists all the available machine learning workspaces under the specified resource group.
|
|
184
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
185
|
+
* belongs.
|
|
186
|
+
* @param options The options parameters.
|
|
187
|
+
*/
|
|
188
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
189
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Lists all the available machine learning workspaces under the specified subscription.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
_list(options) {
|
|
196
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* ListByResourceGroupNext
|
|
200
|
+
* @param resourceGroupName The name of the resource group to which the machine learning workspace
|
|
201
|
+
* belongs.
|
|
202
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
203
|
+
* @param options The options parameters.
|
|
204
|
+
*/
|
|
205
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
206
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* ListNext
|
|
210
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
_listNext(nextLink, options) {
|
|
214
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
// Operation Specifications
|
|
218
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
219
|
+
const getOperationSpec = {
|
|
220
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
221
|
+
httpMethod: "GET",
|
|
222
|
+
responses: {
|
|
223
|
+
200: {
|
|
224
|
+
bodyMapper: Mappers.Workspace
|
|
225
|
+
},
|
|
226
|
+
default: {
|
|
227
|
+
bodyMapper: Mappers.ErrorResponse
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
queryParameters: [Parameters.apiVersion],
|
|
231
|
+
urlParameters: [
|
|
232
|
+
Parameters.$host,
|
|
233
|
+
Parameters.subscriptionId,
|
|
234
|
+
Parameters.resourceGroupName,
|
|
235
|
+
Parameters.workspaceName
|
|
236
|
+
],
|
|
237
|
+
headerParameters: [Parameters.accept],
|
|
238
|
+
serializer
|
|
239
|
+
};
|
|
240
|
+
const createOrUpdateOperationSpec = {
|
|
241
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
242
|
+
httpMethod: "PUT",
|
|
243
|
+
responses: {
|
|
244
|
+
200: {
|
|
245
|
+
bodyMapper: Mappers.Workspace
|
|
246
|
+
},
|
|
247
|
+
default: {
|
|
248
|
+
bodyMapper: Mappers.ErrorResponse
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
requestBody: Parameters.parameters,
|
|
252
|
+
queryParameters: [Parameters.apiVersion],
|
|
253
|
+
urlParameters: [
|
|
254
|
+
Parameters.$host,
|
|
255
|
+
Parameters.subscriptionId,
|
|
256
|
+
Parameters.resourceGroupName,
|
|
257
|
+
Parameters.workspaceName
|
|
258
|
+
],
|
|
259
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
260
|
+
mediaType: "json",
|
|
261
|
+
serializer
|
|
262
|
+
};
|
|
263
|
+
const deleteOperationSpec = {
|
|
264
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
265
|
+
httpMethod: "DELETE",
|
|
266
|
+
responses: {
|
|
267
|
+
200: {},
|
|
268
|
+
204: {},
|
|
269
|
+
default: {
|
|
270
|
+
bodyMapper: Mappers.ErrorResponse
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
queryParameters: [Parameters.apiVersion],
|
|
274
|
+
urlParameters: [
|
|
275
|
+
Parameters.$host,
|
|
276
|
+
Parameters.subscriptionId,
|
|
277
|
+
Parameters.resourceGroupName,
|
|
278
|
+
Parameters.workspaceName
|
|
279
|
+
],
|
|
280
|
+
headerParameters: [Parameters.accept],
|
|
281
|
+
serializer
|
|
282
|
+
};
|
|
283
|
+
const updateOperationSpec = {
|
|
284
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
|
|
285
|
+
httpMethod: "PATCH",
|
|
286
|
+
responses: {
|
|
287
|
+
200: {
|
|
288
|
+
bodyMapper: Mappers.Workspace
|
|
289
|
+
},
|
|
290
|
+
default: {
|
|
291
|
+
bodyMapper: Mappers.ErrorResponse
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
requestBody: Parameters.parameters1,
|
|
295
|
+
queryParameters: [Parameters.apiVersion],
|
|
296
|
+
urlParameters: [
|
|
297
|
+
Parameters.$host,
|
|
298
|
+
Parameters.subscriptionId,
|
|
299
|
+
Parameters.resourceGroupName,
|
|
300
|
+
Parameters.workspaceName
|
|
301
|
+
],
|
|
302
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
303
|
+
mediaType: "json",
|
|
304
|
+
serializer
|
|
305
|
+
};
|
|
306
|
+
const resyncStorageKeysOperationSpec = {
|
|
307
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
|
|
308
|
+
httpMethod: "POST",
|
|
309
|
+
responses: {
|
|
310
|
+
200: {},
|
|
311
|
+
default: {
|
|
312
|
+
bodyMapper: Mappers.ErrorResponse
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
queryParameters: [Parameters.apiVersion],
|
|
316
|
+
urlParameters: [
|
|
317
|
+
Parameters.$host,
|
|
318
|
+
Parameters.subscriptionId,
|
|
319
|
+
Parameters.resourceGroupName,
|
|
320
|
+
Parameters.workspaceName
|
|
321
|
+
],
|
|
322
|
+
headerParameters: [Parameters.accept],
|
|
323
|
+
serializer
|
|
324
|
+
};
|
|
325
|
+
const listWorkspaceKeysOperationSpec = {
|
|
326
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
|
|
327
|
+
httpMethod: "POST",
|
|
328
|
+
responses: {
|
|
329
|
+
200: {
|
|
330
|
+
bodyMapper: Mappers.WorkspaceKeysResponse
|
|
331
|
+
},
|
|
332
|
+
default: {
|
|
333
|
+
bodyMapper: Mappers.ErrorResponse
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
queryParameters: [Parameters.apiVersion],
|
|
337
|
+
urlParameters: [
|
|
338
|
+
Parameters.$host,
|
|
339
|
+
Parameters.subscriptionId,
|
|
340
|
+
Parameters.resourceGroupName,
|
|
341
|
+
Parameters.workspaceName
|
|
342
|
+
],
|
|
343
|
+
headerParameters: [Parameters.accept],
|
|
344
|
+
serializer
|
|
345
|
+
};
|
|
346
|
+
const listByResourceGroupOperationSpec = {
|
|
347
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
|
|
348
|
+
httpMethod: "GET",
|
|
349
|
+
responses: {
|
|
350
|
+
200: {
|
|
351
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
352
|
+
},
|
|
353
|
+
default: {
|
|
354
|
+
bodyMapper: Mappers.ErrorResponse
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
queryParameters: [Parameters.apiVersion],
|
|
358
|
+
urlParameters: [
|
|
359
|
+
Parameters.$host,
|
|
360
|
+
Parameters.subscriptionId,
|
|
361
|
+
Parameters.resourceGroupName
|
|
362
|
+
],
|
|
363
|
+
headerParameters: [Parameters.accept],
|
|
364
|
+
serializer
|
|
365
|
+
};
|
|
366
|
+
const listOperationSpec = {
|
|
367
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
|
|
368
|
+
httpMethod: "GET",
|
|
369
|
+
responses: {
|
|
370
|
+
200: {
|
|
371
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
372
|
+
},
|
|
373
|
+
default: {
|
|
374
|
+
bodyMapper: Mappers.ErrorResponse
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
queryParameters: [Parameters.apiVersion],
|
|
378
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
379
|
+
headerParameters: [Parameters.accept],
|
|
380
|
+
serializer
|
|
381
|
+
};
|
|
382
|
+
const listByResourceGroupNextOperationSpec = {
|
|
383
|
+
path: "{nextLink}",
|
|
384
|
+
httpMethod: "GET",
|
|
385
|
+
responses: {
|
|
386
|
+
200: {
|
|
387
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
388
|
+
},
|
|
389
|
+
default: {
|
|
390
|
+
bodyMapper: Mappers.ErrorResponse
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
queryParameters: [Parameters.apiVersion],
|
|
394
|
+
urlParameters: [
|
|
395
|
+
Parameters.$host,
|
|
396
|
+
Parameters.subscriptionId,
|
|
397
|
+
Parameters.resourceGroupName,
|
|
398
|
+
Parameters.nextLink
|
|
399
|
+
],
|
|
400
|
+
headerParameters: [Parameters.accept],
|
|
401
|
+
serializer
|
|
402
|
+
};
|
|
403
|
+
const listNextOperationSpec = {
|
|
404
|
+
path: "{nextLink}",
|
|
405
|
+
httpMethod: "GET",
|
|
406
|
+
responses: {
|
|
407
|
+
200: {
|
|
408
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
409
|
+
},
|
|
410
|
+
default: {
|
|
411
|
+
bodyMapper: Mappers.ErrorResponse
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
queryParameters: [Parameters.apiVersion],
|
|
415
|
+
urlParameters: [
|
|
416
|
+
Parameters.$host,
|
|
417
|
+
Parameters.subscriptionId,
|
|
418
|
+
Parameters.nextLink
|
|
419
|
+
],
|
|
420
|
+
headerParameters: [Parameters.accept],
|
|
421
|
+
serializer
|
|
422
|
+
};
|
|
423
|
+
//# sourceMappingURL=workspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAyBnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiD;QAC3D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,4B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ACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from "./operations";
|
|
9
|
+
export * from "./workspaces";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|