@azure/arm-workspaces 0.1.0 → 1.0.0-alpha.20220131.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -73
  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 +86 -25
  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 +77 -0
  93. package/src/models/index.ts +237 -0
  94. package/{lib → src}/models/mappers.ts +177 -166
  95. package/src/models/parameters.ts +120 -0
  96. package/{lib → src}/operations/index.ts +3 -5
  97. package/src/operations/operations.ts +98 -0
  98. package/src/operations/workspaces.ts +532 -0
  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 -980
  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 -19
  110. package/esm/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
  111. package/esm/machineLearningWorkspacesManagementClient.js +0 -34
  112. package/esm/machineLearningWorkspacesManagementClient.js.map +0 -1
  113. package/esm/machineLearningWorkspacesManagementClientContext.d.ts +0 -16
  114. package/esm/machineLearningWorkspacesManagementClientContext.d.ts.map +0 -1
  115. package/esm/machineLearningWorkspacesManagementClientContext.js +0 -56
  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/lib/machineLearningWorkspacesManagementClient.ts +0 -44
  148. package/lib/machineLearningWorkspacesManagementClientContext.ts +0 -62
  149. package/lib/models/index.ts +0 -446
  150. package/lib/models/operationsMappers.ts +0 -17
  151. package/lib/models/parameters.ts +0 -73
  152. package/lib/models/workspacesMappers.ts +0 -20
  153. package/lib/operations/operations.ts +0 -74
  154. package/lib/operations/workspaces.ts +0 -609
package/rollup.config.js CHANGED
@@ -1,31 +1,188 @@
1
- import nodeResolve from "rollup-plugin-node-resolve";
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ /**
18
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
+ *
20
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
+ * __exportStar downleveled helper function to declare its exports which confuses
22
+ * rollup's automatic discovery mechanism.
23
+ *
24
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
25
+ */
26
+ export function openTelemetryCommonJs() {
27
+ const namedExports = {};
28
+
29
+ for (const key of [
30
+ "@opentelemetry/api",
31
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
32
+ ]) {
33
+ namedExports[key] = [
34
+ "SpanKind",
35
+ "TraceFlags",
36
+ "getSpan",
37
+ "setSpan",
38
+ "SpanStatusCode",
39
+ "getSpanContext",
40
+ "setSpanContext"
41
+ ];
42
+ }
43
+
44
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
+
46
+ for (const version of releasedOpenTelemetryVersions) {
47
+ namedExports[
48
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
+ ] = [
51
+ "SpanKind",
52
+ "TraceFlags",
53
+ "getSpan",
54
+ "setSpan",
55
+ "StatusCode",
56
+ "CanonicalCode",
57
+ "getSpanContext",
58
+ "setSpanContext"
59
+ ];
60
+ }
61
+
62
+ return namedExports;
63
+ }
64
+
65
+ // #region Warning Handler
66
+
67
+ /**
68
+ * A function that can determine whether a rollupwarning should be ignored. If
69
+ * the function returns `true`, then the warning will not be displayed.
70
+ */
71
+
72
+ function ignoreNiseSinonEvalWarnings(warning) {
73
+ return (
74
+ warning.code === "EVAL" &&
75
+ warning.id &&
76
+ (warning.id.includes("node_modules/nise") ||
77
+ warning.id.includes("node_modules/sinon")) === true
78
+ );
79
+ }
80
+
81
+ function ignoreChaiCircularDependencyWarnings(warning) {
82
+ return (
83
+ warning.code === "CIRCULAR_DEPENDENCY" &&
84
+ warning.importer && warning.importer.includes("node_modules/chai") === true
85
+ );
86
+ }
87
+
88
+ const warningInhibitors = [
89
+ ignoreChaiCircularDependencyWarnings,
90
+ ignoreNiseSinonEvalWarnings
91
+ ];
92
+
2
93
  /**
3
- * @type {import('rollup').RollupFileOptions}
94
+ * Construct a warning handler for the shared rollup configuration
95
+ * that ignores certain warnings that are not relevant to testing.
4
96
  */
