{"_id":"@alexok/arm-servicefabric-managedcluster","name":"@alexok/arm-servicefabric-managedcluster","dist-tags":{"latest":"1.0.0-beta.2"},"versions":{"1.0.0-beta.2":{"name":"@alexok/arm-servicefabric-managedcluster","sdk-type":"client","author":{"name":"Microsoft Corporation"},"version":"1.0.0-beta.2","description":"Service Fabric Client","keywords":["node","azure","cloud","typescript","browser","isomorphic"],"license":"MIT","main":"dist/index.js","module":"./dist-esm/src/index.js","types":"./types/arm-servicefabric.d.ts","homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric-rest/README.md","repository":{"type":"git","url":"git+https://github.com/Azure/azure-sdk-for-js.git"},"bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"//metadata":{"constantPaths":[{"path":"swagger/README.md","prefix":"package-version"}]},"engines":{"node":">=12.0.0"},"scripts":{"audit":"node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit","build:browser":"tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1","build:node":"tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1","build:samples":"echo skipped.","build:test":"tsc -p . && dev-tool run bundle","build:debug":"tsc -p . && dev-tool run bundle && api-extractor run --local","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"","clean":"rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log","execute:samples":"dev-tool samples run samples-dev","extract-api":"rimraf review && mkdirp ./review && api-extractor run --local","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"","generate:client":"autorest --typescript swagger/README.md && npm run format","integration-test:browser":"dev-tool run test:browser","integration-test:node":"dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'","integration-test":"npm run integration-test:node && npm run integration-test:browser","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","lint":"eslint package.json api-extractor.json src test --ext .ts","pack":"npm pack 2>&1","test:browser":"npm run clean && npm run build:test && npm run unit-test:browser","test:node":"npm run clean && npm run build:test && npm run unit-test:node","test":"npm run clean && npm run build:test && npm run unit-test","unit-test":"npm run unit-test:node && npm run unit-test:browser","unit-test:node":"dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'","unit-test:browser":"dev-tool run test:browser","build":"npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local"},"sideEffects":false,"autoPublish":false,"dependencies":{"@azure/core-auth":"^1.3.0","@azure-rest/core-client":"1.0.0-beta.10","@azure/core-rest-pipeline":"^1.8.0","@azure/logger":"^1.0.0","tslib":"^2.2.0","@azure/core-paging":"^1.2.0","@azure/core-lro":"^2.2.0"},"devDependencies":{"@microsoft/api-extractor":"^7.31.1","autorest":"latest","@types/node":"^12.0.0","dotenv":"^8.2.0","eslint":"^7.15.0","mkdirp":"^1.0.4","prettier":"2.2.1","rimraf":"^3.0.0","source-map-support":"^0.5.9","typescript":"~4.2.0","@azure/dev-tool":"^1.0.0","@azure/eslint-plugin-azure-sdk":"^3.0.0","@azure-tools/test-credential":"^1.0.0","@azure/identity":"^2.0.1","@azure-tools/test-recorder":"^2.0.0","mocha":"^7.1.1","mocha-junit-reporter":"^1.18.0","cross-env":"^7.0.2","@types/chai":"^4.2.8","chai":"^4.2.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-edge-launcher":"^0.4.2","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.1.0","karma-ie-launcher":"^1.0.0","karma-junit-reporter":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-mocha":"^2.0.1","karma-source-map-support":"~1.4.0","karma-sourcemap-loader":"^0.3.8","karma":"^6.2.0","nyc":"^14.0.0"},"browser":{"./dist-esm/test/public/utils/env.js":"./dist-esm/test/public/utils/env.browser.js"},"//sampleConfiguration":{"productName":"","productSlugs":["azure"],"disableDocsMs":true,"apiRefLink":"https://docs.microsoft.com/javascript/api/@azure-rest/arm-servicefabric?view=azure-node-preview"},"gitHead":"503bb152e31be91a41233562bc7e14c38e9257a3","_id":"@alexok/arm-servicefabric-managedcluster@1.0.0-beta.2","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-GJu/GcF42xvy5AaNF4nwghKQeN1s+I/75uyX1wLjYSj4fpHWVMyzz8W2CqQoIvGYFAhfEwM2vuZjrpBJwI8O3w==","shasum":"4530931ccfc24320af8b74245eff00d805e0b727","tarball":"https://registry.npmjs.org/@alexok/arm-servicefabric-managedcluster/-/arm-servicefabric-managedcluster-1.0.0-beta.2.tgz","fileCount":29,"unpackedSize":478389,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoudVOHwIGFYtUR9QBdwPGZ307x5L/CEO01p4owo1upgIhAKRdktyD4SS9wGKO5z7vVk/E/+MSpj5T7mnQOCjpkqwb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPWsHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGBw//TLf4T92J4o2ZUlOupj+5Cn9k7BACMQe5u3Zx/720Un0tg0jf\r\nNyTY/vd6908GZngn8AFWbRBZfu5JlsYCq2Ov/lUDdO5994mvCtJyfa7xn6mZ\r\nLHmIdvkbkFN4nsYLZ17pfEPGHVKuoXN/h9grR0nkZvIRFexSnWoqyF5ZPd/j\r\nrvbdPBszgdjCQLXJqQxOHqGKmTQjjyg5dARsymgOv+dvu4baoRd5FT/Szt1i\r\n7Nk+kB132e4E0mjeNfKvYmo1ZyDat1UoaTB9Ycgl61wNNwslyP+vMR6WTDIv\r\nqFRgGMFqTF5KIbvn09IiK1wLq4AWsbzIW6660EFC6TVB9jKy0bGtXPrPj/gk\r\naFcPdX+mTT4XJC9sHApBESqniVkTqFEYZ65QruhT9dAjGnf9/41h6xE1U60J\r\ndVvWE9YF1shjv2WdFE4RD+I1Rxo2SxWGumtNDC0J9p00XTwsAD0qjVhSevVe\r\ncS4RR4KRTggQBXvJFiEZzsFwDU0dDxET8GwhIyJvbjGEQWmI9Jvk+M02Hm+G\r\ng2hbYCZ4RCqWvkhoqJ1ih9/qIPk5u2q+6cQdC5OmCG9mXSgq6ULC+SXJ4yjh\r\nn4+fA/pmP2Fieo5FwEDjn51zM9crk+KU0x63lJVMymEPcoQ3aVZwQhdoyyw6\r\nMCmNk71zAffhUEREFCY0zo+++Xwi2LyZ/B0=\r\n=oh1y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aokonechnikov","email":"aokonechnikov@meditech.com"},"directories":{},"maintainers":[{"name":"aokonechnikov","email":"aokonechnikov@meditech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arm-servicefabric-managedcluster_1.0.0-beta.2_1664969479769_0.10909516453566481"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-05T11:31:19.700Z","1.0.0-beta.2":"2022-10-05T11:31:19.939Z","modified":"2022-10-05T11:31:20.196Z"},"maintainers":[{"name":"aokonechnikov","email":"aokonechnikov@meditech.com"}],"description":"Service Fabric Client","homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric-rest/README.md","keywords":["node","azure","cloud","typescript","browser","isomorphic"],"repository":{"type":"git","url":"git+https://github.com/Azure/azure-sdk-for-js.git"},"author":{"name":"Microsoft Corporation"},"bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"license":"MIT","readme":"# Azure ServiceFabric client library for JavaScript\n\nService Fabric Client\n\n**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library**\n\nKey links:\n\n- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric-rest)\n- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/arm-servicefabric)\n- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure-rest/arm-servicefabric?view=azure-node-preview)\n- [Samples](https://github.com/Azure-Samples/azure-samples-js-management)\n\n## Getting started\n\n### Currently supported environments\n\n- Node.js version 14.x.x or higher\n\n### Prerequisites\n\n- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package.\n\n### Install the `@azure-rest/arm-servicefabric` package\n\nInstall the Azure ServiceFabric client REST client library for JavaScript with `npm`:\n\n```bash\nnpm install @azure-rest/arm-servicefabric\n```\n\n### Create and authenticate a `ServiceFabricClient`\n\nTo use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token),\nprovide an instance of the desired credential type obtained from the\n[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.\n\nTo authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity) \n\nAfter setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.\nAs an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)\ncan be used to authenticate the client.\n\nSet the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:\nAZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET\n\n\n## Examples\n\nThe following section shows you how to initialize and authenticate your client, then list all of your Clusters.\n\n### List All Clusters\n\n```typescript\nimport ServiceFabricManagementClient from \"@azure-rest/arm-servicefabric\";\nimport { DefaultAzureCredential } from \"@azure/identity\";\n\nasync function listClusters() {\n  const subscriptionId = \"00000000-0000-0000-0000-000000000000\";\n  const credential = new DefaultAzureCredential();\n  const client = ServiceFabricManagementClient(credential);\n  const result = await client\n    .path(\n      \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters\",\n      subscriptionId\n    )\n    .get();\n  console.log(result);\n}\n\nlistClusters().catch(console.error);\n```\n\n\n## Troubleshooting\n\n### Logging\n\nEnabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:\n\n```javascript\nimport { setLogLevel } from \"@azure/logger\";\n\nsetLogLevel(\"info\");\n```\n\nFor more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).\n","readmeFilename":"README.md"}