@azure/arm-machinelearningexperimentation 2.0.0-alpha.20220422.1 → 2.0.0-beta.2

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 (78) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +11 -0
  3. package/dist/index.js +87 -48
  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/accountsCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +41 -0
  10. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
  14. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/accountsGetSample.js +31 -0
  18. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
  22. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
  23. package/dist-esm/samples-dev/accountsListSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/accountsListSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/accountsListSample.js +43 -0
  26. package/dist-esm/samples-dev/accountsListSample.js.map +1 -0
  27. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/accountsUpdateSample.js +35 -0
  30. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +39 -0
  34. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -0
  35. package/dist-esm/samples-dev/projectsDeleteSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/projectsDeleteSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/projectsDeleteSample.js +33 -0
  38. package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -0
  39. package/dist-esm/samples-dev/projectsGetSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/projectsGetSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/projectsGetSample.js +33 -0
  42. package/dist-esm/samples-dev/projectsGetSample.js.map +1 -0
  43. package/dist-esm/samples-dev/projectsListByWorkspaceSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/projectsListByWorkspaceSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/projectsListByWorkspaceSample.js +46 -0
  46. package/dist-esm/samples-dev/projectsListByWorkspaceSample.js.map +1 -0
  47. package/dist-esm/samples-dev/projectsUpdateSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/projectsUpdateSample.js +37 -0
  50. package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -0
  51. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +37 -0
  54. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -0
  55. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/workspacesDeleteSample.js +32 -0
  58. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/workspacesGetSample.js +32 -0
  62. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/workspacesListByAccountsSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/workspacesListByAccountsSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/workspacesListByAccountsSample.js +45 -0
  66. package/dist-esm/samples-dev/workspacesListByAccountsSample.js.map +1 -0
  67. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/workspacesUpdateSample.js +33 -0
  70. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  71. package/dist-esm/src/mLTeamAccountManagementClient.d.ts.map +1 -1
  72. package/dist-esm/src/mLTeamAccountManagementClient.js +20 -2
  73. package/dist-esm/src/mLTeamAccountManagementClient.js.map +1 -1
  74. package/package.json +10 -10
  75. package/rollup.config.js +6 -72
  76. package/src/mLTeamAccountManagementClient.ts +27 -2
  77. package/tsconfig.json +18 -5
  78. package/LICENSE.txt +0 -21
package/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Release History
2
2
 
3
- ## 2.0.0-beta.1 (2022-01-17)
3
+ ## 2.0.0-beta.2 (2022-04-24)
4
4
 
5
- The package of @azure/arm-machinelearningexperimentation is using our next generation design principles since version 2.0.0-beta.1, which contains breaking changes.
5
+ The package of @azure/arm-machinelearningexperimentation is using our next generation design principles since version 2.0.0-beta.2, which contains breaking changes.
6
6
 
7
7
  To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
8
8
 
package/README.md CHANGED
@@ -16,6 +16,8 @@ These APIs allow end users to operate on Azure Machine Learning Team Account res
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 { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
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 MLTeamAccountManagementClient(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 MLTeamAccountManagementClient(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.
@@ -761,12 +783,12 @@ class OperationsImpl {
761
783
  * @param options The options parameters.
762
784
  */
763
785
  _list(options) {
764
- return this.client.sendOperationRequest({ options }, listOperationSpec);
786
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
765
787
  }
766
788
  }
767
789
  // Operation Specifications
768
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
769
- const listOperationSpec = {
790
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
791
+ const listOperationSpec$1 = {
770
792
  path: "/providers/Microsoft.MachineLearningExperimentation/operations",
771
793
  httpMethod: "GET",
772
794
  responses: {
@@ -780,7 +802,7 @@ const listOperationSpec = {
780
802
  queryParameters: [apiVersion],
781
803
  urlParameters: [$host],
782
804
  headerParameters: [accept],
783
- serializer
805
+ serializer: serializer$3
784
806
  };
785
807
 
786
808
  /*
@@ -906,7 +928,7 @@ class AccountsImpl {
906
928
  * @param options The options parameters.
907
929
  */
908
930
  get(resourceGroupName, accountName, options) {
909
- return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
931
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec$2);
910
932
  }
911
933
  /**
912
934
  * Creates or updates a team account with the specified parameters.
@@ -917,7 +939,7 @@ class AccountsImpl {
917
939
  * @param options The options parameters.
918
940
  */
919
941
  createOrUpdate(resourceGroupName, accountName, parameters, options) {
920
- return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, createOrUpdateOperationSpec);
942
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, createOrUpdateOperationSpec$2);
921
943
  }
922
944
  /**
923
945
  * Deletes a machine learning team account.
@@ -927,7 +949,7 @@ class AccountsImpl {
927
949
  * @param options The options parameters.
928
950
  */
929
951
  delete(resourceGroupName, accountName, options) {
930
- return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
952
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec$2);
931
953
  }
932
954
  /**
933
955
  * Updates a machine learning team account with the specified parameters.
@@ -938,7 +960,7 @@ class AccountsImpl {
938
960
  * @param options The options parameters.
939
961
  */
940
962
  update(resourceGroupName, accountName, parameters, options) {
941
- return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec);
963
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec$2);
942
964
  }
