@azure/arm-azurestack 3.0.0-alpha.20220413.1 → 3.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 (127) hide show
  1. package/CHANGELOG.md +3 -13
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +120 -87
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/cloudManifestFileGetSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/cloudManifestFileGetSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/cloudManifestFileGetSample.js +30 -0
  11. package/dist-esm/samples-dev/cloudManifestFileGetSample.js.map +1 -0
  12. package/dist-esm/samples-dev/cloudManifestFileListSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/cloudManifestFileListSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/cloudManifestFileListSample.js +29 -0
  15. package/dist-esm/samples-dev/cloudManifestFileListSample.js.map +1 -0
  16. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.js +35 -0
  19. package/dist-esm/samples-dev/customerSubscriptionsCreateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.js +32 -0
  23. package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/customerSubscriptionsGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/customerSubscriptionsGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/customerSubscriptionsGetSample.js +32 -0
  27. package/dist-esm/samples-dev/customerSubscriptionsGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/customerSubscriptionsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/customerSubscriptionsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/customerSubscriptionsListSample.js +45 -0
  31. package/dist-esm/samples-dev/customerSubscriptionsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.js +36 -0
  35. package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.js +31 -0
  39. package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.js.map +1 -0
  40. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.js +31 -0
  43. package/dist-esm/samples-dev/linkedSubscriptionsGetSample.js.map +1 -0
  44. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.js +44 -0
  47. package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.js.map +1 -0
  48. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.js +43 -0
  51. package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.js.map +1 -0
  52. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.js +36 -0
  55. package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.js.map +1 -0
  56. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  59. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  60. package/dist-esm/samples-dev/productsGetProductSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/productsGetProductSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/productsGetProductSample.js +32 -0
  63. package/dist-esm/samples-dev/productsGetProductSample.js.map +1 -0
  64. package/dist-esm/samples-dev/productsGetProductsSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/productsGetProductsSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/productsGetProductsSample.js +32 -0
  67. package/dist-esm/samples-dev/productsGetProductsSample.js.map +1 -0
  68. package/dist-esm/samples-dev/productsGetSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/productsGetSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/productsGetSample.js +32 -0
  71. package/dist-esm/samples-dev/productsGetSample.js.map +1 -0
  72. package/dist-esm/samples-dev/productsListDetailsSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/productsListDetailsSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/productsListDetailsSample.js +32 -0
  75. package/dist-esm/samples-dev/productsListDetailsSample.js.map +1 -0
  76. package/dist-esm/samples-dev/productsListSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/productsListSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/productsListSample.js +45 -0
  79. package/dist-esm/samples-dev/productsListSample.js.map +1 -0
  80. package/dist-esm/samples-dev/productsUploadLogSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/productsUploadLogSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/productsUploadLogSample.js +32 -0
  83. package/dist-esm/samples-dev/productsUploadLogSample.js.map +1 -0
  84. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.js +35 -0
  87. package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.js.map +1 -0
  88. package/dist-esm/samples-dev/registrationsDeleteSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/registrationsDeleteSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/registrationsDeleteSample.js +31 -0
  91. package/dist-esm/samples-dev/registrationsDeleteSample.js.map +1 -0
  92. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.js +31 -0
  95. package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.js.map +1 -0
  96. package/dist-esm/samples-dev/registrationsGetActivationKeySample.d.ts +2 -0
  97. package/dist-esm/samples-dev/registrationsGetActivationKeySample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/registrationsGetActivationKeySample.js +31 -0
  99. package/dist-esm/samples-dev/registrationsGetActivationKeySample.js.map +1 -0
  100. package/dist-esm/samples-dev/registrationsGetSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/registrationsGetSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/registrationsGetSample.js +31 -0
  103. package/dist-esm/samples-dev/registrationsGetSample.js.map +1 -0
  104. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.js +43 -0
  107. package/dist-esm/samples-dev/registrationsListBySubscriptionSample.js.map +1 -0
  108. package/dist-esm/samples-dev/registrationsListSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/registrationsListSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/registrationsListSample.js +44 -0
  111. package/dist-esm/samples-dev/registrationsListSample.js.map +1 -0
  112. package/dist-esm/samples-dev/registrationsUpdateSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/registrationsUpdateSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/registrationsUpdateSample.js +35 -0
  115. package/dist-esm/samples-dev/registrationsUpdateSample.js.map +1 -0
  116. package/dist-esm/src/azureStackManagementClient.d.ts.map +1 -1
  117. package/dist-esm/src/azureStackManagementClient.js +3 -2
  118. package/dist-esm/src/azureStackManagementClient.js.map +1 -1
  119. package/dist-esm/test/sampleTest.d.ts +1 -3
  120. package/dist-esm/test/sampleTest.d.ts.map +1 -1
  121. package/dist-esm/test/sampleTest.js +1 -4
  122. package/dist-esm/test/sampleTest.js.map +1 -1
  123. package/package.json +25 -9
  124. package/rollup.config.js +6 -72
  125. package/src/azureStackManagementClient.ts +3 -2
  126. package/tsconfig.json +19 -5
  127. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -5,6 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var coreClient = require('@azure/core-client');
