@azure/arm-azurestackhci 1.1.0 → 2.0.1-alpha.20220114.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 (144) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +2369 -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/azureStackHCIClient.d.ts +21 -0
  9. package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureStackHCIClient.js +54 -0
  11. package/dist-esm/src/azureStackHCIClient.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/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +864 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +135 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +23 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +881 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +16 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +137 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/arcSettings.d.ts +72 -0
  33. package/dist-esm/src/operations/arcSettings.d.ts.map +1 -0
  34. package/dist-esm/src/operations/arcSettings.js +281 -0
  35. package/dist-esm/src/operations/arcSettings.js.map +1 -0
  36. package/dist-esm/src/operations/clusters.d.ts +83 -0
  37. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  38. package/dist-esm/src/operations/clusters.js +356 -0
  39. package/dist-esm/src/operations/clusters.js.map +1 -0
  40. package/dist-esm/src/operations/extensions.d.ts +109 -0
  41. package/dist-esm/src/operations/extensions.d.ts.map +1 -0
  42. package/dist-esm/src/operations/extensions.js +462 -0
  43. package/dist-esm/src/operations/extensions.js.map +1 -0
  44. package/dist-esm/src/operations/index.d.ts +5 -0
  45. package/dist-esm/src/operations/index.d.ts.map +1 -0
  46. package/dist-esm/src/operations/index.js +12 -0
  47. package/dist-esm/src/operations/index.js.map +1 -0
  48. package/dist-esm/src/operations/operations.d.ts +18 -0
  49. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/operations.js +46 -0
  51. package/dist-esm/src/operations/operations.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +47 -0
  53. package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/arcSettings.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/arcSettings.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/clusters.d.ts +47 -0
  57. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/extensions.d.ts +82 -0
  61. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/extensions.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/test/sampleTest.d.ts +2 -0
  73. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  74. package/dist-esm/test/sampleTest.js +40 -0
  75. package/dist-esm/test/sampleTest.js.map +1 -0
  76. package/package.json +65 -22
  77. package/review/arm-azurestackhci.api.md +650 -0
  78. package/rollup.config.js +181 -30
  79. package/src/azureStackHCIClient.ts +78 -37
  80. package/src/index.ts +12 -0
  81. package/src/lroImpl.ts +34 -0
  82. package/src/models/index.ts +775 -366
  83. package/src/models/mappers.ts +635 -239
  84. package/src/models/parameters.ts +112 -35
  85. package/src/operations/arcSettings.ts +394 -0
  86. package/src/operations/clusters.ts +279 -309
  87. package/src/operations/extensions.ts +672 -0
  88. package/src/operations/index.ts +6 -6
  89. package/src/operations/operations.ts +30 -45
  90. package/src/operationsInterfaces/arcSettings.ts +89 -0
  91. package/src/operationsInterfaces/clusters.ts +91 -0
  92. package/src/operationsInterfaces/extensions.ts +162 -0
  93. package/src/operationsInterfaces/index.ts +12 -0
  94. package/src/operationsInterfaces/operations.ts +21 -0
  95. package/tsconfig.json +3 -3
  96. package/types/arm-azurestackhci.d.ts +1146 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-azurestackhci.js +0 -1151
  99. package/dist/arm-azurestackhci.js.map +0 -1
  100. package/dist/arm-azurestackhci.min.js +0 -1
  101. package/dist/arm-azurestackhci.min.js.map +0 -1
  102. package/esm/azureStackHCIClient.d.ts +0 -25
  103. package/esm/azureStackHCIClient.d.ts.map +0 -1
  104. package/esm/azureStackHCIClient.js +0 -39
  105. package/esm/azureStackHCIClient.js.map +0 -1
  106. package/esm/azureStackHCIClientContext.d.ts +0 -22
  107. package/esm/azureStackHCIClientContext.d.ts.map +0 -1
  108. package/esm/azureStackHCIClientContext.js +0 -61
  109. package/esm/azureStackHCIClientContext.js.map +0 -1
  110. package/esm/models/clustersMappers.d.ts +0 -2
  111. package/esm/models/clustersMappers.d.ts.map +0 -1
  112. package/esm/models/clustersMappers.js +0 -9
  113. package/esm/models/clustersMappers.js.map +0 -1
  114. package/esm/models/index.d.ts +0 -509
  115. package/esm/models/index.d.ts.map +0 -1
  116. package/esm/models/index.js +0 -8
  117. package/esm/models/index.js.map +0 -1
  118. package/esm/models/mappers.d.ts +0 -19
  119. package/esm/models/mappers.d.ts.map +0 -1
  120. package/esm/models/mappers.js +0 -527
  121. package/esm/models/mappers.js.map +0 -1
  122. package/esm/models/operationsMappers.d.ts +0 -2
  123. package/esm/models/operationsMappers.d.ts.map +0 -1
  124. package/esm/models/operationsMappers.js +0 -9
  125. package/esm/models/operationsMappers.js.map +0 -1
  126. package/esm/models/parameters.d.ts +0 -8
  127. package/esm/models/parameters.d.ts.map +0 -1
  128. package/esm/models/parameters.js +0 -82
  129. package/esm/models/parameters.js.map +0 -1
  130. package/esm/operations/clusters.d.ts +0 -169
  131. package/esm/operations/clusters.d.ts.map +0 -1
  132. package/esm/operations/clusters.js +0 -273
  133. package/esm/operations/clusters.js.map +0 -1
  134. package/esm/operations/index.d.ts +0 -3
  135. package/esm/operations/index.d.ts.map +0 -1
  136. package/esm/operations/index.js +0 -12
  137. package/esm/operations/index.js.map +0 -1
  138. package/esm/operations/operations.d.ts +0 -28
  139. package/esm/operations/operations.d.ts.map +0 -1
  140. package/esm/operations/operations.js +0 -51
  141. package/esm/operations/operations.js.map +0 -1
  142. package/src/azureStackHCIClientContext.ts +0 -68
  143. package/src/models/clustersMappers.ts +0 -23
  144. package/src/models/operationsMappers.ts +0 -16
