@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.
Files changed (149) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +1009 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/listWorkspaceKeys.d.ts +2 -0
  9. package/dist-esm/samples-dev/listWorkspaceKeys.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/listWorkspaceKeys.js +31 -0
  11. package/dist-esm/samples-dev/listWorkspaceKeys.js.map +1 -0
  12. package/dist-esm/samples-dev/resyncStorageKeys.d.ts +2 -0
  13. package/dist-esm/samples-dev/resyncStorageKeys.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/resyncStorageKeys.js +31 -0
  15. package/dist-esm/samples-dev/resyncStorageKeys.js.map +1 -0
  16. package/dist-esm/samples-dev/workspaceCreate.d.ts +2 -0
  17. package/dist-esm/samples-dev/workspaceCreate.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/workspaceCreate.js +38 -0
  19. package/dist-esm/samples-dev/workspaceCreate.js.map +1 -0
  20. package/dist-esm/samples-dev/workspaceDelete.d.ts +2 -0
  21. package/dist-esm/samples-dev/workspaceDelete.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/workspaceDelete.js +31 -0
  23. package/dist-esm/samples-dev/workspaceDelete.js.map +1 -0
  24. package/dist-esm/samples-dev/workspaceGet.d.ts +2 -0
  25. package/dist-esm/samples-dev/workspaceGet.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/workspaceGet.js +31 -0
  27. package/dist-esm/samples-dev/workspaceGet.js.map +1 -0
  28. package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts +2 -0
  29. package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/workspaceGetBySubscription.js +43 -0
  31. package/dist-esm/samples-dev/workspaceGetBySubscription.js.map +1 -0
  32. package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts +2 -0
  33. package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/workspaceListResourceGroup.js +44 -0
  35. package/dist-esm/samples-dev/workspaceListResourceGroup.js.map +1 -0
  36. package/dist-esm/samples-dev/workspaceUpdate.d.ts +2 -0
  37. package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/workspaceUpdate.js +36 -0
  39. package/dist-esm/samples-dev/workspaceUpdate.js.map +1 -0
  40. package/dist-esm/src/index.d.ts +5 -0
  41. package/dist-esm/src/index.d.ts.map +1 -0
  42. package/dist-esm/src/index.js +12 -0
  43. package/dist-esm/src/index.js.map +1 -0
  44. package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts +19 -0
  45. package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
  46. package/dist-esm/src/machineLearningWorkspacesManagementClient.js +52 -0
  47. package/dist-esm/src/machineLearningWorkspacesManagementClient.js.map +1 -0
  48. package/dist-esm/src/models/index.d.ts +190 -0
  49. package/dist-esm/src/models/index.d.ts.map +1 -0
  50. package/dist-esm/src/models/index.js +9 -0
  51. package/dist-esm/src/models/index.js.map +1 -0
  52. package/dist-esm/src/models/mappers.d.ts +12 -0
  53. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/models/mappers.js +177 -167
  55. package/dist-esm/src/models/mappers.js.map +1 -0
  56. package/dist-esm/src/models/parameters.d.ts +12 -0
  57. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  58. package/dist-esm/src/models/parameters.js +102 -0
  59. package/dist-esm/src/models/parameters.js.map +1 -0
  60. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +10 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/operations.d.ts +26 -0
  65. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/operations.js +90 -0
  67. package/dist-esm/src/operations/operations.js.map +1 -0
  68. package/dist-esm/src/operations/workspaces.d.ts +106 -0
  69. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  70. package/dist-esm/src/operations/workspaces.js +423 -0
  71. package/dist-esm/src/operations/workspaces.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  77. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +68 -0
  81. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  84. package/dist-esm/test/sampleTest.d.ts +2 -0
  85. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  86. package/dist-esm/test/sampleTest.js +40 -0
  87. package/dist-esm/test/sampleTest.js.map +1 -0
  88. package/package.json +81 -34
  89. package/review/arm-workspaces.api.md +206 -0
  90. package/rollup.config.js +184 -27
  91. package/src/index.ts +12 -0
  92. package/src/machineLearningWorkspacesManagementClient.ts +64 -37
  93. package/src/models/index.ts +184 -393
  94. package/src/models/mappers.ts +177 -166
  95. package/src/models/parameters.ts +73 -26
  96. package/src/operations/index.ts +3 -5
  97. package/src/operations/operations.ts +66 -42
  98. package/src/operations/workspaces.ts +329 -406
  99. package/src/operationsInterfaces/index.ts +10 -0
  100. package/src/operationsInterfaces/operations.ts +22 -0
  101. package/src/operationsInterfaces/workspaces.ts +123 -0
  102. package/tsconfig.json +6 -5
  103. package/types/arm-workspaces.d.ts +316 -0
  104. package/types/tsdoc-metadata.json +11 -0
  105. package/dist/arm-workspaces.js +0 -990
  106. package/dist/arm-workspaces.js.map +0 -1
  107. package/dist/arm-workspaces.min.js +0 -1
  108. package/dist/arm-workspaces.min.js.map +0 -1
  109. package/esm/machineLearningWorkspacesManagementClient.d.ts +0 -25
  110. package/esm/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
  111. package/esm/machineLearningWorkspacesManagementClient.js +0 -39
  112. package/esm/machineLearningWorkspacesManagementClient.js.map +0 -1
  113. package/esm/machineLearningWorkspacesManagementClientContext.d.ts +0 -22
  114. package/esm/machineLearningWorkspacesManagementClientContext.d.ts.map +0 -1
  115. package/esm/machineLearningWorkspacesManagementClientContext.js +0 -61
  116. package/esm/machineLearningWorkspacesManagementClientContext.js.map +0 -1
  117. package/esm/models/index.d.ts +0 -417
  118. package/esm/models/index.d.ts.map +0 -1
  119. package/esm/models/index.js +0 -10
  120. package/esm/models/index.js.map +0 -1
  121. package/esm/models/mappers.d.ts +0 -13
  122. package/esm/models/mappers.d.ts.map +0 -1
  123. package/esm/models/mappers.js.map +0 -1
  124. package/esm/models/operationsMappers.d.ts +0 -2
  125. package/esm/models/operationsMappers.d.ts.map +0 -1
  126. package/esm/models/operationsMappers.js +0 -11
  127. package/esm/models/operationsMappers.js.map +0 -1
  128. package/esm/models/parameters.d.ts +0 -8
  129. package/esm/models/parameters.d.ts.map +0 -1
  130. package/esm/models/parameters.js +0 -71
  131. package/esm/models/parameters.js.map +0 -1
  132. package/esm/models/workspacesMappers.d.ts +0 -2
  133. package/esm/models/workspacesMappers.d.ts.map +0 -1
  134. package/esm/models/workspacesMappers.js +0 -11
  135. package/esm/models/workspacesMappers.js.map +0 -1
  136. package/esm/operations/index.d.ts.map +0 -1
  137. package/esm/operations/index.js +0 -12
  138. package/esm/operations/index.js.map +0 -1
  139. package/esm/operations/operations.d.ts +0 -28
  140. package/esm/operations/operations.d.ts.map +0 -1
  141. package/esm/operations/operations.js +0 -51
  142. package/esm/operations/operations.js.map +0 -1
  143. package/esm/operations/workspaces.d.ts +0 -235
  144. package/esm/operations/workspaces.d.ts.map +0 -1
  145. package/esm/operations/workspaces.js +0 -329
  146. package/esm/operations/workspaces.js.map +0 -1
  147. package/src/machineLearningWorkspacesManagementClientContext.ts +0 -68
  148. package/src/models/operationsMappers.ts +0 -17
  149. package/src/models/workspacesMappers.ts +0 -20
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all of the available Azure Machine Learning Studio REST API operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,68 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Workspace, WorkspacesListByResourceGroupOptionalParams, WorkspacesListOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, WorkspacesCreateOrUpdateOptionalParams, WorkspacesCreateOrUpdateResponse, WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, WorkspacesResyncStorageKeysOptionalParams, WorkspacesListWorkspaceKeysOptionalParams, WorkspacesListWorkspaceKeysResponse } from "../models";
3
+ /** Interface representing a Workspaces. */
4
+ export interface Workspaces {
5
+ /**
6
+ * Lists all the available machine learning workspaces under the specified resource group.
7
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
8
+ * belongs.
9
+ * @param options The options parameters.
10
+ */
11
+ listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workspace>;
12
+ /**
13
+ * Lists all the available machine learning workspaces under the specified subscription.
14
+ * @param options The options parameters.
15
+ */
16
+ list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
17
+ /**
18
+ * Gets the properties of the specified machine learning workspace.
19
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
20
+ * belongs.
21
+ * @param workspaceName The name of the machine learning workspace.
22
+ * @param options The options parameters.
23
+ */
24
+ get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<WorkspacesGetResponse>;
25
+ /**
26
+ * Creates or updates a workspace with the specified parameters.
27
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
28
+ * belongs.
29
+ * @param workspaceName The name of the machine learning workspace.
30
+ * @param parameters The parameters for creating or updating a machine learning workspace.
31
+ * @param options The options parameters.
32
+ */
33
+ createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<WorkspacesCreateOrUpdateResponse>;
34
+ /**
35
+ * Deletes a machine learning workspace.
36
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
37
+ * belongs.
38
+ * @param workspaceName The name of the machine learning workspace.
39
+ * @param options The options parameters.
40
+ */
41
+ delete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise<void>;
42
+ /**
43
+ * Updates a machine learning workspace with the specified parameters.
44
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
45
+ * belongs.
46
+ * @param workspaceName The name of the machine learning workspace.
47
+ * @param parameters The parameters for updating a machine learning workspace.
48
+ * @param options The options parameters.
49
+ */
50
+ update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise<WorkspacesUpdateResponse>;
51
+ /**
52
+ * Resync storage keys associated with this workspace.
53
+ * @param workspaceName The name of the machine learning workspace.
54
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
55
+ * belongs.
56
+ * @param options The options parameters.
57
+ */
58
+ resyncStorageKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesResyncStorageKeysOptionalParams): Promise<void>;
59
+ /**
60
+ * List the authorization keys associated with this workspace.
61
+ * @param workspaceName The name of the machine learning workspace.
62
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
63
+ * belongs.
64
+ * @param options The options parameters.
65
+ */
66
+ listWorkspaceKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesListWorkspaceKeysOptionalParams): Promise<WorkspacesListWorkspaceKeysResponse>;
67
+ }
68
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,SAAS,EACT,2CAA2C,EAC3C,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,sCAAsC,EACtC,gCAAgC,EAChC,8BAA8B,EAC9B,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,yCAAyC,EACzC,yCAAyC,EACzC,mCAAmC,EACpC,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACzC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACzC;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,SAAS,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC7C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,iBAAiB,CACf,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,iBAAiB,CACf,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;CACjD"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sampleTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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 { __awaiter } from "tslib";
9
+ import { record } from "@azure-tools/test-recorder";
10
+ const recorderEnvSetup = {
11
+ replaceableVariables: {
12
+ AZURE_CLIENT_ID: "azure_client_id",
13
+ AZURE_CLIENT_SECRET: "azure_client_secret",
14
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
+ SUBSCRIPTION_ID: "azure_subscription_id"
16
+ },
17
+ customizationsOnRecordings: [
18
+ (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
+ ],
20
+ queryParametersToSkip: []
21
+ };
22
+ describe("My test", () => {
23
+ let recorder;
24
+ beforeEach(function () {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ recorder = record(this, recorderEnvSetup);
27
+ });
28
+ });
29
+ afterEach(function () {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield recorder.stop();
32
+ });
33
+ });
34
+ it("sample test", function () {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ console.log("Hi, I'm a test!");
37
+ });
38
+ });
39
+ });
40
+ //# sourceMappingURL=sampleTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,57 +1,104 @@
1
1
  {
2
2
  "name": "@azure/arm-workspaces",
3
+ "sdk-type": "mgmt",
3
4
  "author": "Microsoft Corporation",
4
- "description": "MachineLearningWorkspacesManagementClient Library with typescript type definitions for node.js and browser.",
5
- "version": "0.2.0",
5
+ "description": "A generated SDK for MachineLearningWorkspacesManagementClient.",
6
+ "version": "1.0.0",
7
+ "engines": { "node": ">=12.0.0" },
6
8
  "dependencies": {
7
- "@azure/ms-rest-azure-js": "^1.4.0",
8
- "@azure/ms-rest-js": "^1.11.0",
9
- "@azure/core-auth": "^1.1.4",
10
- "tslib": "^1.9.3"
9
+ "@azure/core-paging": "^1.2.0",
10
+ "@azure/core-client": "^1.0.0",
11
+ "@azure/core-auth": "^1.3.0",
12
+ "@azure/core-rest-pipeline": "^1.1.0",
13
+ "tslib": "^2.2.0"
11
14
  },
12
- "keywords": [
13
- "node",
14
- "azure",
15
- "typescript",
16
- "browser",
17
- "isomorphic"
18
- ],
15
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19
16
  "license": "MIT",
20
- "main": "./dist/arm-workspaces.js",
21
- "module": "./esm/machineLearningWorkspacesManagementClient.js",
22
- "types": "./esm/machineLearningWorkspacesManagementClient.d.ts",
17
+ "main": "./dist/index.js",
18
+ "module": "./dist-esm/src/index.js",
19
+ "types": "./types/arm-workspaces.d.ts",
23
20
  "devDependencies": {
24
- "typescript": "^3.6.0",
25
- "rollup": "^0.66.2",
26
- "rollup-plugin-node-resolve": "^3.4.0",
27
- "uglify-js": "^3.4.9"
21
+ "@microsoft/api-extractor": "^7.18.11",
22
+ "@rollup/plugin-commonjs": "11.0.2",
23
+ "@rollup/plugin-json": "^4.0.0",
24
+ "@rollup/plugin-multi-entry": "^3.0.0",
25
+ "@rollup/plugin-node-resolve": "^8.0.0",
26
+ "mkdirp": "^1.0.4",
27
+ "rollup": "^1.16.3",
28
+ "rollup-plugin-sourcemaps": "^0.4.2",
29
+ "typescript": "~4.2.0",
30
+ "uglify-js": "^3.4.9",
31
+ "rimraf": "^3.0.0",
32
+ "@azure/identity": "^2.0.1",
33
+ "@azure-tools/test-recorder": "^1.0.0",
34
+ "mocha": "^7.1.1",
35
+ "cross-env": "^7.0.2"
28
36
  },
29
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-workspaces",
37
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-workspaces",
30
38
  "repository": {
31
39
  "type": "git",
32
- "url": "https://github.com/azure/azure-sdk-for-js.git"
33
- },
34
- "bugs": {
35
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
40
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
36
41
  },
42
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
37
43
  "files": [
38
44
  "dist/**/*.js",
39
45
  "dist/**/*.js.map",
40
46
  "dist/**/*.d.ts",
41
47
  "dist/**/*.d.ts.map",
42
- "esm/**/*.js",
43
- "esm/**/*.js.map",
44
- "esm/**/*.d.ts",
45
- "esm/**/*.d.ts.map",
48
+ "dist-esm/**/*.js",
49
+ "dist-esm/**/*.js.map",
50
+ "dist-esm/**/*.d.ts",
51
+ "dist-esm/**/*.d.ts.map",
46
52
  "src/**/*.ts",
53
+ "README.md",
54
+ "LICENSE",
47
55
  "rollup.config.js",
48
- "tsconfig.json"
56
+ "tsconfig.json",
57
+ "review/*",
58
+ "CHANGELOG.md",
59
+ "types/*"
49
60
  ],
50
61
  "scripts": {
51
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
52
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-workspaces.js.map'\" -o ./dist/arm-workspaces.min.js ./dist/arm-workspaces.js",
53
- "prepack": "npm install && npm run build"
62
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
63
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
64
+ "prepack": "npm run build",
65
+ "pack": "npm pack 2>&1",
66
+ "extract-api": "api-extractor run --local",
67
+ "lint": "echo skipped",
68
+ "audit": "echo skipped",
69
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
70
+ "build:node": "echo skipped",
71
+ "build:browser": "echo skipped",
72
+ "build:test": "echo skipped",
73
+ "build:samples": "echo skipped.",
74
+ "check-format": "echo skipped",
75
+ "execute:samples": "echo skipped",
76
+ "format": "echo skipped",
77
+ "test": "npm run integration-test",
78
+ "test:node": "echo skipped",
79
+ "test:browser": "echo skipped",
80
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
81
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
82
+ "unit-test:browser": "echo skipped",
83
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
84
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
85
+ "integration-test:browser": "echo skipped",
86
+ "docs": "echo skipped"
54
87
  },
55
88
  "sideEffects": false,
56
- "autoPublish": true
89
+ "//metadata": {
90
+ "constantPaths": [
91
+ {
92
+ "path": "src/MachineLearningWorkspacesManagementClient.ts",
93
+ "prefix": "packageDetails"
94
+ }
95
+ ]
96
+ },
97
+ "autoPublish": true,
98
+ "//sampleConfiguration": {
99
+ "productName": "",
100
+ "productSlugs": ["azure"],
101
+ "disableDocsMs": true,
102
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-workspaces?view=azure-node-preview"
103
+ }
57
104
  }