943
965
  /**
944
966
  * Lists all the available machine learning team accounts under the specified resource group.
@@ -954,7 +976,7 @@ class AccountsImpl {
954
976
  * @param options The options parameters.
955
977
  */
956
978
  _list(options) {
957
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
979
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
958
980
  }
959
981
  /**
960
982
  * ListByResourceGroupNext
@@ -976,8 +998,8 @@ class AccountsImpl {
976
998
  }
977
999
  }
978
1000
  // Operation Specifications
979
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
980
- const getOperationSpec = {
1001
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1002
+ const getOperationSpec$2 = {
981
1003
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
982
1004
  httpMethod: "GET",
983
1005
  responses: {
@@ -996,9 +1018,9 @@ const getOperationSpec = {
996
1018
  accountName
997
1019
  ],
998
1020
  headerParameters: [accept],
999
- serializer: serializer$1
1021
+ serializer: serializer$2
1000
1022
  };
1001
- const createOrUpdateOperationSpec = {
1023
+ const createOrUpdateOperationSpec$2 = {
1002
1024
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
1003
1025
  httpMethod: "PUT",
1004
1026
  responses: {
@@ -1022,9 +1044,9 @@ const createOrUpdateOperationSpec = {
1022
1044
  ],
1023
1045
  headerParameters: [accept, contentType],
1024
1046
  mediaType: "json",
1025
- serializer: serializer$1
1047
+ serializer: serializer$2
1026
1048
  };
1027
- const deleteOperationSpec = {
1049
+ const deleteOperationSpec$2 = {
1028
1050
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
1029
1051
  httpMethod: "DELETE",
1030
1052
  responses: {
@@ -1042,9 +1064,9 @@ const deleteOperationSpec = {
1042
1064
  accountName
1043
1065
  ],
1044
1066
  headerParameters: [accept],
1045
- serializer: serializer$1
1067
+ serializer: serializer$2
1046
1068
  };
1047
- const updateOperationSpec = {
1069
+ const updateOperationSpec$2 = {
1048
1070
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
1049
1071
  httpMethod: "PATCH",
1050
1072
  responses: {
@@ -1065,7 +1087,7 @@ const updateOperationSpec = {
1065
1087
  ],
1066
1088
  headerParameters: [accept, contentType],
1067
1089
  mediaType: "json",
1068
- serializer: serializer$1
1090
+ serializer: serializer$2
1069
1091
  };
1070
1092
  const listByResourceGroupOperationSpec = {
1071
1093
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts",
@@ -1085,9 +1107,9 @@ const listByResourceGroupOperationSpec = {
1085
1107
  resourceGroupName
1086
1108
  ],
1087
1109
  headerParameters: [accept],
1088
- serializer: serializer$1
1110
+ serializer: serializer$2
1089
1111
  };
1090
- const listOperationSpec$1 = {
1112
+ const listOperationSpec = {
1091
1113
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningExperimentation/accounts",
1092
1114
  httpMethod: "GET",
1093
1115
  responses: {
@@ -1101,7 +1123,7 @@ const listOperationSpec$1 = {
1101
1123
  queryParameters: [apiVersion],
1102
1124
  urlParameters: [$host, subscriptionId],
1103
1125
  headerParameters: [accept],
1104
- serializer: serializer$1
1126
+ serializer: serializer$2
1105
1127
  };
1106
1128
  const listByResourceGroupNextOperationSpec = {
1107
1129
  path: "{nextLink}",
@@ -1122,7 +1144,7 @@ const listByResourceGroupNextOperationSpec = {
1122
1144
  nextLink
1123
1145
  ],
1124
1146
  headerParameters: [accept],
1125
- serializer: serializer$1
1147
+ serializer: serializer$2
1126
1148
  };
1127
1149
  const listNextOperationSpec = {
1128
1150
  path: "{nextLink}",
@@ -1142,7 +1164,7 @@ const listNextOperationSpec = {
1142
1164
  nextLink
1143
1165
  ],
1144
1166
  headerParameters: [accept],
1145
- serializer: serializer$1
1167
+ serializer: serializer$2
1146
1168
  };
1147
1169
 
1148
1170
  /*
@@ -1282,7 +1304,7 @@ class WorkspacesImpl {
1282
1304
  }
1283
1305
  }
1284
1306
  // Operation Specifications
1285
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1307
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1286
1308
  const getOperationSpec$1 = {
1287
1309
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
1288
1310
  httpMethod: "GET",
@@ -1303,7 +1325,7 @@ const getOperationSpec$1 = {
1303
1325
  workspaceName
1304
1326
  ],
1305
1327
  headerParameters: [accept],
1306
- serializer: serializer$2
1328
+ serializer: serializer$1
1307
1329
  };
1308
1330
  const createOrUpdateOperationSpec$1 = {
1309
1331
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
@@ -1330,7 +1352,7 @@ const createOrUpdateOperationSpec$1 = {
1330
1352
  ],
1331
1353
  headerParameters: [accept, contentType],
1332
1354
  mediaType: "json",
1333
- serializer: serializer$2
1355
+ serializer: serializer$1
1334
1356
  };
1335
1357
  const deleteOperationSpec$1 = {
1336
1358
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
@@ -1351,7 +1373,7 @@ const deleteOperationSpec$1 = {
1351
1373
  workspaceName
1352
1374
  ],
1353
1375
  headerParameters: [accept],
1354
- serializer: serializer$2
1376
+ serializer: serializer$1
1355
1377
  };
1356
1378
  const updateOperationSpec$1 = {
1357
1379
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}",
@@ -1375,7 +1397,7 @@ const updateOperationSpec$1 = {
1375
1397
  ],
1376
1398
  headerParameters: [accept, contentType],
1377
1399
  mediaType: "json",
1378
- serializer: serializer$2
1400
+ serializer: serializer$1
1379
1401
  };
1380
1402
  const listByAccountsOperationSpec = {
1381
1403
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces",
@@ -1396,7 +1418,7 @@ const listByAccountsOperationSpec = {
1396
1418
  accountName
1397
1419
  ],
1398
1420
  headerParameters: [accept],
1399
- serializer: serializer$2
1421
+ serializer: serializer$1
1400
1422
  };
1401
1423
  const listByAccountsNextOperationSpec = {
1402
1424
  path: "{nextLink}",
@@ -1418,7 +1440,7 @@ const listByAccountsNextOperationSpec = {
1418
1440
  nextLink
1419
1441
  ],
1420
1442
  headerParameters: [accept],
1421
- serializer: serializer$2
1443
+ serializer: serializer$1
1422
1444
  };
1423
1445
 
1424
1446
  /*
@@ -1500,7 +1522,7 @@ class ProjectsImpl {
1500
1522
  * @param options The options parameters.
1501
1523
  */
