@azure/arm-workspaces 1.0.0-alpha.20220413.1 → 1.0.1-alpha.20220427.3

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 (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +59 -20
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +38 -0
  10. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/workspacesDeleteSample.js +31 -0
  14. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/workspacesGetSample.js +31 -0
  18. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +44 -0
  22. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
  23. package/dist-esm/samples-dev/workspacesListSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/workspacesListSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/workspacesListSample.js +43 -0
  26. package/dist-esm/samples-dev/workspacesListSample.js.map +1 -0
  27. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.js +31 -0
  30. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.js.map +1 -0
  31. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.js +31 -0
  34. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.js.map +1 -0
  35. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/workspacesUpdateSample.js +36 -0
  38. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  39. package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts.map +1 -1
  40. package/dist-esm/src/machineLearningWorkspacesManagementClient.js +20 -2
  41. package/dist-esm/src/machineLearningWorkspacesManagementClient.js.map +1 -1
  42. package/package.json +11 -11
  43. package/rollup.config.js +6 -72
  44. package/src/machineLearningWorkspacesManagementClient.ts +27 -2
  45. package/tsconfig.json +17 -4
  46. package/types/tsdoc-metadata.json +1 -1
  47. package/LICENSE.txt +0 -21
package/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Release History
2
+
3
+ ## 1.0.1 (2022-04-24)
4
+
5
+ **Features**
6
+
7
+ - Bug fix
2
8
 
3
9
  ## 1.0.0 (2022-01-19)
4
10
 
package/README.md CHANGED
@@ -16,6 +16,8 @@ These APIs allow end users to operate on Azure Machine Learning Workspace resour
16
16
  - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20
+
19
21
  ### Prerequisites
20
22
 
21
23
  - An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { MachineLearningWorkspacesManagementClient } = require("@azure/arm-workspaces");
51
53
  const { DefaultAzureCredential } = require("@azure/identity");
54
+ // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55
+
52
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
57
  const client = new MachineLearningWorkspacesManagementClient(new DefaultAzureCredential(), subscriptionId);
58
+
59
+ // For client-side applications running in the browser, use this code instead:
60
+ // const credential = new InteractiveBrowserCredential({
61
+ // tenantId: "<YOUR_TENANT_ID>",
62
+ // clientId: "<YOUR_CLIENT_ID>"
63
+ // });
64
+ // const client = new MachineLearningWorkspacesManagementClient(credential, subscriptionId);
54
65
  ```
55
66
 
56
67
 
package/dist/index.js CHANGED
@@ -3,8 +3,30 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
 
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
29
+
8
30
  /*
9
31
  * Copyright (c) Microsoft Corporation.
10
32
  * Licensed under the MIT License.
@@ -514,12 +536,12 @@ class OperationsImpl {
514
536
  * @param options The options parameters.
515
537
  */
516
538
  _list(options) {
517
- return this.client.sendOperationRequest({ options }, listOperationSpec);
539
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
518
540
  }
519
541
  }
520
542
  // Operation Specifications
521
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
522
- const listOperationSpec = {
543
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
544
+ const listOperationSpec$1 = {
523
545
  path: "/providers/Microsoft.MachineLearning/operations",
524
546
  httpMethod: "GET",
525
547
  responses: {
@@ -533,7 +555,7 @@ const listOperationSpec = {
533
555
  queryParameters: [apiVersion],
534
556
  urlParameters: [$host],
535
557
  headerParameters: [accept],
536
- serializer
558
+ serializer: serializer$1
537
559
  };
538
560
 
539
561
  /*
@@ -727,7 +749,7 @@ class WorkspacesImpl {
727
749
  * @param options The options parameters.
728
750
  */
729
751
  _list(options) {
730
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
752
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
731
753
  }
732
754
  /**
733
755
  * ListByResourceGroupNext
@@ -749,7 +771,7 @@ class WorkspacesImpl {
749
771
  }
750
772
  }
751
773
  // Operation Specifications
752
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
774
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
753
775
  const getOperationSpec = {
754
776
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
755
777
  httpMethod: "GET",
@@ -769,7 +791,7 @@ const getOperationSpec = {
769
791
  workspaceName
770
792
  ],
771
793
  headerParameters: [accept],
772
- serializer: serializer$1
794
+ serializer
773
795
  };
774
796
  const createOrUpdateOperationSpec = {
775
797
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
@@ -792,7 +814,7 @@ const createOrUpdateOperationSpec = {
792
814
  ],
793
815
  headerParameters: [accept, contentType],
794
816
  mediaType: "json",
795
- serializer: serializer$1
817
+ serializer
796
818
  };
797
819
  const deleteOperationSpec = {
798
820
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
@@ -812,7 +834,7 @@ const deleteOperationSpec = {
812
834
  workspaceName
813
835
  ],
814
836
  headerParameters: [accept],
815
- serializer: serializer$1
837
+ serializer
816
838
  };
817
839
  const updateOperationSpec = {
818
840
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
@@ -835,7 +857,7 @@ const updateOperationSpec = {
835
857
  ],
836
858
  headerParameters: [accept, contentType],
837
859
  mediaType: "json",
838
- serializer: serializer$1
860
+ serializer
839
861
  };
840
862
  const resyncStorageKeysOperationSpec = {
841
863
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
@@ -854,7 +876,7 @@ const resyncStorageKeysOperationSpec = {
854
876
  workspaceName
855
877
  ],
856
878
  headerParameters: [accept],
857
- serializer: serializer$1
879
+ serializer
858
880
  };
859
881
  const listWorkspaceKeysOperationSpec = {
860
882
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
@@ -875,7 +897,7 @@ const listWorkspaceKeysOperationSpec = {
875
897
  workspaceName
876
898
  ],
877
899
  headerParameters: [accept],
878
- serializer: serializer$1
900
+ serializer
879
901
  };
880
902
  const listByResourceGroupOperationSpec = {
881
903
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
@@ -895,9 +917,9 @@ const listByResourceGroupOperationSpec = {
895
917
  resourceGroupName
896
918
  ],
897
919
  headerParameters: [accept],
898
- serializer: serializer$1
920
+ serializer
899
921
  };
900
- const listOperationSpec$1 = {
922
+ const listOperationSpec = {
901
923
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
902
924
  httpMethod: "GET",
903
925
  responses: {
@@ -911,7 +933,7 @@ const listOperationSpec$1 = {
911
933
  queryParameters: [apiVersion],
912
934
  urlParameters: [$host, subscriptionId],
913
935
  headerParameters: [accept],
914
- serializer: serializer$1
936
+ serializer
915
937
  };
916
938
  const listByResourceGroupNextOperationSpec = {
917
939
  path: "{nextLink}",
@@ -932,7 +954,7 @@ const listByResourceGroupNextOperationSpec = {
932
954
  nextLink
933
955
  ],
934
956
  headerParameters: [accept],
935
- serializer: serializer$1
957
+ serializer
936
958
  };
937
959
  const listNextOperationSpec = {
938
960
  path: "{nextLink}",
@@ -952,7 +974,7 @@ const listNextOperationSpec = {
952
974
  nextLink
953
975
  ],
954
976
  headerParameters: [accept],
955
- serializer: serializer$1
977
+ serializer
956
978
  };
957
979
 
958
980
  /*
@@ -962,7 +984,7 @@ const listNextOperationSpec = {
962
984
  * Code generated by Microsoft (R) AutoRest Code Generator.
963
985
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
964
986
  */
965
- class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient {
987
+ class MachineLearningWorkspacesManagementClient extends coreClient__namespace.ServiceClient {
966
988
  /**
967
989
  * Initializes a new instance of the MachineLearningWorkspacesManagementClient class.
968
990
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -970,6 +992,7 @@ class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient
970
992
  * @param options The parameter options
971
993
  */
972
994
  constructor(credentials, subscriptionId, options) {
995
+ var _a, _b;
973
996
  if (credentials === undefined) {
974
997
  throw new Error("'credentials' cannot be null");
975
998
  }
@@ -984,7 +1007,7 @@ class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient
984
1007
  requestContentType: "application/json; charset=utf-8",
985
1008
  credential: credentials
986
1009
  };
987
- const packageDetails = `azsdk-js-arm-workspaces/1.0.0`;
1010
+ const packageDetails = `azsdk-js-arm-workspaces/1.0.1`;
988
1011
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
989
1012
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
990
1013
  : `${packageDetails}`;
@@ -993,8 +1016,24 @@ class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient
993
1016
  }
994
1017
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
995
1018
  userAgentPrefix
996
- }, baseUri: options.endpoint || "https://management.azure.com" });
1019
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
997
1020
  super(optionsWithDefaults);
1021
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1022
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
1023
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1024
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1025
+ if (!bearerTokenAuthenticationPolicyFound) {
1026
+ this.pipeline.removePolicy({
1027
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1028
+ });
1029
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1030
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
1031
+ challengeCallbacks: {
1032
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1033
+ }
1034
+ }));
1035
+ }
1036
+ }
998
1037
  // Parameter assignments
999
1038
  this.subscriptionId = subscriptionId;
1000
1039
  // Assigning values to Constant parameters
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/operations/workspaces.ts","../src/machineLearningWorkspacesManagementClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n }\n }\n }\n};\n\nexport const Sku: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Sku\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n tier: {\n serializedName: \"tier\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceUpdateParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceUpdateParameters\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n workspaceState: {\n serializedName: \"properties.workspaceState\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Deleted\",\n \"Enabled\",\n \"Disabled\",\n \"Migrated\",\n \"Updated\",\n \"Registered\",\n \"Unregistered\"\n ]\n }\n },\n keyVaultIdentifierId: {\n serializedName: \"properties.keyVaultIdentifierId\",\n type: {\n name: \"String\"\n }\n },\n sku: {\n serializedName: \"properties.sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceKeysResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceKeysResponse\",\n modelProperties: {\n primaryToken: {\n serializedName: \"primaryToken\",\n type: {\n name: \"String\"\n }\n },\n secondaryToken: {\n serializedName: \"secondaryToken\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Workspace\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Workspace: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Workspace\",\n modelProperties: {\n ...Resource.type.modelProperties,\n userStorageAccountId: {\n serializedName: \"properties.userStorageAccountId\",\n type: {\n name: \"String\"\n }\n },\n ownerEmail: {\n serializedName: \"properties.ownerEmail\",\n type: {\n name: \"String\"\n }\n },\n workspaceType: {\n serializedName: \"properties.workspaceType\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Production\",\n \"Free\",\n \"Anonymous\",\n \"PaidStandard\",\n \"PaidPremium\"\n ]\n }\n },\n workspaceState: {\n serializedName: \"properties.workspaceState\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Deleted\",\n \"Enabled\",\n \"Disabled\",\n \"Migrated\",\n \"Updated\",\n \"Registered\",\n \"Unregistered\"\n ]\n }\n },\n workspaceId: {\n serializedName: \"properties.workspaceId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n creationTime: {\n serializedName: \"properties.creationTime\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n studioEndpoint: {\n serializedName: \"properties.studioEndpoint\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n keyVaultIdentifierId: {\n serializedName: \"properties.keyVaultIdentifierId\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n Workspace as WorkspaceMapper,\n WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2019-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const workspaceName: OperationURLParameter = {\n parameterPath: \"workspaceName\",\n mapper: {\n serializedName: \"workspaceName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: WorkspaceMapper\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: WorkspaceUpdateParametersMapper\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { MachineLearningWorkspacesManagementClient } from \"../machineLearningWorkspacesManagementClient\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MachineLearningWorkspacesManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MachineLearningWorkspacesManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.MachineLearning/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Workspaces } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { MachineLearningWorkspacesManagementClient } from \"../machineLearningWorkspacesManagementClient\";\nimport {\n Workspace,\n WorkspacesListByResourceGroupNextOptionalParams,\n WorkspacesListByResourceGroupOptionalParams,\n WorkspacesListNextOptionalParams,\n WorkspacesListOptionalParams,\n WorkspacesGetOptionalParams,\n WorkspacesGetResponse,\n WorkspacesCreateOrUpdateOptionalParams,\n WorkspacesCreateOrUpdateResponse,\n WorkspacesDeleteOptionalParams,\n WorkspaceUpdateParameters,\n WorkspacesUpdateOptionalParams,\n WorkspacesUpdateResponse,\n WorkspacesResyncStorageKeysOptionalParams,\n WorkspacesListWorkspaceKeysOptionalParams,\n WorkspacesListWorkspaceKeysResponse,\n WorkspacesListByResourceGroupResponse,\n WorkspacesListResponse,\n WorkspacesListByResourceGroupNextResponse,\n WorkspacesListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workspaces operations. */\nexport class WorkspacesImpl implements Workspaces {\n private readonly client: MachineLearningWorkspacesManagementClient;\n\n /**\n * Initialize a new instance of the class Workspaces class.\n * @param client Reference to the service client\n */\n constructor(client: MachineLearningWorkspacesManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified resource group.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workspace[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the properties of the specified machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacesGetOptionalParams\n ): Promise<WorkspacesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a workspace with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param parameters The parameters for creating or updating a machine learning workspace.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n parameters: Workspace,\n options?: WorkspacesCreateOrUpdateOptionalParams\n ): Promise<WorkspacesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a machine learning workspace with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param parameters The parameters for updating a machine learning workspace.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceName: string,\n parameters: WorkspaceUpdateParameters,\n options?: WorkspacesUpdateOptionalParams\n ): Promise<WorkspacesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Resync storage keys associated with this workspace.\n * @param workspaceName The name of the machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n resyncStorageKeys(\n workspaceName: string,\n resourceGroupName: string,\n options?: WorkspacesResyncStorageKeysOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { workspaceName, resourceGroupName, options },\n resyncStorageKeysOperationSpec\n );\n }\n\n /**\n * List the authorization keys associated with this workspace.\n * @param workspaceName The name of the machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n listWorkspaceKeys(\n workspaceName: string,\n resourceGroupName: string,\n options?: WorkspacesListWorkspaceKeysOptionalParams\n ): Promise<WorkspacesListWorkspaceKeysResponse> {\n return this.client.sendOperationRequest(\n { workspaceName, resourceGroupName, options },\n listWorkspaceKeysOperationSpec\n );\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified resource group.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): Promise<WorkspacesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: WorkspacesListOptionalParams\n ): Promise<WorkspacesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: WorkspacesListByResourceGroupNextOptionalParams\n ): Promise<WorkspacesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WorkspacesListNextOptionalParams\n ): Promise<WorkspacesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst resyncStorageKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listWorkspaceKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceKeysResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, WorkspacesImpl } from \"./operations\";\nimport { Operations, Workspaces } from \"./operationsInterfaces\";\nimport { MachineLearningWorkspacesManagementClientOptionalParams } from \"./models\";\n\nexport class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MachineLearningWorkspacesManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Microsoft Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MachineLearningWorkspacesManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MachineLearningWorkspacesManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-workspaces/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2019-10-01\";\n this.operations = new OperationsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n }\n\n operations: Operations;\n workspaces: Workspaces;\n}\n"],"names":["WorkspaceMapper","WorkspaceUpdateParametersMapper","__asyncValues","__asyncDelegator","coreClient.createSerializer","Mappers.OperationListResult","Mappers.ErrorResponse","Parameters.apiVersion","Parameters.$host","Parameters.accept","listOperationSpec","serializer","Mappers.Workspace","Parameters.subscriptionId","Parameters.resourceGroupName","Parameters.workspaceName","Parameters.parameters","Parameters.contentType","Parameters.parameters1","Mappers.WorkspaceKeysResponse","Mappers.WorkspaceListResult","Parameters.nextLink","coreClient.ServiceClient"],"mappings":";;;;;;;AAAA;;;;;;;AAUO,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEK,MAAM,SAAS,GAA+B;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,kBAAkB;iBAC9B;aACF;SACF;KACF;CACF,CAAC;AAEK,MAAM,gBAAgB,GAA+B;IAC1D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,kBAAkB;QAC7B,eAAe,EAAE;YACf,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,IAAI,EAAE;oBACJ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/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/operations/workspaces.ts","../src/machineLearningWorkspacesManagementClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n sku: {\n serializedName: \"sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n }\n }\n }\n};\n\nexport const Sku: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Sku\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n tier: {\n serializedName: \"tier\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceUpdateParameters: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceUpdateParameters\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n workspaceState: {\n serializedName: \"properties.workspaceState\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Deleted\",\n \"Enabled\",\n \"Disabled\",\n \"Migrated\",\n \"Updated\",\n \"Registered\",\n \"Unregistered\"\n ]\n }\n },\n keyVaultIdentifierId: {\n serializedName: \"properties.keyVaultIdentifierId\",\n type: {\n name: \"String\"\n }\n },\n sku: {\n serializedName: \"properties.sku\",\n type: {\n name: \"Composite\",\n className: \"Sku\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceKeysResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceKeysResponse\",\n modelProperties: {\n primaryToken: {\n serializedName: \"primaryToken\",\n type: {\n name: \"String\"\n }\n },\n secondaryToken: {\n serializedName: \"secondaryToken\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WorkspaceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WorkspaceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Workspace\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Workspace: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Workspace\",\n modelProperties: {\n ...Resource.type.modelProperties,\n userStorageAccountId: {\n serializedName: \"properties.userStorageAccountId\",\n type: {\n name: \"String\"\n }\n },\n ownerEmail: {\n serializedName: \"properties.ownerEmail\",\n type: {\n name: \"String\"\n }\n },\n workspaceType: {\n serializedName: \"properties.workspaceType\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Production\",\n \"Free\",\n \"Anonymous\",\n \"PaidStandard\",\n \"PaidPremium\"\n ]\n }\n },\n workspaceState: {\n serializedName: \"properties.workspaceState\",\n readOnly: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Deleted\",\n \"Enabled\",\n \"Disabled\",\n \"Migrated\",\n \"Updated\",\n \"Registered\",\n \"Unregistered\"\n ]\n }\n },\n workspaceId: {\n serializedName: \"properties.workspaceId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n creationTime: {\n serializedName: \"properties.creationTime\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n studioEndpoint: {\n serializedName: \"properties.studioEndpoint\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n keyVaultIdentifierId: {\n serializedName: \"properties.keyVaultIdentifierId\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n Workspace as WorkspaceMapper,\n WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2019-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const workspaceName: OperationURLParameter = {\n parameterPath: \"workspaceName\",\n mapper: {\n serializedName: \"workspaceName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: WorkspaceMapper\n};\n\nexport const parameters1: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: WorkspaceUpdateParametersMapper\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { MachineLearningWorkspacesManagementClient } from \"../machineLearningWorkspacesManagementClient\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MachineLearningWorkspacesManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MachineLearningWorkspacesManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Azure Machine Learning Studio REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.MachineLearning/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Workspaces } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { MachineLearningWorkspacesManagementClient } from \"../machineLearningWorkspacesManagementClient\";\nimport {\n Workspace,\n WorkspacesListByResourceGroupNextOptionalParams,\n WorkspacesListByResourceGroupOptionalParams,\n WorkspacesListNextOptionalParams,\n WorkspacesListOptionalParams,\n WorkspacesGetOptionalParams,\n WorkspacesGetResponse,\n WorkspacesCreateOrUpdateOptionalParams,\n WorkspacesCreateOrUpdateResponse,\n WorkspacesDeleteOptionalParams,\n WorkspaceUpdateParameters,\n WorkspacesUpdateOptionalParams,\n WorkspacesUpdateResponse,\n WorkspacesResyncStorageKeysOptionalParams,\n WorkspacesListWorkspaceKeysOptionalParams,\n WorkspacesListWorkspaceKeysResponse,\n WorkspacesListByResourceGroupResponse,\n WorkspacesListResponse,\n WorkspacesListByResourceGroupNextResponse,\n WorkspacesListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workspaces operations. */\nexport class WorkspacesImpl implements Workspaces {\n private readonly client: MachineLearningWorkspacesManagementClient;\n\n /**\n * Initialize a new instance of the class Workspaces class.\n * @param client Reference to the service client\n */\n constructor(client: MachineLearningWorkspacesManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified resource group.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workspace[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the properties of the specified machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacesGetOptionalParams\n ): Promise<WorkspacesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a workspace with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param parameters The parameters for creating or updating a machine learning workspace.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n parameters: Workspace,\n options?: WorkspacesCreateOrUpdateOptionalParams\n ): Promise<WorkspacesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a machine learning workspace with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param parameters The parameters for updating a machine learning workspace.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceName: string,\n parameters: WorkspaceUpdateParameters,\n options?: WorkspacesUpdateOptionalParams\n ): Promise<WorkspacesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Resync storage keys associated with this workspace.\n * @param workspaceName The name of the machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n resyncStorageKeys(\n workspaceName: string,\n resourceGroupName: string,\n options?: WorkspacesResyncStorageKeysOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { workspaceName, resourceGroupName, options },\n resyncStorageKeysOperationSpec\n );\n }\n\n /**\n * List the authorization keys associated with this workspace.\n * @param workspaceName The name of the machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n listWorkspaceKeys(\n workspaceName: string,\n resourceGroupName: string,\n options?: WorkspacesListWorkspaceKeysOptionalParams\n ): Promise<WorkspacesListWorkspaceKeysResponse> {\n return this.client.sendOperationRequest(\n { workspaceName, resourceGroupName, options },\n listWorkspaceKeysOperationSpec\n );\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified resource group.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): Promise<WorkspacesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: WorkspacesListOptionalParams\n ): Promise<WorkspacesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: WorkspacesListByResourceGroupNextOptionalParams\n ): Promise<WorkspacesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WorkspacesListNextOptionalParams\n ): Promise<WorkspacesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst resyncStorageKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listWorkspaceKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceKeysResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, WorkspacesImpl } from \"./operations\";\nimport { Operations, Workspaces } from \"./operationsInterfaces\";\nimport { MachineLearningWorkspacesManagementClientOptionalParams } from \"./models\";\n\nexport class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the MachineLearningWorkspacesManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Microsoft Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: MachineLearningWorkspacesManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: MachineLearningWorkspacesManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-workspaces/1.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2019-10-01\";\n this.operations = new OperationsImpl(this);\n this.workspaces = new WorkspacesImpl(this);\n }\n\n operations: Operations;\n workspaces: Workspaces;\n}\n"],"names":["WorkspaceMapper","WorkspaceUpdateParametersMapper","__await","__asyncValues","__asyncDelegator","listOperationSpec","serializer","coreClient","Mappers.OperationListResult","Mappers.ErrorResponse","Parameters.apiVersion","Parameters.$host","Parameters.accept","Mappers.Workspace","Parameters.subscriptionId","Parameters.resourceGroupName","Parameters.workspaceName","Parameters.parameters","Parameters.contentType","Parameters.parameters1","Mappers.WorkspaceKeysResponse","Mappers.WorkspaceListResult","Parameters.nextLink","coreRestPipeline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAII,MAAM,mBAAmB,GAA+B;AAC7D,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,qBAAqB;AAChC,QAAA,eAAe,EAAE;AACf,YAAA,KAAK,EAAE;AACL,gBAAA,cAAc,EAAE,OAAO;AACvB,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,OAAO,EAAE;AACP,wBAAA,IAAI,EAAE;AACJ,4BAAA,IAAI,EAAE,WAAW;AACjB,4BAAA,SAAS,EAAE,WAAW;AACvB,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;AACF,KAAA;CACF,CAAC;AAEK,MAAM,SAAS,GAA+B;AACnD,IA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AC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;KAC5C;AAIF;;;;"}
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");const OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",required:!0,type:{name:"String"}},message:{serializedName:"message",required:!0,type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}}}}},Sku={type:{name:"Composite",className:"Sku",modelProperties:{name:{serializedName:"name",type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}}}}},WorkspaceUpdateParameters={type:{name:"Composite",className:"WorkspaceUpdateParameters",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},workspaceState:{serializedName:"properties.workspaceState",type:{name:"Enum",allowedValues:["Deleted","Enabled","Disabled","Migrated","Updated","Registered","Unregistered"]}},keyVaultIdentifierId:{serializedName:"properties.keyVaultIdentifierId",type:{name:"String"}},sku:{serializedName:"properties.sku",type:{name:"Composite",className:"Sku"}}}}},WorkspaceKeysResponse={type:{name:"Composite",className:"WorkspaceKeysResponse",modelProperties:{primaryToken:{serializedName:"primaryToken",type:{name:"String"}},secondaryToken:{serializedName:"secondaryToken",type:{name:"String"}}}}},WorkspaceListResult={type:{name:"Composite",className:"WorkspaceListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workspace"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Workspace={type:{name:"Composite",className:"Workspace",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{userStorageAccountId:{serializedName:"properties.userStorageAccountId",type:{name:"String"}},ownerEmail:{serializedName:"properties.ownerEmail",type:{name:"String"}},workspaceType:{serializedName:"properties.workspaceType",readOnly:!0,type:{name:"Enum",allowedValues:["Production","Free","Anonymous","PaidStandard","PaidPremium"]}},workspaceState:{serializedName:"properties.workspaceState",readOnly:!0,type:{name:"Enum",allowedValues:["Deleted","Enabled","Disabled","Migrated","Updated","Registered","Unregistered"]}},workspaceId:{serializedName:"properties.workspaceId",readOnly:!0,type:{name:"String"}},creationTime:{serializedName:"properties.creationTime",readOnly:!0,type:{name:"String"}},studioEndpoint:{serializedName:"properties.studioEndpoint",readOnly:!0,type:{name:"String"}},keyVaultIdentifierId:{serializedName:"properties.keyVaultIdentifierId",type:{name:"String"}}})}};var Mappers=Object.freeze({__proto__:null,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ErrorResponse:ErrorResponse,Resource:Resource,Sku:Sku,WorkspaceUpdateParameters:WorkspaceUpdateParameters,WorkspaceKeysResponse:WorkspaceKeysResponse,WorkspaceListResult:WorkspaceListResult,Workspace:Workspace});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2019-10-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},workspaceName={parameterPath:"workspaceName",mapper:{serializedName:"workspaceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:Workspace},parameters1={parameterPath:"parameters",mapper:WorkspaceUpdateParameters},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var a,s=tslib.__asyncValues(this.listPagingPage(i));!(a=yield tslib.__await(s.next())).done;){var t=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(e=s.return)&&(yield tslib.__await(e.call(s)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.MachineLearning/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer};class WorkspacesImpl{constructor(e){this.client=e}listByResourceGroup(e,r){const a=this.listByResourceGroupPagingAll(e,r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(a,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(a,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(a,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(i,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var a,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(i,o));!(a=yield tslib.__await(s.next())).done;){var t=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(e=s.return)&&(yield tslib.__await(e.call(s)))}finally{if(r)throw r.error}}})}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var a,s=tslib.__asyncValues(this.listPagingPage(i));!(a=yield tslib.__await(s.next())).done;){var t=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(t)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(e=s.return)&&(yield tslib.__await(e.call(s)))}finally{if(r)throw r.error}}})}get(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:a},getOperationSpec)}createOrUpdate(e,r,a,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,parameters:a,options:s},createOrUpdateOperationSpec)}delete(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:a},deleteOperationSpec)}update(e,r,a,s){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,parameters:a,options:s},updateOperationSpec)}resyncStorageKeys(e,r,a){return this.client.sendOperationRequest({workspaceName:e,resourceGroupName:r,options:a},resyncStorageKeysOperationSpec)}listWorkspaceKeys(e,r,a){return this.client.sendOperationRequest({workspaceName:e,resourceGroupName:r,options:a},listWorkspaceKeysOperationSpec)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}_listByResourceGroupNext(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:a},listByResourceGroupNextOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"GET",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"PUT",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$1},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorResponse}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},resyncStorageKeysOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",httpMethod:"POST",responses:{200:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$1},listWorkspaceKeysOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",httpMethod:"POST",responses:{200:{bodyMapper:WorkspaceKeysResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer$1},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$1},listOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer$1};class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient{constructor(e,r,a){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},s="azsdk-js-arm-workspaces/1.0.0",s=(a=a||{}).userAgentOptions&&a.userAgentOptions.userAgentPrefix?a.userAgentOptions.userAgentPrefix+" "+s:s,e=(a.credentialScopes||(a.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),a),{userAgentOptions:{userAgentPrefix:s},baseUri:a.endpoint||"https://management.azure.com"}));super(e),this.subscriptionId=r,this.$host=a.$host||"https://management.azure.com",this.apiVersion=a.apiVersion||"2019-10-01",this.operations=new OperationsImpl(this),this.workspaces=new WorkspacesImpl(this)}}exports.MachineLearningWorkspacesManagementClient=MachineLearningWorkspacesManagementClient;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),tslib=require("tslib");function _interopNamespace(a){if(a&&a.__esModule)return a;var t=Object.create(null);return a&&Object.keys(a).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(a,e),Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return a[e]}}))}),t.default=a,Object.freeze(t)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);const OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",required:!0,type:{name:"String"}},message:{serializedName:"message",required:!0,type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}}}}},Sku={type:{name:"Composite",className:"Sku",modelProperties:{name:{serializedName:"name",type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}}}}},WorkspaceUpdateParameters={type:{name:"Composite",className:"WorkspaceUpdateParameters",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},workspaceState:{serializedName:"properties.workspaceState",type:{name:"Enum",allowedValues:["Deleted","Enabled","Disabled","Migrated","Updated","Registered","Unregistered"]}},keyVaultIdentifierId:{serializedName:"properties.keyVaultIdentifierId",type:{name:"String"}},sku:{serializedName:"properties.sku",type:{name:"Composite",className:"Sku"}}}}},WorkspaceKeysResponse={type:{name:"Composite",className:"WorkspaceKeysResponse",modelProperties:{primaryToken:{serializedName:"primaryToken",type:{name:"String"}},secondaryToken:{serializedName:"secondaryToken",type:{name:"String"}}}}},WorkspaceListResult={type:{name:"Composite",className:"WorkspaceListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workspace"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Workspace={type:{name:"Composite",className:"Workspace",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{userStorageAccountId:{serializedName:"properties.userStorageAccountId",type:{name:"String"}},ownerEmail:{serializedName:"properties.ownerEmail",type:{name:"String"}},workspaceType:{serializedName:"properties.workspaceType",readOnly:!0,type:{name:"Enum",allowedValues:["Production","Free","Anonymous","PaidStandard","PaidPremium"]}},workspaceState:{serializedName:"properties.workspaceState",readOnly:!0,type:{name:"Enum",allowedValues:["Deleted","Enabled","Disabled","Migrated","Updated","Registered","Unregistered"]}},workspaceId:{serializedName:"properties.workspaceId",readOnly:!0,type:{name:"String"}},creationTime:{serializedName:"properties.creationTime",readOnly:!0,type:{name:"String"}},studioEndpoint:{serializedName:"properties.studioEndpoint",readOnly:!0,type:{name:"String"}},keyVaultIdentifierId:{serializedName:"properties.keyVaultIdentifierId",type:{name:"String"}}})}};var Mappers=Object.freeze({__proto__:null,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ErrorResponse:ErrorResponse,Resource:Resource,Sku:Sku,WorkspaceUpdateParameters:WorkspaceUpdateParameters,WorkspaceKeysResponse:WorkspaceKeysResponse,WorkspaceListResult:WorkspaceListResult,Workspace:Workspace});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2019-10-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},workspaceName={parameterPath:"workspaceName",mapper:{serializedName:"workspaceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:Workspace},parameters1={parameterPath:"parameters",mapper:WorkspaceUpdateParameters},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var a,t=tslib.__asyncValues(this.listPagingPage(i));!(a=yield tslib.__await(t.next())).done;){var s=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.MachineLearning/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1};class WorkspacesImpl{constructor(e){this.client=e}listByResourceGroup(e,r){const a=this.listByResourceGroupPagingAll(e,r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(a,t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(a,t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(a,r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(i,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var a,t=tslib.__asyncValues(this.listByResourceGroupPagingPage(i,o));!(a=yield tslib.__await(t.next())).done;){var s=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(a){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(a));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,a)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(i){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var a,t=tslib.__asyncValues(this.listPagingPage(i));!(a=yield tslib.__await(t.next())).done;){var s=a.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(e=t.return)&&(yield tslib.__await(e.call(t)))}finally{if(r)throw r.error}}})}get(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:a},getOperationSpec)}createOrUpdate(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,parameters:a,options:t},createOrUpdateOperationSpec)}delete(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,options:a},deleteOperationSpec)}update(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,workspaceName:r,parameters:a,options:t},updateOperationSpec)}resyncStorageKeys(e,r,a){return this.client.sendOperationRequest({workspaceName:e,resourceGroupName:r,options:a},resyncStorageKeysOperationSpec)}listWorkspaceKeys(e,r,a){return this.client.sendOperationRequest({workspaceName:e,resourceGroupName:r,options:a},listWorkspaceKeysOperationSpec)}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listByResourceGroupNext(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:r,options:a},listByResourceGroupNextOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"GET",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"PUT",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Workspace},default:{bodyMapper:ErrorResponse}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},resyncStorageKeysOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",httpMethod:"POST",responses:{200:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer},listWorkspaceKeysOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",httpMethod:"POST",responses:{200:{bodyMapper:WorkspaceKeysResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,workspaceName],headerParameters:[accept],serializer:serializer},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer},listOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:WorkspaceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer};class MachineLearningWorkspacesManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r,a){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},t="azsdk-js-arm-workspaces/1.0.1",t=(a=a||{}).userAgentOptions&&a.userAgentOptions.userAgentPrefix?a.userAgentOptions.userAgentPrefix+" "+t:t,e=(a.credentialScopes||(a.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),a),{userAgentOptions:{userAgentPrefix:t},baseUri:null!=(t=null!=(e=a.endpoint)?e:a.baseUri)?t:"https://management.azure.com"}));if(super(e),null!=a&&a.pipeline&&0<a.pipeline.getOrderedPolicies().length){const s=a.pipeline.getOrderedPolicies();s.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({scopes:e.baseUri+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}})))}this.subscriptionId=r,this.$host=a.$host||"https://management.azure.com",this.apiVersion=a.apiVersion||"2019-10-01",this.operations=new OperationsImpl(this),this.workspaces=new WorkspacesImpl(this)}}exports.MachineLearningWorkspacesManagementClient=MachineLearningWorkspacesManagementClient;