6
6
  var tslib = require('tslib');
7
7
 
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n["default"] = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
27
+
8
28
  /*
9
29
  * Copyright (c) Microsoft Corporation.
10
30
  * Licensed under the MIT License.
@@ -12,12 +32,16 @@ var tslib = require('tslib');
12
32
  * Code generated by Microsoft (R) AutoRest Code Generator.
13
33
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
34
  */
35
+ /** Known values of {@link CreatedByType} that the service accepts. */
36
+ exports.KnownCreatedByType = void 0;
15
37
  (function (KnownCreatedByType) {
16
38
  KnownCreatedByType["User"] = "User";
17
39
  KnownCreatedByType["Application"] = "Application";
18
40
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
19
41
  KnownCreatedByType["Key"] = "Key";
20
42
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
43
+ /** Known values of {@link CompatibilityIssue} that the service accepts. */
44
+ exports.KnownCompatibilityIssue = void 0;
21
45
  (function (KnownCompatibilityIssue) {
22
46
  KnownCompatibilityIssue["HigherDeviceVersionRequired"] = "HigherDeviceVersionRequired";
23
47
  KnownCompatibilityIssue["LowerDeviceVersionRequired"] = "LowerDeviceVersionRequired";
@@ -30,20 +54,28 @@ var tslib = require('tslib');
30
54
  KnownCompatibilityIssue["ConnectionToAzureRequired"] = "ConnectionToAzureRequired";
31
55
  KnownCompatibilityIssue["DisconnectedEnvironmentRequired"] = "DisconnectedEnvironmentRequired";
32
56
  })(exports.KnownCompatibilityIssue || (exports.KnownCompatibilityIssue = {}));
57
+ /** Known values of {@link ComputeRole} that the service accepts. */
58
+ exports.KnownComputeRole = void 0;
33
59
  (function (KnownComputeRole) {
34
60
  KnownComputeRole["None"] = "None";
35
61
  KnownComputeRole["IaaS"] = "IaaS";
36
62
  KnownComputeRole["PaaS"] = "PaaS";
37
63
  })(exports.KnownComputeRole || (exports.KnownComputeRole = {}));
64
+ /** Known values of {@link OperatingSystem} that the service accepts. */
65
+ exports.KnownOperatingSystem = void 0;
38
66
  (function (KnownOperatingSystem) {
39
67
  KnownOperatingSystem["None"] = "None";
40
68
  KnownOperatingSystem["Windows"] = "Windows";
41
69
  KnownOperatingSystem["Linux"] = "Linux";
42
70
  })(exports.KnownOperatingSystem || (exports.KnownOperatingSystem = {}));
71
+ /** Known values of {@link Category} that the service accepts. */
72
+ exports.KnownCategory = void 0;
43
73
  (function (KnownCategory) {
44
74
  KnownCategory["AzureAD"] = "AzureAD";
45
75
  KnownCategory["Adfs"] = "ADFS";
46
76
  })(exports.KnownCategory || (exports.KnownCategory = {}));
77
+ /** Known values of {@link Location} that the service accepts. */
78
+ exports.KnownLocation = void 0;
47
79
  (function (KnownLocation) {
48
80
  KnownLocation["Global"] = "global";
49
81
  })(exports.KnownLocation || (exports.KnownLocation = {}));
@@ -1525,7 +1557,7 @@ class OperationsImpl {
1525
1557
  * @param options The options parameters.
1526
1558
  */
1527
1559
  _list(options) {
1528
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1560
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
1529
1561
  }
1530
1562
  /**
1531
1563
  * ListNext
@@ -1533,12 +1565,12 @@ class OperationsImpl {
1533
1565
  * @param options The options parameters.
1534
1566
  */
1535
1567
  _listNext(nextLink, options) {
1536
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1568
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
1537
1569
  }
1538
1570
  }
1539
1571
  // Operation Specifications
1540
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1541
- const listOperationSpec = {
1572
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1573
+ const listOperationSpec$4 = {
1542
1574
  path: "/providers/Microsoft.AzureStack/operations",
1543
1575
  httpMethod: "GET",
1544
1576
  responses: {
@@ -1552,9 +1584,9 @@ const listOperationSpec = {
1552
1584
  queryParameters: [apiVersion],
1553
1585
  urlParameters: [$host],
1554
1586
  headerParameters: [accept],
1555
- serializer
1587
+ serializer: serializer$5
1556
1588
  };
1557
- const listNextOperationSpec = {
1589
+ const listNextOperationSpec$3 = {
1558
1590
  path: "{nextLink}",
1559
1591
  httpMethod: "GET",
1560
1592
  responses: {
@@ -1568,7 +1600,7 @@ const listNextOperationSpec = {
1568
1600
  queryParameters: [apiVersion],
1569
1601
  urlParameters: [$host, nextLink],
1570
1602
  headerParameters: [accept],
1571
- serializer
1603
+ serializer: serializer$5
1572
1604
  };
1573
1605
 
1574
1606
  /*
@@ -1592,7 +1624,7 @@ class CloudManifestFileImpl {
1592
1624
  * @param options The options parameters.
1593
1625
  */
1594
1626
  list(options) {
1595
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1627
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
1596
1628
  }
1597
1629
  /**
1598
1630
  * Returns a cloud specific manifest JSON file.
@@ -1600,12 +1632,12 @@ class CloudManifestFileImpl {
1600
1632
  * @param options The options parameters.
1601
1633
  */
1602
1634
  get(verificationVersion, options) {
1603
- return this.client.sendOperationRequest({ verificationVersion, options }, getOperationSpec);
1635
+ return this.client.sendOperationRequest({ verificationVersion, options }, getOperationSpec$4);
1604
1636
  }
1605
1637
  }
1606
1638
  // Operation Specifications
1607
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1608
- const listOperationSpec$1 = {
1639
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1640
+ const listOperationSpec$3 = {
1609
1641
  path: "/providers/Microsoft.AzureStack/cloudManifestFiles",
1610
1642
  httpMethod: "GET",
1611
1643
  responses: {
@@ -1619,9 +1651,9 @@ const listOperationSpec$1 = {
1619
1651
  queryParameters: [apiVersion],
1620
1652
  urlParameters: [$host],
1621
1653
  headerParameters: [accept],
1622
- serializer: serializer$1
1654
+ serializer: serializer$4
1623
1655
  };
1624
- const getOperationSpec = {
1656
+ const getOperationSpec$4 = {
1625
1657
  path: "/providers/Microsoft.AzureStack/cloudManifestFiles/{verificationVersion}",
1626
1658
  httpMethod: "GET",
1627
1659
  responses: {
@@ -1635,7 +1667,7 @@ const getOperationSpec = {
1635
1667
  queryParameters: [apiVersion, versionCreationDate],
1636
1668
  urlParameters: [$host, verificationVersion],
1637
1669
  headerParameters: [accept],
1638
- serializer: serializer$1
1670
+ serializer: serializer$4
1639
1671
  };
1640
1672
 
1641
1673
  /*
@@ -1722,7 +1754,7 @@ class CustomerSubscriptionsImpl {
1722
1754
  * @param options The options parameters.
1723
1755
  */
1724
1756
  get(resourceGroup, registrationName, customerSubscriptionName, options) {
1725
- return this.client.sendOperationRequest({ resourceGroup, registrationName, customerSubscriptionName, options }, getOperationSpec$1);
1757
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, customerSubscriptionName, options }, getOperationSpec$3);
1726
1758
  }
1727
1759
  /**
1728
1760
  * Deletes a customer subscription under a registration.
@@ -1732,7 +1764,7 @@ class CustomerSubscriptionsImpl {
1732
1764
  * @param options The options parameters.
1733
1765
  */
1734
1766
  delete(resourceGroup, registrationName, customerSubscriptionName, options) {
1735
- return this.client.sendOperationRequest({ resourceGroup, registrationName, customerSubscriptionName, options }, deleteOperationSpec);
1767
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, customerSubscriptionName, options }, deleteOperationSpec$2);
1736
1768
  }
1737
1769
  /**
1738
1770
  * Creates a new customer subscription under a registration.
@@ -1759,11 +1791,11 @@ class CustomerSubscriptionsImpl {
1759
1791
  * @param options The options parameters.
1760
1792
  */
1761
1793
  _listNext(resourceGroup, registrationName, nextLink, options) {
1762
- return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec$1);
1794
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec$2);
1763
1795
  }
1764
1796
  }
1765
1797
  // Operation Specifications
1766
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1798
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1767
1799
  const listOperationSpec$2 = {
1768
1800
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions",
1769
1801
  httpMethod: "GET",
@@ -1783,9 +1815,9 @@ const listOperationSpec$2 = {
1783
1815
  registrationName
1784
1816
  ],
1785
1817
  headerParameters: [accept],
1786
- serializer: serializer$2
1818
+ serializer: serializer$3
1787
1819
  };
1788
- const getOperationSpec$1 = {
1820
+ const getOperationSpec$3 = {
1789
1821
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1790
1822
  httpMethod: "GET",
1791
1823
  responses: {
@@ -1805,9 +1837,9 @@ const getOperationSpec$1 = {
1805
1837
  customerSubscriptionName
1806
1838
  ],
1807
1839
  headerParameters: [accept],
1808
- serializer: serializer$2
1840
+ serializer: serializer$3
1809
1841
  };
1810
- const deleteOperationSpec = {
1842
+ const deleteOperationSpec$2 = {
1811
1843
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
1812
1844
  httpMethod: "DELETE",
1813
1845
  responses: {
@@ -1826,7 +1858,7 @@ const deleteOperationSpec = {
1826
1858
  customerSubscriptionName
1827
1859
  ],
1828
1860
  headerParameters: [accept],
1829
- serializer: serializer$2
1861
+ serializer: serializer$3
1830
1862
  };
1831
1863
  const createOperationSpec = {
1832
1864
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",
@@ -1850,9 +1882,9 @@ const createOperationSpec = {
1850
1882
  ],
1851
1883
  headerParameters: [accept, contentType],
1852
1884
  mediaType: "json",
1853
- serializer: serializer$2
1885
+ serializer: serializer$3
1854
1886
  };
1855
- const listNextOperationSpec$1 = {
1887
+ const listNextOperationSpec$2 = {
1856
1888
  path: "{nextLink}",
1857
1889
  httpMethod: "GET",
1858
1890
  responses: {
@@ -1872,7 +1904,7 @@ const listNextOperationSpec$1 = {
1872
1904
  registrationName
1873
1905
  ],
1874
1906
  headerParameters: [accept],
1875
- serializer: serializer$2
1907
+ serializer: serializer$3
1876
1908
  };
1877
1909
 
1878
1910
  /*
@@ -1949,7 +1981,7 @@ class ProductsImpl {
1949
1981
  * @param options The options parameters.
1950
1982
  */
1951
1983
  _list(resourceGroup, registrationName, options) {
1952
- return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, listOperationSpec$3);
1984
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, listOperationSpec$1);
1953
1985
  }
1954
1986
  /**
1955
1987
  * Returns the specified product.
@@ -2009,12 +2041,12 @@ class ProductsImpl {
2009
2041
  * @param options The options parameters.
2010
2042
  */
2011
2043
  _listNext(resourceGroup, registrationName, nextLink, options) {
2012
- return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec$2);
2044
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec$1);
2013
2045
  }
2014
2046
  }
2015
2047
  // Operation Specifications
2016
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2017
- const listOperationSpec$3 = {
2048
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2049
+ const listOperationSpec$1 = {
2018
2050
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",
2019
2051
  httpMethod: "GET",
2020
2052
  responses: {
@@ -2033,7 +2065,7 @@ const listOperationSpec$3 = {
2033
2065
  registrationName
2034
2066
  ],
2035
2067
  headerParameters: [accept],
2036
- serializer: serializer$3
2068
+ serializer: serializer$2
2037
2069
  };
2038
2070
  const getOperationSpec$2 = {
2039
2071
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",
@@ -2055,7 +2087,7 @@ const getOperationSpec$2 = {
2055
2087
  productName
2056
2088
  ],
2057
2089
  headerParameters: [accept],
2058
- serializer: serializer$3
2090
+ serializer: serializer$2
2059
2091
  };
2060
2092
  const listDetailsOperationSpec = {
2061
2093
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",
@@ -2077,7 +2109,7 @@ const listDetailsOperationSpec = {
2077
2109
  productName
2078
2110
  ],
2079
2111
  headerParameters: [accept],
2080
- serializer: serializer$3
2112
+ serializer: serializer$2
2081
2113
  };
2082
2114
  const getProductsOperationSpec = {
2083
2115
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts",
@@ -2101,7 +2133,7 @@ const getProductsOperationSpec = {
2101
2133
  ],
2102
2134
  headerParameters: [accept, contentType],
2103
2135
  mediaType: "json",
2104
- serializer: serializer$3
2136
+ serializer: serializer$2
2105
2137
  };
2106
2138
  const getProductOperationSpec = {
2107
2139
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct",
@@ -2125,7 +2157,7 @@ const getProductOperationSpec = {
2125
2157
  ],
2126
2158
  headerParameters: [accept, contentType],
2127
2159
  mediaType: "json",
2128
- serializer: serializer$3
2160
+ serializer: serializer$2
2129
2161
  };
2130
2162
  const uploadLogOperationSpec = {
2131
2163
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog",
@@ -2149,9 +2181,9 @@ const uploadLogOperationSpec = {
2149
2181
  ],
2150
2182
  headerParameters: [accept, contentType],
2151
2183
  mediaType: "json",
2152
- serializer: serializer$3
2184
+ serializer: serializer$2
2153
2185
  };
2154
- const listNextOperationSpec$2 = {
2186
+ const listNextOperationSpec$1 = {
2155
2187
  path: "{nextLink}",
2156
2188
  httpMethod: "GET",
2157
2189
  responses: {
@@ -2171,7 +2203,7 @@ const listNextOperationSpec$2 = {
2171
2203
  registrationName
2172
2204
  ],
2173
2205
  headerParameters: [accept],
2174
- serializer: serializer$3
2206
+ serializer: serializer$2
2175
2207
  };
2176
2208
 
2177
2209
  /*
@@ -2294,14 +2326,14 @@ class RegistrationsImpl {
2294
2326
  * @param options The options parameters.
2295
2327
  */
2296
2328
  _list(resourceGroup, options) {
2297
- return this.client.sendOperationRequest({ resourceGroup, options }, listOperationSpec$4);
2329
+ return this.client.sendOperationRequest({ resourceGroup, options }, listOperationSpec);
2298
2330
  }
2299
2331
  /**
2300
2332
  * Returns a list of all registrations under current subscription.
2301
2333
  * @param options The options parameters.
2302
2334
  */
2303
2335
  _listBySubscription(options) {
2304
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2336
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2305
2337
  }
2306
2338
  /**
2307
2339
  * Returns the properties of an Azure Stack registration.
@@ -2310,7 +2342,7 @@ class RegistrationsImpl {
2310
2342
  * @param options The options parameters.
2311
2343
  */
2312
2344
  get(resourceGroup, registrationName, options) {
2313
- return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, getOperationSpec$3);
2345
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, getOperationSpec$1);
2314
2346
  }
2315
2347
  /**
2316
2348
  * Delete the requested Azure Stack registration.
@@ -2329,7 +2361,7 @@ class RegistrationsImpl {
2329
2361
  * @param options The options parameters.
2330
2362
  */
2331
2363
  createOrUpdate(resourceGroup, registrationName, token, options) {
2332
- return this.client.sendOperationRequest({ resourceGroup, registrationName, token, options }, createOrUpdateOperationSpec);
2364
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, token, options }, createOrUpdateOperationSpec$1);
2333
2365
  }
2334
2366
  /**
2335
2367
  * Patch an Azure Stack registration.
@@ -2339,7 +2371,7 @@ class RegistrationsImpl {
2339
2371
  * @param options The options parameters.
2340
2372
  */
2341
2373
  update(resourceGroup, registrationName, token, options) {
2342
- return this.client.sendOperationRequest({ resourceGroup, registrationName, token, options }, updateOperationSpec);
2374
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, token, options }, updateOperationSpec$1);
2343
2375
  }
2344
2376
  /**
2345
2377
  * Returns Azure Stack Activation Key.
@@ -2366,7 +2398,7 @@ class RegistrationsImpl {
2366
2398
  * @param options The options parameters.
2367
2399
  */
2368
2400
  _listNext(resourceGroup, nextLink, options) {
2369
- return this.client.sendOperationRequest({ resourceGroup, nextLink, options }, listNextOperationSpec$3);
2401
+ return this.client.sendOperationRequest({ resourceGroup, nextLink, options }, listNextOperationSpec);
2370
2402
  }
2371
2403
  /**
2372
2404
  * ListBySubscriptionNext
@@ -2374,12 +2406,12 @@ class RegistrationsImpl {
2374
2406
  * @param options The options parameters.
2375
2407
  */
2376
2408
  _listBySubscriptionNext(nextLink, options) {
2377
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2409
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2378
2410
  }
2379
2411
  }
2380
2412
  // Operation Specifications
2381
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
2382
- const listOperationSpec$4 = {
2413
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2414
+ const listOperationSpec = {
2383
2415
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations",
2384
2416
  httpMethod: "GET",
2385
2417
  responses: {
@@ -2397,9 +2429,9 @@ const listOperationSpec$4 = {
2397
2429
  resourceGroup
2398
2430
  ],
2399
2431
  headerParameters: [accept],
2400
- serializer: serializer$4
2432
+ serializer: serializer$1
2401
2433
  };
2402
- const listBySubscriptionOperationSpec = {
2434
+ const listBySubscriptionOperationSpec$1 = {
2403
2435
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations",
2404
2436
  httpMethod: "GET",
2405
2437
  responses: {
@@ -2413,9 +2445,9 @@ const listBySubscriptionOperationSpec = {
2413
2445
  queryParameters: [apiVersion],
2414
2446
  urlParameters: [$host, subscriptionId],
2415
2447
  headerParameters: [accept],
2416
- serializer: serializer$4
2448
+ serializer: serializer$1
2417
2449
  };
2418
- const getOperationSpec$3 = {
2450
+ const getOperationSpec$1 = {
2419
2451
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2420
2452
  httpMethod: "GET",
2421
2453
  responses: {
@@ -2434,7 +2466,7 @@ const getOperationSpec$3 = {
2434
2466
  registrationName
2435
2467
  ],
2436
2468
  headerParameters: [accept],
2437
- serializer: serializer$4
2469
+ serializer: serializer$1
2438
2470
  };
2439
2471
  const deleteOperationSpec$1 = {
2440
2472
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
@@ -2454,9 +2486,9 @@ const deleteOperationSpec$1 = {
2454
2486
  registrationName
2455
2487
  ],
2456
2488
  headerParameters: [accept],
2457
- serializer: serializer$4
2489
+ serializer: serializer$1
2458
2490
  };
2459
- const createOrUpdateOperationSpec = {
2491
+ const createOrUpdateOperationSpec$1 = {
2460
2492
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2461
2493
  httpMethod: "PUT",
2462
2494
  responses: {
@@ -2480,9 +2512,9 @@ const createOrUpdateOperationSpec = {
2480
2512
  ],
2481
2513
  headerParameters: [accept, contentType],
2482
2514
  mediaType: "json",
2483
- serializer: serializer$4
2515
+ serializer: serializer$1
2484
2516
  };
2485
- const updateOperationSpec = {
2517
+ const updateOperationSpec$1 = {
2486
2518
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
2487
2519
  httpMethod: "PATCH",
2488
2520
  responses: {
@@ -2503,7 +2535,7 @@ const updateOperationSpec = {
2503
2535
  ],
2504
2536
  headerParameters: [accept, contentType],
2505
2537
  mediaType: "json",
2506
- serializer: serializer$4
2538
+ serializer: serializer$1
2507
2539
  };
2508
2540
  const getActivationKeyOperationSpec = {
2509
2541
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey",
@@ -2524,7 +2556,7 @@ const getActivationKeyOperationSpec = {
2524
2556
  registrationName
2525
2557
  ],
2526
2558
  headerParameters: [accept],
2527
- serializer: serializer$4
2559
+ serializer: serializer$1
2528
2560
  };
2529
2561
  const enableRemoteManagementOperationSpec = {
2530
2562
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement",
@@ -2542,9 +2574,9 @@ const enableRemoteManagementOperationSpec = {
2542
2574
  registrationName
2543
2575
  ],
2544
2576
  headerParameters: [accept],
2545
- serializer: serializer$4
2577
+ serializer: serializer$1
2546
2578
  };
2547
- const listNextOperationSpec$3 = {
2579
+ const listNextOperationSpec = {
2548
2580
  path: "{nextLink}",
2549
2581
  httpMethod: "GET",
2550
2582
  responses: {
@@ -2563,9 +2595,9 @@ const listNextOperationSpec$3 = {
2563
2595
  resourceGroup
2564
2596
  ],
2565
2597
  headerParameters: [accept],
2566
- serializer: serializer$4
2598
+ serializer: serializer$1
2567
2599
  };
2568
- const listBySubscriptionNextOperationSpec = {
2600
+ const listBySubscriptionNextOperationSpec$1 = {
2569
2601
  path: "{nextLink}",
2570
2602
  httpMethod: "GET",
2571
2603
  responses: {
@@ -2583,7 +2615,7 @@ const listBySubscriptionNextOperationSpec = {
2583
2615
  subscriptionId
2584
2616
  ],
2585
2617
  headerParameters: [accept],
2586
- serializer: serializer$4
2618
+ serializer: serializer$1
2587
2619
  };
2588
2620
 
2589
2621
  /*
@@ -2713,7 +2745,7 @@ class LinkedSubscriptionsImpl {
2713
2745
  * @param options The options parameters.
2714
2746
  */
2715
2747
  _listBySubscription(options) {
2716
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2748
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2717
2749
  }
2718
2750
  /**
2719
2751
  * Returns the properties of a Linked Subscription resource.
@@ -2722,7 +2754,7 @@ class LinkedSubscriptionsImpl {
2722
2754
  * @param options The options parameters.
2723
2755
  */
2724
2756
  get(resourceGroup, linkedSubscriptionName, options) {
2725
- return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, getOperationSpec$4);
2757
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, getOperationSpec);
2726
2758
  }
2727
2759
  /**
2728
2760
  * Delete the requested Linked Subscription resource.
@@ -2731,7 +2763,7 @@ class LinkedSubscriptionsImpl {
2731
2763
  * @param options The options parameters.
2732
2764
  */
2733
2765
  delete(resourceGroup, linkedSubscriptionName, options) {
2734
- return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, deleteOperationSpec$2);
2766
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, deleteOperationSpec);
2735
2767
  }
2736
2768
  /**
2737
2769
  * Create or update a linked subscription resource.
@@ -2741,7 +2773,7 @@ class LinkedSubscriptionsImpl {
2741
2773
  * @param options The options parameters.
2742
2774
  */
2743
2775
  createOrUpdate(resourceGroup, linkedSubscriptionName, resource, options) {
2744
- return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, createOrUpdateOperationSpec$1);
2776
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, createOrUpdateOperationSpec);
2745
2777
  }
2746
2778
  /**
2747
2779
  * Patch a Linked Subscription resource.
@@ -2751,7 +2783,7 @@ class LinkedSubscriptionsImpl {
2751
2783
  * @param options The options parameters.
2752
2784
  */
2753
2785
  update(resourceGroup, linkedSubscriptionName, resource, options) {
2754
- return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, updateOperationSpec$1);
2786
+ return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, updateOperationSpec);
2755
2787
  }
2756
2788
  /**
2757
2789
  * ListByResourceGroupNext
@@ -2768,11 +2800,11 @@ class LinkedSubscriptionsImpl {
2768
2800
  * @param options The options parameters.
2769
2801
  */
2770
2802
  _listBySubscriptionNext(nextLink, options) {
2771
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2803
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2772
2804
  }
2773
2805
  }
2774
2806
  // Operation Specifications
2775
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
2807
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2776
2808
  const listByResourceGroupOperationSpec = {
2777
2809
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions",
2778
2810
  httpMethod: "GET",
@@ -2791,9 +2823,9 @@ const listByResourceGroupOperationSpec = {
2791
2823
  resourceGroup
2792
2824
  ],
2793
2825
  headerParameters: [accept],
2794
- serializer: serializer$5
2826
+ serializer
2795
2827
  };
2796
- const listBySubscriptionOperationSpec$1 = {
2828
+ const listBySubscriptionOperationSpec = {
2797
2829
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions",
2798
2830
  httpMethod: "GET",
2799
2831
  responses: {
@@ -2807,9 +2839,9 @@ const listBySubscriptionOperationSpec$1 = {
2807
2839
  queryParameters: [apiVersion],
2808
2840
  urlParameters: [$host, subscriptionId],
2809
2841
  headerParameters: [accept],
2810
- serializer: serializer$5
2842
+ serializer
2811
2843
  };
2812
- const getOperationSpec$4 = {
2844
+ const getOperationSpec = {
2813
2845
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2814
2846
  httpMethod: "GET",
2815
2847
  responses: {
@@ -2828,9 +2860,9 @@ const getOperationSpec$4 = {
2828
2860
  linkedSubscriptionName
2829
2861
  ],
2830
2862
  headerParameters: [accept],
2831
- serializer: serializer$5
2863
+ serializer
2832
2864
  };
2833
- const deleteOperationSpec$2 = {
2865
+ const deleteOperationSpec = {
2834
2866
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2835
2867
  httpMethod: "DELETE",
2836
2868
  responses: {
@@ -2848,9 +2880,9 @@ const deleteOperationSpec$2 = {
2848
2880
  linkedSubscriptionName
2849
2881
  ],
2850
2882
  headerParameters: [accept],
2851
- serializer: serializer$5
2883
+ serializer
2852
2884
  };
2853
- const createOrUpdateOperationSpec$1 = {
2885
+ const createOrUpdateOperationSpec = {
2854
2886
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2855
2887
  httpMethod: "PUT",
2856
2888
  responses: {
@@ -2874,9 +2906,9 @@ const createOrUpdateOperationSpec$1 = {
2874
2906
  ],
2875
2907
  headerParameters: [accept, contentType],
2876
2908
  mediaType: "json",
2877
- serializer: serializer$5
2909
+ serializer
2878
2910
  };
2879
- const updateOperationSpec$1 = {
2911
+ const updateOperationSpec = {
2880
2912
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
2881
2913
  httpMethod: "PATCH",
2882
2914
  responses: {
@@ -2897,7 +2929,7 @@ const updateOperationSpec$1 = {
2897
2929
  ],
2898
2930
  headerParameters: [accept, contentType],
2899
2931
  mediaType: "json",
2900
- serializer: serializer$5
2932
+ serializer
2901
2933
  };
2902
2934
  const listByResourceGroupNextOperationSpec = {
2903
2935
  path: "{nextLink}",
@@ -2918,9 +2950,9 @@ const listByResourceGroupNextOperationSpec = {
2918
2950
  resourceGroup
2919
2951
  ],
2920
2952
  headerParameters: [accept],
2921
- serializer: serializer$5
2953
+ serializer
2922
2954
  };
2923
- const listBySubscriptionNextOperationSpec$1 = {
2955
+ const listBySubscriptionNextOperationSpec = {
2924
2956
  path: "{nextLink}",
2925
2957
  httpMethod: "GET",
2926
2958
  responses: {
@@ -2938,7 +2970,7 @@ const listBySubscriptionNextOperationSpec$1 = {
2938
2970
  subscriptionId
2939
2971
  ],
2940
2972
  headerParameters: [accept],
2941
- serializer: serializer$5
2973
+ serializer
2942
2974
  };
2943
2975
 
2944
2976
  /*
@@ -2948,7 +2980,7 @@ const listBySubscriptionNextOperationSpec$1 = {
2948
2980
  * Code generated by Microsoft (R) AutoRest Code Generator.
2949
2981
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2950
2982
  */
2951
- class AzureStackManagementClient extends coreClient.ServiceClient {
2983
+ class AzureStackManagementClient extends coreClient__namespace.ServiceClient {
2952
2984
  /**
2953
2985
  * Initializes a new instance of the AzureStackManagementClient class.
2954
2986
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -2957,6 +2989,7 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
2957
2989
  * @param options The parameter options
2958
2990
  */
2959
2991
  constructor(credentials, subscriptionId, options) {
2992
+ var _a, _b;
2960
2993
  if (credentials === undefined) {
2961
2994
  throw new Error("'credentials' cannot be null");
2962
2995
  }
@@ -2971,7 +3004,7 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
2971
3004
  requestContentType: "application/json; charset=utf-8",
2972
3005
  credential: credentials
2973
3006
  };
2974
- const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.1`;
3007
+ const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.2`;
2975
3008
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2976
3009
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2977
3010
  : `${packageDetails}`;
@@ -2980,7 +3013,7 @@ class AzureStackManagementClient extends coreClient.ServiceClient {
2980
3013
  }
2981
3014
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2982
3015
  userAgentPrefix
2983
- }, baseUri: options.endpoint || "https://management.azure.com" });
3016
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2984
3017
  super(optionsWithDefaults);
2985
3018
  // Parameter assignments
2986
3019
  this.subscriptionId = subscriptionId;