@@ -0,0 +1,206 @@
1
+ ## API Report File for "@azure/arm-workspaces"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export interface ErrorResponse {
13
+ code: string;
14
+ message: string;
15
+ }
16
+
17
+ // @public (undocumented)
18
+ export class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient {
19
+ // (undocumented)
20
+ $host: string;
21
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MachineLearningWorkspacesManagementClientOptionalParams);
22
+ // (undocumented)
23
+ apiVersion: string;
24
+ // (undocumented)
25
+ operations: Operations;
26
+ // (undocumented)
27
+ subscriptionId: string;
28
+ // (undocumented)
29
+ workspaces: Workspaces;
30
+ }
31
+
32
+ // @public
33
+ export interface MachineLearningWorkspacesManagementClientOptionalParams extends coreClient.ServiceClientOptions {
34
+ $host?: string;
35
+ apiVersion?: string;
36
+ endpoint?: string;
37
+ }
38
+
39
+ // @public
40
+ export interface Operation {
41
+ display?: OperationDisplay;
42
+ name?: string;
43
+ }
44
+
45
+ // @public
46
+ export interface OperationDisplay {
47
+ description?: string;
48
+ operation?: string;
49
+ provider?: string;
50
+ resource?: string;
51
+ }
52
+
53
+ // @public
54
+ export interface OperationListResult {
55
+ value?: Operation[];
56
+ }
57
+
58
+ // @public
59
+ export interface Operations {
60
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
61
+ }
62
+
63
+ // @public
64
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
65
+ }
66
+
67
+ // @public
68
+ export type OperationsListResponse = OperationListResult;
69
+
70
+ // @public
71
+ export interface Resource {
72
+ readonly id?: string;
73
+ location: string;
74
+ readonly name?: string;
75
+ sku?: Sku;
76
+ tags?: {
77
+ [propertyName: string]: string;
78
+ };
79
+ readonly type?: string;
80
+ }
81
+
82
+ // @public
83
+ export interface Sku {
84
+ name?: string;
85
+ tier?: string;
86
+ }
87
+
88
+ // @public
89
+ export type Workspace = Resource & {
90
+ userStorageAccountId?: string;
91
+ ownerEmail?: string;
92
+ readonly workspaceType?: WorkspaceType;
93
+ readonly workspaceState?: WorkspaceState;
94
+ readonly workspaceId?: string;
95
+ readonly creationTime?: string;
96
+ readonly studioEndpoint?: string;
97
+ keyVaultIdentifierId?: string;
98
+ };
99
+
100
+ // @public
101
+ export interface WorkspaceKeysResponse {
102
+ primaryToken?: string;
103
+ secondaryToken?: string;
104
+ }
105
+
106
+ // @public
107
+ export interface WorkspaceListResult {
108
+ nextLink?: string;
109
+ value?: Workspace[];
110
+ }
111
+
112
+ // @public
113
+ export interface Workspaces {
114
+ createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<WorkspacesCreateOrUpdateResponse>;
115
+ delete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise<void>;
116
+ get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<WorkspacesGetResponse>;
117
+ list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
118
+ listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workspace>;
119
+ listWorkspaceKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesListWorkspaceKeysOptionalParams): Promise<WorkspacesListWorkspaceKeysResponse>;
120
+ resyncStorageKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesResyncStorageKeysOptionalParams): Promise<void>;
121
+ update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise<WorkspacesUpdateResponse>;
122
+ }
123
+
124
+ // @public
125
+ export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
126
+ }
127
+
128
+ // @public
129
+ export type WorkspacesCreateOrUpdateResponse = Workspace;
130
+
131
+ // @public
132
+ export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions {
133
+ }
134
+
135
+ // @public
136
+ export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {
137
+ }
138
+
139
+ // @public
140
+ export type WorkspacesGetResponse = Workspace;
141
+
142
+ // @public
143
+ export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
144
+ }
145
+
146
+ // @public
147
+ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult;
148
+
149
+ // @public
150
+ export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
151
+ }
152
+
153
+ // @public
154
+ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult;
155
+
156
+ // @public
157
+ export interface WorkspacesListNextOptionalParams extends coreClient.OperationOptions {
158
+ }
159
+
160
+ // @public
161
+ export type WorkspacesListNextResponse = WorkspaceListResult;
162
+
163
+ // @public
164
+ export interface WorkspacesListOptionalParams extends coreClient.OperationOptions {
165
+ }
166
+
167
+ // @public
168
+ export type WorkspacesListResponse = WorkspaceListResult;
169
+
170
+ // @public
171
+ export interface WorkspacesListWorkspaceKeysOptionalParams extends coreClient.OperationOptions {
172
+ }
173
+
174
+ // @public
175
+ export type WorkspacesListWorkspaceKeysResponse = WorkspaceKeysResponse;
176
+
177
+ // @public
178
+ export interface WorkspacesResyncStorageKeysOptionalParams extends coreClient.OperationOptions {
179
+ }
180
+
181
+ // @public
182
+ export type WorkspaceState = "Deleted" | "Enabled" | "Disabled" | "Migrated" | "Updated" | "Registered" | "Unregistered";
183
+
184
+ // @public
185
+ export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions {
186
+ }
187
+
188
+ // @public
189
+ export type WorkspacesUpdateResponse = Workspace;
190
+
191
+ // @public
192
+ export type WorkspaceType = "Production" | "Free" | "Anonymous" | "PaidStandard" | "PaidPremium";
193
+
194
+ // @public
195
+ export interface WorkspaceUpdateParameters {
196
+ keyVaultIdentifierId?: string;
197
+ sku?: Sku;
198
+ tags?: {
199
+ [propertyName: string]: string;
200
+ };
201
+ workspaceState?: WorkspaceState;
202
+ }
203
+
204
+ // (No @packageDocumentation comment for this package)
205
+
206
+ ```