@azure/arm-azurestack 2.1.1 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -80
  4. package/dist/index.js +3000 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureStackManagementClient.d.ts +24 -0
  9. package/dist-esm/src/azureStackManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureStackManagementClient.js +57 -0
  11. package/dist-esm/src/azureStackManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +854 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +55 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +37 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +608 -394
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +20 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +163 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/cloudManifestFile.d.ts +24 -0
  29. package/dist-esm/src/operations/cloudManifestFile.d.ts.map +1 -0
  30. package/dist-esm/src/operations/cloudManifestFile.js +70 -0
  31. package/dist-esm/src/operations/cloudManifestFile.js.map +1 -0
  32. package/dist-esm/src/operations/customerSubscriptions.d.ts +63 -0
  33. package/dist-esm/src/operations/customerSubscriptions.d.ts.map +1 -0
  34. package/dist-esm/src/operations/customerSubscriptions.js +241 -0
  35. package/dist-esm/src/operations/customerSubscriptions.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +3 -1
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +6 -6
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/linkedSubscriptions.d.ts +83 -0
  41. package/dist-esm/src/operations/linkedSubscriptions.d.ts.map +1 -0
  42. package/dist-esm/src/operations/linkedSubscriptions.js +359 -0
  43. package/dist-esm/src/operations/linkedSubscriptions.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/products.d.ts +78 -0
  49. package/dist-esm/src/operations/products.d.ts.map +1 -0
  50. package/dist-esm/src/operations/products.js +303 -0
  51. package/dist-esm/src/operations/products.js.map +1 -0
  52. package/dist-esm/src/operations/registrations.d.ts +97 -0
  53. package/dist-esm/src/operations/registrations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/registrations.js +416 -0
  55. package/dist-esm/src/operations/registrations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts +16 -0
  57. package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/cloudManifestFile.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/cloudManifestFile.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts +38 -0
  61. package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/customerSubscriptions.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/customerSubscriptions.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
  69. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/products.d.ts +53 -0
  77. package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/products.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/registrations.d.ts +61 -0
  81. package/dist-esm/src/operationsInterfaces/registrations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/registrations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/registrations.js.map +1 -0
  84. package/dist-esm/test/sampleTest.d.ts +4 -0
  85. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  86. package/dist-esm/test/sampleTest.js +43 -0
  87. package/dist-esm/test/sampleTest.js.map +1 -0
  88. package/package.json +63 -32
  89. package/review/arm-azurestack.api.md +695 -0
  90. package/rollup.config.js +181 -30
  91. package/src/azureStackManagementClient.ts +88 -43
  92. package/src/index.ts +12 -0
  93. package/src/models/index.ts +725 -836
  94. package/src/models/mappers.ts +623 -384
  95. package/src/models/parameters.ts +130 -32
  96. package/src/operations/cloudManifestFile.ts +93 -0
  97. package/src/operations/customerSubscriptions.ts +191 -206
  98. package/src/operations/index.ts +6 -6
  99. package/src/operations/linkedSubscriptions.ts +450 -0
  100. package/src/operations/operations.ts +89 -75
  101. package/src/operations/products.ts +240 -299
  102. package/src/operations/registrations.ts +347 -266
  103. package/src/operationsInterfaces/cloudManifestFile.ts +34 -0
  104. package/src/operationsInterfaces/customerSubscriptions.ts +75 -0
  105. package/src/operationsInterfaces/index.ts +14 -0
  106. package/src/operationsInterfaces/linkedSubscriptions.ts +91 -0
  107. package/src/operationsInterfaces/operations.ts +22 -0
  108. package/src/operationsInterfaces/products.ts +104 -0
  109. package/src/operationsInterfaces/registrations.ts +116 -0
  110. package/tsconfig.json +3 -3
  111. package/types/arm-azurestack.d.ts +1206 -0
  112. package/types/tsdoc-metadata.json +11 -0
  113. package/dist/arm-azurestack.js +0 -2153
  114. package/dist/arm-azurestack.js.map +0 -1
  115. package/dist/arm-azurestack.min.js +0 -1
  116. package/dist/arm-azurestack.min.js.map +0 -1
  117. package/esm/azureStackManagementClient.d.ts +0 -28
  118. package/esm/azureStackManagementClient.d.ts.map +0 -1
  119. package/esm/azureStackManagementClient.js +0 -42
  120. package/esm/azureStackManagementClient.js.map +0 -1
  121. package/esm/azureStackManagementClientContext.d.ts +0 -23
  122. package/esm/azureStackManagementClientContext.d.ts.map +0 -1
  123. package/esm/azureStackManagementClientContext.js +0 -62
  124. package/esm/azureStackManagementClientContext.js.map +0 -1
  125. package/esm/models/customerSubscriptionsMappers.d.ts +0 -2
  126. package/esm/models/customerSubscriptionsMappers.d.ts.map +0 -1
  127. package/esm/models/customerSubscriptionsMappers.js +0 -9
  128. package/esm/models/customerSubscriptionsMappers.js.map +0 -1
  129. package/esm/models/index.d.ts +0 -1014
  130. package/esm/models/index.d.ts.map +0 -1
  131. package/esm/models/index.js +0 -8
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/mappers.d.ts +0 -31
  134. package/esm/models/mappers.d.ts.map +0 -1
  135. package/esm/models/mappers.js.map +0 -1
  136. package/esm/models/operationsMappers.d.ts +0 -2
  137. package/esm/models/operationsMappers.d.ts.map +0 -1
  138. package/esm/models/operationsMappers.js +0 -9
  139. package/esm/models/operationsMappers.js.map +0 -1
  140. package/esm/models/parameters.d.ts +0 -10
  141. package/esm/models/parameters.d.ts.map +0 -1
  142. package/esm/models/parameters.js +0 -92
  143. package/esm/models/parameters.js.map +0 -1
  144. package/esm/models/productsMappers.d.ts +0 -2
  145. package/esm/models/productsMappers.d.ts.map +0 -1
  146. package/esm/models/productsMappers.js +0 -9
  147. package/esm/models/productsMappers.js.map +0 -1
  148. package/esm/models/registrationsMappers.d.ts +0 -2
  149. package/esm/models/registrationsMappers.d.ts.map +0 -1
  150. package/esm/models/registrationsMappers.js +0 -9
  151. package/esm/models/registrationsMappers.js.map +0 -1
  152. package/esm/operations/customerSubscriptions.d.ts +0 -127
  153. package/esm/operations/customerSubscriptions.d.ts.map +0 -1
  154. package/esm/operations/customerSubscriptions.js +0 -188
  155. package/esm/operations/customerSubscriptions.js.map +0 -1
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js.map +0 -1
  158. package/esm/operations/operations.d.ts +0 -46
  159. package/esm/operations/operations.d.ts.map +0 -1
  160. package/esm/operations/operations.js +0 -77
  161. package/esm/operations/operations.js.map +0 -1
  162. package/esm/operations/products.d.ts +0 -169
  163. package/esm/operations/products.d.ts.map +0 -1
  164. package/esm/operations/products.js +0 -268
  165. package/esm/operations/products.js.map +0 -1
  166. package/esm/operations/registrations.d.ts +0 -160
  167. package/esm/operations/registrations.d.ts.map +0 -1
  168. package/esm/operations/registrations.js +0 -250
  169. package/esm/operations/registrations.js.map +0 -1
  170. package/src/azureStackManagementClientContext.ts +0 -69
  171. package/src/models/customerSubscriptionsMappers.ts +0 -24
  172. package/src/models/operationsMappers.ts +0 -14
  173. package/src/models/productsMappers.ts +0 -30
  174. package/src/models/registrationsMappers.ts +0 -26
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ CloudManifestFileListOptionalParams,
11
+ CloudManifestFileListResponse,
12
+ CloudManifestFileGetOptionalParams,
13
+ CloudManifestFileGetResponse
14
+ } from "../models";
15
+
16
+ /** Interface representing a CloudManifestFile. */
17
+ export interface CloudManifestFile {
18
+ /**
19
+ * Returns a cloud specific manifest JSON file with latest version.
20
+ * @param options The options parameters.
21
+ */
22
+ list(
23
+ options?: CloudManifestFileListOptionalParams
24
+ ): Promise<CloudManifestFileListResponse>;
25
+ /**
26
+ * Returns a cloud specific manifest JSON file.
27
+ * @param verificationVersion Signing verification key version.
28
+ * @param options The options parameters.
29
+ */
30
+ get(
31
+ verificationVersion: string,
32
+ options?: CloudManifestFileGetOptionalParams
33
+ ): Promise<CloudManifestFileGetResponse>;
34
+ }
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ CustomerSubscription,
12
+ CustomerSubscriptionsListOptionalParams,
13
+ CustomerSubscriptionsGetOptionalParams,
14
+ CustomerSubscriptionsGetResponse,
15
+ CustomerSubscriptionsDeleteOptionalParams,
16
+ CustomerSubscriptionsCreateOptionalParams,
17
+ CustomerSubscriptionsCreateResponse
18
+ } from "../models";
19
+
20
+ /// <reference lib="esnext.asynciterable" />
21
+ /** Interface representing a CustomerSubscriptions. */
22
+ export interface CustomerSubscriptions {
23
+ /**
24
+ * Returns a list of products.
25
+ * @param resourceGroup Name of the resource group.
26
+ * @param registrationName Name of the Azure Stack registration.
27
+ * @param options The options parameters.
28
+ */
29
+ list(
30
+ resourceGroup: string,
31
+ registrationName: string,
32
+ options?: CustomerSubscriptionsListOptionalParams
33
+ ): PagedAsyncIterableIterator<CustomerSubscription>;
34
+ /**
35
+ * Returns the specified product.
36
+ * @param resourceGroup Name of the resource group.
37
+ * @param registrationName Name of the Azure Stack registration.
38
+ * @param customerSubscriptionName Name of the product.
39
+ * @param options The options parameters.
40
+ */
41
+ get(
42
+ resourceGroup: string,
43
+ registrationName: string,
44
+ customerSubscriptionName: string,
45
+ options?: CustomerSubscriptionsGetOptionalParams
46
+ ): Promise<CustomerSubscriptionsGetResponse>;
47
+ /**
48
+ * Deletes a customer subscription under a registration.
49
+ * @param resourceGroup Name of the resource group.
50
+ * @param registrationName Name of the Azure Stack registration.
51
+ * @param customerSubscriptionName Name of the product.
52
+ * @param options The options parameters.
53
+ */
54
+ delete(
55
+ resourceGroup: string,
56
+ registrationName: string,
57
+ customerSubscriptionName: string,
58
+ options?: CustomerSubscriptionsDeleteOptionalParams
59
+ ): Promise<void>;
60
+ /**
61
+ * Creates a new customer subscription under a registration.
62
+ * @param resourceGroup Name of the resource group.
63
+ * @param registrationName Name of the Azure Stack registration.
64
+ * @param customerSubscriptionName Name of the product.
65
+ * @param customerCreationParameters Parameters use to create a customer subscription.
66
+ * @param options The options parameters.
67
+ */
68
+ create(
69
+ resourceGroup: string,
70
+ registrationName: string,
71
+ customerSubscriptionName: string,
72
+ customerCreationParameters: CustomerSubscription,
73
+ options?: CustomerSubscriptionsCreateOptionalParams
74
+ ): Promise<CustomerSubscriptionsCreateResponse>;
75
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export * from "./operations";
10
+ export * from "./cloudManifestFile";
11
+ export * from "./customerSubscriptions";
12
+ export * from "./products";
13
+ export * from "./registrations";
14
+ export * from "./linkedSubscriptions";
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ LinkedSubscription,
12
+ LinkedSubscriptionsListByResourceGroupOptionalParams,
13
+ LinkedSubscriptionsListBySubscriptionOptionalParams,
14
+ LinkedSubscriptionsGetOptionalParams,
15
+ LinkedSubscriptionsGetResponse,
16
+ LinkedSubscriptionsDeleteOptionalParams,
17
+ LinkedSubscriptionParameter,
18
+ LinkedSubscriptionsCreateOrUpdateOptionalParams,
19
+ LinkedSubscriptionsCreateOrUpdateResponse,
20
+ LinkedSubscriptionsUpdateOptionalParams,
21
+ LinkedSubscriptionsUpdateResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Interface representing a LinkedSubscriptions. */
26
+ export interface LinkedSubscriptions {
27
+ /**
28
+ * Returns a list of all linked subscriptions under current resource group.
29
+ * @param resourceGroup Name of the resource group.
30
+ * @param options The options parameters.
31
+ */
32
+ listByResourceGroup(
33
+ resourceGroup: string,
34
+ options?: LinkedSubscriptionsListByResourceGroupOptionalParams
35
+ ): PagedAsyncIterableIterator<LinkedSubscription>;
36
+ /**
37
+ * Returns a list of all linked subscriptions under current subscription.
38
+ * @param options The options parameters.
39
+ */
40
+ listBySubscription(
41
+ options?: LinkedSubscriptionsListBySubscriptionOptionalParams
42
+ ): PagedAsyncIterableIterator<LinkedSubscription>;
43
+ /**
44
+ * Returns the properties of a Linked Subscription resource.
45
+ * @param resourceGroup Name of the resource group.
46
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
47
+ * @param options The options parameters.
48
+ */
49
+ get(
50
+ resourceGroup: string,
51
+ linkedSubscriptionName: string,
52
+ options?: LinkedSubscriptionsGetOptionalParams
53
+ ): Promise<LinkedSubscriptionsGetResponse>;
54
+ /**
55
+ * Delete the requested Linked Subscription resource.
56
+ * @param resourceGroup Name of the resource group.
57
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
58
+ * @param options The options parameters.
59
+ */
60
+ delete(
61
+ resourceGroup: string,
62
+ linkedSubscriptionName: string,
63
+ options?: LinkedSubscriptionsDeleteOptionalParams
64
+ ): Promise<void>;
65
+ /**
66
+ * Create or update a linked subscription resource.
67
+ * @param resourceGroup Name of the resource group.
68
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
69
+ * @param resource Linked subscription resource parameter.
70
+ * @param options The options parameters.
71
+ */
72
+ createOrUpdate(
73
+ resourceGroup: string,
74
+ linkedSubscriptionName: string,
75
+ resource: LinkedSubscriptionParameter,
76
+ options?: LinkedSubscriptionsCreateOrUpdateOptionalParams
77
+ ): Promise<LinkedSubscriptionsCreateOrUpdateResponse>;
78
+ /**
79
+ * Patch a Linked Subscription resource.
80
+ * @param resourceGroup Name of the resource group.
81
+ * @param linkedSubscriptionName Name of the Linked Subscription resource.
82
+ * @param resource Linked subscription resource parameter.
83
+ * @param options The options parameters.
84
+ */
85
+ update(
86
+ resourceGroup: string,
87
+ linkedSubscriptionName: string,
88
+ resource: LinkedSubscriptionParameter,
89
+ options?: LinkedSubscriptionsUpdateOptionalParams
90
+ ): Promise<LinkedSubscriptionsUpdateResponse>;
91
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Returns the list of supported REST operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Product,
12
+ ProductsListOptionalParams,
13
+ ProductsGetOptionalParams,
14
+ ProductsGetResponse,
15
+ ProductsListDetailsOptionalParams,
16
+ ProductsListDetailsResponse,
17
+ ProductsGetProductsOptionalParams,
18
+ ProductsGetProductsResponse,
19
+ ProductsGetProductOptionalParams,
20
+ ProductsGetProductResponse,
21
+ ProductsUploadLogOptionalParams,
22
+ ProductsUploadLogResponse
23
+ } from "../models";
24
+
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Interface representing a Products. */
27
+ export interface Products {
28
+ /**
29
+ * Returns a list of products.
30
+ * @param resourceGroup Name of the resource group.
31
+ * @param registrationName Name of the Azure Stack registration.
32
+ * @param options The options parameters.
33
+ */
34
+ list(
35
+ resourceGroup: string,
36
+ registrationName: string,
37
+ options?: ProductsListOptionalParams
38
+ ): PagedAsyncIterableIterator<Product>;
39
+ /**
40
+ * Returns the specified product.
41
+ * @param resourceGroup Name of the resource group.
42
+ * @param registrationName Name of the Azure Stack registration.
43
+ * @param productName Name of the product.
44
+ * @param options The options parameters.
45
+ */
46
+ get(
47
+ resourceGroup: string,
48
+ registrationName: string,
49
+ productName: string,
50
+ options?: ProductsGetOptionalParams
51
+ ): Promise<ProductsGetResponse>;
52
+ /**
53
+ * Returns the extended properties of a product.
54
+ * @param resourceGroup Name of the resource group.
55
+ * @param registrationName Name of the Azure Stack registration.
56
+ * @param productName Name of the product.
57
+ * @param options The options parameters.
58
+ */
59
+ listDetails(
60
+ resourceGroup: string,
61
+ registrationName: string,
62
+ productName: string,
63
+ options?: ProductsListDetailsOptionalParams
64
+ ): Promise<ProductsListDetailsResponse>;
65
+ /**
66
+ * Returns a list of products.
67
+ * @param resourceGroup Name of the resource group.
68
+ * @param registrationName Name of the Azure Stack registration.
69
+ * @param productName Name of the product.
70
+ * @param options The options parameters.
71
+ */
72
+ getProducts(
73
+ resourceGroup: string,
74
+ registrationName: string,
75
+ productName: string,
76
+ options?: ProductsGetProductsOptionalParams
77
+ ): Promise<ProductsGetProductsResponse>;
78
+ /**
79
+ * Returns the specified product.
80
+ * @param resourceGroup Name of the resource group.
81
+ * @param registrationName Name of the Azure Stack registration.
82
+ * @param productName Name of the product.
83
+ * @param options The options parameters.
84
+ */
85
+ getProduct(
86
+ resourceGroup: string,
87
+ registrationName: string,
88
+ productName: string,
89
+ options?: ProductsGetProductOptionalParams
90
+ ): Promise<ProductsGetProductResponse>;
91
+ /**
92
+ * Returns the specified product.
93
+ * @param resourceGroup Name of the resource group.
94
+ * @param registrationName Name of the Azure Stack registration.
95
+ * @param productName Name of the product.
96
+ * @param options The options parameters.
97
+ */
98
+ uploadLog(
99
+ resourceGroup: string,
100
+ registrationName: string,
101
+ productName: string,
102
+ options?: ProductsUploadLogOptionalParams
103
+ ): Promise<ProductsUploadLogResponse>;
104
+ }
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Registration,
12
+ RegistrationsListOptionalParams,
13
+ RegistrationsListBySubscriptionOptionalParams,
14
+ RegistrationsGetOptionalParams,
15
+ RegistrationsGetResponse,
16
+ RegistrationsDeleteOptionalParams,
17
+ RegistrationParameter,
18
+ RegistrationsCreateOrUpdateOptionalParams,
19
+ RegistrationsCreateOrUpdateResponse,
20
+ RegistrationsUpdateOptionalParams,
21
+ RegistrationsUpdateResponse,
22
+ RegistrationsGetActivationKeyOptionalParams,
23
+ RegistrationsGetActivationKeyResponse,
24
+ RegistrationsEnableRemoteManagementOptionalParams
25
+ } from "../models";
26
+
27
+ /// <reference lib="esnext.asynciterable" />
28
+ /** Interface representing a Registrations. */
29
+ export interface Registrations {
30
+ /**
31
+ * Returns a list of all registrations.
32
+ * @param resourceGroup Name of the resource group.
33
+ * @param options The options parameters.
34
+ */
35
+ list(
36
+ resourceGroup: string,
37
+ options?: RegistrationsListOptionalParams
38
+ ): PagedAsyncIterableIterator<Registration>;
39
+ /**
40
+ * Returns a list of all registrations under current subscription.
41
+ * @param options The options parameters.
42
+ */
43
+ listBySubscription(
44
+ options?: RegistrationsListBySubscriptionOptionalParams
45
+ ): PagedAsyncIterableIterator<Registration>;
46
+ /**
47
+ * Returns the properties of an Azure Stack registration.
48
+ * @param resourceGroup Name of the resource group.
49
+ * @param registrationName Name of the Azure Stack registration.
50
+ * @param options The options parameters.
51
+ */
52
+ get(
53
+ resourceGroup: string,
54
+ registrationName: string,
55
+ options?: RegistrationsGetOptionalParams
56
+ ): Promise<RegistrationsGetResponse>;
57
+ /**
58
+ * Delete the requested Azure Stack registration.
59
+ * @param resourceGroup Name of the resource group.
60
+ * @param registrationName Name of the Azure Stack registration.
61
+ * @param options The options parameters.
62
+ */
63
+ delete(
64
+ resourceGroup: string,
65
+ registrationName: string,
66
+ options?: RegistrationsDeleteOptionalParams
67
+ ): Promise<void>;
68
+ /**
69
+ * Create or update an Azure Stack registration.
70
+ * @param resourceGroup Name of the resource group.
71
+ * @param registrationName Name of the Azure Stack registration.
72
+ * @param token Registration token
73
+ * @param options The options parameters.
74
+ */
75
+ createOrUpdate(
76
+ resourceGroup: string,
77
+ registrationName: string,
78
+ token: RegistrationParameter,
79
+ options?: RegistrationsCreateOrUpdateOptionalParams
80
+ ): Promise<RegistrationsCreateOrUpdateResponse>;
81
+ /**
82
+ * Patch an Azure Stack registration.
83
+ * @param resourceGroup Name of the resource group.
84
+ * @param registrationName Name of the Azure Stack registration.
85
+ * @param token Registration token
86
+ * @param options The options parameters.
87
+ */
88
+ update(
89
+ resourceGroup: string,
90
+ registrationName: string,
91
+ token: RegistrationParameter,
92
+ options?: RegistrationsUpdateOptionalParams
93
+ ): Promise<RegistrationsUpdateResponse>;
94
+ /**
95
+ * Returns Azure Stack Activation Key.
96
+ * @param resourceGroup Name of the resource group.
97
+ * @param registrationName Name of the Azure Stack registration.
98
+ * @param options The options parameters.
99
+ */
100
+ getActivationKey(
101
+ resourceGroup: string,
102
+ registrationName: string,
103
+ options?: RegistrationsGetActivationKeyOptionalParams
104
+ ): Promise<RegistrationsGetActivationKeyResponse>;
105
+ /**
106
+ * Enables remote management for device under the Azure Stack registration.
107
+ * @param resourceGroup Name of the resource group.
108
+ * @param registrationName Name of the Azure Stack registration.
109
+ * @param options The options parameters.
110
+ */
111
+ enableRemoteManagement(
112
+ resourceGroup: string,
113
+ registrationName: string,
114
+ options?: RegistrationsEnableRemoteManagementOptionalParams
115
+ ): Promise<void>;
116
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }