@azure/arm-baremetalinfrastructure 1.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 (97) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1378 -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/samples-dev/azureBareMetalInstancesGetSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +39 -0
  11. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js.map +1 -0
  12. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +59 -0
  15. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +58 -0
  19. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +60 -0
  23. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js.map +1 -0
  24. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  27. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  28. package/dist-esm/src/bareMetalInfrastructureClient.d.ts +21 -0
  29. package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +1 -0
  30. package/dist-esm/src/bareMetalInfrastructureClient.js +101 -0
  31. package/dist-esm/src/bareMetalInfrastructureClient.js.map +1 -0
  32. package/dist-esm/src/index.d.ts +6 -0
  33. package/dist-esm/src/index.d.ts.map +1 -0
  34. package/dist-esm/src/index.js +13 -0
  35. package/dist-esm/src/index.js.map +1 -0
  36. package/dist-esm/src/models/index.d.ts +519 -0
  37. package/dist-esm/src/models/index.d.ts.map +1 -0
  38. package/dist-esm/src/models/index.js +152 -0
  39. package/dist-esm/src/models/index.js.map +1 -0
  40. package/dist-esm/src/models/mappers.d.ts +20 -0
  41. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  42. package/dist-esm/src/models/mappers.js +513 -0
  43. package/dist-esm/src/models/mappers.js.map +1 -0
  44. package/dist-esm/src/models/parameters.d.ts +11 -0
  45. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  46. package/dist-esm/src/models/parameters.js +105 -0
  47. package/dist-esm/src/models/parameters.js.map +1 -0
  48. package/dist-esm/src/operations/azureBareMetalInstances.d.ts +73 -0
  49. package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +1 -0
  50. package/dist-esm/src/operations/azureBareMetalInstances.js +334 -0
  51. package/dist-esm/src/operations/azureBareMetalInstances.js.map +1 -0
  52. package/dist-esm/src/operations/index.d.ts +3 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/dist-esm/src/operations/index.js +10 -0
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/operations.d.ts +26 -0
  57. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/operations.js +101 -0
  59. package/dist-esm/src/operations/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts +35 -0
  61. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -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/src/pagingHelper.d.ts +13 -0
  73. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  74. package/dist-esm/src/pagingHelper.js +32 -0
  75. package/dist-esm/src/pagingHelper.js.map +1 -0
  76. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts +4 -0
  77. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts.map +1 -0
  78. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +78 -0
  79. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +1 -0
  80. package/package.json +121 -0
  81. package/review/arm-baremetalinfrastructure.api.md +325 -0
  82. package/rollup.config.js +122 -0
  83. package/src/bareMetalInfrastructureClient.ts +142 -0
  84. package/src/index.ts +13 -0
  85. package/src/models/index.ts +566 -0
  86. package/src/models/mappers.ts +549 -0
  87. package/src/models/parameters.ts +119 -0
  88. package/src/operations/azureBareMetalInstances.ts +395 -0
  89. package/src/operations/index.ts +10 -0
  90. package/src/operations/operations.ts +103 -0
  91. package/src/operationsInterfaces/azureBareMetalInstances.ts +67 -0
  92. package/src/operationsInterfaces/index.ts +10 -0
  93. package/src/operationsInterfaces/operations.ts +22 -0
  94. package/src/pagingHelper.ts +39 -0
  95. package/tsconfig.json +33 -0
  96. package/types/arm-baremetalinfrastructure.d.ts +633 -0
  97. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,10 @@
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
+ export * from "./azureBareMetalInstances";
9
+ export * from "./operations";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Gets a list of AzureBareMetal management operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,32 @@
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
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=baremetalinfrastructure_operations_test.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baremetalinfrastructure_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/baremetalinfrastructure_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,78 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { assert } from "chai";
12
+ import { BareMetalInfrastructureClient } from "../src/bareMetalInfrastructureClient";
13
+ const replaceableVariables = {
14
+ AZURE_CLIENT_ID: "azure_client_id",
15
+ AZURE_CLIENT_SECRET: "azure_client_secret",
16
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
17
+ SUBSCRIPTION_ID: "azure_subscription_id"
18
+ };
19
+ const recorderOptions = {
20
+ envSetupForPlayback: replaceableVariables
21
+ };
22
+ export const testPollingOptions = {
23
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
24
+ };
25
+ describe("baremetalinfrastructure test", () => {
26
+ let recorder;
27
+ let subscriptionId;
28
+ let client;
29
+ let location;
30
+ let resourceGroup;
31
+ let resourcename;
32
+ beforeEach(function () {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ recorder = new Recorder(this.currentTest);
35
+ yield recorder.start(recorderOptions);
36
+ subscriptionId = env.SUBSCRIPTION_ID || '';
37
+ // This is an example of how the environment variables are used
38
+ const credential = createTestCredential();
39
+ client = new BareMetalInfrastructureClient(credential, subscriptionId, recorder.configureClientOptions({}));
40
+ location = "eastus";
41
+ resourceGroup = "myjstest";
42
+ resourcename = "resourcetest";
43
+ });
44
+ });
45
+ afterEach(function () {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ yield recorder.stop();
48
+ });
49
+ });
50
+ it("operation list test", function () {
51
+ var _a, e_1, _b, _c;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const resArray = new Array();
54
+ try {
55
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
56
+ _c = _f.value;
57
+ _d = false;
58
+ try {
59
+ let item = _c;
60
+ resArray.push(item);
61
+ }
62
+ finally {
63
+ _d = true;
64
+ }
65
+ }
66
+ }
67
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
68
+ finally {
69
+ try {
70
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
71
+ }
72
+ finally { if (e_1) throw e_1.error; }
73
+ }
74
+ assert.notEqual(resArray.length, 0);
75
+ });
76
+ });
77
+ });
78
+ //# sourceMappingURL=baremetalinfrastructure_operations_test.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baremetalinfrastructure_operations_test.spec.js","sourceRoot":"","sources":["../../test/baremetalinfrastructure_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAErF,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAqC,CAAC;IAC1C,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YAC5G,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,YAAY,GAAG,cAAc,CAAC;QAEhC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;;YACxB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;oBAAxB,cAAwB;oBAAxB,WAAwB;;wBAApC,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;YACD,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,121 @@
1
+ {
2
+ "name": "@azure/arm-baremetalinfrastructure",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for BareMetalInfrastructureClient.",
6
+ "version": "1.0.0-beta.1",
7
+ "engines": {
8
+ "node": ">=14.0.0"
9
+ },
10
+ "dependencies": {
11
+ "@azure/core-paging": "^1.2.0",
12
+ "@azure/core-client": "^1.7.0",
13
+ "@azure/core-auth": "^1.3.0",
14
+ "@azure/core-rest-pipeline": "^1.8.0",
15
+ "tslib": "^2.2.0"
16
+ },
17
+ "keywords": [
18
+ "node",
19
+ "azure",
20
+ "typescript",
21
+ "browser",
22
+ "isomorphic"
23
+ ],
24
+ "license": "MIT",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist-esm/src/index.js",
27
+ "types": "./types/arm-baremetalinfrastructure.d.ts",
28
+ "devDependencies": {
29
+ "@microsoft/api-extractor": "^7.31.1",
30
+ "@rollup/plugin-commonjs": "^24.0.0",
31
+ "@rollup/plugin-json": "^6.0.0",
32
+ "@rollup/plugin-multi-entry": "^6.0.0",
33
+ "@rollup/plugin-node-resolve": "^13.1.3",
34
+ "mkdirp": "^2.1.2",
35
+ "rollup": "^2.66.1",
36
+ "rollup-plugin-sourcemaps": "^0.6.3",
37
+ "typescript": "~5.0.0",
38
+ "uglify-js": "^3.4.9",
39
+ "rimraf": "^3.0.0",
40
+ "dotenv": "^16.0.0",
41
+ "@azure/identity": "^2.0.1",
42
+ "@azure-tools/test-recorder": "^3.0.0",
43
+ "@azure-tools/test-credential": "^1.0.0",
44
+ "mocha": "^7.1.1",
45
+ "@types/chai": "^4.2.8",
46
+ "chai": "^4.2.0",
47
+ "cross-env": "^7.0.2",
48
+ "@types/node": "^14.0.0",
49
+ "@azure/dev-tool": "^1.0.0"
50
+ },
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
54
+ },
55
+ "bugs": {
56
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
57
+ },
58
+ "files": [
59
+ "dist/**/*.js",
60
+ "dist/**/*.js.map",
61
+ "dist/**/*.d.ts",
62
+ "dist/**/*.d.ts.map",
63
+ "dist-esm/**/*.js",
64
+ "dist-esm/**/*.js.map",
65
+ "dist-esm/**/*.d.ts",
66
+ "dist-esm/**/*.d.ts.map",
67
+ "src/**/*.ts",
68
+ "README.md",
69
+ "LICENSE",
70
+ "rollup.config.js",
71
+ "tsconfig.json",
72
+ "review/*",
73
+ "CHANGELOG.md",
74
+ "types/*"
75
+ ],
76
+ "scripts": {
77
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
78
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
79
+ "prepack": "npm run build",
80
+ "pack": "npm pack 2>&1",
81
+ "extract-api": "api-extractor run --local",
82
+ "lint": "echo skipped",
83
+ "audit": "echo skipped",
84
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
85
+ "build:node": "echo skipped",
86
+ "build:browser": "echo skipped",
87
+ "build:test": "echo skipped",
88
+ "build:samples": "echo skipped.",
89
+ "check-format": "echo skipped",
90
+ "execute:samples": "echo skipped",
91
+ "format": "echo skipped",
92
+ "test": "npm run integration-test",
93
+ "test:node": "echo skipped",
94
+ "test:browser": "echo skipped",
95
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
96
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
97
+ "unit-test:browser": "echo skipped",
98
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
99
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
100
+ "integration-test:browser": "echo skipped"
101
+ },
102
+ "sideEffects": false,
103
+ "//metadata": {
104
+ "constantPaths": [
105
+ {
106
+ "path": "src/bareMetalInfrastructureClient.ts",
107
+ "prefix": "packageDetails"
108
+ }
109
+ ]
110
+ },
111
+ "autoPublish": true,
112
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/baremetalinfrastructure/arm-baremetalinfrastructure",
113
+ "//sampleConfiguration": {
114
+ "productName": "",
115
+ "productSlugs": [
116
+ "azure"
117
+ ],
118
+ "disableDocsMs": true,
119
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-baremetalinfrastructure?view=azure-node-preview"
120
+ }
121
+ }
@@ -0,0 +1,325 @@
1
+ ## API Report File for "@azure/arm-baremetalinfrastructure"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export type AzureBareMetalHardwareTypeNamesEnum = string;
13
+
14
+ // @public
15
+ export interface AzureBareMetalInstance extends TrackedResource {
16
+ readonly azureBareMetalInstanceId?: string;
17
+ hardwareProfile?: HardwareProfile;
18
+ readonly hwRevision?: string;
19
+ networkProfile?: NetworkProfile;
20
+ osProfile?: OSProfile;
21
+ partnerNodeId?: string;
22
+ readonly powerState?: AzureBareMetalInstancePowerStateEnum;
23
+ readonly provisioningState?: AzureBareMetalProvisioningStatesEnum;
24
+ readonly proximityPlacementGroup?: string;
25
+ storageProfile?: StorageProfile;
26
+ readonly systemData?: SystemData;
27
+ }
28
+
29
+ // @public
30
+ export type AzureBareMetalInstancePowerStateEnum = string;
31
+
32
+ // @public
33
+ export interface AzureBareMetalInstances {
34
+ get(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesGetOptionalParams): Promise<AzureBareMetalInstancesGetResponse>;
35
+ listByResourceGroup(resourceGroupName: string, options?: AzureBareMetalInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
36
+ listBySubscription(options?: AzureBareMetalInstancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
37
+ update(resourceGroupName: string, azureBareMetalInstanceName: string, tagsParameter: Tags, options?: AzureBareMetalInstancesUpdateOptionalParams): Promise<AzureBareMetalInstancesUpdateResponse>;
38
+ }
39
+
40
+ // @public
41
+ export interface AzureBareMetalInstancesGetOptionalParams extends coreClient.OperationOptions {
42
+ }
43
+
44
+ // @public
45
+ export type AzureBareMetalInstancesGetResponse = AzureBareMetalInstance;
46
+
47
+ // @public
48
+ export type AzureBareMetalInstanceSizeNamesEnum = string;
49
+
50
+ // @public
51
+ export interface AzureBareMetalInstancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
52
+ }
53
+
54
+ // @public
55
+ export type AzureBareMetalInstancesListByResourceGroupNextResponse = AzureBareMetalInstancesListResult;
56
+
57
+ // @public
58
+ export interface AzureBareMetalInstancesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
59
+ }
60
+
61
+ // @public
62
+ export type AzureBareMetalInstancesListByResourceGroupResponse = AzureBareMetalInstancesListResult;
63
+
64
+ // @public
65
+ export interface AzureBareMetalInstancesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
66
+ }
67
+
68
+ // @public
69
+ export type AzureBareMetalInstancesListBySubscriptionNextResponse = AzureBareMetalInstancesListResult;
70
+
71
+ // @public
72
+ export interface AzureBareMetalInstancesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
73
+ }
74
+
75
+ // @public
76
+ export type AzureBareMetalInstancesListBySubscriptionResponse = AzureBareMetalInstancesListResult;
77
+
78
+ // @public
79
+ export interface AzureBareMetalInstancesListResult {
80
+ nextLink?: string;
81
+ value?: AzureBareMetalInstance[];
82
+ }
83
+
84
+ // @public
85
+ export interface AzureBareMetalInstancesUpdateOptionalParams extends coreClient.OperationOptions {
86
+ }
87
+
88
+ // @public
89
+ export type AzureBareMetalInstancesUpdateResponse = AzureBareMetalInstance;
90
+
91
+ // @public
92
+ export type AzureBareMetalProvisioningStatesEnum = string;
93
+
94
+ // @public (undocumented)
95
+ export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
96
+ // (undocumented)
97
+ $host: string;
98
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: BareMetalInfrastructureClientOptionalParams);
99
+ // (undocumented)
100
+ apiVersion: string;
101
+ // (undocumented)
102
+ azureBareMetalInstances: AzureBareMetalInstances;
103
+ // (undocumented)
104
+ operations: Operations;
105
+ // (undocumented)
106
+ subscriptionId: string;
107
+ }
108
+
109
+ // @public
110
+ export interface BareMetalInfrastructureClientOptionalParams extends coreClient.ServiceClientOptions {
111
+ $host?: string;
112
+ apiVersion?: string;
113
+ endpoint?: string;
114
+ }
115
+
116
+ // @public
117
+ export type CreatedByType = string;
118
+
119
+ // @public
120
+ export interface Disk {
121
+ diskSizeGB?: number;
122
+ readonly lun?: number;
123
+ name?: string;
124
+ }
125
+
126
+ // @public
127
+ export interface Display {
128
+ readonly description?: string;
129
+ readonly operation?: string;
130
+ readonly provider?: string;
131
+ readonly resource?: string;
132
+ }
133
+
134
+ // @public
135
+ export interface ErrorDefinition {
136
+ readonly code?: string;
137
+ readonly details?: ErrorDefinition[];
138
+ readonly message?: string;
139
+ }
140
+
141
+ // @public
142
+ export interface ErrorResponse {
143
+ error?: ErrorDefinition;
144
+ }
145
+
146
+ // @public
147
+ export function getContinuationToken(page: unknown): string | undefined;
148
+
149
+ // @public
150
+ export interface HardwareProfile {
151
+ readonly azureBareMetalInstanceSize?: AzureBareMetalInstanceSizeNamesEnum;
152
+ readonly hardwareType?: AzureBareMetalHardwareTypeNamesEnum;
153
+ }
154
+
155
+ // @public
156
+ export interface IpAddress {
157
+ ipAddress?: string;
158
+ }
159
+
160
+ // @public
161
+ export enum KnownAzureBareMetalHardwareTypeNamesEnum {
162
+ CiscoUCS = "Cisco_UCS",
163
+ HPE = "HPE"
164
+ }
165
+
166
+ // @public
167
+ export enum KnownAzureBareMetalInstancePowerStateEnum {
168
+ Restarting = "restarting",
169
+ Started = "started",
170
+ Starting = "starting",
171
+ Stopped = "stopped",
172
+ Stopping = "stopping",
173
+ Unknown = "unknown"
174
+ }
175
+
176
+ // @public
177
+ export enum KnownAzureBareMetalInstanceSizeNamesEnum {
178
+ S112 = "S112",
179
+ S144 = "S144",
180
+ S144M = "S144m",
181
+ S192 = "S192",
182
+ S192M = "S192m",
183
+ S192Xm = "S192xm",
184
+ S224 = "S224",
185
+ S224M = "S224m",
186
+ S224Om = "S224om",
187
+ S224Oo = "S224oo",
188
+ S224Oom = "S224oom",
189
+ S224Ooo = "S224ooo",
190
+ S384 = "S384",
191
+ S384M = "S384m",
192
+ S384Xm = "S384xm",
193
+ S384Xxm = "S384xxm",
194
+ S448 = "S448",
195
+ S448M = "S448m",
196
+ S448Om = "S448om",
197
+ S448Oo = "S448oo",
198
+ S448Oom = "S448oom",
199
+ S448Ooo = "S448ooo",
200
+ S576M = "S576m",
201
+ S576Xm = "S576xm",
202
+ S672 = "S672",
203
+ S672M = "S672m",
204
+ S672Om = "S672om",
205
+ S672Oo = "S672oo",
206
+ S672Oom = "S672oom",
207
+ S672Ooo = "S672ooo",
208
+ S72 = "S72",
209
+ S72M = "S72m",
210
+ S768 = "S768",
211
+ S768M = "S768m",
212
+ S768Xm = "S768xm",
213
+ S896 = "S896",
214
+ S896M = "S896m",
215
+ S896Om = "S896om",
216
+ S896Oo = "S896oo",
217
+ S896Oom = "S896oom",
218
+ S896Ooo = "S896ooo",
219
+ S96 = "S96",
220
+ S960M = "S960m"
221
+ }
222
+
223
+ // @public
224
+ export enum KnownAzureBareMetalProvisioningStatesEnum {
225
+ Accepted = "Accepted",
226
+ Creating = "Creating",
227
+ Deleting = "Deleting",
228
+ Failed = "Failed",
229
+ Migrating = "Migrating",
230
+ Succeeded = "Succeeded",
231
+ Updating = "Updating"
232
+ }
233
+
234
+ // @public
235
+ export enum KnownCreatedByType {
236
+ Application = "Application",
237
+ Key = "Key",
238
+ ManagedIdentity = "ManagedIdentity",
239
+ User = "User"
240
+ }
241
+
242
+ // @public
243
+ export interface NetworkProfile {
244
+ readonly circuitId?: string;
245
+ networkInterfaces?: IpAddress[];
246
+ }
247
+
248
+ // @public
249
+ export interface Operation {
250
+ display?: Display;
251
+ readonly isDataAction?: boolean;
252
+ readonly name?: string;
253
+ }
254
+
255
+ // @public
256
+ export interface OperationList {
257
+ value?: Operation[];
258
+ }
259
+
260
+ // @public
261
+ export interface Operations {
262
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
263
+ }
264
+
265
+ // @public
266
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
267
+ }
268
+
269
+ // @public
270
+ export type OperationsListResponse = OperationList;
271
+
272
+ // @public
273
+ export interface OSProfile {
274
+ computerName?: string;
275
+ readonly osType?: string;
276
+ sshPublicKey?: string;
277
+ readonly version?: string;
278
+ }
279
+
280
+ // @public
281
+ export interface Resource {
282
+ readonly id?: string;
283
+ readonly name?: string;
284
+ readonly type?: string;
285
+ }
286
+
287
+ // @public
288
+ export interface Result {
289
+ sampleProperty?: string;
290
+ }
291
+
292
+ // @public
293
+ export interface StorageProfile {
294
+ readonly nfsIpAddress?: string;
295
+ osDisks?: Disk[];
296
+ }
297
+
298
+ // @public
299
+ export interface SystemData {
300
+ createdAt?: Date;
301
+ createdBy?: string;
302
+ createdByType?: CreatedByType;
303
+ lastModifiedAt?: Date;
304
+ lastModifiedBy?: string;
305
+ lastModifiedByType?: CreatedByType;
306
+ }
307
+
308
+ // @public
309
+ export interface Tags {
310
+ tags?: {
311
+ [propertyName: string]: string;
312
+ };
313
+ }
314
+
315
+ // @public
316
+ export interface TrackedResource extends Resource {
317
+ location: string;
318
+ tags?: {
319
+ [propertyName: string]: string;
320
+ };
321
+ }
322
+
323
+ // (No @packageDocumentation comment for this package)
324
+
325
+ ```