5
- const config = {
6
- input: './esm/machineLearningWorkspacesManagementClient.js',
7
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
8
- output: {
9
- file: "./dist/arm-workspaces.js",
10
- format: "umd",
11
- name: "Azure.ArmWorkspaces",
12
- sourcemap: true,
13
- globals: {
14
- "@azure/ms-rest-js": "msRest",
15
- "@azure/ms-rest-azure-js": "msRestAzure"
97
+ function makeOnWarnForTesting() {
98
+ return (warning, warn) => {
99
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
100
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
101
+ warn(warning);
102
+ }
103
+ };
104
+ }
105
+
106
+ // #endregion
107
+
108
+ function makeBrowserTestConfig() {
109
+ const config = {
110
+ input: {
111
+ include: ["dist-esm/test/**/*.spec.js"],
112
+ exclude: ["dist-esm/test/**/node/**"]
16
113
  },
17
- banner: `/*
18
- * Copyright (c) Microsoft Corporation. All rights reserved.
19
- * Licensed under the MIT License. See License.txt in the project root for
20
- * license information.
21
- *
22
- * Code generated by Microsoft (R) AutoRest Code Generator.
23
- * Changes may cause incorrect behavior and will be lost if the code is
24
- * regenerated.
25
- */`
26
- },
27
- plugins: [
28
- nodeResolve({ module: true })
29
- ]
114
+ output: {
115
+ file: `dist-test/index.browser.js`,
116
+ format: "umd",
117
+ sourcemap: true
118
+ },
119
+ preserveSymlinks: false,
120
+ plugins: [
121
+ multiEntry({ exports: false }),
122
+ nodeResolve({
123
+ mainFields: ["module", "browser"]
124
+ }),
125
+ cjs({
126
+ namedExports: {
127
+ // Chai's strange internal architecture makes it impossible to statically
128
+ // analyze its exports.
129
+ chai: [
130
+ "version",
131
+ "use",
132
+ "util",
133
+ "config",
134
+ "expect",
135
+ "should",
136
+ "assert"
137
+ ],
138
+ ...openTelemetryCommonJs()
139
+ }
140
+ }),
141
+ json(),
142
+ sourcemaps()
143
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
144
+ ],
145
+ onwarn: makeOnWarnForTesting(),
146
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
147
+ // rollup started respecting the "sideEffects" field in package.json. Since
148
+ // our package.json sets "sideEffects=false", this also applies to test
149
+ // code, which causes all tests to be removed by tree-shaking.
150
+ treeshake: false
151
+ };
152
+
153
+ return config;
154
+ }
155
+
156
+ const defaultConfigurationOptions = {
157
+ disableBrowserBundle: false
30
158
  };
31
- export default config;
159
+
160
+ export function makeConfig(pkg, options) {
161
+ options = {
162
+ ...defaultConfigurationOptions,
163
+ ...(options || {})
164
+ };
165
+
166
+ const baseConfig = {
167
+ // Use the package's module field if it has one
168
+ input: pkg["module"] || "dist-esm/src/index.js",
169
+ external: [
170
+ ...nodeBuiltins,
171
+ ...Object.keys(pkg.dependencies),
172
+ ...Object.keys(pkg.devDependencies)
173
+ ],
174
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
+ preserveSymlinks: false,
176
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
177
+ };
178
+
179
+ const config = [baseConfig];
180
+
181
+ if (!options.disableBrowserBundle) {
182
+ config.push(makeBrowserTestConfig());
183
+ }
184
+
185
+ return config;
186
+ }
187
+
188
+ export default makeConfig(require("./package.json"));
package/src/index.ts ADDED
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ /// <reference lib="esnext.asynciterable" />
10
+ export * from "./models";
11
+ export { MachineLearningWorkspacesManagementClient } from "./machineLearningWorkspacesManagementClient";
12
+ export * from "./operationsInterfaces";
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import { OperationsImpl, WorkspacesImpl } from "./operations";
12
+ import { Operations, Workspaces } from "./operationsInterfaces";
13
+ import { MachineLearningWorkspacesManagementClientOptionalParams } from "./models";
14
+
15
+ export class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient {
16
+ $host: string;
17
+ apiVersion: string;
18
+ subscriptionId: string;
19
+
20
+ /**
21
+ * Initializes a new instance of the MachineLearningWorkspacesManagementClient class.
22
+ * @param credentials Subscription credentials which uniquely identify client subscription.
23
+ * @param subscriptionId The Microsoft Azure subscription ID.
24
+ * @param options The parameter options
25
+ */
26
+ constructor(
27
+ credentials: coreAuth.TokenCredential,
28
+ subscriptionId: string,
29
+ options?: MachineLearningWorkspacesManagementClientOptionalParams
30
+ ) {
31
+ if (credentials === undefined) {
32
+ throw new Error("'credentials' cannot be null");
33
+ }
34
+ if (subscriptionId === undefined) {
35
+ throw new Error("'subscriptionId' cannot be null");
36
+ }
37
+
38
+ // Initializing default values for options
39
+ if (!options) {
40
+ options = {};
41
+ }
42
+ const defaults: MachineLearningWorkspacesManagementClientOptionalParams = {
43
+ requestContentType: "application/json; charset=utf-8",
44
+ credential: credentials
45
+ };
46
+
47
+ const packageDetails = `azsdk-js-arm-workspaces/1.0.0`;
48
+ const userAgentPrefix =
49
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
50
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
51
+ : `${packageDetails}`;
52
+
53
+ if (!options.credentialScopes) {
54
+ options.credentialScopes = ["https://management.azure.com/.default"];
55
+ }
56
+ const optionsWithDefaults = {
57
+ ...defaults,
58
+ ...options,
59
+ userAgentOptions: {
60
+ userAgentPrefix
61
+ },
62
+ baseUri: options.endpoint || "https://management.azure.com"
63
+ };
64
+ super(optionsWithDefaults);
65
+ // Parameter assignments
66
+ this.subscriptionId = subscriptionId;
67
+
68
+ // Assigning values to Constant parameters
69
+ this.$host = options.$host || "https://management.azure.com";
70
+ this.apiVersion = options.apiVersion || "2019-10-01";
71
+ this.operations = new OperationsImpl(this);
72
+ this.workspaces = new WorkspacesImpl(this);
73
+ }
74
+
75
+ operations: Operations;
76
+ workspaces: Workspaces;
77
+ }
@@ -0,0 +1,237 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import * as coreClient from "@azure/core-client";
10
+
11
+ /** An array of operations supported by the resource provider. */
12
+ export interface OperationListResult {
13
+ /** List of AML Studio operations supported by the AML Studio resource provider. */
14
+ value?: Operation[];
15
+ }
16
+
17
+ /** Azure Machine Learning Studio REST API operation */
18
+ export interface Operation {
19
+ /** Operation name: {provider}/{resource}/{operation} */
20
+ name?: string;
21
+ /** Display name of operation */
22
+ display?: OperationDisplay;
23
+ }
24
+
25
+ /** Display name of operation */
26
+ export interface OperationDisplay {
27
+ /** The resource provider name: Microsoft.MachineLearning */
28
+ provider?: string;
29
+ /** The resource on which the operation is performed. */
30
+ resource?: string;
31
+ /** The operation that users can perform. */
32
+ operation?: string;
33
+ /** The description for the operation. */
34
+ description?: string;
35
+ }
36
+
37
+ /** The error response send when an operation fails. */
38
+ export interface ErrorResponse {
39
+ /** error code */
40
+ code: string;
41
+ /** error message */
42
+ message: string;
43
+ }
44
+
45
+ /** An Azure resource. */
46
+ export interface Resource {
47
+ /**
48
+ * The resource ID.
49
+ * NOTE: This property will not be serialized. It can only be populated by the server.
50
+ */
51
+ readonly id?: string;
52
+ /**
53
+ * The name of the resource.
54
+ * NOTE: This property will not be serialized. It can only be populated by the server.
55
+ */
56
+ readonly name?: string;
57
+ /**
58
+ * The type of the resource.
59
+ * NOTE: This property will not be serialized. It can only be populated by the server.
60
+ */
61
+ readonly type?: string;
62
+ /** The location of the resource. This cannot be changed after the resource is created. */
63
+ location: string;
64
+ /** The tags of the resource. */
65
+ tags?: { [propertyName: string]: string };
66
+ /** The sku of the workspace. */
67
+ sku?: Sku;
68
+ }
69
+
70
+ /** Sku of the resource */
71
+ export interface Sku {
72
+ /** Name of the sku */
73
+ name?: string;
74
+ /** Tier of the sku like Basic or Enterprise */
75
+ tier?: string;
76
+ }
77
+
78
+ /** The parameters for updating a machine learning workspace. */
79
+ export interface WorkspaceUpdateParameters {
80
+ /** The resource tags for the machine learning workspace. */
81
+ tags?: { [propertyName: string]: string };
82
+ /** The current state of workspace resource. */
83
+ workspaceState?: WorkspaceState;
84
+ /** The key vault identifier used for encrypted workspaces. */
85
+ keyVaultIdentifierId?: string;
86
+ /** The sku of the workspace. */
87
+ sku?: Sku;
88
+ }
89
+
90
+ /** Workspace authorization keys for a workspace. */
91
+ export interface WorkspaceKeysResponse {
92
+ /** Primary authorization key for this workspace. */
93
+ primaryToken?: string;
94
+ /** Secondary authorization key for this workspace. */
95
+ secondaryToken?: string;
96
+ }
97
+
98
+ /** The result of a request to list machine learning workspace keys. */
99
+ export interface WorkspaceListResult {
100
+ /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */
101
+ value?: Workspace[];
102
+ /** The URI that can be used to request the next list of machine learning workspaces. */
103
+ nextLink?: string;
104
+ }
105
+
106
+ /** An object that represents a machine learning workspace. */
107
+ export type Workspace = Resource & {
108
+ /** The fully qualified arm id of the storage account associated with this workspace. */
109
+ userStorageAccountId?: string;
110
+ /** The email id of the owner for this workspace. */
111
+ ownerEmail?: string;
112
+ /**
113
+ * The type of this workspace.
114
+ * NOTE: This property will not be serialized. It can only be populated by the server.
115
+ */
116
+ readonly workspaceType?: WorkspaceType;
117
+ /**
118
+ * The current state of workspace resource.
119
+ * NOTE: This property will not be serialized. It can only be populated by the server.
120
+ */
121
+ readonly workspaceState?: WorkspaceState;
122
+ /**
123
+ * The immutable id associated with this workspace.
124
+ * NOTE: This property will not be serialized. It can only be populated by the server.
125
+ */
126
+ readonly workspaceId?: string;
127
+ /**
128
+ * The creation time for this workspace resource.
129
+ * NOTE: This property will not be serialized. It can only be populated by the server.
130
+ */
131
+ readonly creationTime?: string;
132
+ /**
133
+ * The regional endpoint for the machine learning studio service which hosts this workspace.
134
+ * NOTE: This property will not be serialized. It can only be populated by the server.
135
+ */
136
+ readonly studioEndpoint?: string;
137
+ /** The key vault identifier used for encrypted workspaces. */
138
+ keyVaultIdentifierId?: string;
139
+ };
140
+ /** Defines values for WorkspaceType. */
141
+ export type WorkspaceType =
142
+ | "Production"
143
+ | "Free"
144
+ | "Anonymous"
145
+ | "PaidStandard"
146
+ | "PaidPremium";
147
+ /** Defines values for WorkspaceState. */
148
+ export type WorkspaceState =
149
+ | "Deleted"
150
+ | "Enabled"
151
+ | "Disabled"
152
+ | "Migrated"
153
+ | "Updated"
154
+ | "Registered"
155
+ | "Unregistered";
156
+
157
+ /** Optional parameters. */
158
+ export interface OperationsListOptionalParams
159
+ extends coreClient.OperationOptions {}
160
+
161
+ /** Contains response data for the list operation. */
162
+ export type OperationsListResponse = OperationListResult;
163
+
164
+ /** Optional parameters. */
165
+ export interface WorkspacesGetOptionalParams
166
+ extends coreClient.OperationOptions {}
167
+
168
+ /** Contains response data for the get operation. */
169
+ export type WorkspacesGetResponse = Workspace;
170
+
171
+ /** Optional parameters. */
172
+ export interface WorkspacesCreateOrUpdateOptionalParams
173
+ extends coreClient.OperationOptions {}
174
+
175
+ /** Contains response data for the createOrUpdate operation. */
176
+ export type WorkspacesCreateOrUpdateResponse = Workspace;
177
+
178
+ /** Optional parameters. */
179
+ export interface WorkspacesDeleteOptionalParams
180
+ extends coreClient.OperationOptions {}
181
+
182
+ /** Optional parameters. */
183
+ export interface WorkspacesUpdateOptionalParams
184
+ extends coreClient.OperationOptions {}
185
+
186
+ /** Contains response data for the update operation. */
187
+ export type WorkspacesUpdateResponse = Workspace;
188
+
189
+ /** Optional parameters. */
190
+ export interface WorkspacesResyncStorageKeysOptionalParams
191
+ extends coreClient.OperationOptions {}
192
+
193
+ /** Optional parameters. */
194
+ export interface WorkspacesListWorkspaceKeysOptionalParams
195
+ extends coreClient.OperationOptions {}
196
+
197
+ /** Contains response data for the listWorkspaceKeys operation. */
198
+ export type WorkspacesListWorkspaceKeysResponse = WorkspaceKeysResponse;
199
+
200
+ /** Optional parameters. */
201
+ export interface WorkspacesListByResourceGroupOptionalParams
202
+ extends coreClient.OperationOptions {}
203
+
204
+ /** Contains response data for the listByResourceGroup operation. */
205
+ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult;
206
+
207
+ /** Optional parameters. */
208
+ export interface WorkspacesListOptionalParams
209
+ extends coreClient.OperationOptions {}
210
+
211
+ /** Contains response data for the list operation. */
212
+ export type WorkspacesListResponse = WorkspaceListResult;
213
+
214
+ /** Optional parameters. */
215
+ export interface WorkspacesListByResourceGroupNextOptionalParams
216
+ extends coreClient.OperationOptions {}
217
+
218
+ /** Contains response data for the listByResourceGroupNext operation. */
219
+ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult;
220
+
221
+ /** Optional parameters. */
222
+ export interface WorkspacesListNextOptionalParams
223
+ extends coreClient.OperationOptions {}
224
+
225
+ /** Contains response data for the listNext operation. */
226
+ export type WorkspacesListNextResponse = WorkspaceListResult;
227
+
228
+ /** Optional parameters. */
229
+ export interface MachineLearningWorkspacesManagementClientOptionalParams
230
+ extends coreClient.ServiceClientOptions {
231
+ /** server parameter */
232
+ $host?: string;
233
+ /** Api Version */
234
+ apiVersion?: string;
235
+ /** Overrides client endpoint. */
236
+ endpoint?: string;
237
+ }