@@ -0,0 +1,54 @@
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 * as coreClient from "@azure/core-client";
9
+ import { ArcSettingsImpl, ClustersImpl, ExtensionsImpl, OperationsImpl } from "./operations";
10
+ export class AzureStackHCIClient extends coreClient.ServiceClient {
11
+ /**
12
+ * Initializes a new instance of the AzureStackHCIClient class.
13
+ * @param credentials Subscription credentials which uniquely identify client subscription.
14
+ * @param subscriptionId The ID of the target subscription.
15
+ * @param options The parameter options
16
+ */
17
+ constructor(credentials, subscriptionId, options) {
18
+ if (credentials === undefined) {
19
+ throw new Error("'credentials' cannot be null");
20
+ }
21
+ if (subscriptionId === undefined) {
22
+ throw new Error("'subscriptionId' cannot be null");
23
+ }
24
+ // Initializing default values for options
25
+ if (!options) {
26
+ options = {};
27
+ }
28
+ const defaults = {
29
+ requestContentType: "application/json; charset=utf-8",
30
+ credential: credentials
31
+ };
32
+ const packageDetails = `azsdk-js-arm-azurestackhci/2.0.0`;
33
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
+ : `${packageDetails}`;
36
+ if (!options.credentialScopes) {
37
+ options.credentialScopes = ["https://management.azure.com/.default"];
38
+ }
39
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ userAgentPrefix
41
+ }, baseUri: options.endpoint || "https://management.azure.com" });
42
+ super(optionsWithDefaults);
43
+ // Parameter assignments
44
+ this.subscriptionId = subscriptionId;
45
+ // Assigning values to Constant parameters
46
+ this.$host = options.$host || "https://management.azure.com";
47
+ this.apiVersion = options.apiVersion || "2021-09-01";
48
+ this.arcSettings = new ArcSettingsImpl(this);
49
+ this.clusters = new ClustersImpl(this);
50
+ this.extensions = new ExtensionsImpl(this);
51
+ this.operations = new OperationsImpl(this);
52
+ }
53
+ }
54
+ //# sourceMappingURL=azureStackHCIClient.js.map
@@ -0,0 +1 @@
1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3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAMF"}
@@ -0,0 +1,5 @@
1
+ /// <reference lib="esnext.asynciterable" />
2
+ export * from "./models";
3
+ export { AzureStackHCIClient } from "./azureStackHCIClient";
4
+ export * from "./operationsInterfaces";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,12 @@
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
+ /// <reference lib="esnext.asynciterable" />
9
+ export * from "./models";
10
+ export { AzureStackHCIClient } from "./azureStackHCIClient";
11
+ export * from "./operationsInterfaces";
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare class LroImpl<T> implements LongRunningOperation<T> {
3
+ private sendOperationFn;
4
+ private args;
5
+ private spec;
6
+ requestPath: string;
7
+ requestMethod: string;
8
+ constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
9
+ readonly requestBody?: unknown;
10
+ readonly path?: string;
11
+ readonly httpMethod: string;
12
+ } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
+ sendInitialRequest(): Promise<LroResponse<T>>;
14
+ sendPollRequest(path: string): Promise<LroResponse<T>>;
15
+ }
16
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
@@ -0,0 +1,29 @@
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 { __awaiter, __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ sendInitialRequest() {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ return this.sendOperationFn(this.args, this.spec);
20
+ });
21
+ }
22
+ sendPollRequest(path) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
25
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
26
+ });
27
+ }
28
+ }
29
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}