1502
1524
  get(resourceGroupName, accountName, workspaceName, projectName, options) {
1503
- return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, projectName, options }, getOperationSpec$2);
1525
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, projectName, options }, getOperationSpec);
1504
1526
  }
1505
1527
  /**
1506
1528
  * Creates or updates a project with the specified parameters.
@@ -1520,7 +1542,7 @@ class ProjectsImpl {
1520
1542
  projectName,
1521
1543
  parameters,
1522
1544
  options
1523
- }, createOrUpdateOperationSpec$2);
1545
+ }, createOrUpdateOperationSpec);
1524
1546
  }
1525
1547
  /**
1526
1548
  * Deletes a project.
@@ -1532,7 +1554,7 @@ class ProjectsImpl {
1532
1554
  * @param options The options parameters.
1533
1555
  */
1534
1556
  delete(resourceGroupName, accountName, workspaceName, projectName, options) {
1535
- return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, projectName, options }, deleteOperationSpec$2);
1557
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, workspaceName, projectName, options }, deleteOperationSpec);
1536
1558
  }
1537
1559
  /**
1538
1560
  * Updates a project with the specified parameters.
@@ -1552,7 +1574,7 @@ class ProjectsImpl {
1552
1574
  projectName,
1553
1575
  parameters,
1554
1576
  options
1555
- }, updateOperationSpec$2);
1577
+ }, updateOperationSpec);
1556
1578
  }
1557
1579
  /**
1558
1580
  * Lists all the available machine learning projects under the specified workspace.
@@ -1579,8 +1601,8 @@ class ProjectsImpl {
1579
1601
  }
1580
1602
  }
1581
1603
  // Operation Specifications
1582
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
1583
- const getOperationSpec$2 = {
1604
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1605
+ const getOperationSpec = {
1584
1606
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1585
1607
  httpMethod: "GET",
1586
1608
  responses: {
@@ -1601,9 +1623,9 @@ const getOperationSpec$2 = {
1601
1623
  projectName
1602
1624
  ],
1603
1625
  headerParameters: [accept],
1604
- serializer: serializer$3
1626
+ serializer
1605
1627
  };
1606
- const createOrUpdateOperationSpec$2 = {
1628
+ const createOrUpdateOperationSpec = {
1607
1629
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1608
1630
  httpMethod: "PUT",
1609
1631
  responses: {
@@ -1629,9 +1651,9 @@ const createOrUpdateOperationSpec$2 = {
1629
1651
  ],
1630
1652
  headerParameters: [accept, contentType],
1631
1653
  mediaType: "json",
1632
- serializer: serializer$3
1654
+ serializer
1633
1655
  };
1634
- const deleteOperationSpec$2 = {
1656
+ const deleteOperationSpec = {
1635
1657
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1636
1658
  httpMethod: "DELETE",
1637
1659
  responses: {
@@ -1651,9 +1673,9 @@ const deleteOperationSpec$2 = {
1651
1673
  projectName
1652
1674
  ],
1653
1675
  headerParameters: [accept],
1654
- serializer: serializer$3
1676
+ serializer
1655
1677
  };
1656
- const updateOperationSpec$2 = {
1678
+ const updateOperationSpec = {
1657
1679
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects/{projectName}",
1658
1680
  httpMethod: "PATCH",
1659
1681
  responses: {
@@ -1676,7 +1698,7 @@ const updateOperationSpec$2 = {
1676
1698
  ],
1677
1699
  headerParameters: [accept, contentType],
1678
1700
  mediaType: "json",
1679
- serializer: serializer$3
1701
+ serializer
1680
1702
  };
1681
1703
  const listByWorkspaceOperationSpec = {
1682
1704
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}/workspaces/{workspaceName}/projects",
@@ -1698,7 +1720,7 @@ const listByWorkspaceOperationSpec = {
1698
1720
  workspaceName
1699
1721
  ],
1700
1722
  headerParameters: [accept],
1701
- serializer: serializer$3
1723
+ serializer
1702
1724
  };
1703
1725
  const listByWorkspaceNextOperationSpec = {
1704
1726
  path: "{nextLink}",
@@ -1721,7 +1743,7 @@ const listByWorkspaceNextOperationSpec = {
1721
1743
  workspaceName
1722
1744
  ],
1723
1745
  headerParameters: [accept],
1724
- serializer: serializer$3
1746
+ serializer
1725
1747
  };
1726
1748
 
1727
1749
  /*
@@ -1731,7 +1753,7 @@ const listByWorkspaceNextOperationSpec = {
1731
1753
  * Code generated by Microsoft (R) AutoRest Code Generator.
1732
1754
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1733
1755
  */
