@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
@@ -1,94 +1,192 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
9
+ import {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ CustomerSubscription as CustomerSubscriptionMapper,
16
+ DeviceConfiguration as DeviceConfigurationMapper,
17
+ MarketplaceProductLogUpdate as MarketplaceProductLogUpdateMapper,
18
+ RegistrationParameter as RegistrationParameterMapper,
19
+ LinkedSubscriptionParameter as LinkedSubscriptionParameterMapper
20
+ } from "../models/mappers";
12
21
 
13
- export const acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
22
+ export const accept: OperationParameter = {
23
+ parameterPath: "accept",
15
24
  mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
25
+ defaultValue: "application/json",
26
+ isConstant: true,
27
+ serializedName: "Accept",
18
28
  type: {
19
29
  name: "String"
20
30
  }
21
31
  }
22
32
  };
23
- export const apiVersion: msRest.OperationQueryParameter = {
24
- parameterPath: "apiVersion",
33
+
34
+ export const $host: OperationURLParameter = {
35
+ parameterPath: "$host",
25
36
  mapper: {
37
+ serializedName: "$host",
26
38
  required: true,
39
+ type: {
40
+ name: "String"
41
+ }
42
+ },
43
+ skipEncoding: true
44
+ };
45
+
46
+ export const apiVersion: OperationQueryParameter = {
47
+ parameterPath: "apiVersion",
48
+ mapper: {
49
+ defaultValue: "2020-06-01-preview",
50
+ isConstant: true,
27
51
  serializedName: "api-version",
28
- defaultValue: '2017-06-01',
29
52
  type: {
30
53
  name: "String"
31
54
  }
32
55
  }
33
56
  };
34
- export const customerSubscriptionName: msRest.OperationURLParameter = {
35
- parameterPath: "customerSubscriptionName",
57
+
58
+ export const nextLink: OperationURLParameter = {
59
+ parameterPath: "nextLink",
36
60
  mapper: {
61
+ serializedName: "nextLink",
37
62
  required: true,
38
- serializedName: "customerSubscriptionName",
63
+ type: {
64
+ name: "String"
65
+ }
66
+ },
67
+ skipEncoding: true
68
+ };
69
+
70
+ export const verificationVersion: OperationURLParameter = {
71
+ parameterPath: "verificationVersion",
72
+ mapper: {
73
+ serializedName: "verificationVersion",
74
+ required: true,
75
+ type: {
76
+ name: "String"
77
+ }
78
+ }
79
+ };
80
+
81
+ export const versionCreationDate: OperationQueryParameter = {
82
+ parameterPath: ["options", "versionCreationDate"],
83
+ mapper: {
84
+ serializedName: "versionCreationDate",
39
85
  type: {
40
86
  name: "String"
41
87
  }
42
88
  }
43
89
  };
44
- export const nextPageLink: msRest.OperationURLParameter = {
45
- parameterPath: "nextPageLink",
90
+
91
+ export const subscriptionId: OperationURLParameter = {
92
+ parameterPath: "subscriptionId",
46
93
  mapper: {
94
+ serializedName: "subscriptionId",
47
95
  required: true,
48
- serializedName: "nextLink",
49
96
  type: {
50
97
  name: "String"
51
98
  }
52
- },
53
- skipEncoding: true
99
+ }
54
100
  };
55
- export const productName: msRest.OperationURLParameter = {
56
- parameterPath: "productName",
101
+
102
+ export const resourceGroup: OperationURLParameter = {
103
+ parameterPath: "resourceGroup",
57
104
  mapper: {
105
+ serializedName: "resourceGroup",
58
106
  required: true,
59
- serializedName: "productName",
60
107
  type: {
61
108
  name: "String"
62
109
  }
63
110
  }
64
111
  };
65
- export const registrationName: msRest.OperationURLParameter = {
112
+
113
+ export const registrationName: OperationURLParameter = {
66
114
  parameterPath: "registrationName",
67
115
  mapper: {
68
- required: true,
69
116
  serializedName: "registrationName",
117
+ required: true,
70
118
  type: {
71
119
  name: "String"
72
120
  }
73
121
  }
74
122
  };
75
- export const resourceGroup: msRest.OperationURLParameter = {
76
- parameterPath: "resourceGroup",
123
+
124
+ export const customerSubscriptionName: OperationURLParameter = {
125
+ parameterPath: "customerSubscriptionName",
77
126
  mapper: {
127
+ serializedName: "customerSubscriptionName",
78
128
  required: true,
79
- serializedName: "resourceGroup",
80
129
  type: {
81
130
  name: "String"
82
131
  }
83
132
  }
84
133
  };
85
- export const subscriptionId: msRest.OperationURLParameter = {
86
- parameterPath: "subscriptionId",
134
+
135
+ export const contentType: OperationParameter = {
136
+ parameterPath: ["options", "contentType"],
137
+ mapper: {
138
+ defaultValue: "application/json",
139
+ isConstant: true,
140
+ serializedName: "Content-Type",
141
+ type: {
142
+ name: "String"
143
+ }
144
+ }
145
+ };
146
+
147
+ export const customerCreationParameters: OperationParameter = {
148
+ parameterPath: "customerCreationParameters",
149
+ mapper: CustomerSubscriptionMapper
150
+ };
151
+
152
+ export const productName: OperationURLParameter = {
153
+ parameterPath: "productName",
87
154
  mapper: {
155
+ serializedName: "productName",
156
+ required: true,
157
+ type: {
158
+ name: "String"
159
+ }
160
+ }
161
+ };
162
+
163
+ export const deviceConfiguration: OperationParameter = {
164
+ parameterPath: ["options", "deviceConfiguration"],
165
+ mapper: DeviceConfigurationMapper
166
+ };
167
+
168
+ export const marketplaceProductLogUpdate: OperationParameter = {
169
+ parameterPath: ["options", "marketplaceProductLogUpdate"],
170
+ mapper: MarketplaceProductLogUpdateMapper
171
+ };
172
+
173
+ export const token: OperationParameter = {
174
+ parameterPath: "token",
175
+ mapper: RegistrationParameterMapper
176
+ };
177
+
178
+ export const linkedSubscriptionName: OperationURLParameter = {
179
+ parameterPath: "linkedSubscriptionName",
180
+ mapper: {
181
+ serializedName: "linkedSubscriptionName",
88
182
  required: true,
89
- serializedName: "subscriptionId",
90
183
  type: {
91
184
  name: "String"
92
185
  }
93
186
  }
94
187
  };
188
+
189
+ export const resource: OperationParameter = {
190
+ parameterPath: "resource",
191
+ mapper: LinkedSubscriptionParameterMapper
192
+ };
@@ -0,0 +1,93 @@
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 { CloudManifestFile } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { AzureStackManagementClient } from "../azureStackManagementClient";
14
+ import {
15
+ CloudManifestFileListOptionalParams,
16
+ CloudManifestFileListResponse,
17
+ CloudManifestFileGetOptionalParams,
18
+ CloudManifestFileGetResponse
19
+ } from "../models";
20
+
21
+ /** Class containing CloudManifestFile operations. */
22
+ export class CloudManifestFileImpl implements CloudManifestFile {
23
+ private readonly client: AzureStackManagementClient;
24
+
25
+ /**
26
+ * Initialize a new instance of the class CloudManifestFile class.
27
+ * @param client Reference to the service client
28
+ */
29
+ constructor(client: AzureStackManagementClient) {
30
+ this.client = client;
31
+ }
32
+
33
+ /**
34
+ * Returns a cloud specific manifest JSON file with latest version.
35
+ * @param options The options parameters.
36
+ */
37
+ list(
38
+ options?: CloudManifestFileListOptionalParams
39
+ ): Promise<CloudManifestFileListResponse> {
40
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
41
+ }
42
+
43
+ /**
44
+ * Returns a cloud specific manifest JSON file.
45
+ * @param verificationVersion Signing verification key version.
46
+ * @param options The options parameters.
47
+ */
48
+ get(
49
+ verificationVersion: string,
50
+ options?: CloudManifestFileGetOptionalParams
51
+ ): Promise<CloudManifestFileGetResponse> {
52
+ return this.client.sendOperationRequest(
53
+ { verificationVersion, options },
54
+ getOperationSpec
55
+ );
56
+ }
57
+ }
58
+ // Operation Specifications
59
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
60
+
61
+ const listOperationSpec: coreClient.OperationSpec = {
62
+ path: "/providers/Microsoft.AzureStack/cloudManifestFiles",
63
+ httpMethod: "GET",
64
+ responses: {
65
+ 200: {
66
+ bodyMapper: Mappers.CloudManifestFileResponse
67
+ },
68
+ default: {
69
+ bodyMapper: Mappers.ErrorResponse
70
+ }
71
+ },
72
+ queryParameters: [Parameters.apiVersion],
73
+ urlParameters: [Parameters.$host],
74
+ headerParameters: [Parameters.accept],
75
+ serializer
76
+ };
77
+ const getOperationSpec: coreClient.OperationSpec = {
78
+ path:
79
+ "/providers/Microsoft.AzureStack/cloudManifestFiles/{verificationVersion}",
80
+ httpMethod: "GET",
81
+ responses: {
82
+ 200: {
83
+ bodyMapper: Mappers.CloudManifestFileResponse
84
+ },
85
+ default: {
86
+ bodyMapper: Mappers.ErrorResponse
87
+ }
88
+ },
89
+ queryParameters: [Parameters.apiVersion, Parameters.versionCreationDate],
90
+ urlParameters: [Parameters.$host, Parameters.verificationVersion],
91
+ headerParameters: [Parameters.accept],
92
+ serializer
93
+ };