@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 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],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C,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Products } from "../operationsInterfaces";
3
+ import { AzureStackManagementClient } from "../azureStackManagementClient";
4
+ import { Product, ProductsListOptionalParams, ProductsGetOptionalParams, ProductsGetResponse, ProductsListDetailsOptionalParams, ProductsListDetailsResponse, ProductsGetProductsOptionalParams, ProductsGetProductsResponse, ProductsGetProductOptionalParams, ProductsGetProductResponse, ProductsUploadLogOptionalParams, ProductsUploadLogResponse } from "../models";
5
+ /** Class containing Products operations. */
6
+ export declare class ProductsImpl implements Products {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Products class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureStackManagementClient);
13
+ /**
14
+ * Returns a list of products.
15
+ * @param resourceGroup Name of the resource group.
16
+ * @param registrationName Name of the Azure Stack registration.
17
+ * @param options The options parameters.
18
+ */
19
+ list(resourceGroup: string, registrationName: string, options?: ProductsListOptionalParams): PagedAsyncIterableIterator<Product>;
20
+ private listPagingPage;
21
+ private listPagingAll;
22
+ /**
23
+ * Returns a list of products.
24
+ * @param resourceGroup Name of the resource group.
25
+ * @param registrationName Name of the Azure Stack registration.
26
+ * @param options The options parameters.
27
+ */
28
+ private _list;
29
+ /**
30
+ * Returns the specified product.
31
+ * @param resourceGroup Name of the resource group.
32
+ * @param registrationName Name of the Azure Stack registration.
33
+ * @param productName Name of the product.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroup: string, registrationName: string, productName: string, options?: ProductsGetOptionalParams): Promise<ProductsGetResponse>;
37
+ /**
38
+ * Returns the extended properties of a product.
39
+ * @param resourceGroup Name of the resource group.
40
+ * @param registrationName Name of the Azure Stack registration.
41
+ * @param productName Name of the product.
42
+ * @param options The options parameters.
43
+ */
44
+ listDetails(resourceGroup: string, registrationName: string, productName: string, options?: ProductsListDetailsOptionalParams): Promise<ProductsListDetailsResponse>;
45
+ /**
46
+ * Returns a list of products.
47
+ * @param resourceGroup Name of the resource group.
48
+ * @param registrationName Name of the Azure Stack registration.
49
+ * @param productName Name of the product.
50
+ * @param options The options parameters.
51
+ */
52
+ getProducts(resourceGroup: string, registrationName: string, productName: string, options?: ProductsGetProductsOptionalParams): Promise<ProductsGetProductsResponse>;
53
+ /**
54
+ * Returns the specified product.
55
+ * @param resourceGroup Name of the resource group.
56
+ * @param registrationName Name of the Azure Stack registration.
57
+ * @param productName Name of the product.
58
+ * @param options The options parameters.
59
+ */
60
+ getProduct(resourceGroup: string, registrationName: string, productName: string, options?: ProductsGetProductOptionalParams): Promise<ProductsGetProductResponse>;
61
+ /**
62
+ * Returns the specified product.
63
+ * @param resourceGroup Name of the resource group.
64
+ * @param registrationName Name of the Azure Stack registration.
65
+ * @param productName Name of the product.
66
+ * @param options The options parameters.
67
+ */
68
+ uploadLog(resourceGroup: string, registrationName: string, productName: string, options?: ProductsUploadLogOptionalParams): Promise<ProductsUploadLogResponse>;
69
+ /**
70
+ * ListNext
71
+ * @param resourceGroup Name of the resource group.
72
+ * @param registrationName Name of the Azure Stack registration.
73
+ * @param nextLink The nextLink from the previous successful call to the List method.
74
+ * @param options The options parameters.
75
+ */
76
+ private _listNext;
77
+ }
78
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/operations/products.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,OAAO,EAEP,0BAA0B,EAE1B,yBAAyB,EACzB,mBAA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AAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,303 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Products operations. */
14
+ export class ProductsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Products class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Returns a list of products.
24
+ * @param resourceGroup Name of the resource group.
25
+ * @param registrationName Name of the Azure Stack registration.
26
+ * @param options The options parameters.
27
+ */
28
+ list(resourceGroup, registrationName, options) {
29
+ const iter = this.listPagingAll(resourceGroup, registrationName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listPagingPage(resourceGroup, registrationName, options);
39
+ }
40
+ };
41
+ }
42
+ listPagingPage(resourceGroup, registrationName, options) {
43
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
44
+ let result = yield __await(this._list(resourceGroup, registrationName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listNext(resourceGroup, registrationName, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listPagingAll(resourceGroup, registrationName, options) {
55
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroup, registrationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Returns a list of products.
74
+ * @param resourceGroup Name of the resource group.
75
+ * @param registrationName Name of the Azure Stack registration.
76
+ * @param options The options parameters.
77
+ */
78
+ _list(resourceGroup, registrationName, options) {
79
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, options }, listOperationSpec);
80
+ }
81
+ /**
82
+ * Returns the specified product.
83
+ * @param resourceGroup Name of the resource group.
84
+ * @param registrationName Name of the Azure Stack registration.
85
+ * @param productName Name of the product.
86
+ * @param options The options parameters.
87
+ */
88
+ get(resourceGroup, registrationName, productName, options) {
89
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, getOperationSpec);
90
+ }
91
+ /**
92
+ * Returns the extended properties of a 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
+ listDetails(resourceGroup, registrationName, productName, options) {
99
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, listDetailsOperationSpec);
100
+ }
101
+ /**
102
+ * Returns a list of products.
103
+ * @param resourceGroup Name of the resource group.
104
+ * @param registrationName Name of the Azure Stack registration.
105
+ * @param productName Name of the product.
106
+ * @param options The options parameters.
107
+ */
108
+ getProducts(resourceGroup, registrationName, productName, options) {
109
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, getProductsOperationSpec);
110
+ }
111
+ /**
112
+ * Returns the specified product.
113
+ * @param resourceGroup Name of the resource group.
114
+ * @param registrationName Name of the Azure Stack registration.
115
+ * @param productName Name of the product.
116
+ * @param options The options parameters.
117
+ */
118
+ getProduct(resourceGroup, registrationName, productName, options) {
119
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, getProductOperationSpec);
120
+ }
121
+ /**
122
+ * Returns the specified product.
123
+ * @param resourceGroup Name of the resource group.
124
+ * @param registrationName Name of the Azure Stack registration.
125
+ * @param productName Name of the product.
126
+ * @param options The options parameters.
127
+ */
128
+ uploadLog(resourceGroup, registrationName, productName, options) {
129
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, productName, options }, uploadLogOperationSpec);
130
+ }
131
+ /**
132
+ * ListNext
133
+ * @param resourceGroup Name of the resource group.
134
+ * @param registrationName Name of the Azure Stack registration.
135
+ * @param nextLink The nextLink from the previous successful call to the List method.
136
+ * @param options The options parameters.
137
+ */
138
+ _listNext(resourceGroup, registrationName, nextLink, options) {
139
+ return this.client.sendOperationRequest({ resourceGroup, registrationName, nextLink, options }, listNextOperationSpec);
140
+ }
141
+ }
142
+ // Operation Specifications
143
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
144
+ const listOperationSpec = {
145
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",
146
+ httpMethod: "GET",
147
+ responses: {
148
+ 200: {
149
+ bodyMapper: Mappers.ProductList
150
+ },
151
+ default: {
152
+ bodyMapper: Mappers.ErrorResponse
153
+ }
154
+ },
155
+ queryParameters: [Parameters.apiVersion],
156
+ urlParameters: [
157
+ Parameters.$host,
158
+ Parameters.subscriptionId,
159
+ Parameters.resourceGroup,
160
+ Parameters.registrationName
161
+ ],
162
+ headerParameters: [Parameters.accept],
163
+ serializer
164
+ };
165
+ const getOperationSpec = {
166
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",
167
+ httpMethod: "GET",
168
+ responses: {
169
+ 200: {
170
+ bodyMapper: Mappers.Product
171
+ },
172
+ default: {
173
+ bodyMapper: Mappers.ErrorResponse
174
+ }
175
+ },
176
+ queryParameters: [Parameters.apiVersion],
177
+ urlParameters: [
178
+ Parameters.$host,
179
+ Parameters.subscriptionId,
180
+ Parameters.resourceGroup,
181
+ Parameters.registrationName,
182
+ Parameters.productName
183
+ ],
184
+ headerParameters: [Parameters.accept],
185
+ serializer
186
+ };
187
+ const listDetailsOperationSpec = {
188
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",
189
+ httpMethod: "POST",
190
+ responses: {
191
+ 200: {
192
+ bodyMapper: Mappers.ExtendedProduct
193
+ },
194
+ default: {
195
+ bodyMapper: Mappers.ErrorResponse
196
+ }
197
+ },
198
+ queryParameters: [Parameters.apiVersion],
199
+ urlParameters: [
200
+ Parameters.$host,
201
+ Parameters.subscriptionId,
202
+ Parameters.resourceGroup,
203
+ Parameters.registrationName,
204
+ Parameters.productName
205
+ ],
206
+ headerParameters: [Parameters.accept],
207
+ serializer
208
+ };
209
+ const getProductsOperationSpec = {
210
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts",
211
+ httpMethod: "POST",
212
+ responses: {
213
+ 200: {
214
+ bodyMapper: Mappers.ProductList
215
+ },
216
+ default: {
217
+ bodyMapper: Mappers.ErrorResponse
218
+ }
219
+ },
220
+ requestBody: Parameters.deviceConfiguration,
221
+ queryParameters: [Parameters.apiVersion],
222
+ urlParameters: [
223
+ Parameters.$host,
224
+ Parameters.subscriptionId,
225
+ Parameters.resourceGroup,
226
+ Parameters.registrationName,
227
+ Parameters.productName
228
+ ],
229
+ headerParameters: [Parameters.accept, Parameters.contentType],
230
+ mediaType: "json",
231
+ serializer
232
+ };
233
+ const getProductOperationSpec = {
234
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct",
235
+ httpMethod: "POST",
236
+ responses: {
237
+ 200: {
238
+ bodyMapper: Mappers.Product
239
+ },
240
+ default: {
241
+ bodyMapper: Mappers.ErrorResponse
242
+ }
243
+ },
244
+ requestBody: Parameters.deviceConfiguration,
245
+ queryParameters: [Parameters.apiVersion],
246
+ urlParameters: [
247
+ Parameters.$host,
248
+ Parameters.subscriptionId,
249
+ Parameters.resourceGroup,
250
+ Parameters.registrationName,
251
+ Parameters.productName
252
+ ],
253
+ headerParameters: [Parameters.accept, Parameters.contentType],
254
+ mediaType: "json",
255
+ serializer
256
+ };
257
+ const uploadLogOperationSpec = {
258
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog",
259
+ httpMethod: "POST",
260
+ responses: {
261
+ 200: {
262
+ bodyMapper: Mappers.ProductLog
263
+ },
264
+ default: {
265
+ bodyMapper: Mappers.ErrorResponse
266
+ }
267
+ },
268
+ requestBody: Parameters.marketplaceProductLogUpdate,
269
+ queryParameters: [Parameters.apiVersion],
270
+ urlParameters: [
271
+ Parameters.$host,
272
+ Parameters.subscriptionId,
273
+ Parameters.resourceGroup,
274
+ Parameters.registrationName,
275
+ Parameters.productName
276
+ ],
277
+ headerParameters: [Parameters.accept, Parameters.contentType],
278
+ mediaType: "json",
279
+ serializer
280
+ };
281
+ const listNextOperationSpec = {
282
+ path: "{nextLink}",
283
+ httpMethod: "GET",
284
+ responses: {
285
+ 200: {
286
+ bodyMapper: Mappers.ProductList
287
+ },
288
+ default: {
289
+ bodyMapper: Mappers.ErrorResponse
290
+ }
291
+ },
292
+ queryParameters: [Parameters.apiVersion],
293
+ urlParameters: [
294
+ Parameters.$host,
295
+ Parameters.nextLink,
296
+ Parameters.subscriptionId,
297
+ Parameters.resourceGroup,
298
+ Parameters.registrationName
299
+ ],
300
+ headerParameters: [Parameters.accept],
301
+ serializer
302
+ };
303
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/operations/products.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAoBnD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,aAAqB,EACrB,gBAAwB,EACxB,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;YACvE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,aAAqB,EACrB,gBAAwB,EACxB,OAAoC;;YAEpC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA,CAAC;YACxE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CA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ACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,2BAA2B;IACnD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,97 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Registrations } from "../operationsInterfaces";
3
+ import { AzureStackManagementClient } from "../azureStackManagementClient";
4
+ import { Registration, RegistrationsListOptionalParams, RegistrationsListBySubscriptionOptionalParams, RegistrationsGetOptionalParams, RegistrationsGetResponse, RegistrationsDeleteOptionalParams, RegistrationParameter, RegistrationsCreateOrUpdateOptionalParams, RegistrationsCreateOrUpdateResponse, RegistrationsUpdateOptionalParams, RegistrationsUpdateResponse, RegistrationsGetActivationKeyOptionalParams, RegistrationsGetActivationKeyResponse, RegistrationsEnableRemoteManagementOptionalParams } from "../models";
5
+ /** Class containing Registrations operations. */
6
+ export declare class RegistrationsImpl implements Registrations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Registrations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AzureStackManagementClient);
13
+ /**
14
+ * Returns a list of all registrations.
15
+ * @param resourceGroup Name of the resource group.
16
+ * @param options The options parameters.
17
+ */
18
+ list(resourceGroup: string, options?: RegistrationsListOptionalParams): PagedAsyncIterableIterator<Registration>;
19
+ private listPagingPage;
20
+ private listPagingAll;
21
+ /**
22
+ * Returns a list of all registrations under current subscription.
23
+ * @param options The options parameters.
24
+ */
25
+ listBySubscription(options?: RegistrationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Registration>;
26
+ private listBySubscriptionPagingPage;
27
+ private listBySubscriptionPagingAll;
28
+ /**
29
+ * Returns a list of all registrations.
30
+ * @param resourceGroup Name of the resource group.
31
+ * @param options The options parameters.
32
+ */
33
+ private _list;
34
+ /**
35
+ * Returns a list of all registrations under current subscription.
36
+ * @param options The options parameters.
37
+ */
38
+ private _listBySubscription;
39
+ /**
40
+ * Returns the properties of an Azure Stack registration.
41
+ * @param resourceGroup Name of the resource group.
42
+ * @param registrationName Name of the Azure Stack registration.
43
+ * @param options The options parameters.
44
+ */
45
+ get(resourceGroup: string, registrationName: string, options?: RegistrationsGetOptionalParams): Promise<RegistrationsGetResponse>;
46
+ /**
47
+ * Delete the requested 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
+ delete(resourceGroup: string, registrationName: string, options?: RegistrationsDeleteOptionalParams): Promise<void>;
53
+ /**
54
+ * Create or update an Azure Stack registration.
55
+ * @param resourceGroup Name of the resource group.
56
+ * @param registrationName Name of the Azure Stack registration.
57
+ * @param token Registration token
58
+ * @param options The options parameters.
59
+ */
60
+ createOrUpdate(resourceGroup: string, registrationName: string, token: RegistrationParameter, options?: RegistrationsCreateOrUpdateOptionalParams): Promise<RegistrationsCreateOrUpdateResponse>;
61
+ /**
62
+ * Patch an Azure Stack registration.
63
+ * @param resourceGroup Name of the resource group.
64
+ * @param registrationName Name of the Azure Stack registration.
65
+ * @param token Registration token
66
+ * @param options The options parameters.
67
+ */
68
+ update(resourceGroup: string, registrationName: string, token: RegistrationParameter, options?: RegistrationsUpdateOptionalParams): Promise<RegistrationsUpdateResponse>;
69
+ /**
70
+ * Returns Azure Stack Activation Key.
71
+ * @param resourceGroup Name of the resource group.
72
+ * @param registrationName Name of the Azure Stack registration.
73
+ * @param options The options parameters.
74
+ */
75
+ getActivationKey(resourceGroup: string, registrationName: string, options?: RegistrationsGetActivationKeyOptionalParams): Promise<RegistrationsGetActivationKeyResponse>;
76
+ /**
77
+ * Enables remote management for device under the Azure Stack registration.
78
+ * @param resourceGroup Name of the resource group.
79
+ * @param registrationName Name of the Azure Stack registration.
80
+ * @param options The options parameters.
81
+ */
82
+ enableRemoteManagement(resourceGroup: string, registrationName: string, options?: RegistrationsEnableRemoteManagementOptionalParams): Promise<void>;
83
+ /**
84
+ * ListNext
85
+ * @param resourceGroup Name of the resource group.
86
+ * @param nextLink The nextLink from the previous successful call to the List method.
87
+ * @param options The options parameters.
88
+ */
89
+ private _listNext;
90
+ /**
91
+ * ListBySubscriptionNext
92
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
93
+ * @param options The options parameters.
94
+ */
95
+ private _listBySubscriptionNext;
96
+ }
97
+ //# sourceMappingURL=registrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registrations.d.ts","sourceRoot":"","sources":["../../../src/operations/registrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,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