1734
- class MLTeamAccountManagementClient extends coreClient.ServiceClient {
1756
+ class MLTeamAccountManagementClient extends coreClient__namespace.ServiceClient {
1735
1757
  /**
1736
1758
  * Initializes a new instance of the MLTeamAccountManagementClient class.
1737
1759
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -1739,6 +1761,7 @@ class MLTeamAccountManagementClient extends coreClient.ServiceClient {
1739
1761
  * @param options The parameter options
1740
1762
  */
1741
1763
  constructor(credentials, subscriptionId, options) {
1764
+ var _a, _b;
1742
1765
  if (credentials === undefined) {
1743
1766
  throw new Error("'credentials' cannot be null");
1744
1767
  }
@@ -1753,7 +1776,7 @@ class MLTeamAccountManagementClient extends coreClient.ServiceClient {
1753
1776
  requestContentType: "application/json; charset=utf-8",
1754
1777
  credential: credentials
1755
1778
  };
1756
- const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.1`;
1779
+ const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.2`;
1757
1780
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1758
1781
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1759
1782
  : `${packageDetails}`;
@@ -1762,8 +1785,24 @@ class MLTeamAccountManagementClient extends coreClient.ServiceClient {
1762
1785
  }
1763
1786
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1764
1787
  userAgentPrefix
1765
- }, baseUri: options.endpoint || "https://management.azure.com" });
1788
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1766
1789
  super(optionsWithDefaults);
1790
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1791
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
1792
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1793
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1794
+ if (!bearerTokenAuthenticationPolicyFound) {
1795
+ this.pipeline.removePolicy({
1796
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1797
+ });
1798
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1799
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
1800
+ challengeCallbacks: {
1801
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1802
+ }
1803
+ }));
1804
+ }
1805
+ }
1767
1806
  // Parameter assignments
1768
1807
  this.subscriptionId = subscriptionId;
1769
1808
  // Assigning values to Constant parameters